ZHANGYUXUAN-zR commited on
Commit
d9012f8
·
verified ·
1 Parent(s): 7a22959

Add files using upload-large-folder tool

Browse files
parse/train/B16dGcqlx/B16dGcqlx.md ADDED
@@ -0,0 +1,356 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # THIRD-PERSON IMITATION LEARNING
2
+
3
+ Bradly C. Stadie1,2, Pieter Abbeel1,3, Ilya Sutskever1
4
+
5
+ 1 OpenAI 2 UC Berkeley, Department of Statistics 3 UC Berkeley, Departments of EECS and ICSI {bstadie, pieter, ilyasu,}@openai.com
6
+
7
+ # ABSTRACT
8
+
9
+ Reinforcement learning (RL) makes it possible to train agents capable of achieving sophisticated goals in complex and uncertain environments. A key difficulty in reinforcement learning is specifying a reward function for the agent to optimize. Traditionally, imitation learning in RL has been used to overcome this problem. Unfortunately, hitherto imitation learning methods tend to require that demonstrations are supplied in the first-person: the agent is provided with a sequence of states and a specification of the actions that it should have taken. While powerful, this kind of imitation learning is limited by the relatively hard problem of collecting first-person demonstrations. Humans address this problem by learning from third-person demonstrations: they observe other humans perform tasks, infer the task, and accomplish the same task themselves.
10
+
11
+ In this paper, we present a method for unsupervised third-person imitation learning. Here third-person refers to training an agent to correctly achieve a simple goal in a simple environment when it is provided a demonstration of a teacher achieving the same goal but from a different viewpoint; and unsupervised refers to the fact that the agent receives only these third-person demonstrations, and is not provided a correspondence between teacher states and student states. Our methods primary insight is that recent advances from domain confusion can be utilized to yield domain agnostic features which are crucial during the training process. To validate our approach, we report successful experiments on learning from third-person demonstrations in a pointmass domain, a reacher domain, and inverted pendulum.
12
+
13
+ # 1 INTRODUCTION
14
+
15
+ Reinforcement learning (RL) is a framework for training agents to maximize rewards in large, unknown, stochastic environments. In recent years, combining techniques from deep learning with reinforcement learning has yielded a string of successful applications in game playing and robotics Mnih et al. (2015; 2016); Schulman et al. (2015a); Levine et al. (2016). These successful applications, and the speed at which the abilities of RL algorithms have been increasing, makes it an exciting area of research with significant potential for future applications.
16
+
17
+ One of the major weaknesses of RL is the need to manually specify a reward function. For each task we wish our agent to accomplish, we must provide it with a reward function whose maximizer will precisely recover the desired behavior. This weakness is addressed by the field of Inverse Reinforcement Learning (IRL). Given a set of expert trajectories, IRL algorithms produce a reward function under which these the expert trajectories enjoy the property of optimality. Recently, there has been a significant amount of work on IRL, and current algorithms can infer a reward function from a very modest number of demonstrations (e.g,. Abbeel & $\mathrm { N g }$ (2004); Ratliff et al. (2006); Ziebart et al. (2008); Levine et al. (2011); Ho & Ermon (2016); Finn et al. (2016)).
18
+
19
+ While IRL algorithms are appealing, they impose the somewhat unrealistic requirement that the demonstrations should be provided from the first-person point of view with respect to the agent. Human beings learn to imitate entirely from third-person demonstrations – i.e., by observing other humans achieve goals. Indeed, in many situations, first-person demonstrations are outright impossible to obtain. Meanwhile, third-person demonstrations are often relatively easy to obtain.
20
+
21
+ The goal of this paper is to develop an algorithm for third-person imitation learning. Future advancements in this class of algorithms would significantly improve the state of robotics, because it will enable people to easily teach robots news skills and abilities. Importantly, we want our algorithm to be unsupervised: it should be able to observe another agent perform a task, infer that there is an underlying correspondence to itself, and find a way to accomplish the same task.
22
+
23
+ We offer an approach to this problem by borrowing ideas from domain confusion Tzeng et al. (2014) and generative adversarial networks (GANs) Goodfellow et al. (2014). The high-level idea is to introduce an optimizer under which we can recover both a domain-agnostic representation of the agent’s observations, and a cost function which utilizes this domain-agnostic representation to capture the essence of expert trajectories. We formulate this as a third-person RL-GAN problem, and our solution builds on the first-person RL-GAN formulation by Ho & Ermon (2016).
24
+
25
+ Surprisingly, we find that this simple approach has been able to solve the problems that are presented in this paper (illustrated in Figure 1), even though the student’s observations are related in a complicated way to the teacher’s demonstrations (given that the observations and the demonstrations are pixel-level). As techniques for training GANs become more stable and capable, we expect our algorithm to be able to infer solve harder third-person imitation tasks without any direct supervision.
26
+
27
+ ![](images/4f116f6ef62dbbe520d3cfcd3efa9281e7a38397e6e00f6ac5c062e2df069dc2.jpg)
28
+ Figure 1: From left to right, the three domains we consider in this paper: pointmass, reacher, and pendulum. Top-row is the third-person view of a teacher demonstration. Bottom row is the agent’s view in their version of the environment. For the point and reacher environments, the camera angles differ by approximately 40 degrees. For the pendulum environment, the color of the pole differs.
29
+
30
+ # 2 RELATED WORK
31
+
32
+ Imitation learning (also learning from demonstrations or programming by demonstration) considers the problem of acquiring skills from observing demonstrations. Imitation learning has a long history, with several good survey articles, including (Schaal, 1999; Calinon, 2009; Argall et al., 2009). Two main lines of work within imitation learning are: 1) behavioral cloning, where the demonstrations are used to directly learn a mapping from observations to actions using supervised learning, potentially with interleaving learning and data collection (e.g., Pomerleau (1989); Ross et al. (2011)). 2) Inverse reinforcement learning $\mathrm { N g }$ et al., 2000), where a reward function is estimated that explains the demonstrations as (near) optimal behavior. This reward function could be represented as nearness to a trajectory (Calinon et al., 2007; Abbeel et al., 2010), as a weighted combination of features (Abbeel & $\mathrm { N g }$ , 2004; Ratliff et al., 2006; Ramachandran & Amir, 2007; Ziebart et al., 2008; Boularias et al., 2011; Kalakrishnan et al., 2013; Doerr et al., 2015), or could also involve feature learning (Ratliff et al., 2007; Levine et al., 2011; Wulfmeier et al., 2015; Finn et al., 2016; Ho & Ermon, 2016).
33
+
34
+ This past work, however, is not directly applicable to the third person imitation learning setting. In third-person imitation learning, the observations and actions obtained from the demonstrations are not the same as what the imitator agent will be faced with. A typical scenario would be: the imitator agent watches a human perform a demonstration, and then has to execute that same task. As discussed in Nehaniv & Dautenhahn (2001) the ”what and how to imitate” questions become significantly more challenging in this setting. To directly apply existing behavioral cloning or inverse reinforcement learning techniques would require knowledge of a mapping between observations and actions in the demonstrator space to observations and actions in the imitator space. Such a mapping is often difficult to obtain, and it typically relies on providing feature representations that captures the invariance between both environments Carpenter et al. (2002); Shon et al. (2005); Calinon et al. (2007); Nehaniv (2007); Gioioso et al. (2013); Gupta et al. (2016). Contrary to prior work, we consider third-person imitation learning from raw sensory data, where no such features are made available.
35
+
36
+ The most closely related work to ours is by Finn et al. (2016); Ho & Ermon (2016); Wulfmeier et al. (2015), who also consider inverse reinforcement learning directly from raw sensory data. However, the applicability of their approaches is limited to the first-person setting. Indeed, matching raw sensory observations is impossible in the 3rd person setting.
37
+
38
+ Our work also closely builds on advances in generative adversarial networks Goodfellow et al. (2014), which are very closely related to imitation learning as explained in Finn et al. (2016); Ho & Ermon (2016). In our optimization formulation, we apply the gradient flipping technique from Ganin & Lempitsky (2014).
39
+
40
+ The problem of adapting what is learned in one domain to another domain has been studied extensively in computer vision in the supervised learning setting Yang et al. (2007); Mansour et al. (2009); Kulis et al. (2011); Aytar & Zisserman (2011); Duan et al. (2012); Hoffman et al. (2013); Long & Wang (2015). It has also been shown that features trained in one domain can often be relevant to other domains Donahue et al. (2014). The work most closely related to ours is Tzeng et al. (2014; 2015), who also consider an explicit domain confusion loss, forcing trained classifiers to rely on features that don’t allow to distinguish between two domains. This work in turn relates to earlier work by Bromley et al. (1993); Chopra et al. (2005), which also considers supervised training of deep feature embeddings.
41
+
42
+ Our approach to third-person imitation learning relies on reinforcement learning from raw sensory data in the imitator domain. Several recent advances in deep reinforcement learning have made this practical, including Deep Q-Networks (Mnih et al., 2015), Trust Region Policy Optimization (Schulman et al., 2015a), A3C Mnih et al. (2016), and Generalized Advantage Estimation (Schulman et al., 2015b). Our approach uses Trust Region Policy Optimization.
43
+
44
+ # 3 BACKGROUND AND PRELIMINARIES
45
+
46
+ A discrete-time finite-horizon discounted Markov decision process (MDP) is represented by a tuple $M = ( S , A , \mathcal { P } , r , \rho _ { 0 } , \gamma , T )$ , in which $s$ is a state set, $\mathcal { A }$ an action set, $\mathcal { P } : \bar { S \times A } \times \bar { S } \stackrel { \cdot } { \to } \mathbb { R } _ { + }$ a transition probability distribution, $r : S \times \mathcal { A } \mathbb { R }$ a reward function, $\rho _ { 0 } : { \mathcal { S } } \to \mathbb { R } _ { + }$ an initial state distribution, $\gamma \in [ 0 , 1 ]$ a discount factor, and $T$ the horizon.
47
+
48
+ In the reinforcement learning setting, the goal is to find a policy $\pi _ { \theta } : \mathcal { S } \times \mathcal { A } \to \mathbb { R } _ { + }$ parametrized by $\theta$ that maximizes the expected discounted sum of rewards incurred, $\begin{array} { r } { \eta ( \pi _ { \theta } ) = \mathbb { E } _ { \pi _ { \theta } } [ \sum _ { t = 0 } ^ { T } \gamma ^ { t } c ( s _ { t } ) ] } \end{array}$ , where $s _ { 0 } \sim \rho _ { 0 } ( s _ { 0 } )$ , $a _ { t } \sim \pi _ { \theta } ( a _ { t } | s _ { t } )$ , and $s _ { t + 1 } \sim \mathcal { P } ( s _ { t + 1 } | s _ { t } , a _ { t } )$ .
49
+
50
+ In the (first-person) imitation learning setting, we are not given the reward function. Instead we are given traces (i.e., sequences of states traversed) by an expert who acts according to an unknown policy $\pi _ { E }$ . The goal is to find a policy $\pi _ { \theta }$ that performs as well as the expert against the unknown reward function. It was shown in Abbeel & $\mathrm { N g }$ (2004) that this can be achieved through inverse reinforcement learning by finding a policy $\pi _ { \theta }$ that matches the expert’s empirical expectation over discounted sum of all features that might contribute to the reward function. The work by Ho & Ermon (2016) generalizes this to the setting when no features are provided as follows: Find a policy $\pi _ { \theta }$ that makes it impossible for a discriminator (in their work a deep neural net) to distinguish states visited by the expert from states visited by the imitator agent. This can be formalized as follows:
51
+
52
+ $$
53
+ \begin{array} { r l } { \underset { \pi _ { \theta } } { \mathop { \operatorname* { m a x } } } \underset { \mathcal { D } _ { R } } { \mathop { \operatorname* { m i n } } } } & { { } - \mathbb { E } _ { \pi _ { \theta } } [ \log \mathcal { D } _ { R } ( s ) ] - \mathbb { E } _ { \pi _ { E } } [ \log ( 1 - \mathcal { D } _ { R } ( s ) ) ] } \end{array}
54
+ $$
55
+
56
+ Here, the expectations are over the states experienced by the policy of the imitator agent, $\pi _ { \theta }$ , and by the policy of the expert, $\pi _ { E }$ , respectively. $\mathcal { D } _ { R }$ is the discriminator, which outputs the probability of a state having originated from a trace from the imitator policy $\pi _ { \theta }$ . If the discriminator is perfectly able to distinguish which policy originated state-action pairs, then $\mathcal { D } _ { R }$ will consistently output a probability of 1 in the first term, and a probability of 0 in the second term, making the objective its lowest possible value of zero. It is the role of the imitator agent $\pi _ { \theta }$ to find a policy that makes it difficult for the discriminator to make that distinction. The desired equilibrium has the imitator agent making it impractical for the discriminator to distinguish, hence forcing the discriminator to assign probability 0.5 in all cases. Ho & Ermon (2016) present a practical approach for solving this type of game when representing both $\pi _ { \theta }$ and $\mathcal { D } _ { R }$ as deep neural networks. Their approach repeatedly performs gradient updates on each of them. Concretely, for a current policy $\pi _ { \theta }$ traces can be collected, which together with the expert traces form a data-set on which $\mathcal { D } _ { R }$ can be trained with supervised learning minimizing the negative log-likelihood (in practice only performing a modest number of updates). For a fixed $\mathcal { D } _ { R }$ , this is a policy optimization problem where $- \log \mathcal { D } _ { R } ( s , a )$ is the reward, and policy gradients can be computed from those same traces. Their approach uses trust region policy optimization (Schulman et al., 2015a) to update the imitator policy $\pi _ { \theta }$ from those gradients.
57
+
58
+ In our work we will have more terms in the objective, so for compactness of notation, we will realize the discriminative minimization from Eqn. (1) as follows:
59
+
60
+ $$
61
+ \operatorname* { m a x } _ { \pi _ { \boldsymbol { \theta } } } \operatorname* { m i n } _ { \mathcal { D } _ { R } } \mathcal { L } _ { R } = \sum _ { i } C E ( \mathcal { D } _ { R } ( \boldsymbol { s } _ { i } ) , \boldsymbol { c } _ { \boldsymbol { \ell } _ { i } } )
62
+ $$
63
+
64
+ Where $s _ { i }$ is state $i$ , $c _ { \ell _ { i } }$ is the correct class label (was the state $s _ { i }$ obtained from an expert vs. from a non-expert), and $C E$ is the standard cross entropy loss.
65
+
66
+ # 4 A FORMAL DEFINITION OF THE THIRD-PERSON IMITATION LEARNINGPROBLEM
67
+
68
+ Formally, the third-person imitation learning problem can be stated as follows. Suppose we are given two Markov Decision Processes $M _ { \pi _ { E } }$ and $M _ { \pi _ { \theta } }$ . Suppose further there exists a set of traces $\rho =$ $\{ ( s _ { 1 } , \ldots , s _ { n } ) \} _ { i = 0 } ^ { n }$ which were generated under a policy $\pi _ { E }$ acting optimally under some unknown reward $R _ { \pi _ { E } }$ . In third-person imitation learning, one attempts to recover by proxy through $\rho$ a policy $\pi _ { \theta } = f ( \rho )$ which acts optimally with respect to $R _ { \pi _ { \theta } }$ .
69
+
70
+ # 5 A THIRD-PERSON IMITATION LEARNING ALGORITHM
71
+
72
+ # 5.1 GAME FORMULATION
73
+
74
+ In this section, we discuss a simple algorithm for third-person imitation learning. This algorithm is able to successfully discriminate between expert and novice policies, even when the policies are executed under different environments. Subsequently, this discrimination signal can be used to train expert policies in new domains via RL by training the novice policy to fool the discriminator, thus forcing it to match the expert policy.
75
+
76
+ In third-person learning, observations are more typically available rather than direct state access, so going forward we will work with observations $o _ { t }$ instead of states $s _ { t }$ as representing the expert traces. The top row of Figure 8 illustrates what these observations are like in our experiments.
77
+
78
+ We begin by recalling that in the algorithm proposed by Ho & Ermon (2016) the loss in Equation 2 is utilized to train a discriminator $\mathcal { D } _ { R }$ capable of distinguishing expert vs non-expert policies. Unfortunately, (2) will likely fail in cases when the expert and non-expert act in different environments, since $\mathcal { D } _ { R }$ will quickly learn these differences and use them as a strong classification signal.
79
+
80
+ To handle the third-person setting, where expert and novice are in different environments, we consider that $\mathcal { D } _ { R }$ works by first extracting features from $o _ { t }$ , and then using these features to make a classification. Suppose then that we partition $\mathcal { D } _ { R }$ into a feature extractor $\mathcal { D } _ { F }$ and the actual classifier which assigns probabilities to the outputs of $D _ { F }$ . Overloading notation, we will refer to the classifier as $\mathcal { D } _ { R }$ going forward. For example, in case of a deep neural net representation, $\mathcal { D } _ { F }$ would correspond to the earlier layers, and $\mathcal { D } _ { R }$ to the later layers. The problem is then to ensure that $D _ { F }$ contains no information regarding the rollout’s domain label $d _ { \ell }$ (i.e., expert vs. novice domain). This can be realized as
81
+
82
+ $$
83
+ \begin{array} { r l r } & { } & { \underset { \pi _ { \theta } } { \operatorname* { m a x } } \operatorname* { m i n } \mathcal L _ { { R } } = \displaystyle \sum _ { i } C E ( \mathcal D _ { { R } } ( \mathcal D _ { { F } } ( o _ { i } ) ) , c _ { \ell _ { i } } ) } \\ & { } & { \mathrm { s . t . } ~ \mathrm { M I } ( D _ { { F } } ( o _ { i } ) ; d _ { l } ) = 0 } \end{array}
84
+ $$
85
+
86
+ Where MI is mutual information and hence we have abused notation by using $\mathcal { D } _ { R } , D _ { F }$ , and $d _ { \ell }$ to mean the classifier, feature extractor, and the domain label respectively as well as distributions over these objects.
87
+
88
+ The mutual information term can be instantiated by introducing another classifier $\mathcal { D } _ { D }$ , which takes features produced by $D _ { F }$ and outputs the probability that those features were produced by in the expert vs. non-expert environment. (See Bridle et al. (1992); Barber & Agakov (2005); Krause et al. (2010); Chen et al. (2016) for further discussion on instantiating the information term by introducing another classifier.) If $\sigma _ { i } = D _ { F } { ( o _ { i } ) }$ , then the problem can be written as
89
+
90
+ $$
91
+ \operatorname* { m a x } _ { \pi _ { \theta } } \operatorname* { m i n } _ { \mathcal { D } _ { R } } \operatorname* { m a x } _ { \mathcal { D } _ { D } } \mathcal { L } _ { R } + \mathcal { L } _ { D } = \sum _ { i } C E ( \mathcal { D } _ { R } ( \sigma _ { i } ) , c _ { \ell _ { i } } ) + C E ( \mathcal { D } _ { D } ( \sigma _ { i } ) , d _ { \ell _ { i } } )
92
+ $$
93
+
94
+ In words, we wish to minimize class loss while maximizing domain confusion.
95
+
96
+ Often, it can be difficult for even humans to judge a static image as expert vs. non-expert because it does not convey any information about the environmental change affected by the agent’s actions. For example, if a pointmass is attempting to move to a target location and starts far away from its goal state, it can be difficult to judge if the policy itself is bad or the initialization was simply unlucky. In response to this difficulty, we give $\mathcal { D } _ { R }$ access to not only the image at time $t$ , but also at some future time $t + n$ . Define $\sigma _ { t } = D _ { F } ( o _ { t } )$ and $\sigma _ { t + n } = D _ { F } ( o _ { t + n } )$ . The classifier then makes a prediction $\mathcal { D } _ { R } ( \sigma _ { t } , \sigma _ { t + n } ) = \hat { c } _ { \ell }$ .
97
+
98
+ This renders the following formulation:
99
+
100
+ $$
101
+ \operatorname* { m a x } _ { \pi _ { \theta } } \operatorname* { m i n } _ { \mathcal { D } _ { R } } \operatorname* { m a x } _ { \mathcal { D } _ { D } } \mathcal { L } _ { R } + \mathcal { L } _ { D } = \sum _ { i } C E ( \mathcal { D } _ { R } ( \sigma _ { i } , \sigma _ { i + n } ) , c _ { \ell _ { i } } ) + C E ( \mathcal { D } _ { D } ( \sigma _ { i } ) , d _ { \ell _ { i } } )
102
+ $$
103
+
104
+ Note we also want to optimize over $\mathcal { D } _ { F }$ , the feature extractor, but it feeds both into $\mathcal { D } _ { R }$ and into $\mathcal { D } _ { D }$ , which are competing (hidden under $\sigma$ ), which we will address now.
105
+
106
+ To deal with the competition over $\mathcal { D } _ { F }$ , we introduce a function $\mathcal { G }$ that acts as the identity when moving forward through a directed acyclic graph and flips the sign when backpropagating through the graph. This technique has enjoyed recent success in computer vision. See, for example, (Ganin & Lempitsky, 2014). With this trick, the problem reduces to its final form
107
+
108
+ $$
109
+ \operatorname* { m a x } _ { \pi _ { \theta } } \operatorname* { m i n } _ { \mathcal { D } _ { R } , \mathcal { D } _ { D } , \mathcal { D } _ { F } } \mathcal { L } _ { R } + \mathcal { L } _ { D } = \sum _ { i } C E ( \mathcal { D } _ { R } ( \sigma _ { i } , \sigma _ { i + n } ) , c _ { \ell _ { i } } ) + \lambda C E ( \mathcal { D } _ { D } ( \mathcal { G } ( \sigma _ { i } ) , d _ { \ell _ { i } } ) - c _ { \ell _ { i } } )
110
+ $$
111
+
112
+ In Equation (5), we flip the gradient’s sign during backpropagation of $D _ { F }$ with respect to the domain classification loss. This corresponds to stochastic gradient ascent away from features that are useful for domain classification, thus ensuring that $D _ { F }$ produces domain agnostic features. Equation 5 can be solved efficiently with stochastic gradient descent. Here $\lambda$ is a hyperparameter that determines the trade-off made between the objectives that are competing over $\mathcal { D } _ { F }$ .
113
+
114
+ To ensure sufficient signal for discrimination between expert and non-expert, we collect third-person demonstrations in the expert domain from both an expert and from a non-expert.
115
+
116
+ Our complete formulation is graphically summarized in Figure 2.
117
+
118
+ ![](images/0f6e6112f36cfebf12955fa02ddf614350be92d58e85c57da82c1566c4d52336.jpg)
119
+ Figure 2: Architecture diagram for third-person imitation learning. Images at time $t$ and $t + 4$ are sent through a feature extractor to obtain $F ( o _ { t } )$ and $F ( o _ { t + 4 } )$ . Subsequently, these feature vectors are reused in two places. First, they are concatenated and used to predict whether the samples are drawn from expert or non-expert trajectories. Second, $F ( o _ { t } )$ is utilized to predict a domain label (expert vs. novice domain). During backpropogation, the sign on the domain loss $L _ { D }$ is flipped to destroy information that was useful for distinguishing the two domains. This ensures that the feature extractor $F$ is domain agnostic. Finally, the classes probabilities that were computed using this domain-agnostic feature vector are utilized as a cost signal in TRPO; which is subsequently utilized to train the novice policy to take expert-like actions and collect further rollouts.
120
+
121
+ # 5.2 ALGORITHM
122
+
123
+ To solve the game formulation in Equation (5), we perform alternating (partial) optimization over the policy $\pi _ { \theta }$ and the reward function and domain confusion encoded through $\mathcal { D } _ { R } , \mathcal { D } _ { D } , \mathcal { D } _ { F }$ .
124
+
125
+ The optimization over $\mathcal { D } _ { R } , \mathcal { D } _ { D } , \mathcal { D } _ { F }$ is done through stochastic gradient descent with ADAM Kingma & Ba (2014).
126
+
127
+ Our generator $\left( \pi _ { \boldsymbol { \theta } } \right)$ step is similar to the generator step in the algorithm by (Ho & Ermon, 2016). We simply use $- \log \mathcal { D } _ { R }$ as the reward. Using policy gradient methods (TRPO), we train the generator to minimize this cost and thus push the policy further towards replicating expert behavior. Once the generator step is done, we start again with the discriminator step. The entire process is summarized in algorithm 1.
128
+
129
+ # 6 EXPERIMENTS
130
+
131
+ We seek to answer the following questions through experiments:
132
+
133
+ 1. Is it possible to solve the third-person imitation learning problem in simple settings? I.e., given a collection of expert image-based rollouts in one domain, is it possible to train a policy in a different domain that replicates the essence of the original behavior? 2. Does the algorithm we propose benefit from both domain confusion and velocity? 3. How sensitive is our proposed algorithm to the selection of hyper-parameters used in deployment? 4. How sensitive is our proposed algorithm to changes in camera angle? 5. How does our method compare against some reasonable baselines?
134
+
135
+ # Algorithm 1 A third-person imitation learning algorithm.
136
+
137
+ 1: Let CE be the standard cross entropy loss.
138
+ 2: Let $\mathcal { G }$ be a function that flips the gradient sign during backpropogation and acts as the identity
139
+ map otherwise.
140
+ 3: Initialize two domains, $E$ and $N$ for the expert and novice.
141
+ 4: Initialize a memory bank $\Omega$ of expert success and of failure in domain $E$ . Each trajectory $\omega \in \Omega$
142
+ comprises a rollout of images $o = o _ { 1 } , \ldots , o _ { t } , \ldots o _ { n }$ , a class label $c _ { \ell }$ , and a domain label $d _ { \ell }$ .
143
+ 5: Initialize $\mathcal { D } = \mathcal { D } _ { F } , \mathcal { D } _ { R } , \mathcal { D } _ { D }$ , a domain invariant discriminator.
144
+ 6: Initialize a novice policy $\pi _ { \theta }$ .
145
+ 7: Initialize numiters, the number of inner policy optimization iterations we wish to run.
146
+ 8: for iter in numiters do
147
+ 9: Sample a set of successes and failures $\omega _ { E }$ from $\Omega$ .
148
+ 10: Collect on policy samples $\omega _ { N }$
149
+ 11: Set $\omega = \omega _ { E } \cup \omega _ { N }$ .
150
+ 12: Shuffle $\omega$
151
+ 13: for $o , c _ { \ell } , d _ { \ell }$ in $\omega$ do
152
+ 14: for $o _ { t }$ in $o$ do
153
+ 15: $\sigma _ { t } = \mathcal { D } _ { F } \big ( o _ { t } \big )$
154
+ 16: $\sigma _ { t + 4 } = \mathscr { D } _ { F } ( o _ { t + 4 } )$
155
+ 17: $\mathcal { L } _ { R } = C E ( \mathcal { D } _ { R } ( \sigma _ { t } , \sigma _ { t + 4 } ) , c _ { \ell } )$
156
+ 18: $\mathcal { L } _ { d } = C E ( \mathcal { D } _ { D } ( \mathcal { G } ( \sigma _ { t } ) ) , d _ { \ell } )$
157
+ 19: L = λ · Ld + LR
158
+ 20: minimize $\mathcal { L }$ with ADAM.
159
+ 21: end for
160
+ 22: end for
161
+ 23: Collect on policy samples $\omega _ { N }$ from $\pi _ { \theta }$ .
162
+ 24: for $\omega$ in $\omega _ { N }$ do
163
+ 25: for $\omega _ { t }$ in $\omega$ do
164
+ 26: $\begin{array} { l } { \sigma _ { t } = \mathcal { D } _ { F } \big ( o _ { t } \big ) } \\ { \sigma _ { t + 4 } = \mathcal { D } _ { F } \big ( o _ { t + 4 } \big ) } \\ { \hat { c } _ { \ell } = \mathcal { D } _ { R } \big ( \sigma _ { t } , \sigma _ { t + 4 } \big ) } \end{array}$
165
+ 27:
166
+ 28:
167
+ 29: $r = \hat { c } _ { \ell } [ 0 ]$ , the probability that $o _ { t } , o _ { t + 4 }$ were generated via expert rollouts.
168
+ 30: Use $r$ to train $\pi _ { \theta }$ with via policy gradients (TRPO).
169
+ 31: end for
170
+ 32: end for
171
+ 33: end for
172
+ 34: return optimized policy $\pi _ { \theta }$
173
+
174
+ # 6.1 ENVIRONMENTS
175
+
176
+ To evaluate our algorithm, we consider three environments in the MuJoCo physics simulator. There are two different versions of each environment, an expert variant and a novice variant. Our goal is to train a cost function that is domain agnostic, and hence can be trained with images on the expert domain but nevertheless produce a reasonable cost on the novice domain. See Figure 1 for a visualization of the differences between expert and novice environments for the three tasks.
177
+
178
+ Point: A pointmass attempts to reach a point in a plane. The color of the target and the camera angle change between domains.
179
+
180
+ Reacher: A two DOF arm attempts to reach a designated point in the plane. The camera angle, the length of the arms, and the color of the target point are changed between domains. Note that changing the camera angle significantly alters the image background color from largely gray to roughly 30 percent black. This presents a significant challenge for our method.
181
+
182
+ Inverted Pendulum: A classic RL task wherein a pendulum must be made to balance via control. For this domain, We only change the color of the pendulum and not the camera angle. Since there is no target point, we found that changing the camera angle left the domain invariant representations with too little information and resulted in a failure case. In contrast to some traditional renderings of this problem, we do not terminate an episode when the agent falls but rather allow data collection to continue for a fixed horizon.
183
+
184
+ # 6.2 EVALUATIONS
185
+
186
+ Is it possible to solve the third-person imitation learning problem in simple settings? In Figure 3, we see that our proposed algorithm is indeed able to recover reasonable policies for all three tasks we examined. Initially, the training is quite unstable due to the domain confusion wreaking havoc on the learned cost. However, after several iterations the policies eventually head towards reasonable local minima and the standard deviation over the reward distribution shrinks substantially. Finally, we note that the extracted feature representations used to complete this task are in fact domain-agnostic, as seen in Figure 9. Hence, the learning is properly taking place from a third-person perspective.
187
+
188
+ ![](images/e5de99af5cf3a1c7aa7654c1a187c2ca412166671d36a48182ca68fd643f5215.jpg)
189
+ Figure 3: Reward vs training iteration for reacher, inverted pendulum, and point environments. The learning curves are averaged over 5 trials with error bars represent one standard deviation in the reward distribution at the given point.
190
+
191
+ ![](images/f7b7c6bcd21543c32d56d84f9174ade28e4f6a584b6d9c3ad7db142b231a7a52.jpg)
192
+ Figure 4: Domain accuracy vs. training iteration for reacher, inverted pendulum, and point environments.
193
+
194
+ Does the algorithm we propose benefit from both domain confusion and the multi-time step input? We answer this question with the experiments summarized in Figure 5. This experiment compares our approach with: (i) our approach without the domain confusion loss; (ii) our approach without the multi-time step input; (iii) our approach without the domain confusion loss and without the multitime step input (which is very similar to the approach in Ho & Ermon (2016)). We see that adding domain confusion is essential for getting strong performance in all three experiments. Meanwhile, adding multi-time step input marginally improves the results. See also Figure 7 for an analysis of the effects of multi-time step input on the final results.
195
+
196
+ ![](images/e3119af18c1c7e62ae4ef64c2ed955904fbe120c4d62bd13f90f984b9217f8c5.jpg)
197
+ Figure 5: Reward vs iteration for reacher, inverted pendulum, and point environments with no domain confusion and no velocity (red), domain confusion (orange), velocity (brown), and both domain confusion and velocity (blue).
198
+
199
+ How sensitive is our proposed algorithm to the selection of hyper-parameters used in deployment? Figure 6 shows the effect of the domain confusion coefficient $\lambda$ , which trades off how much we should weight the domain confusion objective vs. the standard cost-recovery objective, on the final performance of the algorithm. Setting $\lambda$ too low results in slower learning and features that are not domain-invariant. Setting $\lambda$ too high results in an objective that is too quick to destroy information, which makes it impossible to recover an accurate cost.
200
+
201
+ For multi-time step input, one must choose the number of look-ahead frames that are utilized. If too small a window is chosen, the agent’s actions have not affected a large amount of change in the environment and it is difficult to discern any additional class signal over static images. If too large a time-frame passes, causality becomes difficult to interpolate and the agent does worse than simply being trained on static frames. Figure 7 illustrates that no number of look-ahead frames is consistently optimal across tasks. However, a value of 4 showed good performance over all tasks, and so this value was utilized in all other experiments.
202
+
203
+ ![](images/45ed8ae8770c3fc15032a995eb4946b54fae1133b7d3d76076733073924dca65.jpg)
204
+ Figure 6: Reward of final trained policy vs domain confusion weight $\lambda$ for reacher, inverted pendulum, and point environments.
205
+
206
+ ![](images/0f0f2a991076420a5f9323afd72fe3d58d1351a3000f704f8ceb0602171cdb82.jpg)
207
+ Figure 7: Reward of final trained policy vs number of look-ahead frames for reacher, inverted pendulum, and point environments.
208
+
209
+ How sensitive is our algorithm to changes in camera angle? We present graphs for the reacher and point experiments wherein we exam the final reward obtained by a policy trained with thirdperson imitation learning vs the camera angle difference between the first-person and third-person perspective. We omit the inverted double pendulum experiment, as the color and not the camera angle changes in that setting and we found the case of slowly transitioning the color to be the definition of uninteresting science.
210
+
211
+ ![](images/878be86e4c28e17ce3098944393f81394f948537ce33b7bc32f67d1492e063e5.jpg)
212
+ Figure 8: Point and reacher final reward after 20 epochs of third-person imitation learning vs the camera angle difference between the first and third-person perspective. We see that the point follows a fairly linear slope in regards to camera angle differences, whereas the reacher environment is more stochastic against these changes.
213
+
214
+ ![](images/63dd757b05b53e432ebdfa3f1f6ac421e8f43a1c47d1053932e4f96e81238dfd.jpg)
215
+ Figure 9: Learning curves for third-person imitation vs. three baselines: 1)RL with true reward, 2) first-person imitation, 3) attempting to use first-person features on the third-person agent.
216
+
217
+ How does our method compare against reasonable baselines? We consider the following baselines for comparisons against third-person imitation learning. 1) Standard reinforcement learning with using full state information and the true reward signal. This agent is trained via TRPO. 2)
218
+
219
+ Standard GAIL (first-person imitation learning). Here, the agent receives first-person demonstration and attempts to imitate the correct behavior. This is an upper bound on how well we can expect to do, since we have the correct perspective. 3) Training a policy using first-person data and applying it to the third-person environment.
220
+
221
+ We compare all three of these baselines to third-person imitation learning. As we see in figure 9: 1) Standard RL, which (unlike the imitation learning approaches) has access to full state and true reward, helps calibrate performance of the other approaches. 2) First-person imitation learning is faced with a simpler imitation problem and accordingly outperforms third-person imitation, yet third-person imitation learning is nevertheless competitive. 3) Applying the first-person policy to the third-person agent fails miserably, illustrating that explicitly considering third-person imitation is important in these settings.
222
+
223
+ Somewhat unfortunately, the different reward function scales make it difficult to capture information on the variance of each learning curve. Consequently, in Appendix A we have included the full learning curves for these experiments with variance bars, each plotted with an appropriate scale to examine the variance of the individual curves.
224
+
225
+ # 7 DISCUSSION AND FUTURE WORK
226
+
227
+ In this paper, we presented the problem of third-person imitation learning. We argue that this problem will be important going forward, as techniques in reinforcement learning and generative adversarial learning improve and the cost of collecting first-person samples remains high. We presented an algorithm which builds on Generative Adversarial Imitation Learning and is capable of solving simple third-person imitation tasks.
228
+
229
+ One promising direction of future work in this area is to jointly train policy features and cost features at the pixel level, allowing the reuse of image features. Code to train a third person imitation learning agent on the domains from this paper is presented here: https://github.com/bstadie/ third_person_im
230
+
231
+ # ACKNOWLEDGEMENTS
232
+
233
+ This work was done partially at OpenAI and partially at Berkeley. Work done at Berkeley was supported in part by Darpa under the Simplex program and the FunLoL program.
234
+
235
+ # REFERENCES
236
+
237
+ P. Abbeel and A. Ng. Apprenticeship learning via inverse reinforcement learning. In International Conference on Machine Learning (ICML), 2004.
238
+
239
+ Pieter Abbeel, Adam Coates, and Andrew Y Ng. Autonomous helicopter aerobatics through apprenticeship learning. The International Journal of Robotics Research, 2010.
240
+
241
+ Brenna D Argall, Sonia Chernova, Manuela Veloso, and Brett Browning. A survey of robot learning from demonstration. Robotics and autonomous systems, 57(5):469–483, 2009.
242
+
243
+ Yusuf Aytar and Andrew Zisserman. Tabula rasa: Model transfer for object category detection. In 2011 International Conference on Computer Vision, pp. 2252–2259. IEEE, 2011.
244
+
245
+ D. Barber and F. V. Agakov. Kernelized infomax clustering. NIPS, 2005.
246
+
247
+ A. Boularias, J. Kober, and J. Peters. Relative entropy inverse reinforcement learning. In International Conference on Artificial Intelligence and Statistics (AISTATS), 2011.
248
+
249
+ J. S. Bridle, A. J. Heading, and D. J. MacKay. Unsupervised classifiers, mutual information and phantom targets. NIPS, 1992.
250
+
251
+ Jane Bromley, James W Bentz, Leon Bottou, Isabelle Guyon, Yann LeCun, Cliff Moore, Eduard ´ Sackinger, and Roopak Shah. Signature verification using a siamese time delay neural network.¨ International Journal of Pattern Recognition and Artificial Intelligence, 7(04):669–688, 1993.
252
+
253
+ Sylvain Calinon. Robot programming by demonstration. EPFL Press, 2009.
254
+
255
+ Sylvain Calinon, Florent Guenter, and Aude Billard. On learning, representing, and generalizing a task in a humanoid robot. IEEE Transactions on Systems, Man, and Cybernetics, Part B (Cybernetics), 37(2):286–298, 2007.
256
+
257
+ Malinda Carpenter, Josep Call, and Michael Tomasello. Understanding prior intentions enables two–year–olds to imitatively learn a complex task. Child development, 73(5):1431–1441, 2002.
258
+
259
+ Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. Infogan: Interpretable representation learning by information maximizing generative adversarial nets. NIPS, 2016.
260
+
261
+ Sumit Chopra, Raia Hadsell, and Yann LeCun. Learning a similarity metric discriminatively, with application to face verification. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’05), volume 1, pp. 539–546. IEEE, 2005.
262
+
263
+ A. Doerr, N. Ratliff, J. Bohg, M. Toussaint, and S. Schaal. Direct loss minimization inverse optimal control. In Proceedings of Robotics: Science and Systems (R:SS), Rome, Italy, July 2015.
264
+
265
+ Jeff Donahue, Yangqing Jia, Oriol Vinyals, Judy Hoffman, Ning Zhang, Eric Tzeng, and Trevor Darrell. Decaf: A deep convolutional activation feature for generic visual recognition. In ICML, pp. 647–655, 2014.
266
+
267
+ Lixin Duan, Dong Xu, and Ivor Tsang. Learning with augmented features for heterogeneous domain adaptation. arXiv preprint arXiv:1206.4660, 2012.
268
+
269
+ C. Finn, S. Levine, and P. Abbeel. Guided cost learning: Deep inverse optimal control via policy optimization. ICML, 2016.
270
+
271
+ Y. Ganin and V. Lempitsky. Unsupervised domain adaptation by backpropagation. Arxiv preprint 1409.7495, 2014.
272
+
273
+ G Gioioso, G Salvietti, M Malvezzi, and D Prattichizzo. An object-based approach to map human hand synergies onto robotic hands with dissimilar kinematics. Robotics: Science and Systems VIII, pp. 97, 2013.
274
+
275
+ Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in Neural Information Processing Systems, pp. 2672–2680, 2014.
276
+
277
+ Abhishek Gupta, Clemens Eppner, Sergey Levine, and Pieter Abbeel. Learning dexterous manipulation for a soft robotic hand from human demonstration. arXiv preprint arXiv:1603.06348, 2016.
278
+
279
+ J. Ho and S. Ermon. Generative adversarial imitation learning. arXiv pre-print: 1606.03476, pp. 1061–1068, 2016.
280
+
281
+ Judy Hoffman, Erik Rodner, Jeff Donahue, Trevor Darrell, and Kate Saenko. Efficient learning of domain-invariant image representations. arXiv preprint arXiv:1301.3224, 2013.
282
+
283
+ M. Kalakrishnan, P. Pastor, L. Righetti, and S. Schaal. Learning objective functions for manipulation. In International Conference on Robotics and Automation (ICRA), 2013.
284
+
285
+ Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proceedings of the 3rd International Conference on Learning Representations (ICLR), 2014.
286
+
287
+ A. Krause, P. Perona, and R. G. Gomes. Discriminative clustering by regularized information maximization. NIPS, 2010.
288
+
289
+ Brian Kulis, Kate Saenko, and Trevor Darrell. What you saw is not what you get: Domain adaptation using asymmetric kernel transforms. In Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference on, pp. 1785–1792. IEEE, 2011.
290
+
291
+ S. Levine, Z. Popovic, and V. Koltun. Nonlinear inverse reinforcement learning with gaussian processes. In Advances in Neural Information Processing Systems (NIPS), 2011.
292
+
293
+ Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel. End-to-end training of deep visuomotor policies. Journal of Machine Learning Research, 17(39):1–40, 2016.
294
+
295
+ Mingsheng Long and Jianmin Wang. Learning transferable features with deep adaptation networks. CoRR, abs/1502.02791, 1:2, 2015.
296
+
297
+ Yishay Mansour, Mehryar Mohri, and Afshin Rostamizadeh. Domain adaptation: Learning bounds and algorithms. arXiv preprint arXiv:0902.3430, 2009.
298
+
299
+ Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529–533, 2015.
300
+
301
+ Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy P Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. arXiv preprint arXiv:1602.01783, 2016.
302
+
303
+ Chrystopher L Nehaniv. Nine billion correspondence problems. Imitation and Social Learning in Robots, Humans and Animals: Behavioural, Social and Communicative Dimensions, Cambridge University Press, 8:10, 2007.
304
+
305
+ Chrystopher L Nehaniv and Kerstin Dautenhahn. Like me?-measures of correspondence and imitation. Cybernetics & Systems, 32(1-2):11–51, 2001.
306
+
307
+ A. Ng, S. Russell, et al. Algorithms for inverse reinforcement learning. In International Conference on Machine Learning (ICML), 2000.
308
+
309
+ Dean A Pomerleau. Alvinn: An autonomous land vehicle in a neural network. In Advances in Neural Information Processing Systems, pp. 305–313, 1989.
310
+
311
+ D. Ramachandran and E. Amir. Bayesian inverse reinforcement learning. In AAAI Conference on Artificial Intelligence, volume 51, 2007.
312
+
313
+ N. Ratliff, J. A. Bagnell, and M. A. Zinkevich. Maximum margin planning. In International Conference on Machine Learning (ICML), 2006.
314
+
315
+ N. Ratliff, D. Bradley, J. A. Bagnell, and J. Chestnutt. Boosting structured prediction for imitation learning. 2007.
316
+
317
+ Stephane Ross, Geoffrey J Gordon, and Drew Bagnell. A reduction of imitation learning and struc-´ tured prediction to no-regret online learning. In AISTATS, volume 1, pp. 6, 2011.
318
+
319
+ Stefan Schaal. Is imitation learning the route to humanoid robots? Trends in cognitive sciences, 3 (6):233–242, 1999.
320
+
321
+ John Schulman, Sergey Levine, Philipp Moritz, Michael I. Jordan, and Pieter Abbeel. Trust region policy optimization. Arxiv preprint 1502.05477, 2015a.
322
+
323
+ John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. Highdimensional continuous control using generalized advantage estimation. arXiv preprint arXiv:1506.02438, 2015b.
324
+
325
+ Aaron Shon, Keith Grochow, Aaron Hertzmann, and Rajesh P Rao. Learning shared latent structure for image synthesis and robotic imitation. In Advances in Neural Information Processing Systems, pp. 1233–1240, 2005.
326
+
327
+ Eric Tzeng, Judy Hoffman, Ning Zhang, Kate Saenko, and Trevor Darrell. Deep domain confusion: Maximizing for domain invariance. arXiv preprint arXiv:1412.3474, 2014.
328
+
329
+ Eric Tzeng, Coline Devin, Judy Hoffman, Chelsea Finn, Xingchao Peng, Pieter Abbeel, Sergey Levine, Kate Saenko, and Trevor Darrell. Towards adapting deep visuomotor representations from simulated to real environments. arXiv preprint arXiv:1511.07111, 2015.
330
+
331
+ M. Wulfmeier, P. Ondruska, and I. Posner. Maximum entropy deep inverse reinforcement learning. arXiv preprint arXiv:1507.04888, 2015.
332
+
333
+ Jun Yang, Rong Yan, and Alexander G Hauptmann. Cross-domain video concept detection using adaptive svms. In Proceedings of the 15th ACM international conference on Multimedia, pp. 188–197. ACM, 2007.
334
+
335
+ B. Ziebart, A. Maas, J. A. Bagnell, and A. K. Dey. Maximum entropy inverse reinforcement learning. In AAAI Conference on Artificial Intelligence, 2008.
336
+
337
+ # 8 APPENDIX A: LEARNING CURVES FOR BASELINES
338
+
339
+ Here, we plot the learning curves for each of the baselines mentioned in the experiments section as a standalone plot. This allows one to better examine the variance of each individual learning curve.
340
+
341
+ ![](images/ea1b67edb2dfdb4fef94fc8a920576a33c7505c4ce55718706bd9be88e6caa3d.jpg)
342
+ Figure 10: Inverted Pendulum performance under a policy trained on RL, first-person imitation learning, third-person imitation, and a first-person policy applied to a third-person agent.
343
+
344
+ ![](images/b6baae997578e700d576c20450de54e13c29bc04641825948f30b3aa8cd5b4b7.jpg)
345
+ Figure 11: Reacher performance under a policy trained on RL, first-person imitation learning, thirdperson imitation, and a first-person policy applied to a third-person agent.
346
+
347
+ ![](images/93145b975be3c2886cda5aca0198047a94819a2d2d82acbc535b32d11815a821.jpg)
348
+ Figure 12: Point performance under a policy trained on RL, first-person imitation learning, thirdperson imitation, and a first-person policy applied to a third-person agent.
349
+
350
+ # 9 APPENDIX B: ARCHITECTURE PARAMETERS
351
+
352
+ Joint Feature Extractor: Input is images are size $5 0 \mathrm { ~ x ~ } 5 0$ with 3 channels, RGB. Layers are 2 convolutional layers each followed by a max pooling layer of size 2. Layers use 5 filters of size 3 each.
353
+
354
+ Domain Discriminator and the Class Discriminator: Input is domain agnostic output of convolutional layers. Layers are two feed forward layers of size 128 followed by a final feed forward layer of size 2 and a soft-max layer to get the log probabilities.
355
+
356
+ ADAM is used for discriminator training with a learning rate of 0.001. The RL generator uses the off-the-shelf TRPO implementation available in RLLab.
parse/train/B16dGcqlx/B16dGcqlx_content_list.json ADDED
@@ -0,0 +1,1741 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "THIRD-PERSON IMITATION LEARNING ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 635,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Bradly C. Stadie1,2, Pieter Abbeel1,3, Ilya Sutskever1 ",
17
+ "bbox": [
18
+ 183,
19
+ 142,
20
+ 552,
21
+ 160
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "1 OpenAI 2 UC Berkeley, Department of Statistics 3 UC Berkeley, Departments of EECS and ICSI {bstadie, pieter, ilyasu,}@openai.com ",
28
+ "bbox": [
29
+ 183,
30
+ 161,
31
+ 545,
32
+ 217
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "ABSTRACT ",
39
+ "text_level": 1,
40
+ "bbox": [
41
+ 454,
42
+ 253,
43
+ 544,
44
+ 268
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "Reinforcement learning (RL) makes it possible to train agents capable of achieving sophisticated goals in complex and uncertain environments. A key difficulty in reinforcement learning is specifying a reward function for the agent to optimize. Traditionally, imitation learning in RL has been used to overcome this problem. Unfortunately, hitherto imitation learning methods tend to require that demonstrations are supplied in the first-person: the agent is provided with a sequence of states and a specification of the actions that it should have taken. While powerful, this kind of imitation learning is limited by the relatively hard problem of collecting first-person demonstrations. Humans address this problem by learning from third-person demonstrations: they observe other humans perform tasks, infer the task, and accomplish the same task themselves. ",
51
+ "bbox": [
52
+ 233,
53
+ 282,
54
+ 764,
55
+ 434
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "In this paper, we present a method for unsupervised third-person imitation learning. Here third-person refers to training an agent to correctly achieve a simple goal in a simple environment when it is provided a demonstration of a teacher achieving the same goal but from a different viewpoint; and unsupervised refers to the fact that the agent receives only these third-person demonstrations, and is not provided a correspondence between teacher states and student states. Our methods primary insight is that recent advances from domain confusion can be utilized to yield domain agnostic features which are crucial during the training process. To validate our approach, we report successful experiments on learning from third-person demonstrations in a pointmass domain, a reacher domain, and inverted pendulum. ",
62
+ "bbox": [
63
+ 233,
64
+ 438,
65
+ 764,
66
+ 589
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 INTRODUCTION ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 176,
76
+ 614,
77
+ 336,
78
+ 630
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Reinforcement learning (RL) is a framework for training agents to maximize rewards in large, unknown, stochastic environments. In recent years, combining techniques from deep learning with reinforcement learning has yielded a string of successful applications in game playing and robotics Mnih et al. (2015; 2016); Schulman et al. (2015a); Levine et al. (2016). These successful applications, and the speed at which the abilities of RL algorithms have been increasing, makes it an exciting area of research with significant potential for future applications. ",
85
+ "bbox": [
86
+ 174,
87
+ 645,
88
+ 823,
89
+ 728
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "One of the major weaknesses of RL is the need to manually specify a reward function. For each task we wish our agent to accomplish, we must provide it with a reward function whose maximizer will precisely recover the desired behavior. This weakness is addressed by the field of Inverse Reinforcement Learning (IRL). Given a set of expert trajectories, IRL algorithms produce a reward function under which these the expert trajectories enjoy the property of optimality. Recently, there has been a significant amount of work on IRL, and current algorithms can infer a reward function from a very modest number of demonstrations (e.g,. Abbeel & $\\mathrm { N g }$ (2004); Ratliff et al. (2006); Ziebart et al. (2008); Levine et al. (2011); Ho & Ermon (2016); Finn et al. (2016)). ",
96
+ "bbox": [
97
+ 174,
98
+ 736,
99
+ 825,
100
+ 847
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "While IRL algorithms are appealing, they impose the somewhat unrealistic requirement that the demonstrations should be provided from the first-person point of view with respect to the agent. Human beings learn to imitate entirely from third-person demonstrations – i.e., by observing other humans achieve goals. Indeed, in many situations, first-person demonstrations are outright impossible to obtain. Meanwhile, third-person demonstrations are often relatively easy to obtain. ",
107
+ "bbox": [
108
+ 174,
109
+ 854,
110
+ 823,
111
+ 922
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "The goal of this paper is to develop an algorithm for third-person imitation learning. Future advancements in this class of algorithms would significantly improve the state of robotics, because it will enable people to easily teach robots news skills and abilities. Importantly, we want our algorithm to be unsupervised: it should be able to observe another agent perform a task, infer that there is an underlying correspondence to itself, and find a way to accomplish the same task. ",
118
+ "bbox": [
119
+ 174,
120
+ 103,
121
+ 823,
122
+ 174
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "We offer an approach to this problem by borrowing ideas from domain confusion Tzeng et al. (2014) and generative adversarial networks (GANs) Goodfellow et al. (2014). The high-level idea is to introduce an optimizer under which we can recover both a domain-agnostic representation of the agent’s observations, and a cost function which utilizes this domain-agnostic representation to capture the essence of expert trajectories. We formulate this as a third-person RL-GAN problem, and our solution builds on the first-person RL-GAN formulation by Ho & Ermon (2016). ",
129
+ "bbox": [
130
+ 174,
131
+ 180,
132
+ 823,
133
+ 263
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "Surprisingly, we find that this simple approach has been able to solve the problems that are presented in this paper (illustrated in Figure 1), even though the student’s observations are related in a complicated way to the teacher’s demonstrations (given that the observations and the demonstrations are pixel-level). As techniques for training GANs become more stable and capable, we expect our algorithm to be able to infer solve harder third-person imitation tasks without any direct supervision. ",
140
+ "bbox": [
141
+ 174,
142
+ 271,
143
+ 825,
144
+ 340
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "image",
150
+ "img_path": "images/4f116f6ef62dbbe520d3cfcd3efa9281e7a38397e6e00f6ac5c062e2df069dc2.jpg",
151
+ "image_caption": [
152
+ "Figure 1: From left to right, the three domains we consider in this paper: pointmass, reacher, and pendulum. Top-row is the third-person view of a teacher demonstration. Bottom row is the agent’s view in their version of the environment. For the point and reacher environments, the camera angles differ by approximately 40 degrees. For the pendulum environment, the color of the pole differs. "
153
+ ],
154
+ "image_footnote": [],
155
+ "bbox": [
156
+ 209,
157
+ 356,
158
+ 789,
159
+ 606
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "2 RELATED WORK ",
166
+ "text_level": 1,
167
+ "bbox": [
168
+ 176,
169
+ 710,
170
+ 344,
171
+ 727
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "Imitation learning (also learning from demonstrations or programming by demonstration) considers the problem of acquiring skills from observing demonstrations. Imitation learning has a long history, with several good survey articles, including (Schaal, 1999; Calinon, 2009; Argall et al., 2009). Two main lines of work within imitation learning are: 1) behavioral cloning, where the demonstrations are used to directly learn a mapping from observations to actions using supervised learning, potentially with interleaving learning and data collection (e.g., Pomerleau (1989); Ross et al. (2011)). 2) Inverse reinforcement learning $\\mathrm { N g }$ et al., 2000), where a reward function is estimated that explains the demonstrations as (near) optimal behavior. This reward function could be represented as nearness to a trajectory (Calinon et al., 2007; Abbeel et al., 2010), as a weighted combination of features (Abbeel & $\\mathrm { N g }$ , 2004; Ratliff et al., 2006; Ramachandran & Amir, 2007; Ziebart et al., 2008; Boularias et al., 2011; Kalakrishnan et al., 2013; Doerr et al., 2015), or could also involve feature learning (Ratliff et al., 2007; Levine et al., 2011; Wulfmeier et al., 2015; Finn et al., 2016; Ho & Ermon, 2016). ",
178
+ "bbox": [
179
+ 174,
180
+ 743,
181
+ 825,
182
+ 924
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "This past work, however, is not directly applicable to the third person imitation learning setting. In third-person imitation learning, the observations and actions obtained from the demonstrations are not the same as what the imitator agent will be faced with. A typical scenario would be: the imitator agent watches a human perform a demonstration, and then has to execute that same task. As discussed in Nehaniv & Dautenhahn (2001) the ”what and how to imitate” questions become significantly more challenging in this setting. To directly apply existing behavioral cloning or inverse reinforcement learning techniques would require knowledge of a mapping between observations and actions in the demonstrator space to observations and actions in the imitator space. Such a mapping is often difficult to obtain, and it typically relies on providing feature representations that captures the invariance between both environments Carpenter et al. (2002); Shon et al. (2005); Calinon et al. (2007); Nehaniv (2007); Gioioso et al. (2013); Gupta et al. (2016). Contrary to prior work, we consider third-person imitation learning from raw sensory data, where no such features are made available. ",
189
+ "bbox": [
190
+ 174,
191
+ 103,
192
+ 825,
193
+ 284
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "The most closely related work to ours is by Finn et al. (2016); Ho & Ermon (2016); Wulfmeier et al. (2015), who also consider inverse reinforcement learning directly from raw sensory data. However, the applicability of their approaches is limited to the first-person setting. Indeed, matching raw sensory observations is impossible in the 3rd person setting. ",
200
+ "bbox": [
201
+ 174,
202
+ 290,
203
+ 823,
204
+ 347
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "Our work also closely builds on advances in generative adversarial networks Goodfellow et al. (2014), which are very closely related to imitation learning as explained in Finn et al. (2016); Ho & Ermon (2016). In our optimization formulation, we apply the gradient flipping technique from Ganin & Lempitsky (2014). ",
211
+ "bbox": [
212
+ 174,
213
+ 354,
214
+ 823,
215
+ 410
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "The problem of adapting what is learned in one domain to another domain has been studied extensively in computer vision in the supervised learning setting Yang et al. (2007); Mansour et al. (2009); Kulis et al. (2011); Aytar & Zisserman (2011); Duan et al. (2012); Hoffman et al. (2013); Long & Wang (2015). It has also been shown that features trained in one domain can often be relevant to other domains Donahue et al. (2014). The work most closely related to ours is Tzeng et al. (2014; 2015), who also consider an explicit domain confusion loss, forcing trained classifiers to rely on features that don’t allow to distinguish between two domains. This work in turn relates to earlier work by Bromley et al. (1993); Chopra et al. (2005), which also considers supervised training of deep feature embeddings. ",
222
+ "bbox": [
223
+ 174,
224
+ 416,
225
+ 825,
226
+ 542
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "Our approach to third-person imitation learning relies on reinforcement learning from raw sensory data in the imitator domain. Several recent advances in deep reinforcement learning have made this practical, including Deep Q-Networks (Mnih et al., 2015), Trust Region Policy Optimization (Schulman et al., 2015a), A3C Mnih et al. (2016), and Generalized Advantage Estimation (Schulman et al., 2015b). Our approach uses Trust Region Policy Optimization. ",
233
+ "bbox": [
234
+ 174,
235
+ 549,
236
+ 825,
237
+ 618
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "3 BACKGROUND AND PRELIMINARIES",
244
+ "text_level": 1,
245
+ "bbox": [
246
+ 174,
247
+ 647,
248
+ 506,
249
+ 664
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "A discrete-time finite-horizon discounted Markov decision process (MDP) is represented by a tuple $M = ( S , A , \\mathcal { P } , r , \\rho _ { 0 } , \\gamma , T )$ , in which $s$ is a state set, $\\mathcal { A }$ an action set, $\\mathcal { P } : \\bar { S \\times A } \\times \\bar { S } \\stackrel { \\cdot } { \\to } \\mathbb { R } _ { + }$ a transition probability distribution, $r : S \\times \\mathcal { A } \\mathbb { R }$ a reward function, $\\rho _ { 0 } : { \\mathcal { S } } \\to \\mathbb { R } _ { + }$ an initial state distribution, $\\gamma \\in [ 0 , 1 ]$ a discount factor, and $T$ the horizon. ",
256
+ "bbox": [
257
+ 174,
258
+ 684,
259
+ 825,
260
+ 739
261
+ ],
262
+ "page_idx": 2
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "In the reinforcement learning setting, the goal is to find a policy $\\pi _ { \\theta } : \\mathcal { S } \\times \\mathcal { A } \\to \\mathbb { R } _ { + }$ parametrized by $\\theta$ that maximizes the expected discounted sum of rewards incurred, $\\begin{array} { r } { \\eta ( \\pi _ { \\theta } ) = \\mathbb { E } _ { \\pi _ { \\theta } } [ \\sum _ { t = 0 } ^ { T } \\gamma ^ { t } c ( s _ { t } ) ] } \\end{array}$ , where $s _ { 0 } \\sim \\rho _ { 0 } ( s _ { 0 } )$ , $a _ { t } \\sim \\pi _ { \\theta } ( a _ { t } | s _ { t } )$ , and $s _ { t + 1 } \\sim \\mathcal { P } ( s _ { t + 1 } | s _ { t } , a _ { t } )$ . ",
267
+ "bbox": [
268
+ 174,
269
+ 746,
270
+ 825,
271
+ 792
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "In the (first-person) imitation learning setting, we are not given the reward function. Instead we are given traces (i.e., sequences of states traversed) by an expert who acts according to an unknown policy $\\pi _ { E }$ . The goal is to find a policy $\\pi _ { \\theta }$ that performs as well as the expert against the unknown reward function. It was shown in Abbeel & $\\mathrm { N g }$ (2004) that this can be achieved through inverse reinforcement learning by finding a policy $\\pi _ { \\theta }$ that matches the expert’s empirical expectation over discounted sum of all features that might contribute to the reward function. The work by Ho & Ermon (2016) generalizes this to the setting when no features are provided as follows: Find a policy $\\pi _ { \\theta }$ that makes it impossible for a discriminator (in their work a deep neural net) to distinguish states visited by the expert from states visited by the imitator agent. This can be formalized as follows: ",
278
+ "bbox": [
279
+ 173,
280
+ 797,
281
+ 825,
282
+ 924
283
+ ],
284
+ "page_idx": 2
285
+ },
286
+ {
287
+ "type": "equation",
288
+ "img_path": "images/d2b5f364431d4a8b2f1b5d96f17baf080496ec4944a44f6a6db5eac570965428.jpg",
289
+ "text": "$$\n\\begin{array} { r l } { \\underset { \\pi _ { \\theta } } { \\mathop { \\operatorname* { m a x } } } \\underset { \\mathcal { D } _ { R } } { \\mathop { \\operatorname* { m i n } } } } & { { } - \\mathbb { E } _ { \\pi _ { \\theta } } [ \\log \\mathcal { D } _ { R } ( s ) ] - \\mathbb { E } _ { \\pi _ { E } } [ \\log ( 1 - \\mathcal { D } _ { R } ( s ) ) ] } \\end{array}\n$$",
290
+ "text_format": "latex",
291
+ "bbox": [
292
+ 230,
293
+ 121,
294
+ 594,
295
+ 146
296
+ ],
297
+ "page_idx": 3
298
+ },
299
+ {
300
+ "type": "text",
301
+ "text": "Here, the expectations are over the states experienced by the policy of the imitator agent, $\\pi _ { \\theta }$ , and by the policy of the expert, $\\pi _ { E }$ , respectively. $\\mathcal { D } _ { R }$ is the discriminator, which outputs the probability of a state having originated from a trace from the imitator policy $\\pi _ { \\theta }$ . If the discriminator is perfectly able to distinguish which policy originated state-action pairs, then $\\mathcal { D } _ { R }$ will consistently output a probability of 1 in the first term, and a probability of 0 in the second term, making the objective its lowest possible value of zero. It is the role of the imitator agent $\\pi _ { \\theta }$ to find a policy that makes it difficult for the discriminator to make that distinction. The desired equilibrium has the imitator agent making it impractical for the discriminator to distinguish, hence forcing the discriminator to assign probability 0.5 in all cases. Ho & Ermon (2016) present a practical approach for solving this type of game when representing both $\\pi _ { \\theta }$ and $\\mathcal { D } _ { R }$ as deep neural networks. Their approach repeatedly performs gradient updates on each of them. Concretely, for a current policy $\\pi _ { \\theta }$ traces can be collected, which together with the expert traces form a data-set on which $\\mathcal { D } _ { R }$ can be trained with supervised learning minimizing the negative log-likelihood (in practice only performing a modest number of updates). For a fixed $\\mathcal { D } _ { R }$ , this is a policy optimization problem where $- \\log \\mathcal { D } _ { R } ( s , a )$ is the reward, and policy gradients can be computed from those same traces. Their approach uses trust region policy optimization (Schulman et al., 2015a) to update the imitator policy $\\pi _ { \\theta }$ from those gradients. ",
302
+ "bbox": [
303
+ 173,
304
+ 155,
305
+ 825,
306
+ 391
307
+ ],
308
+ "page_idx": 3
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "In our work we will have more terms in the objective, so for compactness of notation, we will realize the discriminative minimization from Eqn. (1) as follows: ",
313
+ "bbox": [
314
+ 173,
315
+ 397,
316
+ 823,
317
+ 426
318
+ ],
319
+ "page_idx": 3
320
+ },
321
+ {
322
+ "type": "equation",
323
+ "img_path": "images/c96b2d327a9ada0da185a9fd236c1f54c7a9bb49a09873d840ff412bb36814c0.jpg",
324
+ "text": "$$\n\\operatorname* { m a x } _ { \\pi _ { \\boldsymbol { \\theta } } } \\operatorname* { m i n } _ { \\mathcal { D } _ { R } } \\mathcal { L } _ { R } = \\sum _ { i } C E ( \\mathcal { D } _ { R } ( \\boldsymbol { s } _ { i } ) , \\boldsymbol { c } _ { \\boldsymbol { \\ell } _ { i } } )\n$$",
325
+ "text_format": "latex",
326
+ "bbox": [
327
+ 232,
328
+ 429,
329
+ 482,
330
+ 462
331
+ ],
332
+ "page_idx": 3
333
+ },
334
+ {
335
+ "type": "text",
336
+ "text": "Where $s _ { i }$ is state $i$ , $c _ { \\ell _ { i } }$ is the correct class label (was the state $s _ { i }$ obtained from an expert vs. from a non-expert), and $C E$ is the standard cross entropy loss. ",
337
+ "bbox": [
338
+ 171,
339
+ 464,
340
+ 823,
341
+ 493
342
+ ],
343
+ "page_idx": 3
344
+ },
345
+ {
346
+ "type": "text",
347
+ "text": "4 A FORMAL DEFINITION OF THE THIRD-PERSON IMITATION LEARNINGPROBLEM",
348
+ "text_level": 1,
349
+ "bbox": [
350
+ 176,
351
+ 511,
352
+ 800,
353
+ 545
354
+ ],
355
+ "page_idx": 3
356
+ },
357
+ {
358
+ "type": "text",
359
+ "text": "Formally, the third-person imitation learning problem can be stated as follows. Suppose we are given two Markov Decision Processes $M _ { \\pi _ { E } }$ and $M _ { \\pi _ { \\theta } }$ . Suppose further there exists a set of traces $\\rho =$ $\\{ ( s _ { 1 } , \\ldots , s _ { n } ) \\} _ { i = 0 } ^ { n }$ which were generated under a policy $\\pi _ { E }$ acting optimally under some unknown reward $R _ { \\pi _ { E } }$ . In third-person imitation learning, one attempts to recover by proxy through $\\rho$ a policy $\\pi _ { \\theta } = f ( \\rho )$ which acts optimally with respect to $R _ { \\pi _ { \\theta } }$ . ",
360
+ "bbox": [
361
+ 173,
362
+ 560,
363
+ 825,
364
+ 631
365
+ ],
366
+ "page_idx": 3
367
+ },
368
+ {
369
+ "type": "text",
370
+ "text": "5 A THIRD-PERSON IMITATION LEARNING ALGORITHM ",
371
+ "text_level": 1,
372
+ "bbox": [
373
+ 176,
374
+ 650,
375
+ 656,
376
+ 666
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "text",
382
+ "text": "5.1 GAME FORMULATION ",
383
+ "text_level": 1,
384
+ "bbox": [
385
+ 176,
386
+ 680,
387
+ 367,
388
+ 695
389
+ ],
390
+ "page_idx": 3
391
+ },
392
+ {
393
+ "type": "text",
394
+ "text": "In this section, we discuss a simple algorithm for third-person imitation learning. This algorithm is able to successfully discriminate between expert and novice policies, even when the policies are executed under different environments. Subsequently, this discrimination signal can be used to train expert policies in new domains via RL by training the novice policy to fool the discriminator, thus forcing it to match the expert policy. ",
395
+ "bbox": [
396
+ 174,
397
+ 707,
398
+ 825,
399
+ 777
400
+ ],
401
+ "page_idx": 3
402
+ },
403
+ {
404
+ "type": "text",
405
+ "text": "In third-person learning, observations are more typically available rather than direct state access, so going forward we will work with observations $o _ { t }$ instead of states $s _ { t }$ as representing the expert traces. The top row of Figure 8 illustrates what these observations are like in our experiments. ",
406
+ "bbox": [
407
+ 174,
408
+ 784,
409
+ 825,
410
+ 825
411
+ ],
412
+ "page_idx": 3
413
+ },
414
+ {
415
+ "type": "text",
416
+ "text": "We begin by recalling that in the algorithm proposed by Ho & Ermon (2016) the loss in Equation 2 is utilized to train a discriminator $\\mathcal { D } _ { R }$ capable of distinguishing expert vs non-expert policies. Unfortunately, (2) will likely fail in cases when the expert and non-expert act in different environments, since $\\mathcal { D } _ { R }$ will quickly learn these differences and use them as a strong classification signal. ",
417
+ "bbox": [
418
+ 176,
419
+ 832,
420
+ 823,
421
+ 888
422
+ ],
423
+ "page_idx": 3
424
+ },
425
+ {
426
+ "type": "text",
427
+ "text": "To handle the third-person setting, where expert and novice are in different environments, we consider that $\\mathcal { D } _ { R }$ works by first extracting features from $o _ { t }$ , and then using these features to make a classification. Suppose then that we partition $\\mathcal { D } _ { R }$ into a feature extractor $\\mathcal { D } _ { F }$ and the actual classifier which assigns probabilities to the outputs of $D _ { F }$ . Overloading notation, we will refer to the classifier as $\\mathcal { D } _ { R }$ going forward. For example, in case of a deep neural net representation, $\\mathcal { D } _ { F }$ would correspond to the earlier layers, and $\\mathcal { D } _ { R }$ to the later layers. The problem is then to ensure that $D _ { F }$ contains no information regarding the rollout’s domain label $d _ { \\ell }$ (i.e., expert vs. novice domain). This can be realized as ",
428
+ "bbox": [
429
+ 174,
430
+ 895,
431
+ 823,
432
+ 924
433
+ ],
434
+ "page_idx": 3
435
+ },
436
+ {
437
+ "type": "text",
438
+ "text": "",
439
+ "bbox": [
440
+ 173,
441
+ 102,
442
+ 825,
443
+ 186
444
+ ],
445
+ "page_idx": 4
446
+ },
447
+ {
448
+ "type": "equation",
449
+ "img_path": "images/7ebd63f2fbf725e0af448b9d290880690e3dbc8d23cd0bb34cda599bfa86e164.jpg",
450
+ "text": "$$\n\\begin{array} { r l r } & { } & { \\underset { \\pi _ { \\theta } } { \\operatorname* { m a x } } \\operatorname* { m i n } \\mathcal L _ { { R } } = \\displaystyle \\sum _ { i } C E ( \\mathcal D _ { { R } } ( \\mathcal D _ { { F } } ( o _ { i } ) ) , c _ { \\ell _ { i } } ) } \\\\ & { } & { \\mathrm { s . t . } ~ \\mathrm { M I } ( D _ { { F } } ( o _ { i } ) ; d _ { l } ) = 0 } \\end{array}\n$$",
451
+ "text_format": "latex",
452
+ "bbox": [
453
+ 232,
454
+ 191,
455
+ 519,
456
+ 246
457
+ ],
458
+ "page_idx": 4
459
+ },
460
+ {
461
+ "type": "text",
462
+ "text": "Where MI is mutual information and hence we have abused notation by using $\\mathcal { D } _ { R } , D _ { F }$ , and $d _ { \\ell }$ to mean the classifier, feature extractor, and the domain label respectively as well as distributions over these objects. ",
463
+ "bbox": [
464
+ 173,
465
+ 251,
466
+ 825,
467
+ 292
468
+ ],
469
+ "page_idx": 4
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "The mutual information term can be instantiated by introducing another classifier $\\mathcal { D } _ { D }$ , which takes features produced by $D _ { F }$ and outputs the probability that those features were produced by in the expert vs. non-expert environment. (See Bridle et al. (1992); Barber & Agakov (2005); Krause et al. (2010); Chen et al. (2016) for further discussion on instantiating the information term by introducing another classifier.) If $\\sigma _ { i } = D _ { F } { ( o _ { i } ) }$ , then the problem can be written as ",
474
+ "bbox": [
475
+ 173,
476
+ 299,
477
+ 825,
478
+ 371
479
+ ],
480
+ "page_idx": 4
481
+ },
482
+ {
483
+ "type": "equation",
484
+ "img_path": "images/f6a8123f3dc19eca9e733d44329bbfd30104f23226bbabb3745bbaf964289d63.jpg",
485
+ "text": "$$\n\\operatorname* { m a x } _ { \\pi _ { \\theta } } \\operatorname* { m i n } _ { \\mathcal { D } _ { R } } \\operatorname* { m a x } _ { \\mathcal { D } _ { D } } \\mathcal { L } _ { R } + \\mathcal { L } _ { D } = \\sum _ { i } C E ( \\mathcal { D } _ { R } ( \\sigma _ { i } ) , c _ { \\ell _ { i } } ) + C E ( \\mathcal { D } _ { D } ( \\sigma _ { i } ) , d _ { \\ell _ { i } } )\n$$",
486
+ "text_format": "latex",
487
+ "bbox": [
488
+ 230,
489
+ 377,
490
+ 697,
491
+ 411
492
+ ],
493
+ "page_idx": 4
494
+ },
495
+ {
496
+ "type": "text",
497
+ "text": "In words, we wish to minimize class loss while maximizing domain confusion. ",
498
+ "bbox": [
499
+ 173,
500
+ 425,
501
+ 691,
502
+ 440
503
+ ],
504
+ "page_idx": 4
505
+ },
506
+ {
507
+ "type": "text",
508
+ "text": "Often, it can be difficult for even humans to judge a static image as expert vs. non-expert because it does not convey any information about the environmental change affected by the agent’s actions. For example, if a pointmass is attempting to move to a target location and starts far away from its goal state, it can be difficult to judge if the policy itself is bad or the initialization was simply unlucky. In response to this difficulty, we give $\\mathcal { D } _ { R }$ access to not only the image at time $t$ , but also at some future time $t + n$ . Define $\\sigma _ { t } = D _ { F } ( o _ { t } )$ and $\\sigma _ { t + n } = D _ { F } ( o _ { t + n } )$ . The classifier then makes a prediction $\\mathcal { D } _ { R } ( \\sigma _ { t } , \\sigma _ { t + n } ) = \\hat { c } _ { \\ell }$ . ",
509
+ "bbox": [
510
+ 173,
511
+ 446,
512
+ 825,
513
+ 546
514
+ ],
515
+ "page_idx": 4
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "This renders the following formulation: ",
520
+ "bbox": [
521
+ 176,
522
+ 551,
523
+ 433,
524
+ 566
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "equation",
530
+ "img_path": "images/d567ab78009db01e84ea31404c46dedb8810ebab385f80fea825c32655b28a3c.jpg",
531
+ "text": "$$\n\\operatorname* { m a x } _ { \\pi _ { \\theta } } \\operatorname* { m i n } _ { \\mathcal { D } _ { R } } \\operatorname* { m a x } _ { \\mathcal { D } _ { D } } \\mathcal { L } _ { R } + \\mathcal { L } _ { D } = \\sum _ { i } C E ( \\mathcal { D } _ { R } ( \\sigma _ { i } , \\sigma _ { i + n } ) , c _ { \\ell _ { i } } ) + C E ( \\mathcal { D } _ { D } ( \\sigma _ { i } ) , d _ { \\ell _ { i } } )\n$$",
532
+ "text_format": "latex",
533
+ "bbox": [
534
+ 230,
535
+ 592,
536
+ 736,
537
+ 625
538
+ ],
539
+ "page_idx": 4
540
+ },
541
+ {
542
+ "type": "text",
543
+ "text": "Note we also want to optimize over $\\mathcal { D } _ { F }$ , the feature extractor, but it feeds both into $\\mathcal { D } _ { R }$ and into $\\mathcal { D } _ { D }$ , which are competing (hidden under $\\sigma$ ), which we will address now. ",
544
+ "bbox": [
545
+ 171,
546
+ 640,
547
+ 823,
548
+ 667
549
+ ],
550
+ "page_idx": 4
551
+ },
552
+ {
553
+ "type": "text",
554
+ "text": "To deal with the competition over $\\mathcal { D } _ { F }$ , we introduce a function $\\mathcal { G }$ that acts as the identity when moving forward through a directed acyclic graph and flips the sign when backpropagating through the graph. This technique has enjoyed recent success in computer vision. See, for example, (Ganin & Lempitsky, 2014). With this trick, the problem reduces to its final form ",
555
+ "bbox": [
556
+ 173,
557
+ 674,
558
+ 825,
559
+ 732
560
+ ],
561
+ "page_idx": 4
562
+ },
563
+ {
564
+ "type": "equation",
565
+ "img_path": "images/e878630c8a69cba18bd232573af6490d231288140a238744a9aa2e731d5cdffe.jpg",
566
+ "text": "$$\n\\operatorname* { m a x } _ { \\pi _ { \\theta } } \\operatorname* { m i n } _ { \\mathcal { D } _ { R } , \\mathcal { D } _ { D } , \\mathcal { D } _ { F } } \\mathcal { L } _ { R } + \\mathcal { L } _ { D } = \\sum _ { i } C E ( \\mathcal { D } _ { R } ( \\sigma _ { i } , \\sigma _ { i + n } ) , c _ { \\ell _ { i } } ) + \\lambda C E ( \\mathcal { D } _ { D } ( \\mathcal { G } ( \\sigma _ { i } ) , d _ { \\ell _ { i } } ) - c _ { \\ell _ { i } } )\n$$",
567
+ "text_format": "latex",
568
+ "bbox": [
569
+ 232,
570
+ 756,
571
+ 774,
572
+ 790
573
+ ],
574
+ "page_idx": 4
575
+ },
576
+ {
577
+ "type": "text",
578
+ "text": "In Equation (5), we flip the gradient’s sign during backpropagation of $D _ { F }$ with respect to the domain classification loss. This corresponds to stochastic gradient ascent away from features that are useful for domain classification, thus ensuring that $D _ { F }$ produces domain agnostic features. Equation 5 can be solved efficiently with stochastic gradient descent. Here $\\lambda$ is a hyperparameter that determines the trade-off made between the objectives that are competing over $\\mathcal { D } _ { F }$ . ",
579
+ "bbox": [
580
+ 173,
581
+ 796,
582
+ 825,
583
+ 867
584
+ ],
585
+ "page_idx": 4
586
+ },
587
+ {
588
+ "type": "text",
589
+ "text": "To ensure sufficient signal for discrimination between expert and non-expert, we collect third-person demonstrations in the expert domain from both an expert and from a non-expert. ",
590
+ "bbox": [
591
+ 173,
592
+ 873,
593
+ 823,
594
+ 902
595
+ ],
596
+ "page_idx": 4
597
+ },
598
+ {
599
+ "type": "text",
600
+ "text": "Our complete formulation is graphically summarized in Figure 2. ",
601
+ "bbox": [
602
+ 173,
603
+ 909,
604
+ 602,
605
+ 924
606
+ ],
607
+ "page_idx": 4
608
+ },
609
+ {
610
+ "type": "image",
611
+ "img_path": "images/0f6e6112f36cfebf12955fa02ddf614350be92d58e85c57da82c1566c4d52336.jpg",
612
+ "image_caption": [
613
+ "Figure 2: Architecture diagram for third-person imitation learning. Images at time $t$ and $t + 4$ are sent through a feature extractor to obtain $F ( o _ { t } )$ and $F ( o _ { t + 4 } )$ . Subsequently, these feature vectors are reused in two places. First, they are concatenated and used to predict whether the samples are drawn from expert or non-expert trajectories. Second, $F ( o _ { t } )$ is utilized to predict a domain label (expert vs. novice domain). During backpropogation, the sign on the domain loss $L _ { D }$ is flipped to destroy information that was useful for distinguishing the two domains. This ensures that the feature extractor $F$ is domain agnostic. Finally, the classes probabilities that were computed using this domain-agnostic feature vector are utilized as a cost signal in TRPO; which is subsequently utilized to train the novice policy to take expert-like actions and collect further rollouts. "
614
+ ],
615
+ "image_footnote": [],
616
+ "bbox": [
617
+ 179,
618
+ 101,
619
+ 831,
620
+ 332
621
+ ],
622
+ "page_idx": 5
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "5.2 ALGORITHM ",
627
+ "text_level": 1,
628
+ "bbox": [
629
+ 174,
630
+ 508,
631
+ 303,
632
+ 522
633
+ ],
634
+ "page_idx": 5
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "To solve the game formulation in Equation (5), we perform alternating (partial) optimization over the policy $\\pi _ { \\theta }$ and the reward function and domain confusion encoded through $\\mathcal { D } _ { R } , \\mathcal { D } _ { D } , \\mathcal { D } _ { F }$ . ",
639
+ "bbox": [
640
+ 174,
641
+ 537,
642
+ 823,
643
+ 565
644
+ ],
645
+ "page_idx": 5
646
+ },
647
+ {
648
+ "type": "text",
649
+ "text": "The optimization over $\\mathcal { D } _ { R } , \\mathcal { D } _ { D } , \\mathcal { D } _ { F }$ is done through stochastic gradient descent with ADAM Kingma & Ba (2014). ",
650
+ "bbox": [
651
+ 176,
652
+ 571,
653
+ 823,
654
+ 601
655
+ ],
656
+ "page_idx": 5
657
+ },
658
+ {
659
+ "type": "text",
660
+ "text": "Our generator $\\left( \\pi _ { \\boldsymbol { \\theta } } \\right)$ step is similar to the generator step in the algorithm by (Ho & Ermon, 2016). We simply use $- \\log \\mathcal { D } _ { R }$ as the reward. Using policy gradient methods (TRPO), we train the generator to minimize this cost and thus push the policy further towards replicating expert behavior. Once the generator step is done, we start again with the discriminator step. The entire process is summarized in algorithm 1. ",
661
+ "bbox": [
662
+ 174,
663
+ 607,
664
+ 825,
665
+ 678
666
+ ],
667
+ "page_idx": 5
668
+ },
669
+ {
670
+ "type": "text",
671
+ "text": "6 EXPERIMENTS ",
672
+ "text_level": 1,
673
+ "bbox": [
674
+ 174,
675
+ 704,
676
+ 326,
677
+ 720
678
+ ],
679
+ "page_idx": 5
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "We seek to answer the following questions through experiments: ",
684
+ "bbox": [
685
+ 174,
686
+ 739,
687
+ 596,
688
+ 755
689
+ ],
690
+ "page_idx": 5
691
+ },
692
+ {
693
+ "type": "text",
694
+ "text": "1. Is it possible to solve the third-person imitation learning problem in simple settings? I.e., given a collection of expert image-based rollouts in one domain, is it possible to train a policy in a different domain that replicates the essence of the original behavior? 2. Does the algorithm we propose benefit from both domain confusion and velocity? 3. How sensitive is our proposed algorithm to the selection of hyper-parameters used in deployment? 4. How sensitive is our proposed algorithm to changes in camera angle? 5. How does our method compare against some reasonable baselines? ",
695
+ "bbox": [
696
+ 209,
697
+ 768,
698
+ 825,
699
+ 925
700
+ ],
701
+ "page_idx": 5
702
+ },
703
+ {
704
+ "type": "text",
705
+ "text": "Algorithm 1 A third-person imitation learning algorithm. ",
706
+ "text_level": 1,
707
+ "bbox": [
708
+ 174,
709
+ 103,
710
+ 550,
711
+ 118
712
+ ],
713
+ "page_idx": 6
714
+ },
715
+ {
716
+ "type": "text",
717
+ "text": "1: Let CE be the standard cross entropy loss. \n2: Let $\\mathcal { G }$ be a function that flips the gradient sign during backpropogation and acts as the identity \nmap otherwise. \n3: Initialize two domains, $E$ and $N$ for the expert and novice. \n4: Initialize a memory bank $\\Omega$ of expert success and of failure in domain $E$ . Each trajectory $\\omega \\in \\Omega$ \ncomprises a rollout of images $o = o _ { 1 } , \\ldots , o _ { t } , \\ldots o _ { n }$ , a class label $c _ { \\ell }$ , and a domain label $d _ { \\ell }$ . \n5: Initialize $\\mathcal { D } = \\mathcal { D } _ { F } , \\mathcal { D } _ { R } , \\mathcal { D } _ { D }$ , a domain invariant discriminator. \n6: Initialize a novice policy $\\pi _ { \\theta }$ . \n7: Initialize numiters, the number of inner policy optimization iterations we wish to run. \n8: for iter in numiters do \n9: Sample a set of successes and failures $\\omega _ { E }$ from $\\Omega$ . \n10: Collect on policy samples $\\omega _ { N }$ \n11: Set $\\omega = \\omega _ { E } \\cup \\omega _ { N }$ . \n12: Shuffle $\\omega$ \n13: for $o , c _ { \\ell } , d _ { \\ell }$ in $\\omega$ do \n14: for $o _ { t }$ in $o$ do \n15: $\\sigma _ { t } = \\mathcal { D } _ { F } \\big ( o _ { t } \\big )$ \n16: $\\sigma _ { t + 4 } = \\mathscr { D } _ { F } ( o _ { t + 4 } )$ \n17: $\\mathcal { L } _ { R } = C E ( \\mathcal { D } _ { R } ( \\sigma _ { t } , \\sigma _ { t + 4 } ) , c _ { \\ell } )$ \n18: $\\mathcal { L } _ { d } = C E ( \\mathcal { D } _ { D } ( \\mathcal { G } ( \\sigma _ { t } ) ) , d _ { \\ell } )$ \n19: L = λ · Ld + LR \n20: minimize $\\mathcal { L }$ with ADAM. \n21: end for \n22: end for \n23: Collect on policy samples $\\omega _ { N }$ from $\\pi _ { \\theta }$ . \n24: for $\\omega$ in $\\omega _ { N }$ do \n25: for $\\omega _ { t }$ in $\\omega$ do \n26: $\\begin{array} { l } { \\sigma _ { t } = \\mathcal { D } _ { F } \\big ( o _ { t } \\big ) } \\\\ { \\sigma _ { t + 4 } = \\mathcal { D } _ { F } \\big ( o _ { t + 4 } \\big ) } \\\\ { \\hat { c } _ { \\ell } = \\mathcal { D } _ { R } \\big ( \\sigma _ { t } , \\sigma _ { t + 4 } \\big ) } \\end{array}$ \n27: \n28: \n29: $r = \\hat { c } _ { \\ell } [ 0 ]$ , the probability that $o _ { t } , o _ { t + 4 }$ were generated via expert rollouts. \n30: Use $r$ to train $\\pi _ { \\theta }$ with via policy gradients (TRPO). \n31: end for \n32: end for \n33: end for \n34: return optimized policy $\\pi _ { \\theta }$ ",
718
+ "bbox": [
719
+ 171,
720
+ 122,
721
+ 820,
722
+ 625
723
+ ],
724
+ "page_idx": 6
725
+ },
726
+ {
727
+ "type": "text",
728
+ "text": "6.1 ENVIRONMENTS ",
729
+ "text_level": 1,
730
+ "bbox": [
731
+ 174,
732
+ 661,
733
+ 328,
734
+ 676
735
+ ],
736
+ "page_idx": 6
737
+ },
738
+ {
739
+ "type": "text",
740
+ "text": "To evaluate our algorithm, we consider three environments in the MuJoCo physics simulator. There are two different versions of each environment, an expert variant and a novice variant. Our goal is to train a cost function that is domain agnostic, and hence can be trained with images on the expert domain but nevertheless produce a reasonable cost on the novice domain. See Figure 1 for a visualization of the differences between expert and novice environments for the three tasks. ",
741
+ "bbox": [
742
+ 174,
743
+ 693,
744
+ 825,
745
+ 762
746
+ ],
747
+ "page_idx": 6
748
+ },
749
+ {
750
+ "type": "text",
751
+ "text": "Point: A pointmass attempts to reach a point in a plane. The color of the target and the camera angle change between domains. ",
752
+ "bbox": [
753
+ 173,
754
+ 770,
755
+ 821,
756
+ 797
757
+ ],
758
+ "page_idx": 6
759
+ },
760
+ {
761
+ "type": "text",
762
+ "text": "Reacher: A two DOF arm attempts to reach a designated point in the plane. The camera angle, the length of the arms, and the color of the target point are changed between domains. Note that changing the camera angle significantly alters the image background color from largely gray to roughly 30 percent black. This presents a significant challenge for our method. ",
763
+ "bbox": [
764
+ 173,
765
+ 805,
766
+ 825,
767
+ 861
768
+ ],
769
+ "page_idx": 6
770
+ },
771
+ {
772
+ "type": "text",
773
+ "text": "Inverted Pendulum: A classic RL task wherein a pendulum must be made to balance via control. For this domain, We only change the color of the pendulum and not the camera angle. Since there is no target point, we found that changing the camera angle left the domain invariant representations with too little information and resulted in a failure case. In contrast to some traditional renderings of this problem, we do not terminate an episode when the agent falls but rather allow data collection to continue for a fixed horizon. ",
774
+ "bbox": [
775
+ 174,
776
+ 867,
777
+ 823,
778
+ 922
779
+ ],
780
+ "page_idx": 6
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "",
785
+ "bbox": [
786
+ 173,
787
+ 103,
788
+ 823,
789
+ 132
790
+ ],
791
+ "page_idx": 7
792
+ },
793
+ {
794
+ "type": "text",
795
+ "text": "6.2 EVALUATIONS ",
796
+ "text_level": 1,
797
+ "bbox": [
798
+ 174,
799
+ 148,
800
+ 313,
801
+ 162
802
+ ],
803
+ "page_idx": 7
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "Is it possible to solve the third-person imitation learning problem in simple settings? In Figure 3, we see that our proposed algorithm is indeed able to recover reasonable policies for all three tasks we examined. Initially, the training is quite unstable due to the domain confusion wreaking havoc on the learned cost. However, after several iterations the policies eventually head towards reasonable local minima and the standard deviation over the reward distribution shrinks substantially. Finally, we note that the extracted feature representations used to complete this task are in fact domain-agnostic, as seen in Figure 9. Hence, the learning is properly taking place from a third-person perspective. ",
808
+ "bbox": [
809
+ 173,
810
+ 175,
811
+ 825,
812
+ 273
813
+ ],
814
+ "page_idx": 7
815
+ },
816
+ {
817
+ "type": "image",
818
+ "img_path": "images/e5de99af5cf3a1c7aa7654c1a187c2ca412166671d36a48182ca68fd643f5215.jpg",
819
+ "image_caption": [
820
+ "Figure 3: Reward vs training iteration for reacher, inverted pendulum, and point environments. The learning curves are averaged over 5 trials with error bars represent one standard deviation in the reward distribution at the given point. "
821
+ ],
822
+ "image_footnote": [],
823
+ "bbox": [
824
+ 191,
825
+ 287,
826
+ 807,
827
+ 381
828
+ ],
829
+ "page_idx": 7
830
+ },
831
+ {
832
+ "type": "image",
833
+ "img_path": "images/f7b7c6bcd21543c32d56d84f9174ade28e4f6a584b6d9c3ad7db142b231a7a52.jpg",
834
+ "image_caption": [
835
+ "Figure 4: Domain accuracy vs. training iteration for reacher, inverted pendulum, and point environments. "
836
+ ],
837
+ "image_footnote": [],
838
+ "bbox": [
839
+ 191,
840
+ 473,
841
+ 790,
842
+ 568
843
+ ],
844
+ "page_idx": 7
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "Does the algorithm we propose benefit from both domain confusion and the multi-time step input? We answer this question with the experiments summarized in Figure 5. This experiment compares our approach with: (i) our approach without the domain confusion loss; (ii) our approach without the multi-time step input; (iii) our approach without the domain confusion loss and without the multitime step input (which is very similar to the approach in Ho & Ermon (2016)). We see that adding domain confusion is essential for getting strong performance in all three experiments. Meanwhile, adding multi-time step input marginally improves the results. See also Figure 7 for an analysis of the effects of multi-time step input on the final results. ",
849
+ "bbox": [
850
+ 173,
851
+ 638,
852
+ 825,
853
+ 750
854
+ ],
855
+ "page_idx": 7
856
+ },
857
+ {
858
+ "type": "image",
859
+ "img_path": "images/e3119af18c1c7e62ae4ef64c2ed955904fbe120c4d62bd13f90f984b9217f8c5.jpg",
860
+ "image_caption": [
861
+ "Figure 5: Reward vs iteration for reacher, inverted pendulum, and point environments with no domain confusion and no velocity (red), domain confusion (orange), velocity (brown), and both domain confusion and velocity (blue). "
862
+ ],
863
+ "image_footnote": [],
864
+ "bbox": [
865
+ 191,
866
+ 766,
867
+ 803,
868
+ 859
869
+ ],
870
+ "page_idx": 7
871
+ },
872
+ {
873
+ "type": "text",
874
+ "text": "How sensitive is our proposed algorithm to the selection of hyper-parameters used in deployment? Figure 6 shows the effect of the domain confusion coefficient $\\lambda$ , which trades off how much we should weight the domain confusion objective vs. the standard cost-recovery objective, on the final performance of the algorithm. Setting $\\lambda$ too low results in slower learning and features that are not domain-invariant. Setting $\\lambda$ too high results in an objective that is too quick to destroy information, which makes it impossible to recover an accurate cost. ",
875
+ "bbox": [
876
+ 174,
877
+ 103,
878
+ 825,
879
+ 186
880
+ ],
881
+ "page_idx": 8
882
+ },
883
+ {
884
+ "type": "text",
885
+ "text": "For multi-time step input, one must choose the number of look-ahead frames that are utilized. If too small a window is chosen, the agent’s actions have not affected a large amount of change in the environment and it is difficult to discern any additional class signal over static images. If too large a time-frame passes, causality becomes difficult to interpolate and the agent does worse than simply being trained on static frames. Figure 7 illustrates that no number of look-ahead frames is consistently optimal across tasks. However, a value of 4 showed good performance over all tasks, and so this value was utilized in all other experiments. ",
886
+ "bbox": [
887
+ 173,
888
+ 194,
889
+ 825,
890
+ 291
891
+ ],
892
+ "page_idx": 8
893
+ },
894
+ {
895
+ "type": "image",
896
+ "img_path": "images/45ed8ae8770c3fc15032a995eb4946b54fae1133b7d3d76076733073924dca65.jpg",
897
+ "image_caption": [
898
+ "Figure 6: Reward of final trained policy vs domain confusion weight $\\lambda$ for reacher, inverted pendulum, and point environments. "
899
+ ],
900
+ "image_footnote": [],
901
+ "bbox": [
902
+ 191,
903
+ 353,
904
+ 807,
905
+ 449
906
+ ],
907
+ "page_idx": 8
908
+ },
909
+ {
910
+ "type": "image",
911
+ "img_path": "images/0f0f2a991076420a5f9323afd72fe3d58d1351a3000f704f8ceb0602171cdb82.jpg",
912
+ "image_caption": [
913
+ "Figure 7: Reward of final trained policy vs number of look-ahead frames for reacher, inverted pendulum, and point environments. "
914
+ ],
915
+ "image_footnote": [],
916
+ "bbox": [
917
+ 191,
918
+ 626,
919
+ 807,
920
+ 718
921
+ ],
922
+ "page_idx": 8
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "How sensitive is our algorithm to changes in camera angle? We present graphs for the reacher and point experiments wherein we exam the final reward obtained by a policy trained with thirdperson imitation learning vs the camera angle difference between the first-person and third-person perspective. We omit the inverted double pendulum experiment, as the color and not the camera angle changes in that setting and we found the case of slowly transitioning the color to be the definition of uninteresting science. ",
927
+ "bbox": [
928
+ 173,
929
+ 840,
930
+ 825,
931
+ 924
932
+ ],
933
+ "page_idx": 8
934
+ },
935
+ {
936
+ "type": "image",
937
+ "img_path": "images/878be86e4c28e17ce3098944393f81394f948537ce33b7bc32f67d1492e063e5.jpg",
938
+ "image_caption": [
939
+ "Figure 8: Point and reacher final reward after 20 epochs of third-person imitation learning vs the camera angle difference between the first and third-person perspective. We see that the point follows a fairly linear slope in regards to camera angle differences, whereas the reacher environment is more stochastic against these changes. "
940
+ ],
941
+ "image_footnote": [],
942
+ "bbox": [
943
+ 184,
944
+ 104,
945
+ 843,
946
+ 256
947
+ ],
948
+ "page_idx": 9
949
+ },
950
+ {
951
+ "type": "image",
952
+ "img_path": "images/63dd757b05b53e432ebdfa3f1f6ac421e8f43a1c47d1053932e4f96e81238dfd.jpg",
953
+ "image_caption": [
954
+ "Figure 9: Learning curves for third-person imitation vs. three baselines: 1)RL with true reward, 2) first-person imitation, 3) attempting to use first-person features on the third-person agent. "
955
+ ],
956
+ "image_footnote": [],
957
+ "bbox": [
958
+ 178,
959
+ 372,
960
+ 807,
961
+ 806
962
+ ],
963
+ "page_idx": 9
964
+ },
965
+ {
966
+ "type": "text",
967
+ "text": "How does our method compare against reasonable baselines? We consider the following baselines for comparisons against third-person imitation learning. 1) Standard reinforcement learning with using full state information and the true reward signal. This agent is trained via TRPO. 2) ",
968
+ "bbox": [
969
+ 174,
970
+ 882,
971
+ 825,
972
+ 924
973
+ ],
974
+ "page_idx": 9
975
+ },
976
+ {
977
+ "type": "text",
978
+ "text": "Standard GAIL (first-person imitation learning). Here, the agent receives first-person demonstration and attempts to imitate the correct behavior. This is an upper bound on how well we can expect to do, since we have the correct perspective. 3) Training a policy using first-person data and applying it to the third-person environment. ",
979
+ "bbox": [
980
+ 174,
981
+ 103,
982
+ 823,
983
+ 159
984
+ ],
985
+ "page_idx": 10
986
+ },
987
+ {
988
+ "type": "text",
989
+ "text": "We compare all three of these baselines to third-person imitation learning. As we see in figure 9: 1) Standard RL, which (unlike the imitation learning approaches) has access to full state and true reward, helps calibrate performance of the other approaches. 2) First-person imitation learning is faced with a simpler imitation problem and accordingly outperforms third-person imitation, yet third-person imitation learning is nevertheless competitive. 3) Applying the first-person policy to the third-person agent fails miserably, illustrating that explicitly considering third-person imitation is important in these settings. ",
990
+ "bbox": [
991
+ 173,
992
+ 166,
993
+ 825,
994
+ 263
995
+ ],
996
+ "page_idx": 10
997
+ },
998
+ {
999
+ "type": "text",
1000
+ "text": "Somewhat unfortunately, the different reward function scales make it difficult to capture information on the variance of each learning curve. Consequently, in Appendix A we have included the full learning curves for these experiments with variance bars, each plotted with an appropriate scale to examine the variance of the individual curves. ",
1001
+ "bbox": [
1002
+ 174,
1003
+ 270,
1004
+ 825,
1005
+ 327
1006
+ ],
1007
+ "page_idx": 10
1008
+ },
1009
+ {
1010
+ "type": "text",
1011
+ "text": "7 DISCUSSION AND FUTURE WORK ",
1012
+ "text_level": 1,
1013
+ "bbox": [
1014
+ 178,
1015
+ 347,
1016
+ 485,
1017
+ 363
1018
+ ],
1019
+ "page_idx": 10
1020
+ },
1021
+ {
1022
+ "type": "text",
1023
+ "text": "In this paper, we presented the problem of third-person imitation learning. We argue that this problem will be important going forward, as techniques in reinforcement learning and generative adversarial learning improve and the cost of collecting first-person samples remains high. We presented an algorithm which builds on Generative Adversarial Imitation Learning and is capable of solving simple third-person imitation tasks. ",
1024
+ "bbox": [
1025
+ 174,
1026
+ 377,
1027
+ 825,
1028
+ 448
1029
+ ],
1030
+ "page_idx": 10
1031
+ },
1032
+ {
1033
+ "type": "text",
1034
+ "text": "One promising direction of future work in this area is to jointly train policy features and cost features at the pixel level, allowing the reuse of image features. Code to train a third person imitation learning agent on the domains from this paper is presented here: https://github.com/bstadie/ third_person_im ",
1035
+ "bbox": [
1036
+ 176,
1037
+ 454,
1038
+ 825,
1039
+ 511
1040
+ ],
1041
+ "page_idx": 10
1042
+ },
1043
+ {
1044
+ "type": "text",
1045
+ "text": "ACKNOWLEDGEMENTS ",
1046
+ "text_level": 1,
1047
+ "bbox": [
1048
+ 176,
1049
+ 532,
1050
+ 367,
1051
+ 546
1052
+ ],
1053
+ "page_idx": 10
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "This work was done partially at OpenAI and partially at Berkeley. Work done at Berkeley was supported in part by Darpa under the Simplex program and the FunLoL program. ",
1058
+ "bbox": [
1059
+ 174,
1060
+ 563,
1061
+ 823,
1062
+ 590
1063
+ ],
1064
+ "page_idx": 10
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "REFERENCES ",
1069
+ "text_level": 1,
1070
+ "bbox": [
1071
+ 174,
1072
+ 612,
1073
+ 285,
1074
+ 627
1075
+ ],
1076
+ "page_idx": 10
1077
+ },
1078
+ {
1079
+ "type": "text",
1080
+ "text": "P. Abbeel and A. Ng. Apprenticeship learning via inverse reinforcement learning. In International Conference on Machine Learning (ICML), 2004. ",
1081
+ "bbox": [
1082
+ 174,
1083
+ 635,
1084
+ 823,
1085
+ 664
1086
+ ],
1087
+ "page_idx": 10
1088
+ },
1089
+ {
1090
+ "type": "text",
1091
+ "text": "Pieter Abbeel, Adam Coates, and Andrew Y Ng. Autonomous helicopter aerobatics through apprenticeship learning. The International Journal of Robotics Research, 2010. ",
1092
+ "bbox": [
1093
+ 173,
1094
+ 670,
1095
+ 820,
1096
+ 700
1097
+ ],
1098
+ "page_idx": 10
1099
+ },
1100
+ {
1101
+ "type": "text",
1102
+ "text": "Brenna D Argall, Sonia Chernova, Manuela Veloso, and Brett Browning. A survey of robot learning from demonstration. Robotics and autonomous systems, 57(5):469–483, 2009. ",
1103
+ "bbox": [
1104
+ 173,
1105
+ 708,
1106
+ 820,
1107
+ 738
1108
+ ],
1109
+ "page_idx": 10
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "Yusuf Aytar and Andrew Zisserman. Tabula rasa: Model transfer for object category detection. In 2011 International Conference on Computer Vision, pp. 2252–2259. IEEE, 2011. ",
1114
+ "bbox": [
1115
+ 176,
1116
+ 744,
1117
+ 821,
1118
+ 775
1119
+ ],
1120
+ "page_idx": 10
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "D. Barber and F. V. Agakov. Kernelized infomax clustering. NIPS, 2005. ",
1125
+ "bbox": [
1126
+ 174,
1127
+ 784,
1128
+ 653,
1129
+ 799
1130
+ ],
1131
+ "page_idx": 10
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "A. Boularias, J. Kober, and J. Peters. Relative entropy inverse reinforcement learning. In International Conference on Artificial Intelligence and Statistics (AISTATS), 2011. ",
1136
+ "bbox": [
1137
+ 173,
1138
+ 806,
1139
+ 820,
1140
+ 835
1141
+ ],
1142
+ "page_idx": 10
1143
+ },
1144
+ {
1145
+ "type": "text",
1146
+ "text": "J. S. Bridle, A. J. Heading, and D. J. MacKay. Unsupervised classifiers, mutual information and phantom targets. NIPS, 1992. ",
1147
+ "bbox": [
1148
+ 169,
1149
+ 844,
1150
+ 823,
1151
+ 872
1152
+ ],
1153
+ "page_idx": 10
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "Jane Bromley, James W Bentz, Leon Bottou, Isabelle Guyon, Yann LeCun, Cliff Moore, Eduard ´ Sackinger, and Roopak Shah. Signature verification using a siamese time delay neural network.¨ International Journal of Pattern Recognition and Artificial Intelligence, 7(04):669–688, 1993. ",
1158
+ "bbox": [
1159
+ 174,
1160
+ 882,
1161
+ 825,
1162
+ 924
1163
+ ],
1164
+ "page_idx": 10
1165
+ },
1166
+ {
1167
+ "type": "text",
1168
+ "text": "Sylvain Calinon. Robot programming by demonstration. EPFL Press, 2009. ",
1169
+ "bbox": [
1170
+ 173,
1171
+ 103,
1172
+ 671,
1173
+ 119
1174
+ ],
1175
+ "page_idx": 11
1176
+ },
1177
+ {
1178
+ "type": "text",
1179
+ "text": "Sylvain Calinon, Florent Guenter, and Aude Billard. On learning, representing, and generalizing a task in a humanoid robot. IEEE Transactions on Systems, Man, and Cybernetics, Part B (Cybernetics), 37(2):286–298, 2007. ",
1180
+ "bbox": [
1181
+ 174,
1182
+ 127,
1183
+ 821,
1184
+ 170
1185
+ ],
1186
+ "page_idx": 11
1187
+ },
1188
+ {
1189
+ "type": "text",
1190
+ "text": "Malinda Carpenter, Josep Call, and Michael Tomasello. Understanding prior intentions enables two–year–olds to imitatively learn a complex task. Child development, 73(5):1431–1441, 2002. ",
1191
+ "bbox": [
1192
+ 171,
1193
+ 180,
1194
+ 821,
1195
+ 209
1196
+ ],
1197
+ "page_idx": 11
1198
+ },
1199
+ {
1200
+ "type": "text",
1201
+ "text": "Xi Chen, Yan Duan, Rein Houthooft, John Schulman, Ilya Sutskever, and Pieter Abbeel. Infogan: Interpretable representation learning by information maximizing generative adversarial nets. NIPS, 2016. ",
1202
+ "bbox": [
1203
+ 173,
1204
+ 219,
1205
+ 823,
1206
+ 261
1207
+ ],
1208
+ "page_idx": 11
1209
+ },
1210
+ {
1211
+ "type": "text",
1212
+ "text": "Sumit Chopra, Raia Hadsell, and Yann LeCun. Learning a similarity metric discriminatively, with application to face verification. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’05), volume 1, pp. 539–546. IEEE, 2005. ",
1213
+ "bbox": [
1214
+ 173,
1215
+ 271,
1216
+ 826,
1217
+ 314
1218
+ ],
1219
+ "page_idx": 11
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "A. Doerr, N. Ratliff, J. Bohg, M. Toussaint, and S. Schaal. Direct loss minimization inverse optimal control. In Proceedings of Robotics: Science and Systems (R:SS), Rome, Italy, July 2015. ",
1224
+ "bbox": [
1225
+ 173,
1226
+ 324,
1227
+ 825,
1228
+ 353
1229
+ ],
1230
+ "page_idx": 11
1231
+ },
1232
+ {
1233
+ "type": "text",
1234
+ "text": "Jeff Donahue, Yangqing Jia, Oriol Vinyals, Judy Hoffman, Ning Zhang, Eric Tzeng, and Trevor Darrell. Decaf: A deep convolutional activation feature for generic visual recognition. In ICML, pp. 647–655, 2014. ",
1235
+ "bbox": [
1236
+ 174,
1237
+ 362,
1238
+ 825,
1239
+ 405
1240
+ ],
1241
+ "page_idx": 11
1242
+ },
1243
+ {
1244
+ "type": "text",
1245
+ "text": "Lixin Duan, Dong Xu, and Ivor Tsang. Learning with augmented features for heterogeneous domain adaptation. arXiv preprint arXiv:1206.4660, 2012. ",
1246
+ "bbox": [
1247
+ 171,
1248
+ 415,
1249
+ 825,
1250
+ 444
1251
+ ],
1252
+ "page_idx": 11
1253
+ },
1254
+ {
1255
+ "type": "text",
1256
+ "text": "C. Finn, S. Levine, and P. Abbeel. Guided cost learning: Deep inverse optimal control via policy optimization. ICML, 2016. ",
1257
+ "bbox": [
1258
+ 174,
1259
+ 454,
1260
+ 823,
1261
+ 483
1262
+ ],
1263
+ "page_idx": 11
1264
+ },
1265
+ {
1266
+ "type": "text",
1267
+ "text": "Y. Ganin and V. Lempitsky. Unsupervised domain adaptation by backpropagation. Arxiv preprint 1409.7495, 2014. ",
1268
+ "bbox": [
1269
+ 173,
1270
+ 492,
1271
+ 823,
1272
+ 521
1273
+ ],
1274
+ "page_idx": 11
1275
+ },
1276
+ {
1277
+ "type": "text",
1278
+ "text": "G Gioioso, G Salvietti, M Malvezzi, and D Prattichizzo. An object-based approach to map human hand synergies onto robotic hands with dissimilar kinematics. Robotics: Science and Systems VIII, pp. 97, 2013. ",
1279
+ "bbox": [
1280
+ 176,
1281
+ 531,
1282
+ 825,
1283
+ 574
1284
+ ],
1285
+ "page_idx": 11
1286
+ },
1287
+ {
1288
+ "type": "text",
1289
+ "text": "Ian Goodfellow, Jean Pouget-Abadie, Mehdi Mirza, Bing Xu, David Warde-Farley, Sherjil Ozair, Aaron Courville, and Yoshua Bengio. Generative adversarial nets. In Advances in Neural Information Processing Systems, pp. 2672–2680, 2014. ",
1290
+ "bbox": [
1291
+ 173,
1292
+ 583,
1293
+ 825,
1294
+ 626
1295
+ ],
1296
+ "page_idx": 11
1297
+ },
1298
+ {
1299
+ "type": "text",
1300
+ "text": "Abhishek Gupta, Clemens Eppner, Sergey Levine, and Pieter Abbeel. Learning dexterous manipulation for a soft robotic hand from human demonstration. arXiv preprint arXiv:1603.06348, 2016. ",
1301
+ "bbox": [
1302
+ 173,
1303
+ 636,
1304
+ 826,
1305
+ 678
1306
+ ],
1307
+ "page_idx": 11
1308
+ },
1309
+ {
1310
+ "type": "text",
1311
+ "text": "J. Ho and S. Ermon. Generative adversarial imitation learning. arXiv pre-print: 1606.03476, pp. 1061–1068, 2016. ",
1312
+ "bbox": [
1313
+ 173,
1314
+ 688,
1315
+ 823,
1316
+ 717
1317
+ ],
1318
+ "page_idx": 11
1319
+ },
1320
+ {
1321
+ "type": "text",
1322
+ "text": "Judy Hoffman, Erik Rodner, Jeff Donahue, Trevor Darrell, and Kate Saenko. Efficient learning of domain-invariant image representations. arXiv preprint arXiv:1301.3224, 2013. ",
1323
+ "bbox": [
1324
+ 169,
1325
+ 727,
1326
+ 823,
1327
+ 756
1328
+ ],
1329
+ "page_idx": 11
1330
+ },
1331
+ {
1332
+ "type": "text",
1333
+ "text": "M. Kalakrishnan, P. Pastor, L. Righetti, and S. Schaal. Learning objective functions for manipulation. In International Conference on Robotics and Automation (ICRA), 2013. ",
1334
+ "bbox": [
1335
+ 168,
1336
+ 765,
1337
+ 823,
1338
+ 795
1339
+ ],
1340
+ "page_idx": 11
1341
+ },
1342
+ {
1343
+ "type": "text",
1344
+ "text": "Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Proceedings of the 3rd International Conference on Learning Representations (ICLR), 2014. ",
1345
+ "bbox": [
1346
+ 168,
1347
+ 804,
1348
+ 823,
1349
+ 833
1350
+ ],
1351
+ "page_idx": 11
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "text": "A. Krause, P. Perona, and R. G. Gomes. Discriminative clustering by regularized information maximization. NIPS, 2010. ",
1356
+ "bbox": [
1357
+ 168,
1358
+ 842,
1359
+ 823,
1360
+ 871
1361
+ ],
1362
+ "page_idx": 11
1363
+ },
1364
+ {
1365
+ "type": "text",
1366
+ "text": "Brian Kulis, Kate Saenko, and Trevor Darrell. What you saw is not what you get: Domain adaptation using asymmetric kernel transforms. In Computer Vision and Pattern Recognition (CVPR), 2011 IEEE Conference on, pp. 1785–1792. IEEE, 2011. ",
1367
+ "bbox": [
1368
+ 174,
1369
+ 881,
1370
+ 825,
1371
+ 924
1372
+ ],
1373
+ "page_idx": 11
1374
+ },
1375
+ {
1376
+ "type": "text",
1377
+ "text": "S. Levine, Z. Popovic, and V. Koltun. Nonlinear inverse reinforcement learning with gaussian processes. In Advances in Neural Information Processing Systems (NIPS), 2011. ",
1378
+ "bbox": [
1379
+ 171,
1380
+ 103,
1381
+ 823,
1382
+ 133
1383
+ ],
1384
+ "page_idx": 12
1385
+ },
1386
+ {
1387
+ "type": "text",
1388
+ "text": "Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel. End-to-end training of deep visuomotor policies. Journal of Machine Learning Research, 17(39):1–40, 2016. ",
1389
+ "bbox": [
1390
+ 173,
1391
+ 140,
1392
+ 820,
1393
+ 170
1394
+ ],
1395
+ "page_idx": 12
1396
+ },
1397
+ {
1398
+ "type": "text",
1399
+ "text": "Mingsheng Long and Jianmin Wang. Learning transferable features with deep adaptation networks. CoRR, abs/1502.02791, 1:2, 2015. ",
1400
+ "bbox": [
1401
+ 176,
1402
+ 178,
1403
+ 821,
1404
+ 207
1405
+ ],
1406
+ "page_idx": 12
1407
+ },
1408
+ {
1409
+ "type": "text",
1410
+ "text": "Yishay Mansour, Mehryar Mohri, and Afshin Rostamizadeh. Domain adaptation: Learning bounds and algorithms. arXiv preprint arXiv:0902.3430, 2009. ",
1411
+ "bbox": [
1412
+ 171,
1413
+ 214,
1414
+ 825,
1415
+ 244
1416
+ ],
1417
+ "page_idx": 12
1418
+ },
1419
+ {
1420
+ "type": "text",
1421
+ "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–533, 2015. ",
1422
+ "bbox": [
1423
+ 174,
1424
+ 252,
1425
+ 823,
1426
+ 296
1427
+ ],
1428
+ "page_idx": 12
1429
+ },
1430
+ {
1431
+ "type": "text",
1432
+ "text": "Volodymyr Mnih, Adria Puigdomenech Badia, Mehdi Mirza, Alex Graves, Timothy P Lillicrap, Tim Harley, David Silver, and Koray Kavukcuoglu. Asynchronous methods for deep reinforcement learning. arXiv preprint arXiv:1602.01783, 2016. ",
1433
+ "bbox": [
1434
+ 176,
1435
+ 303,
1436
+ 823,
1437
+ 347
1438
+ ],
1439
+ "page_idx": 12
1440
+ },
1441
+ {
1442
+ "type": "text",
1443
+ "text": "Chrystopher L Nehaniv. Nine billion correspondence problems. Imitation and Social Learning in Robots, Humans and Animals: Behavioural, Social and Communicative Dimensions, Cambridge University Press, 8:10, 2007. ",
1444
+ "bbox": [
1445
+ 176,
1446
+ 354,
1447
+ 823,
1448
+ 397
1449
+ ],
1450
+ "page_idx": 12
1451
+ },
1452
+ {
1453
+ "type": "text",
1454
+ "text": "Chrystopher L Nehaniv and Kerstin Dautenhahn. Like me?-measures of correspondence and imitation. Cybernetics & Systems, 32(1-2):11–51, 2001. ",
1455
+ "bbox": [
1456
+ 169,
1457
+ 405,
1458
+ 823,
1459
+ 435
1460
+ ],
1461
+ "page_idx": 12
1462
+ },
1463
+ {
1464
+ "type": "text",
1465
+ "text": "A. Ng, S. Russell, et al. Algorithms for inverse reinforcement learning. In International Conference on Machine Learning (ICML), 2000. ",
1466
+ "bbox": [
1467
+ 169,
1468
+ 443,
1469
+ 823,
1470
+ 473
1471
+ ],
1472
+ "page_idx": 12
1473
+ },
1474
+ {
1475
+ "type": "text",
1476
+ "text": "Dean A Pomerleau. Alvinn: An autonomous land vehicle in a neural network. In Advances in Neural Information Processing Systems, pp. 305–313, 1989. ",
1477
+ "bbox": [
1478
+ 169,
1479
+ 481,
1480
+ 823,
1481
+ 510
1482
+ ],
1483
+ "page_idx": 12
1484
+ },
1485
+ {
1486
+ "type": "text",
1487
+ "text": "D. Ramachandran and E. Amir. Bayesian inverse reinforcement learning. In AAAI Conference on Artificial Intelligence, volume 51, 2007. ",
1488
+ "bbox": [
1489
+ 174,
1490
+ 517,
1491
+ 823,
1492
+ 546
1493
+ ],
1494
+ "page_idx": 12
1495
+ },
1496
+ {
1497
+ "type": "text",
1498
+ "text": "N. Ratliff, J. A. Bagnell, and M. A. Zinkevich. Maximum margin planning. In International Conference on Machine Learning (ICML), 2006. ",
1499
+ "bbox": [
1500
+ 173,
1501
+ 554,
1502
+ 823,
1503
+ 584
1504
+ ],
1505
+ "page_idx": 12
1506
+ },
1507
+ {
1508
+ "type": "text",
1509
+ "text": "N. Ratliff, D. Bradley, J. A. Bagnell, and J. Chestnutt. Boosting structured prediction for imitation learning. 2007. ",
1510
+ "bbox": [
1511
+ 173,
1512
+ 592,
1513
+ 823,
1514
+ 622
1515
+ ],
1516
+ "page_idx": 12
1517
+ },
1518
+ {
1519
+ "type": "text",
1520
+ "text": "Stephane Ross, Geoffrey J Gordon, and Drew Bagnell. A reduction of imitation learning and struc-´ tured prediction to no-regret online learning. In AISTATS, volume 1, pp. 6, 2011. ",
1521
+ "bbox": [
1522
+ 173,
1523
+ 628,
1524
+ 821,
1525
+ 660
1526
+ ],
1527
+ "page_idx": 12
1528
+ },
1529
+ {
1530
+ "type": "text",
1531
+ "text": "Stefan Schaal. Is imitation learning the route to humanoid robots? Trends in cognitive sciences, 3 (6):233–242, 1999. ",
1532
+ "bbox": [
1533
+ 173,
1534
+ 666,
1535
+ 823,
1536
+ 695
1537
+ ],
1538
+ "page_idx": 12
1539
+ },
1540
+ {
1541
+ "type": "text",
1542
+ "text": "John Schulman, Sergey Levine, Philipp Moritz, Michael I. Jordan, and Pieter Abbeel. Trust region policy optimization. Arxiv preprint 1502.05477, 2015a. ",
1543
+ "bbox": [
1544
+ 171,
1545
+ 704,
1546
+ 823,
1547
+ 734
1548
+ ],
1549
+ "page_idx": 12
1550
+ },
1551
+ {
1552
+ "type": "text",
1553
+ "text": "John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. Highdimensional continuous control using generalized advantage estimation. arXiv preprint arXiv:1506.02438, 2015b. ",
1554
+ "bbox": [
1555
+ 173,
1556
+ 741,
1557
+ 823,
1558
+ 785
1559
+ ],
1560
+ "page_idx": 12
1561
+ },
1562
+ {
1563
+ "type": "text",
1564
+ "text": "Aaron Shon, Keith Grochow, Aaron Hertzmann, and Rajesh P Rao. Learning shared latent structure for image synthesis and robotic imitation. In Advances in Neural Information Processing Systems, pp. 1233–1240, 2005. ",
1565
+ "bbox": [
1566
+ 171,
1567
+ 792,
1568
+ 823,
1569
+ 835
1570
+ ],
1571
+ "page_idx": 12
1572
+ },
1573
+ {
1574
+ "type": "text",
1575
+ "text": "Eric Tzeng, Judy Hoffman, Ning Zhang, Kate Saenko, and Trevor Darrell. Deep domain confusion: Maximizing for domain invariance. arXiv preprint arXiv:1412.3474, 2014. ",
1576
+ "bbox": [
1577
+ 173,
1578
+ 843,
1579
+ 821,
1580
+ 873
1581
+ ],
1582
+ "page_idx": 12
1583
+ },
1584
+ {
1585
+ "type": "text",
1586
+ "text": "Eric Tzeng, Coline Devin, Judy Hoffman, Chelsea Finn, Xingchao Peng, Pieter Abbeel, Sergey Levine, Kate Saenko, and Trevor Darrell. Towards adapting deep visuomotor representations from simulated to real environments. arXiv preprint arXiv:1511.07111, 2015. ",
1587
+ "bbox": [
1588
+ 174,
1589
+ 882,
1590
+ 825,
1591
+ 924
1592
+ ],
1593
+ "page_idx": 12
1594
+ },
1595
+ {
1596
+ "type": "text",
1597
+ "text": "M. Wulfmeier, P. Ondruska, and I. Posner. Maximum entropy deep inverse reinforcement learning. arXiv preprint arXiv:1507.04888, 2015. ",
1598
+ "bbox": [
1599
+ 169,
1600
+ 103,
1601
+ 823,
1602
+ 132
1603
+ ],
1604
+ "page_idx": 13
1605
+ },
1606
+ {
1607
+ "type": "text",
1608
+ "text": "Jun Yang, Rong Yan, and Alexander G Hauptmann. Cross-domain video concept detection using adaptive svms. In Proceedings of the 15th ACM international conference on Multimedia, pp. 188–197. ACM, 2007. ",
1609
+ "bbox": [
1610
+ 173,
1611
+ 204,
1612
+ 826,
1613
+ 247
1614
+ ],
1615
+ "page_idx": 13
1616
+ },
1617
+ {
1618
+ "type": "text",
1619
+ "text": "B. Ziebart, A. Maas, J. A. Bagnell, and A. K. Dey. Maximum entropy inverse reinforcement learning. In AAAI Conference on Artificial Intelligence, 2008. ",
1620
+ "bbox": [
1621
+ 174,
1622
+ 319,
1623
+ 823,
1624
+ 348
1625
+ ],
1626
+ "page_idx": 13
1627
+ },
1628
+ {
1629
+ "type": "text",
1630
+ "text": "8 APPENDIX A: LEARNING CURVES FOR BASELINES ",
1631
+ "text_level": 1,
1632
+ "bbox": [
1633
+ 173,
1634
+ 433,
1635
+ 625,
1636
+ 449
1637
+ ],
1638
+ "page_idx": 13
1639
+ },
1640
+ {
1641
+ "type": "text",
1642
+ "text": "Here, we plot the learning curves for each of the baselines mentioned in the experiments section as a standalone plot. This allows one to better examine the variance of each individual learning curve. ",
1643
+ "bbox": [
1644
+ 173,
1645
+ 486,
1646
+ 826,
1647
+ 513
1648
+ ],
1649
+ "page_idx": 13
1650
+ },
1651
+ {
1652
+ "type": "image",
1653
+ "img_path": "images/ea1b67edb2dfdb4fef94fc8a920576a33c7505c4ce55718706bd9be88e6caa3d.jpg",
1654
+ "image_caption": [
1655
+ "Figure 10: Inverted Pendulum performance under a policy trained on RL, first-person imitation learning, third-person imitation, and a first-person policy applied to a third-person agent. "
1656
+ ],
1657
+ "image_footnote": [],
1658
+ "bbox": [
1659
+ 181,
1660
+ 564,
1661
+ 849,
1662
+ 872
1663
+ ],
1664
+ "page_idx": 13
1665
+ },
1666
+ {
1667
+ "type": "image",
1668
+ "img_path": "images/b6baae997578e700d576c20450de54e13c29bc04641825948f30b3aa8cd5b4b7.jpg",
1669
+ "image_caption": [
1670
+ "Figure 11: Reacher performance under a policy trained on RL, first-person imitation learning, thirdperson imitation, and a first-person policy applied to a third-person agent. "
1671
+ ],
1672
+ "image_footnote": [],
1673
+ "bbox": [
1674
+ 183,
1675
+ 103,
1676
+ 843,
1677
+ 411
1678
+ ],
1679
+ "page_idx": 14
1680
+ },
1681
+ {
1682
+ "type": "image",
1683
+ "img_path": "images/93145b975be3c2886cda5aca0198047a94819a2d2d82acbc535b32d11815a821.jpg",
1684
+ "image_caption": [
1685
+ "Figure 12: Point performance under a policy trained on RL, first-person imitation learning, thirdperson imitation, and a first-person policy applied to a third-person agent. "
1686
+ ],
1687
+ "image_footnote": [],
1688
+ "bbox": [
1689
+ 181,
1690
+ 564,
1691
+ 841,
1692
+ 872
1693
+ ],
1694
+ "page_idx": 14
1695
+ },
1696
+ {
1697
+ "type": "text",
1698
+ "text": "9 APPENDIX B: ARCHITECTURE PARAMETERS ",
1699
+ "text_level": 1,
1700
+ "bbox": [
1701
+ 173,
1702
+ 102,
1703
+ 576,
1704
+ 118
1705
+ ],
1706
+ "page_idx": 15
1707
+ },
1708
+ {
1709
+ "type": "text",
1710
+ "text": "Joint Feature Extractor: Input is images are size $5 0 \\mathrm { ~ x ~ } 5 0$ with 3 channels, RGB. Layers are 2 convolutional layers each followed by a max pooling layer of size 2. Layers use 5 filters of size 3 each. ",
1711
+ "bbox": [
1712
+ 174,
1713
+ 133,
1714
+ 825,
1715
+ 175
1716
+ ],
1717
+ "page_idx": 15
1718
+ },
1719
+ {
1720
+ "type": "text",
1721
+ "text": "Domain Discriminator and the Class Discriminator: Input is domain agnostic output of convolutional layers. Layers are two feed forward layers of size 128 followed by a final feed forward layer of size 2 and a soft-max layer to get the log probabilities. ",
1722
+ "bbox": [
1723
+ 176,
1724
+ 189,
1725
+ 823,
1726
+ 231
1727
+ ],
1728
+ "page_idx": 15
1729
+ },
1730
+ {
1731
+ "type": "text",
1732
+ "text": "ADAM is used for discriminator training with a learning rate of 0.001. The RL generator uses the off-the-shelf TRPO implementation available in RLLab. ",
1733
+ "bbox": [
1734
+ 173,
1735
+ 238,
1736
+ 823,
1737
+ 266
1738
+ ],
1739
+ "page_idx": 15
1740
+ }
1741
+ ]
parse/train/B16dGcqlx/B16dGcqlx_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/B16dGcqlx/B16dGcqlx_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkGTwjCctm/HkGTwjCctm.md ADDED
@@ -0,0 +1,323 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PYRAMID RECURRENT NEURAL NETWORKSFOR MULTI-SCALE CHANGE-POINT DETECTION
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Many real-world time series, such as in activity recognition, finance, or climate science, have changepoints where the system’s structure or parameters change. Detecting changes is important as they may indicate critical events. However, existing methods for changepoint detection face challenges when (1) the patterns of change cannot be modeled using simple and predefined metrics, and (2) changes can occur gradually, at multiple time-scales. To address this, we show how changepoint detection can be treated as a supervised learning problem, and propose a new deep neural network architecture that can efficiently identify both abrupt and gradual changes at multiple scales. Our proposed method, pyramid recurrent neural network (PRNN), is designed to be scale-invariant, by incorporating wavelets and pyramid analysis techniques from multi-scale signal processing. Through experiments on synthetic and real-world datasets, we show that PRNN can detect abrupt and gradual changes with higher accuracy than the state of the art and can extrapolate to detect changepoints at novel timescales that have not been seen in training.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Changepoints, when the structure or parameters of a system change, are critical to detect in many domains. In medicine, finance, climate science and other fields, these changes can indicate that important events have occurred (e.g. onset of illness or a financial crisis), or changed in important ways (e.g. increasing illness severity). In both cases, these affect decision-making. Changepoint detection (CPD) aims to find these critical times. However, changes may result in complex patterns across multiple observed variables, and can be hard to recognize, especially in multivariate timeseries where interdependencies exist among variables. Further, not all changepoints lead to a sudden transition, many occur over a duration of time (e.g. weightloss, transition between activities) and are harder to identify.
12
+
13
+ Various methods have been proposed for CPD including parametric methods (Adams & MacKay, 2007; Zhang et al., 2010; Montanez et al., 2015), which make strong assumptions about data distributions, and nonparametric methods (Desobry et al., 2005; Saatc¸i et al., 2010; Li et al., 2015), which are based on engineered divergence metrics or kernel functions. Most parametric methods are highly context specific, and face difficulty when changes result in complex temporal patterns that are hard to model manually. For nonparametic methods, the main drawback is that these methods rely heavily on the choice of parameters or kernels. To handle data from different domains, Chen et al. (2015) proposed a nonparametric CPD method. However, like many other CPD methods, it can only detect abrupt changes. Yet in real-world applications, the effect of a change may be gradual and may happen over different durations. Some methods have been explicitly designed for detecting gradual changepoints (Bardwell & Fearnhead, 2017; Harel et al., 2014), but cannot handle changes occurring at arbitrary timescales. In some applications, like detecting changes in activity, how quickly someone transitions from sitting to standing should not affect accuracy at detecting the transition.
14
+
15
+ In contrast, Deep Neural Networks (DNN) have been used for time series forecasting (Weigend, 2018) and classification (Yang et al., 2015) as they can learn functions automatically. These can be more easily adapted to new tasks if there is sufficient training data. However, DNNs typically need enough examples of all possible ways a pattern can appear, and thus all possible transition speeds, to reliably detect it in test data. Since this data is costly and may be infeasible to collect in some cases, it is ideal to have a scale-invariant approach that can generalize beyond observed timescales.
16
+
17
+ We propose a novel DNN architecture for CPD using supervised learning. Our approach makes two key contributions to neural network architecture: a trainable wavelet layer that transforms input into a pyramid of multiscale feature maps; and Pyramid recurrent neural networks (PRNN), which build a multi-scale Recurrent Neural Network (RNN) on top of a multi-channel Convolutional Neural Network (CNN) processing the wavelet layer. Finally, we use a binary classifier on the PRNN output to detect changepoints. On both simulated and real-world data, we show that the proposed model can encode short-term and long-term temporal patterns and detect from abrupt to extremely gradual changepoints. The model is scale invariant, and can detect changes at any timescale, regardless of those seen in training. We focus on the task of CPD, but this architecture may have more general applications in time series analysis.
18
+
19
+ # 2 RELATED WORK
20
+
21
+ Changepoint detection CPD is a core problem for times-series analysis. One approach is to use a model and find times when observations deviate from what is predicted by the model. Bayesian Online ChangePoint Detection (BOCPD) (Adams & MacKay, 2007) can find changepoints in an online manner, but makes the limiting assumption that the time series between changes has a stationary exponential-family distribution. More generally, Bayesian techniques require full definition of the likelihood function (Malladi et al., 2013; Montanez et al., 2015), which may be difficult to specify. Nonparametric models increase the flexibility, such as in (Saatc¸i et al., 2010) which is an extension of BOCPD to Gaussian Processes. This however, may significantly increase computational complexity. Xuan & Murphy (2007) introduced Gaussian Graphical Models (GGMs) for CPD, extending (Fearnhead, 2006) to handle mutlivariate time series. GGM is offline and models the correlations between multivariate time series using multivariate Gaussian. This method is closest to ours as a result, but makes strong assumptions about the data distribution. Non-Bayesian techniques exist, such as (Yamanishi & Takeuchi, 2002), which uses an autoregressive model for each time series segment, but this model is limiting.
22
+
23
+ To eliminate the need to specify a model, model-free approaches have emerged, such as densityratio estimation methods (Yamada et al., 2013; Kawahara & Sugiyama, 2012; Liu et al., 2013; Kuncheva, 2013; Kuncheva & Faithfull, 2014), kernel methods (Harchaoui et al., 2009; Li et al., 2015), and other techniques that define custom divergence functions like difference of covariance matrix (Cabrieto et al., 2017; Barnett & Onnela, 2016) or carefully engineered statistics (Cavalcante et al., 2016; Ide et al., 2016; Qahtan et al., 2015; Li et al., 2015; Gretton et al., 2007). However, ´ covariance matrix based methods cannot deal with the case when the change point does not cause significant variations in covariance matrix. Statistics based methods such as MMD (Gretton et al., 2007), Hotellig T-square (Chen & Gupta, 2000), CUSUM (Page, 1954), or generalized likelihood ratio (GLR) (James et al., 1992) have their own limitations like relying heavily on the choice of kernels (MMD) or parameters (Hotellig T-square), being highly dependent on prior information (CUSUM), or having high complexity for large sample size (GLR). Thus while such models might work in a specific application, they cannot be readily used in a different domain without re-engineering the divergence or kernel functions.
24
+
25
+ Few methods were explicitly designed to detect gradual changes, though BOCPD has been extended this way by reformulating changes as segments instead of points (Bardwell & Fearnhead, 2017). Alternatively, gradual changes can be formulated as concept drifts (Harel et al., 2014). We do not reformulate the changepoint detection problem, and instead make the model scale-invariant, so it can handle short- and long-term temporal patterns. This results in a model that can generalize to novel time-scales without extra effort.
26
+
27
+ A similar problem is anomaly detection (Jones et al., 2016; Guha et al., 2016). For instance, Gardner et al. (2006) learns a one-class Support Vector Machine (SVM) on normal data, and distinguishes normal from abnormal in new data. However, a changepoint is not always a transition to an abnormal state and may be between two normal states, such as human activities. Our proposed approach is not limited to binary classification, and can be re-purposed by training with a one-class loss that is used for anomaly detection.
28
+
29
+ Deep learning Core challenges for CPD are scaling with more variables and recognizing changes resulting in complex patterns involving many variables. Deep neural networks provide a promising solution for CPD, as they can learn to recognize complex patterns without engineering of features and metrics. CNNs for instance, learn to extract increasingly abstract features from raw data through a stack of non-linear convolutions. This leads to recognition of complex patterns such as hundreds of object types in natural images (Szegedy et al., 2015). RNNs on the other hand, learn complex temporal patterns in sequences of arbitrary length, which is used in applications such as human activity recognition with wearable sensors (Hammerla et al., 2016). These are exactly the type of pattern changes that pose challenges for CPD. On the other hand, a key feature of CNNs is shiftinvariance, meaning the prediction will not change even if a pattern shifts in time or space. Gated variants of RNN such as Long Short-Term Memory (LSTM) networks (Hochreiter & Schmidhuber, 1997) and attention-augmented networks (Ba et al., 2015) can also learn shift-invariance, due to their ability to control which part of data to attend or ignore.
30
+
31
+ Ideally, a CPD method should perform equally well on test data regardless of whether changes happen faster or slower than seen in training data. However, the fixed resolution of CNN and RNN architectures makes them sensitive to scale. CNNs have been extended to model multiple scales simultaneously (Shen et al., 2015), but this is not a scale invariant method, as features are simply concatenated. For RNNs, (Chung et al., 2016) propose a hierarchical architecture to process a sequence through successive RNN layers, at different resolutions. However, layers of RNN there resemble layers of convolution in CNNs (modeling the signal at a different abstraction level) and are not invariant to scale changes at the same abstraction level. Therefore, we propose a new architecture, PRNN, that exploits both CNN and RNN, while augmenting them with scale invariance.
32
+
33
+ Another limitation of CNNs, and to some extent RNNs for CPD, is the difficulty of modeling longterm dependencies. However, this is necessary to recognize gradual changes. Dilated convolutions have recently allowed long-term dependency modeling in CNNs (Yu & Koltun, 2016; Oord et al., 2016). RNNs are naturally built to model long-term dependencies, but suffer from vanishing gradients. Extensions such as LSTMs and Gated Recurrent Units (GRU) (Cho et al., 2014) solve the problem of vanishing gradients, but still have limited memory space. Intuitively, information from an infinitely long sequence cannot be stored in a fixed-dimensional RNN cell. To reduce the computation complexity for conventional RNN, Campos et al. (2017) proposed Skip RNN to skip state updates while preserving the performance of baseline RNN models. Their skipping-state-updates operation has the advantage of avoiding redundant RNN updates. However, this has the risk of skipping temporal dependencies, especially for long term dependencies, which can hurt the overall performance of RNN. To address this, recent work has augmented RNNs with various types of memory or stack (Sukhbaatar et al., 2015; Joulin & Mikolov, 2015), but these methods are not scale-invariant. Our PRNN, models infinitely long sequences with its multi-scale RNN, which forms a stack of memory cells in an arbitrary number of levels. A higher-level RNN cell in a stack has lower resolution, and thus can store longer dependencies at no additional computational cost, while a lower-level RNN cell has a high resolution and prevents the loss of details in the short term. Frameworks like Feature pyramid networks (Lin et al., 2017) and wavelet CNN (Fujieda et al., 2018) has been proposed to deal with images with different scales or resolutions. However, both of them cannot be applied directly on multivariate time series for change point detection as they cannot model the temporal dependencies in multivariate time series.
34
+
35
+ # 3 METHOD
36
+
37
+ We propose a new class of deep learning architectures called Pyramid Recurrent Neural Networks (PRNNs). The model takes a multi-variate time series and transforms it into a pyramid of multi-scale feature maps using a trainable wavelet layer (NWL). All pyramid levels are processed in parallel using multiple streams of CNN with shared weights, yielding a pyramid of more abstract feature maps. Next, we build a multi-scale RNN on top of the pyramid feature map, to encode longer-term, dependencies. The PRNN output is used to detect changes at each time step with a binary classifier.
38
+
39
+ # 3.1 NEURAL WAVELET LAYER
40
+
41
+ CNNs can learn to recognize complex patterns in multivariate time series, partly due to parametersharing across time (via the convolution operation), which leads to shift-invariance. However, CNNs are not scale-invariant, so a learned pattern cannot necessarily be recognized when it appears more gradually or more quickly. To augment CNNs with scale invariance, we introduce Deep Wavelet Neural Networks (DWNN), which consist of a proposed Neural Wavelet Layer followed by parallel streams of CNN.
42
+
43
+ ![](images/ec4d2c493e2aec3b5bec00cc0fac99b16d8120f1610d56a496c49fd0b23d9ab6.jpg)
44
+ Figure 1: An illustration of (a) a convolutional layer; (b) the Neural Wavelet Layer. Only one feature map of each output has been shown.
45
+
46
+ The Neural Wavelet Layer (NWL) can be seen as a set of multi-scale convolutions with trainable kernels, which are applied in parallel on each variable of the input time series. The input to the NWL is a multivariate time series, $X \in \mathbb { R } ^ { T \times c }$ , where $T$ is the number of timepoints and $c$ is the number of variables. The NWL takes $X$ and produces multiple feature maps, which together form a pyramid of convolution responses. That is:
47
+
48
+ $$
49
+ f _ { N W L } ( X ) = ( H _ { 1 } , H _ { 2 } , . . . , H _ { k } ) : H _ { i } \in \mathbb { R } ^ { T / 2 ^ { i - 1 } \times c } .
50
+ $$
51
+
52
+ An example is shown in Figure 1. Specifically, the NWL uses the filter bank technique $\gimel$ for discrete wavelet transform. Given a pair of separating convolutional kernels (typically a low-pass and a highpass kernel), it convolves the signal with both, outputs the high-pass response, and down-samples the low-pass response for the next iteration. It repeats this process and in each iteration outputs an upper level of the output pyramid. Although traditional wavelets such as Haar or Gabor ? can be used, we have experimentally found that initializing the filter banks with random numbers and training them using backpropagation with the rest of the network leads to higher accuracy.
53
+
54
+ More formally, the NWL is characterized by its trainable kernels $K _ { l } ^ { ( v ) } , K _ { h } ^ { ( v ) } \in \mathbb { R } ^ { \tau \times c }$ for all variables $v \in \{ 1 . . . c \}$ , where $\tau$ is the kernel size. Given each channel of $X$ as input (e.g. ), the NWL iteratively computes lowpass and highpass responses, starting with $L _ { 1 } ^ { ( v ) }$ and $H _ { 1 } ^ { ( v ) }$ , that are:
55
+
56
+ $$
57
+ \begin{array} { r } { L _ { 1 } ^ { ( v ) } = \omega ( \boldsymbol { X } ^ { ( v ) } * \boldsymbol { K } _ { l } ^ { ( v ) } ) \quad , \quad \boldsymbol { H } _ { 1 } ^ { ( v ) } = \omega ( \boldsymbol { X } ^ { ( v ) } * \boldsymbol { K } _ { h } ^ { ( v ) } ) , } \end{array}
58
+ $$
59
+
60
+ where is convolution and is a downsampling operation (e.g. implemented by linear interpolation). At the $i$ -th iteration of the wavelet transform, given $L _ { i - 1 } ^ { ( v ) }$ and $H _ { i - 1 } ^ { ( v ) }$ , it computes $L _ { i } ^ { ( v ) }$ and $H _ { i } ^ { ( v ) }$ such that:
61
+
62
+ $$
63
+ \begin{array} { r } { L _ { i } ^ { ( v ) } = \omega ( L _ { i - 1 } ^ { ( v ) } * K _ { l } ^ { ( v ) } ) \quad , \quad U _ { i } ^ { ( v ) } = \omega ( L _ { i - 1 } ^ { ( v ) } * K _ { h } ^ { ( v ) } ) . } \end{array}
64
+ $$
65
+
66
+ This operation is repeated for a pre-specified number of times, $k$ , or until the length of $L _ { i } ^ { ( v ) }$ and $H _ { i } ^ { ( v ) }$ becomes smaller than a threshold. The hyperparameter, $k$ , can be selected using cross-validation. A larger $k$ (or smaller threshold) results in a larger receptive field at the highest level of the pyramid, enabling the detection of more gradual patterns. However, a large $k$ also brings more computation and also requires a larger buffer in the case of online processing.
67
+
68
+ The output of each iteration $i \in \{ 1 . . . k \}$ for variables $v \in \{ 1 . . . c \}$ can be concatenated to form
69
+
70
+ $$
71
+ L _ { i } = [ L _ { i } ^ { ( 1 ) } | L _ { i } ^ { ( 2 ) } | . . . | L _ { i } ^ { ( c ) } ] \quad , \quad H _ { i } = [ H _ { i } ^ { ( 1 ) } | H _ { i } ^ { ( 2 ) } | . . . | H _ { i } ^ { ( c ) } ] ,
72
+ $$
73
+
74
+ where $[ . | . ]$ indicates concatenation. The output of the NWL is the stack of all $H _ { i }$ . These are called different levels of a pyramid throughout this paper. In the original filter bank method the last lowpass response, $L _ { k }$ , is also stacked with the output but we did not observe an improvement with $L _ { k }$ .
75
+
76
+ The key advantage of a NWL over a conventional convolution layer is that a single wavelet can encode the input with multiple granularities at once, whereas a single convolution only encodes a single granularity. Although different layers of a CNN have different granularities, they encode the data at a different level of abstraction, and thus cannot simultaneously extract the same pattern at different scales. On the other hand, a single wavelet layer can encode changes with the same patterns at different paces, simultaneously into the same feature map, at different levels of the pyramid.
77
+
78
+ ![](images/ee33c52e0e5a345e052c9e0a9abbded980f375801c67de99897774cbac9082f2.jpg)
79
+ Figure 2: An illustration of the proposed Pyramid Recurrent Layer, with downsampling ratio of 2.
80
+
81
+ We will use the proposed NWL as a part of a larger, deeper architecture, which is described in the rest of this section. Hence, an important aspect of NWL is that it can be used as a layer of a deep network, in composition with other neural layer types such as convolutional and fully connected layers. For example, the input to a wavelet layer can be the output of a convolutional layer. Alternatively, to stack a convolutional layer on the output of a wavelet layer, one should apply the convolution on each level of the wavelet pyramid, resulting in a pyramid-shaped output.
82
+
83
+ Accordingly, a network composed of one wavelet layer and an arbitrary number of other layers, can take a multi-variate time series as input, and produce a pyramid-shaped response as output. We refer to such a network architecture as a Deep Wavelet Neural Network (DWNN). In this paper we use a specific form of DWNN, which starts with a NWL, directly applied on the input time series $X$ , followed by parallel streams of CNN with shared parameters, each of which takes one level of the NWL pyramid. More specifically, we use an $\ell$ -layer CNN with a down-sampling stride of $p _ { j }$ at the $j$ -th layer, which results in a total down-sampling factor of $\begin{array} { r } { P = \prod _ { j = 1 } ^ { \ell } p _ { j } } \end{array}$ , and with $f _ { j }$ feature maps at the $j$ -th layer. We apply that CNN in parallel on each level of the output pyramid of the NWL, which means for each $i \in \{ 1 . . . k \}$ , it gets $\bar { \boldsymbol { H } } _ { i } \in \mathbb { R } ^ { T / 2 ^ { i - 1 } \times c }$ and outputs $\bar { C _ { i } } \in \bar { \mathbb { R } } ^ { \bar { T } / 2 ^ { i - 1 } / P \times f _ { \ell } }$ .
84
+
85
+ # 3.2 PYRAMID RECURRENT LAYER
86
+
87
+ The output of the DWNN is a multi-scale pyramid of sequential feature maps that encode short-term temporal patterns at different times and scales. It is common to process sequential features using an RNN, to encode longer-term temporal patterns. However, conventional RNNs process a single sequence, not a multi-scale pyramid of sequences. Similar to the need for a wavelet layer, RNNs are not scale-invariant, meaning if an RNN can recognize a pattern, it does not necessarily imply it can recognize a temporally shortened or stretched instance of the same pattern without having seen this scale in the training data. Further, RNNs fail to learn very gradual patterns, due to limited memory. While this can be addressed by memory-augmented networks, they remain sensitive to scale.
88
+
89
+ To address these issues, we introduce a novel hierarchically connected variant of RNNs. Our proposed network, PRNN, scans the multi-scale output of a DWNN, and simultaneously encodes temporal patterns at different scales. An RNN is applied in parallel on different levels of the input pyramid. On each level at each step, it takes as input the corresponding entry from the input pyramid, along with the most recent output of the RNN operating at the upper level. We concatenate those two vectors and feed as input to the RNN. We refer to this technique as Pyramid Recurrent Layer (PRL).
90
+
91
+ Denoting the value at level $i$ of the input pyramid at time $t$ as $C _ { i } [ t ]$ , and assuming the downsampling ratio in wavelet transform is $d$ , (i.e., each level of the pyramid has $d$ -times the length of its upper level) we can write the recurrent state at level $i$ and time $t$ as:
92
+
93
+ $$
94
+ h _ { i } [ t ] = \sigma ( W _ { 1 } C _ { i } [ t ] + W _ { 2 } h _ { i } [ t - 1 ] + W _ { 3 } h _ { i + 1 } [ \lfloor t / d \rfloor ] + b ) ,
95
+ $$
96
+
97
+ where $\sigma$ is a nonlinear activation function such as ReLU, and $W _ { 1 } , W _ { 2 } , W _ { 3 }$ and $b$ are trainable parameters of this layer. These parameters define a linear transformation of the current state, past state, and higher-level state, as illustrated in Figure 2. Note that the proposed hierarchical structure is agnostic of the function of each cell. Although we used a simple RNN cell for illustration, we could use any variant of RNNs such as a Long Short-Term Memory (LSTM) (Hochreiter & Schmidhuber, 1997) or Skip RNN (Campos et al., 2017) as our RNN cell.
98
+
99
+ The proposed architecture can be compared with an RNN operating on a single data sequence. If the data granularity is high, the RNN likely fails to model long-term dependencies, due to the wellknown problem of vanishing gradients. One can lower the data granularity, so long-term patterns can be summarized in fewer steps, but this results in the loss of details. Accordingly, conventional RNNs were not designed to effectively detect both abrupt and gradual patterns at the same time.
100
+
101
+ On the other hand, in the proposed PRL, each RNN unit is provided with inputs from the same level of granularity as well as the level above. The RNN that operates at the lowest level, in turn, receives information from all levels of granularity. Figure 2 illustrates the effect of forgetting using decreasing color saturation. While it is impossible to keep track of the past through the lower level alone, the information path from upper levels connect the past to present in only three steps. This lets the PRL model long-term patterns, while it can still model details through the lower levels.
102
+
103
+ # 3.3 PYRAMID RECURRENT NEURAL NETWORKS
104
+
105
+ We propose PRNN as a composition of a DWNN and a PRL. An input time series of arbitrary length is transformed through a DWNN into a pyramid-shaped representation, which is then fed into a PRL. For CPD and other classification problems, a logistic regression layer is built on the output of the RNN cells that operate at the lowest level of the pyramid. This layer produces detection scores at each time step with the highest possible granularity. Specifically, the detection score for time $t$ is:
106
+
107
+ $$
108
+ y _ { t } = \sigma ( W _ { o } h _ { 1 } [ t ] + b _ { o } ) ,
109
+ $$
110
+
111
+ where $\sigma$ is the sigmoid function and $W _ { o }$ and $b _ { o }$ are trainable parameters. The classification loss at each time is the cross entropy loss written as:
112
+
113
+ $$
114
+ E _ { t } = y _ { t } ^ { * } \log y _ { t } + ( 1 - y _ { t } ^ { * } ) \log { ( 1 - y _ { t } ) } ,
115
+ $$
116
+
117
+ where $\boldsymbol { y } _ { t } ^ { * }$ is the ground truth at time $t$ . We optimize this loss using stochastic gradient descent on parameters of the classifier $W _ { o }$ and $b _ { o }$ ), PRL $W _ { 1 }$ , $W _ { 2 }$ , $W _ { 3 }$ and $b$ ), and NWL $K _ { l }$ and $K _ { h }$ ).
118
+
119
+ # 4 EVALUATION
120
+
121
+ We compare the proposed PRNN to conventional deep learning baselines. Using both simulated and real-world datasets, we show that PRNNs can detect abrupt and gradual changes more accurately than baseline approaches and can be used for activity recognition by learning labels for different changes.
122
+
123
+ # 4.1 DATASETS
124
+
125
+ Synthetic dataset We create a synthetic dataset to evaluate accuracy at simultaneously detecting gradual and abrupt changes. We construct 2000 time series each with 12 variables and 8192 time steps (a power of two chosen to avoid rounding errors in downsampling). Each time series is a combination of a Brownian process and white noise and has 4 changepoints at randomly chosen times. A change is a shift in the mean of 4 randomly chosen dimensions, with randomly chosen speed (duration of change) and amount of shift. A speed of 0 gives an abrupt change, while longer ones provide more challenging cases to recognize. An example of the simulated time series together with ground truth and detection results are shown in Figure 3. We randomly split the data in half, 1000 for training and 1000 for testing. To demonstrate robustness of the proposed method against variability in scale, we also do a split by scale, where all changes in one half are strictly more gradual than all in the other half.
126
+
127
+ Opportunity dataset For real-world evaluation, we first use the OPPORTUNITY activity recognition dataset (Chavarriaga et al., 2013), which consists of on-body sensor recordings from 4 participants performing activities of daily living, such as cleaning a table. Each participant has 6 records (runs) of around $2 0 \mathrm { { m i n } }$ each. Values of 72 sensors from 10 modalities were recorded at $3 0 \mathrm { H z }$ , and manually labeled with 18 activity types. Following (Hammerla et al., 2016), we ignore variables with missing values, which leads to 79 variables for each record. We use run 2 of subject 1 for validation and runs 4 and 5 of subjects 2 and 3 for test, and the rest for training. To repurpose this activity recognition dataset for CPD, we consider the transition between two activities as a change. This transition can take place at various durations, which makes the task challenging. As ground truth, we use the temporal annotation provided with the OPPORTUNITY dataset to determine moments that the activity type changes. Fig. 6 shows a sample of this dataset with ground truth and detection results.
128
+
129
+ ![](images/eb8c258fb61f883d4120b39334499caebe63e2aeb14df13b433ec0c197a3d12b.jpg)
130
+ Figure 3: Detected changes in 3 of 12 dimensions of the synthetic dataset.
131
+
132
+ Bee Waggle Dance dataset We also test our methods on the Bee Waggle Dance data (Oh et al., 2008). Honey bees perform waggle dance to communicate with other bees about the orientation and distance to the food sources. The Bee Waggle Dance data includes six videos of bee waggle dances with 30 frames per second. The data include 3 variables encoding the honey bee’s position and head angle at each frame. Using the position and angle information, each frame is labeled with activity of “turn left”, “turn right”, or “waggle dance.” Similar to the OPPORTUNITY dataset, we consider the transition between two activities of the honey bee as a change point. We test our method and other baselines on “sequence 1” of the bee data. We train on the first 256 frames (a power of 2 chosen to avoid rounding errors) and test on the other 768 frames. We use small size of training data to see how the proposed method behaves and for consistency with other prior works (Saatc¸i et al., 2010).
133
+
134
+ # 4.2 BASELINES
135
+
136
+ We compare the proposed architecture to the following unsupervised CPD method and supervised deep-learning baselines:
137
+
138
+ GGM Xuan & Murphy (2007) is related to BOCPD (Adams & MacKay, 2007), a classic method for CPD, but was selected to provide fairer comparison against our approach as it is offline and incorporates multivariate time series.
139
+
140
+ CNN We use a CNN that takes a time series as input and predicts a sequence of detection scores for changes. Due to the widely used max-pooling layers, the output has a lower temporal granularity compared to the input. We denote the ratio of output length to the input length as $\gamma$ .
141
+
142
+ RCN We apply an RNN to the output of the CNN. The output has the same granularity as CNN, while each step of the output has a larger receptive field that encodes all the past data.
143
+
144
+ DWNN We use the proposed DWNN, which is formed by applying an NWL to the input time series and feeding the output pyramid levels to parallel branches of a CNN. The output of CNN branches are upsampled to have the same size and fused by arithmetic mean.
145
+
146
+ PRNN We apply the complete proposed method which consists of a DWNN followed by a Pyramid Recurrent Layer to fuse levels of the pyramid.
147
+
148
+ PRNN-S As a final baseline, we replace the conventional RNN cell in our PRNN method with a Skip RNN (Campos et al., 2017) which was found to have lower time complexity. This enables us to test whether an efficient RNN can preserve the performance of PRNN.
149
+
150
+ # 4.3 IMPLEMENTATION DETAILS
151
+
152
+ All of the deep-learning baselines share a core CNN architecture on which the additional modules are built. We fix the architecture of the core CNN to be $[ 9 : 1 2 8 : 4 ] , [ 5 : 1 2 8 : 2 ] , [ 5 : 1 2 8 : 2 ]$ , where we use the notation $x : y : z$ for a convolution layer where $x$ is the kernel size, $y$ is the number of output feature maps, and $z$ is the pooling stride. Each convolution layer is followed by max-pooling and ReLU activation. The output of all baselines are fed to a fully connected perceptron with sigmoid activation which results in binary detection scores at each time step. The granularity ratio $\gamma$ for this architecture is $1 / 1 6$ . For DWNN, PRNN, and PRNN-S, we used a 7-level wavelet with kernel size 3 for both synthetic and OPPORTUNITY dataset. For Bee Waggle Dance data, due to the small size of the data and the more abrupt activities (compared with synthetic and OPPORTUNITY dataset) of honey bee, we used a 5-level wavelet with kernel size 3. For all datasets RCN and PRNN used an LSTM cell with 256 hidden units.
153
+
154
+ ![](images/354fa77d6c3f1cdf3253e65b5ca785277678384229de3b8253095c6d84364a81.jpg)
155
+ Figure 4: AUC (Area Under the ROC Curve) results for the synthetic dataset with three different test/train scenarios. $\eta$ is the tolerance for how close in time a detected change must be to a true change to be considered a positive. See Appendix A for AUC score tables.
156
+
157
+ We train all models using Adam (Kingma & Ba, 2014) with early stopping to avoid overfitting. At test time, the models take a time series and predict a sequence of detection scores. To detect changepoints, we apply non-maximum suppression with a sliding window of length $\omega$ and filter the maximum values with a threshold. We evaluate AUC by iterating over this threshold. Hyperparameter $\omega$ controls how nearby two distinct changes can be detected and is tuned for each method separately using cross-validation.
158
+
159
+ The real world datasets (Bee data and OPPORTUNITY data) are more challenging than the synthetic data, as they include diverse changepoints formed by transitions between many activity types. To address this, we use multitask learning, training the model to both detect changes and classify activity by changing the output dimension of the last fully connected later to have multiple units (19 for OPPORTUNITY data, and 4 for Bee data). For OPPORTUNITY data, the first 18 units predict a log probability for each activity and the last 1 unit outputs the probability of a change point (for bee data, it’s 3 units and 1 unit). We define a softmax cross-entropy loss on those 18 units and add it as a regularization term to the objective function. Multitask learning improved the results equally for all baselines, because the model has auxiliary information, namely the activity type and not just the existence of a change.
160
+
161
+ For GGM, we use the full covariance model instead of the independent features model to capture the correlations between features. We use a uniform prior as in (Xuan & Murphy, 2007), and set the pruning threshold to $1 0 ^ { - 2 0 }$ . Since there is no training for GGM, we evaluate the algorithm using the same test data as all other methods we compared on both synthetic and real world dataset.
162
+
163
+ We evaluate precision and recall, and report AUC. As detected changepoints may not exactly match the true changepoints, we use a tolerance parameter $\eta$ that sets how close a detected change must be to a true change to be considered a correct detection. We match detected changepoints to the closest true changepoint within $\eta$ time steps. Precision is the number of matched detections divided by the number of all detections, and recall is the number of matches divided by the number of true changes.
164
+
165
+ # 4.4 RESULTS
166
+
167
+ # 4.4.1 SYNTHETIC DATA
168
+
169
+ For the synthetic dataset, three different train/test splits were used to demonstrate extrapolation from gradual to abrupt changes and vice versa. Fig. 4c shows the results for a random split (mixing scales), while Fig. 4a and 4b use the scale-variant split introduced in section 4.1. In the scale-variant split, the model needs to extrapolate patterns learned from training data to scales that have not been observed. This is extremely challenging for a model that is not scale-invariant. This is apparent in Fig. 4a where both CNN and RCN show worse results in parts compared to their own performance in Fig. 4c. From experiment of Fig. 4c to Fig. 4a, AUC of CNN (RCN) decreased from $41 \%$ $( 3 9 \% )$ to $15 \%$ $( 1 1 \% )$ when the tolerance is 64 steps $( 2 ^ { 6 } )$ . This is because the methods are not designed to be specifically robust against scale variability. In the transition from 4c to 4a, DWNN, PRNN, and PRNN-S like other methods inevitably suffer from a performance drop, which is due to the increase in task difficulty. However, the amount of this drop is substantially lower for DWNN, due to the wavelet layer and shared parameters across scales. At a tolerance of 64 steps, for instance, the performance drop for DWNN is $20 \%$ , which is lower than PRNN-S $( 2 2 \% )$ and CNN $( 2 6 \% )$ . Again DWNN and CNN respectively work better than PRNN and RCN in this setting, which is consistent with the overall results (See Appendix A for AUC details).
170
+
171
+ ![](images/f370684f1ec28911c5b1b81449b8457c46f4a03808a0a60e75e91edb3ae9dfc9.jpg)
172
+ Figure 5: AUC (Area Under the ROC Curve) results for Opportunity and Bee Waggle Dance data. $\eta$ is the tolerance with a unit of 1/30 seconds for both dataset. See Appendix B for AUC score tables.
173
+
174
+ While recognizing abrupt changes from gradual training ones (Fig. 4b) is easier than recognizing a mix of scales, CNN and RCN perform worse than our approach due to their inability to generalize in scale. In Fig. 4b, when tolerance is 64 steps, AUC for CNN and RCN are $66 \%$ and $30 \%$ , which are lower than both PRNN $(72 \% )$ and DWNN $(7 9 \% )$ . In contrast, DWNN, PRNN-S, and PRNN have higher AUC than their own performance in the mixed experiment (Fig. 4c). The performance of PRNN at different tolerances is $20 \%$ higher on average in the mixed experiments than the experiment of “train abrupt, test gradual” (Fig. 4a). In the train on gradual and test on abrupt experiment (4b), DWNN performs even better than PRNN and PRNN-S in all tolerances, and similarly, CNN outperforms RCN. This shows recurrent architectures are generally less effective for this kind of extreme generalization. The high performance of DWNN 4b also shows the effectiveness of the added wavelet layer in modeling both gradual and abrupt changes in time series. However, in realworld cases we are more likely to have a mix of scales in both training and test, and it is in this case (fig. 4c) that PRNN is most accurate. As shown in the AUC plots, it is in general more difficult to recognize gradual changes. It is possible to adapt our work to detect segments rather than specific points (e.g. as in (Bardwell & Fearnhead, 2017)), if instead of applying a non-maximum suppression on the output score map of change, we perform binary segmentation to detect intervals with continuously high detection score.
175
+
176
+ Figure 3 shows example results for our scale invariant PRNN and scale sensitive CNN. Overall CNN has a higher false positive rate, while also missing one of the changes. While detected changes and ground truth are not always precisely aligned, the small gaps are acceptable in the case of gradual changes, where it can be hard to define a single moment when the change occurs.
177
+
178
+ # 4.4.2 OPPORTUNITY DATA
179
+
180
+ Figure 6 shows results and AUC plots for the OPPORTUNITY dataset. In the time series, we see that CNN has a missed detection and at least one false positive around time 300, while PRNN detects all changes close to their actual times. In fig 5a, we see that PRNN outperforms other methods at all tolerance levels. In contrast to the synthetic data, PRNN-S has significantly lower AUC than both PRNN and DWNN for every tolerance. It may be that Skip RNN is skipping important information encoded in our wavelet later. Finally, the performance of GGM is lowest for all cases. This is not surprising, as it is an unsupervised method, and does not learn from previously observed patterns. When the tolerance is 64 (around 2 seconds, $\eta = 2 ^ { 6 } = 6 4 ,$ ), a reasonable value for practical activity recognition use, PRNN achieves $81 \%$ AUC while DWNN, RCN, CNN, and PRNN-S respectively achieve $7 5 \%$ , $74 \%$ , $69 \%$ , $47 \%$ . Full results can be seen in Appendix B.1.
181
+
182
+ ![](images/b4d53d49eca2de36109c46114d1ee1cce14dabcdfc5f2a7b1676fed42f914775.jpg)
183
+ Figure 6: Detected changes on sample (3 of 79 dimensions shown) of Opportunity dataset.
184
+
185
+ The five deep learning methods, PRNN, PRNN-S, RCN, DWNN, and CNN, respectively took 110, 105, 80, 24, and 6 minutes to train and converge on the OPPORTUNITY dataset. Recurrent methods generally take longer due to backpropagation through time. However, this only happens during training, and does not affect test complexity. One can compare PRNN to RCN, and DWNN to CNN, and observe an increase in time complexity. This is due to repeating computations on multiple levels of a pyramid. This however, only multiplies the time complexity by a constant factor, since the length of pyramid levels exponentially vanish. Note that DWNN has a superior performance to RCN in most cases, while also being faster to train.
186
+
187
+ # 4.4.3 BEE WAGGLE DANCE DATA
188
+
189
+ Figure 5b shows AUC plots for all methods we tested on Bee Waggle Dance dataset. Our PRNN method outperforms other methods when the value of $\eta$ is no less than 5 (around 1 second) with AUC of $93 \%$ . Similar to the result on OPPORTUNITY dataset, GGM has the lowest AUC for all tolerances. When the tolerance is 64 (around 2 seconds, $\eta \ : = \ : 2 ^ { 6 } = 6 4 )$ , PRNN achieves $93 \%$ AUC while PRNN-S, RCN, and CNN respectively achieve $64 \%$ , $84 \%$ , $78 \%$ (see Appendix B.2 for AUC details). Similar to OPPORTUNITY dataset, the drop of AUC for PRNN-S is caused by the skipping of states updates. However, compared with the OPPORTUNITY data where PRNN-S has maximum AUC of $51 \%$ , PRNN-S for Bee Waggle Dance data has higher maximum AUC of $64 \%$ . This is because the changes in honey bee activities are more abrupt than human activities, so the skipped updates have lower impact on the detection performance. From the AUC plots, a change in tolerance affects our PRNN much less compared to other methods. For instance, when the tolerance is lowered from 32 $\eta = 2 ^ { 5 } = 3 2$ ) to 16 $( \eta ^ { \star } = 2 ^ { 4 } = 1 6 )$ ), the AUC of RCN drops significantly (from $84 \%$ to $1 8 \%$ ), while AUC of PRNN drops much less (from $93 \%$ to $61 \%$ ). CNN has a dramatic drop in accuracy from $\eta = 4$ to $\eta = 3$ , suggesting it is consistently detecting changes with a delay. Thus, PRNN is less sensitive to this parameter and more reliable for real world cases.
190
+
191
+ # 5 CONCLUSION
192
+
193
+ We propose a new class of DNNs that are scale-invariant, and show they can detect from abrupt to gradual changepoints in multimodality time series. The core is 1) augmenting CNNs with trainable Wavelet layers to recognize short-term multi-scale patterns; and 2) building a pyramid-shaped RNN on top of the multi-scale feature maps to simultaneously model long-term patterns and fuse multiscale information. The final model can detect events involving short- and long-term patterns at various scales, which is a difficult task for conventional DNNs. Although this reduces the amount of training data required to learn from changes, the proposed method still requires clean labels. Experiments show our approach detects changes quickly, with lower sensitivity to the tolerance parameter than other approaches. For real-world applications, this leads to much higher reliability. In future work we will real-world challenges (e.g. noisy data, missing/noisy labels) by incorporating robustness, semi-supervised learning methods, and multi-view learning techniques.
194
+
195
+ # REFERENCES
196
+
197
+ Ryan Prescott Adams and David JC MacKay. Bayesian Online Changepoint Detection. arXiv preprint arXiv:0710.3742, 2007.
198
+
199
+ Jimmy Ba, Ruslan R Salakhutdinov, Roger B Grosse, and Brendan J Frey. Learning Wake-Sleep Recurrent Attention Models. In NIPS, pp. 2593–2601, 2015.
200
+
201
+ Lawrence Bardwell and Paul Fearnhead. Bayesian Detection of Abnormal Segments in Multiple Time Series. Bayesian Analysis, (1):193–218, 2017.
202
+
203
+ Ian Barnett and Jukka-Pekka Onnela. Change Point Detection in Correlation Networks. Scientific reports, 6:18893, 2016.
204
+
205
+ Jedelyn Cabrieto, Francis Tuerlinckx, Peter Kuppens, Mariel Grassmann, and Eva Ceulemans. Detecting Correlation Changes in Multivariate Time Series: A Comparison of Four Non-parametric Change Point Detection Methods. Behavior research methods, 49(3):988–1005, 2017.
206
+
207
+ V´ıctor Campos, Brendan Jou, Xavier Giro-i Nieto, Jordi Torres, and Shih-Fu Chang. Skip RNN: ´ Learning to Skip State Updates in Recurrent Neural Networks. arXiv preprint arXiv:1708.06834, 2017.
208
+
209
+ Rodolfo C Cavalcante, Leandro L Minku, and Adriano LI Oliveira. FEDD: Feature Extraction for Explicit Concept Drift Detection in Time Series. In IJCNN, pp. 740–747. IEEE, 2016.
210
+
211
+ Ricardo Chavarriaga, Hesam Sagha, Alberto Calatroni, Sundara Tejaswi Digumarti, Gerhard Troster, Jos ¨ e del R Mill ´ an, and Daniel Roggen. The Opportunity Challenge: A Benchmark ´ Database for On-body Sensor-based Activity Recognition. Pattern Recognition Letters, 34(15): 2033–2042, 2013.
212
+
213
+ Hao Chen, Nancy Zhang, et al. Graph-based change-point detection. The Annals of Statistics, 43 (1):139–176, 2015.
214
+
215
+ Jie Chen and AK Gupta. Parametric Statistical Change Point Analysis. Springer, 2000.
216
+
217
+ Kyunghyun Cho, B van Merrienboer, Dzmitry Bahdanau, and Yoshua Bengio. On the Properties of Neural Machine Translation: Encoder-decoder Approaches. In Eighth Workshop on Syntax, Semantics and Structure in Statistical Translation (SSST-8), 2014.
218
+
219
+ Junyoung Chung, Sungjin Ahn, and Yoshua Bengio. Hierarchical Multiscale Recurrent Neural Networks. arXiv preprint arXiv:1609.01704, 2016.
220
+
221
+ Fred´ eric Desobry, Manuel Davy, and Christian Doncarli. An Online Kernel Change Detection Al-´ gorithm. IEEE Transactions on Signal Processing, 53(8):2961–2974, 2005.
222
+
223
+ Paul Fearnhead. Exact and Efficient Bayesian Inference for Multiple Changepoint Problems. Statistics and computing, 16(2), 2006.
224
+
225
+ Shin Fujieda, Kohei Takayama, and Toshiya Hachisuka. Wavelet Convolutional Neural Networks. arXiv preprint arXiv:1805.08620, 2018.
226
+
227
+ Andrew B Gardner, Abba M Krieger, George Vachtsevanos, and Brian Litt. One-class Novelty Detection for Seizure Analysis from Intracranial EEG. JMLR, 7(Jun):1025–1044, 2006.
228
+
229
+ Arthur Gretton, Karsten M Borgwardt, Malte Rasch, Bernhard Scholkopf, and Alex J Smola. A ¨ kernel method for the two-sample-problem. In NIPS, pp. 513–520, 2007.
230
+
231
+ Sudipto Guha, Nina Mishra, Gourav Roy, and Okke Schrijvers. Robust Random Cut Forest Based Anomaly Detection on Streams. In ICML, pp. 2712–2721, 2016.
232
+
233
+ Nils Y. Hammerla, Shane Halloran, and Thomas Plotz. Deep, Convolutional, and Recurrent Models ¨ for Human Activity Recognition Using Wearables. In IJCAI, pp. 1533–1540, 2016.
234
+
235
+ Zaid Harchaoui, Eric Moulines, and Francis R Bach. Kernel change-point analysis. In NIPS, pp. 609–616, 2009.
236
+
237
+ Maayan Harel, Shie Mannor, Ran El-Yaniv, and Koby Crammer. Concept Drift Detection through Resampling. In ICML, pp. 1009–1017, 2014.
238
+
239
+ Sepp Hochreiter and Jurgen Schmidhuber. Long Short-term Memory. ¨ Neural computation, 9(8): 1735–1780, 1997.
240
+
241
+ Tsuyoshi Ide, Dzung T Phan, and Jayant Kalagnanam. Change Detection Using Directional Statis- ´ tics. In IJCAI, pp. 1613–1619, 2016.
242
+
243
+ Barry James, Kang Ling James, and David Siegmund. Asymptotic Approximations for Likelihood Ratio Tests and Confidence Regions for a Change-point in the Mean of a Multivariate Normal Distribution. Statistica Sinica, pp. 69–90, 1992.
244
+
245
+ Michael Jones, Daniel Nikovski, Makoto Imamura, and Takahisa Hirata. Exemplar learning for extremely efficient anomaly detection in real-valued time series. Data Mining and Knowledge Discovery, 30(6):1427–1454, 2016.
246
+
247
+ Armand Joulin and Tomas Mikolov. Inferring Algorithmic Patterns with Stack-augmented Recurrent Nets. In NIPS, pp. 190–198, 2015.
248
+
249
+ Yoshinobu Kawahara and Masashi Sugiyama. Sequential Change-point Detection based on Direct Density-ratio Estimation. Statistical Analysis and Data Mining: The ASA Data Science Journal, 5(2):114–127, 2012.
250
+
251
+ Diederik P Kingma and Jimmy Ba. Adam: A Method for Stochastic Optimization. arXiv preprint arXiv:1412.6980, 2014.
252
+
253
+ Ludmila I Kuncheva. Change Detection in Streaming Multivariate Data using Likelihood Detectors. IEEE Transactions on Knowledge and Data Engineering, 25(5):1175–1180, 2013.
254
+
255
+ Ludmila I Kuncheva and William J Faithfull. PCA Feature Extraction for Change Detection in Multidimensional Unlabeled Data. IEEE transactions on neural networks and learning systems, 25(1):69–80, 2014.
256
+
257
+ Shuang Li, Yao Xie, Hanjun Dai, and Le Song. M-statistic for Kernel Change-point Detection. In NIPS, pp. 3366–3374, 2015.
258
+
259
+ Tsung-Yi Lin, Piotr Dollar, Ross B Girshick, Kaiming He, Bharath Hariharan, and Serge J. Belongie. ´ Feature Pyramid Networks for Object Detection. In CVPR, volume 1, 2017.
260
+
261
+ Song Liu, Makoto Yamada, Nigel Collier, and Masashi Sugiyama. Change-point Detection in Timeseries Data by Relative Density-ratio Estimation. Neural Networks, 43:72–83, 2013.
262
+
263
+ Rakesh Malladi, Giridhar P Kalamangalam, and Behnaam Aazhang. Online Bayesian Change Point Detection Algorithms for Segmentation of Epileptic Activity. In Signals, Systems and Computers, pp. 1833–1837. IEEE, 2013.
264
+
265
+ George D Montanez, Saeed Amizadeh, and Nikolay Laptev. Inertial Hidden Markov Models: Modeling Change in Multivariate Time Series. In AAAI, pp. 1819–1825, 2015.
266
+
267
+ Sang Min Oh, James M Rehg, Tucker Balch, and Frank Dellaert. Learning and Inferring Motion Patterns using Parametric Segmental Switching Linear Dynamic Systems. IJCV, 77(1-3):103– 124, 2008.
268
+
269
+ Aaron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalchbrenner, Andrew Senior, and Koray Kavukcuoglu. Wavenet: A Generative Model for Raw Audio. arXiv preprint arXiv:1609.03499, 2016.
270
+
271
+ Ewan S Page. Continuous inspection schemes. Biometrika, 41(1/2):100–115, 1954.
272
+
273
+ Abdulhakim A Qahtan, Basma Alharbi, Suojin Wang, and Xiangliang Zhang. A Pca-based Change Detection Framework for Multidimensional Data Streams: Change Detection in Multidimensional Data Streams. In SIGKDD, pp. 935–944. ACM, 2015.
274
+
275
+ Yunus Saatc¸i, Ryan D Turner, and Carl E Rasmussen. Gaussian Process Change Point Models. In ICML, pp. 927–934. Citeseer, 2010.
276
+ Wei Shen, Mu Zhou, Feng Yang, Caiyun Yang, and Jie Tian. Multi-scale Convolutional Neural Networks for Lung Nodule Classification. In International Conference on Information Processing in Medical Imaging, pp. 588–599. Springer, 2015.
277
+ Sainbayar Sukhbaatar, Jason Weston, Rob Fergus, et al. End-to-end Memory Networks. In NIPS, pp. 2440–2448, 2015.
278
+ Christian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, Andrew Rabinovich, et al. Going Deeper with Convolutions. CVPR, 2015.
279
+ Andreas S Weigend. Time Series Prediction: Forecasting the Future and Understanding the Past. Routledge, 2018.
280
+ Xiang Xuan and Kevin Murphy. Modeling Changing Dependency Structure in Multivariate Time Series. In ICML, pp. 1055–1062, 2007.
281
+ Makoto Yamada, Akisato Kimura, Futoshi Naya, and Hiroshi Sawada. Change-Point Detection with Feature Selection in High-Dimensional Time-Series Data. In IJCAI, pp. 1827–1833, 2013.
282
+ Kenji Yamanishi and Jun-ichi Takeuchi. A Unifying Framework for Detecting Outliers and Change Points from Non-stationary Time Series Data. In SIGKDD, pp. 676–681. ACM, 2002.
283
+ Jianbo Yang, Minh Nhut Nguyen, Phyo Phyo San, Xiaoli Li, and Shonali Krishnaswamy. Deep Convolutional Neural Networks on Multichannel Time Series for Human Activity Recognition. In IJCAI, pp. 3995–4001, 2015.
284
+ Fisher Yu and Vladlen Koltun. Multi-scale Context Aggregation by Dilated Convolutions. In ICLR, 2016.
285
+ Nancy R Zhang, David O Siegmund, Hanlee Ji, and Jun Z Li. Detecting Simultaneous Changepoints in Multiple Sequences. Biometrika, 97(3):631–645, 2010.
286
+
287
+ # APPENDIX A SYNTHETIC DATA
288
+
289
+ Table 1-3 show the AUC (Area Under the ROC Curve) results for synthetic data. To detect changepoints, we apply non-maximum suppression with a sliding window of length $\omega$ and filter the maximum values with a threshold. We evaluate AUC by iterating over this threshold. Since changepoints may not exactly match the true changepoints, we use a tolerance parameter $\eta$ that sets how close a detected change must be to a true change to be considered a correct detection. We match detected changepoints to the closest true changepoint within $\eta$ time step.
290
+
291
+ Table 1 shows the results for the experiment of “train abrupt and test gradual” for synthetic data.
292
+ Table 2 shows the results for the experiment of “train gradual and test abrupt” for synthetic data.
293
+ Table 3 shows the results for the experiment of “train all and test all” for synthetic data.
294
+
295
+ Table 1: AUC results for the experiment of “train abrupt and test gradual” for synthetic data for each tolerance (η)
296
+
297
+ <table><tr><td>Tolerance (n)</td><td>RCN</td><td>CNN</td><td>GGM</td><td>PRNN-S</td><td>DWNN</td><td>PRNN</td></tr><tr><td>8</td><td>0.002</td><td>0.003</td><td>0.007</td><td>0.006</td><td>0.005</td><td>0.003</td></tr><tr><td>16</td><td>0.008</td><td>0.011</td><td>0.010</td><td>0.023</td><td>0.016</td><td>0.011</td></tr><tr><td>32</td><td>0.026</td><td>0.042</td><td>0.012</td><td>0.076</td><td>0.063</td><td>0.043</td></tr><tr><td>64</td><td>0.107</td><td>0.153</td><td>0.012</td><td>0.271</td><td>0.213</td><td>0.155</td></tr><tr><td>128</td><td>0.391</td><td>0.421</td><td>0.013</td><td>0.625</td><td>0.546</td><td>0.503</td></tr><tr><td>256</td><td>0.783</td><td>0.757</td><td>0.016</td><td>0.849</td><td>0.822</td><td>0.863</td></tr><tr><td>512</td><td>0.824</td><td>0.801</td><td>0.023</td><td>0.862</td><td>0.835</td><td>0.876</td></tr></table>
298
+
299
+ Table 2: AUC results for the experiment of “train gradual and test abrupt” for synthetic data for each tolerance (η)
300
+
301
+ <table><tr><td>Tolerance (n)</td><td>RCN</td><td>CNN</td><td>GGM</td><td>PRNN-S</td><td>DWNN</td><td>PRNN</td></tr><tr><td>8</td><td>0.001</td><td>0.013</td><td>0.007</td><td>0.033</td><td>0.102</td><td>0.027</td></tr><tr><td>16</td><td>0.003</td><td>0.049</td><td>0.011</td><td>0.115</td><td>0.301</td><td>0.100</td></tr><tr><td>32</td><td>0.014</td><td>0.188</td><td>0.013</td><td>0.347</td><td>0.599</td><td>0.376</td></tr><tr><td>64</td><td>0.269</td><td>0.665</td><td>0.013</td><td>0.689</td><td>0.787</td><td>0.724</td></tr><tr><td>128</td><td>0.650</td><td>0.797</td><td>0.014</td><td>0.811</td><td>0.822</td><td>0.816</td></tr><tr><td>256</td><td>0.795</td><td>0.814</td><td>0.018</td><td>0.833</td><td>0.833</td><td>0.830</td></tr><tr><td>512</td><td>0.817</td><td>0.830</td><td>0.026</td><td>0.834</td><td>0.834</td><td>0.830</td></tr></table>
302
+
303
+ Table 3: AUC results for the experiment of “train all and test all” for synthetic data for each tolerance (η)
304
+
305
+ <table><tr><td>Tolerance (n)</td><td>RCN</td><td>CNN</td><td>GGM</td><td>PRNN-S</td><td>DWNN</td><td>PRNN</td></tr><tr><td>8</td><td>0.039</td><td>0.061</td><td>0.007</td><td>0.027</td><td>0.014</td><td>0.039</td></tr><tr><td>16</td><td>0.093</td><td>0.144</td><td>0.011</td><td>0.100</td><td>0.061</td><td>0.122</td></tr><tr><td>32</td><td>0.204</td><td>0.244</td><td>0.012</td><td>0.249</td><td>0.164</td><td>0.284</td></tr><tr><td>64</td><td>0.390</td><td>0.407</td><td>0.017</td><td>0.496</td><td>0.406</td><td>0.551</td></tr><tr><td>128</td><td>0.582</td><td>0.586</td><td>0.021</td><td>0.737</td><td>0.700</td><td>0.747</td></tr><tr><td>256</td><td>0.788</td><td>0.747</td><td>0.030</td><td>0.863</td><td>0.840</td><td>0.860</td></tr><tr><td>512</td><td>0.852</td><td>0.808</td><td>0.043</td><td>0.874</td><td>0.860</td><td>0.869</td></tr></table>
306
+
307
+ # APPENDIX B REAL WORLD DATA
308
+
309
+ # B.1 OPPORTUNITY DATA
310
+
311
+ Table 4 shows the results for Opportunity data.
312
+
313
+ Table 4: AUC results of Opportunity data for each tolerance (η)
314
+
315
+ <table><tr><td>Tolerance (n)</td><td>RCN</td><td>CNN</td><td>GGM</td><td>PRNN-S</td><td>DWNN</td><td>PRNN</td></tr><tr><td>2</td><td>0.036</td><td>0.024</td><td>0.007</td><td>0.007</td><td>0.034</td><td>0.040</td></tr><tr><td>4</td><td>0.077</td><td>0.066</td><td>0.016</td><td>0.024</td><td>0.093</td><td>0.104</td></tr><tr><td>8</td><td>0.213</td><td>0.197</td><td>0.022</td><td>0.068</td><td>0.234</td><td>0.297</td></tr><tr><td>16</td><td>0.513</td><td>0.442</td><td>0.027</td><td>0.236</td><td>0.515</td><td>0.601</td></tr><tr><td>32</td><td>0.713</td><td>0.629</td><td>0.032</td><td>0.418</td><td>0.712</td><td>0.773</td></tr><tr><td>64</td><td>0.744</td><td>0.687</td><td>0.046</td><td>0.471</td><td>0.753</td><td>0.815</td></tr><tr><td>128</td><td>0.771</td><td>0.710</td><td>0.065</td><td>0.507</td><td>0.759</td><td>0.833</td></tr></table>
316
+
317
+ # B.2 BEE WAGGLE DANCE DATA
318
+
319
+ Table 5 shows the results for Bee Waggle Dance data.
320
+
321
+ Table 5: AUC results of Bee Waggle Dance data for each tolerance $( \eta )$
322
+
323
+ <table><tr><td>Tolerance (n)</td><td>RCN</td><td>CNN</td><td>GGM</td><td>PRNN-S</td><td>DWNN</td><td>PRNN</td></tr><tr><td>2</td><td>0.007</td><td>0.008</td><td>0.019</td><td>0.009</td><td>0.007</td><td>0.025</td></tr><tr><td>4</td><td>0.007</td><td>0.053</td><td>0.023</td><td>0.009</td><td>0.023</td><td>0.145</td></tr><tr><td>8</td><td>0.054</td><td>0.192</td><td>0.041</td><td>0.119</td><td>0.131</td><td>0.400</td></tr><tr><td>16</td><td>0.178</td><td>0.703</td><td>0.077</td><td>0.393</td><td>0.329</td><td>0.608</td></tr><tr><td>32</td><td>0.841</td><td>0.789</td><td>0.083</td><td>0.643</td><td>0.777</td><td>0.932</td></tr><tr><td>64</td><td>0.841</td><td>0.789</td><td>0.083</td><td>0.643</td><td>0.777</td><td>0.932</td></tr><tr><td>128</td><td>0.841</td><td>0.789</td><td>0.083</td><td>0.643</td><td>0.777</td><td>0.932</td></tr></table>
parse/train/HkGTwjCctm/HkGTwjCctm_content_list.json ADDED
@@ -0,0 +1,1715 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "PYRAMID RECURRENT NEURAL NETWORKSFOR MULTI-SCALE CHANGE-POINT DETECTION",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 754,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 184,
19
+ 170,
20
+ 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": "Many real-world time series, such as in activity recognition, finance, or climate science, have changepoints where the system’s structure or parameters change. Detecting changes is important as they may indicate critical events. However, existing methods for changepoint detection face challenges when (1) the patterns of change cannot be modeled using simple and predefined metrics, and (2) changes can occur gradually, at multiple time-scales. To address this, we show how changepoint detection can be treated as a supervised learning problem, and propose a new deep neural network architecture that can efficiently identify both abrupt and gradual changes at multiple scales. Our proposed method, pyramid recurrent neural network (PRNN), is designed to be scale-invariant, by incorporating wavelets and pyramid analysis techniques from multi-scale signal processing. Through experiments on synthetic and real-world datasets, we show that PRNN can detect abrupt and gradual changes with higher accuracy than the state of the art and can extrapolate to detect changepoints at novel timescales that have not been seen in training. ",
40
+ "bbox": [
41
+ 233,
42
+ 267,
43
+ 764,
44
+ 474
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 502,
55
+ 336,
56
+ 518
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Changepoints, when the structure or parameters of a system change, are critical to detect in many domains. In medicine, finance, climate science and other fields, these changes can indicate that important events have occurred (e.g. onset of illness or a financial crisis), or changed in important ways (e.g. increasing illness severity). In both cases, these affect decision-making. Changepoint detection (CPD) aims to find these critical times. However, changes may result in complex patterns across multiple observed variables, and can be hard to recognize, especially in multivariate timeseries where interdependencies exist among variables. Further, not all changepoints lead to a sudden transition, many occur over a duration of time (e.g. weightloss, transition between activities) and are harder to identify. ",
63
+ "bbox": [
64
+ 174,
65
+ 535,
66
+ 825,
67
+ 660
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Various methods have been proposed for CPD including parametric methods (Adams & MacKay, 2007; Zhang et al., 2010; Montanez et al., 2015), which make strong assumptions about data distributions, and nonparametric methods (Desobry et al., 2005; Saatc¸i et al., 2010; Li et al., 2015), which are based on engineered divergence metrics or kernel functions. Most parametric methods are highly context specific, and face difficulty when changes result in complex temporal patterns that are hard to model manually. For nonparametic methods, the main drawback is that these methods rely heavily on the choice of parameters or kernels. To handle data from different domains, Chen et al. (2015) proposed a nonparametric CPD method. However, like many other CPD methods, it can only detect abrupt changes. Yet in real-world applications, the effect of a change may be gradual and may happen over different durations. Some methods have been explicitly designed for detecting gradual changepoints (Bardwell & Fearnhead, 2017; Harel et al., 2014), but cannot handle changes occurring at arbitrary timescales. In some applications, like detecting changes in activity, how quickly someone transitions from sitting to standing should not affect accuracy at detecting the transition. ",
74
+ "bbox": [
75
+ 174,
76
+ 666,
77
+ 825,
78
+ 859
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "In contrast, Deep Neural Networks (DNN) have been used for time series forecasting (Weigend, 2018) and classification (Yang et al., 2015) as they can learn functions automatically. These can be more easily adapted to new tasks if there is sufficient training data. However, DNNs typically need enough examples of all possible ways a pattern can appear, and thus all possible transition speeds, to reliably detect it in test data. Since this data is costly and may be infeasible to collect in some cases, it is ideal to have a scale-invariant approach that can generalize beyond observed timescales. ",
85
+ "bbox": [
86
+ 174,
87
+ 867,
88
+ 823,
89
+ 924
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "",
96
+ "bbox": [
97
+ 173,
98
+ 103,
99
+ 823,
100
+ 132
101
+ ],
102
+ "page_idx": 1
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "We propose a novel DNN architecture for CPD using supervised learning. Our approach makes two key contributions to neural network architecture: a trainable wavelet layer that transforms input into a pyramid of multiscale feature maps; and Pyramid recurrent neural networks (PRNN), which build a multi-scale Recurrent Neural Network (RNN) on top of a multi-channel Convolutional Neural Network (CNN) processing the wavelet layer. Finally, we use a binary classifier on the PRNN output to detect changepoints. On both simulated and real-world data, we show that the proposed model can encode short-term and long-term temporal patterns and detect from abrupt to extremely gradual changepoints. The model is scale invariant, and can detect changes at any timescale, regardless of those seen in training. We focus on the task of CPD, but this architecture may have more general applications in time series analysis. ",
107
+ "bbox": [
108
+ 174,
109
+ 138,
110
+ 825,
111
+ 279
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "2 RELATED WORK ",
118
+ "text_level": 1,
119
+ "bbox": [
120
+ 176,
121
+ 308,
122
+ 343,
123
+ 324
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "Changepoint detection CPD is a core problem for times-series analysis. One approach is to use a model and find times when observations deviate from what is predicted by the model. Bayesian Online ChangePoint Detection (BOCPD) (Adams & MacKay, 2007) can find changepoints in an online manner, but makes the limiting assumption that the time series between changes has a stationary exponential-family distribution. More generally, Bayesian techniques require full definition of the likelihood function (Malladi et al., 2013; Montanez et al., 2015), which may be difficult to specify. Nonparametric models increase the flexibility, such as in (Saatc¸i et al., 2010) which is an extension of BOCPD to Gaussian Processes. This however, may significantly increase computational complexity. Xuan & Murphy (2007) introduced Gaussian Graphical Models (GGMs) for CPD, extending (Fearnhead, 2006) to handle mutlivariate time series. GGM is offline and models the correlations between multivariate time series using multivariate Gaussian. This method is closest to ours as a result, but makes strong assumptions about the data distribution. Non-Bayesian techniques exist, such as (Yamanishi & Takeuchi, 2002), which uses an autoregressive model for each time series segment, but this model is limiting. ",
130
+ "bbox": [
131
+ 174,
132
+ 347,
133
+ 825,
134
+ 541
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "To eliminate the need to specify a model, model-free approaches have emerged, such as densityratio estimation methods (Yamada et al., 2013; Kawahara & Sugiyama, 2012; Liu et al., 2013; Kuncheva, 2013; Kuncheva & Faithfull, 2014), kernel methods (Harchaoui et al., 2009; Li et al., 2015), and other techniques that define custom divergence functions like difference of covariance matrix (Cabrieto et al., 2017; Barnett & Onnela, 2016) or carefully engineered statistics (Cavalcante et al., 2016; Ide et al., 2016; Qahtan et al., 2015; Li et al., 2015; Gretton et al., 2007). However, ´ covariance matrix based methods cannot deal with the case when the change point does not cause significant variations in covariance matrix. Statistics based methods such as MMD (Gretton et al., 2007), Hotellig T-square (Chen & Gupta, 2000), CUSUM (Page, 1954), or generalized likelihood ratio (GLR) (James et al., 1992) have their own limitations like relying heavily on the choice of kernels (MMD) or parameters (Hotellig T-square), being highly dependent on prior information (CUSUM), or having high complexity for large sample size (GLR). Thus while such models might work in a specific application, they cannot be readily used in a different domain without re-engineering the divergence or kernel functions. ",
141
+ "bbox": [
142
+ 174,
143
+ 547,
144
+ 825,
145
+ 742
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "Few methods were explicitly designed to detect gradual changes, though BOCPD has been extended this way by reformulating changes as segments instead of points (Bardwell & Fearnhead, 2017). Alternatively, gradual changes can be formulated as concept drifts (Harel et al., 2014). We do not reformulate the changepoint detection problem, and instead make the model scale-invariant, so it can handle short- and long-term temporal patterns. This results in a model that can generalize to novel time-scales without extra effort. ",
152
+ "bbox": [
153
+ 174,
154
+ 750,
155
+ 825,
156
+ 833
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "A similar problem is anomaly detection (Jones et al., 2016; Guha et al., 2016). For instance, Gardner et al. (2006) learns a one-class Support Vector Machine (SVM) on normal data, and distinguishes normal from abnormal in new data. However, a changepoint is not always a transition to an abnormal state and may be between two normal states, such as human activities. Our proposed approach is not limited to binary classification, and can be re-purposed by training with a one-class loss that is used for anomaly detection. ",
163
+ "bbox": [
164
+ 174,
165
+ 840,
166
+ 823,
167
+ 922
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Deep learning Core challenges for CPD are scaling with more variables and recognizing changes resulting in complex patterns involving many variables. Deep neural networks provide a promising solution for CPD, as they can learn to recognize complex patterns without engineering of features and metrics. CNNs for instance, learn to extract increasingly abstract features from raw data through a stack of non-linear convolutions. This leads to recognition of complex patterns such as hundreds of object types in natural images (Szegedy et al., 2015). RNNs on the other hand, learn complex temporal patterns in sequences of arbitrary length, which is used in applications such as human activity recognition with wearable sensors (Hammerla et al., 2016). These are exactly the type of pattern changes that pose challenges for CPD. On the other hand, a key feature of CNNs is shiftinvariance, meaning the prediction will not change even if a pattern shifts in time or space. Gated variants of RNN such as Long Short-Term Memory (LSTM) networks (Hochreiter & Schmidhuber, 1997) and attention-augmented networks (Ba et al., 2015) can also learn shift-invariance, due to their ability to control which part of data to attend or ignore. ",
174
+ "bbox": [
175
+ 174,
176
+ 103,
177
+ 825,
178
+ 284
179
+ ],
180
+ "page_idx": 2
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "Ideally, a CPD method should perform equally well on test data regardless of whether changes happen faster or slower than seen in training data. However, the fixed resolution of CNN and RNN architectures makes them sensitive to scale. CNNs have been extended to model multiple scales simultaneously (Shen et al., 2015), but this is not a scale invariant method, as features are simply concatenated. For RNNs, (Chung et al., 2016) propose a hierarchical architecture to process a sequence through successive RNN layers, at different resolutions. However, layers of RNN there resemble layers of convolution in CNNs (modeling the signal at a different abstraction level) and are not invariant to scale changes at the same abstraction level. Therefore, we propose a new architecture, PRNN, that exploits both CNN and RNN, while augmenting them with scale invariance. ",
185
+ "bbox": [
186
+ 174,
187
+ 291,
188
+ 825,
189
+ 416
190
+ ],
191
+ "page_idx": 2
192
+ },
193
+ {
194
+ "type": "text",
195
+ "text": "Another limitation of CNNs, and to some extent RNNs for CPD, is the difficulty of modeling longterm dependencies. However, this is necessary to recognize gradual changes. Dilated convolutions have recently allowed long-term dependency modeling in CNNs (Yu & Koltun, 2016; Oord et al., 2016). RNNs are naturally built to model long-term dependencies, but suffer from vanishing gradients. Extensions such as LSTMs and Gated Recurrent Units (GRU) (Cho et al., 2014) solve the problem of vanishing gradients, but still have limited memory space. Intuitively, information from an infinitely long sequence cannot be stored in a fixed-dimensional RNN cell. To reduce the computation complexity for conventional RNN, Campos et al. (2017) proposed Skip RNN to skip state updates while preserving the performance of baseline RNN models. Their skipping-state-updates operation has the advantage of avoiding redundant RNN updates. However, this has the risk of skipping temporal dependencies, especially for long term dependencies, which can hurt the overall performance of RNN. To address this, recent work has augmented RNNs with various types of memory or stack (Sukhbaatar et al., 2015; Joulin & Mikolov, 2015), but these methods are not scale-invariant. Our PRNN, models infinitely long sequences with its multi-scale RNN, which forms a stack of memory cells in an arbitrary number of levels. A higher-level RNN cell in a stack has lower resolution, and thus can store longer dependencies at no additional computational cost, while a lower-level RNN cell has a high resolution and prevents the loss of details in the short term. Frameworks like Feature pyramid networks (Lin et al., 2017) and wavelet CNN (Fujieda et al., 2018) has been proposed to deal with images with different scales or resolutions. However, both of them cannot be applied directly on multivariate time series for change point detection as they cannot model the temporal dependencies in multivariate time series. ",
196
+ "bbox": [
197
+ 174,
198
+ 422,
199
+ 825,
200
+ 714
201
+ ],
202
+ "page_idx": 2
203
+ },
204
+ {
205
+ "type": "text",
206
+ "text": "3 METHOD ",
207
+ "text_level": 1,
208
+ "bbox": [
209
+ 176,
210
+ 736,
211
+ 281,
212
+ 751
213
+ ],
214
+ "page_idx": 2
215
+ },
216
+ {
217
+ "type": "text",
218
+ "text": "We propose a new class of deep learning architectures called Pyramid Recurrent Neural Networks (PRNNs). The model takes a multi-variate time series and transforms it into a pyramid of multi-scale feature maps using a trainable wavelet layer (NWL). All pyramid levels are processed in parallel using multiple streams of CNN with shared weights, yielding a pyramid of more abstract feature maps. Next, we build a multi-scale RNN on top of the pyramid feature map, to encode longer-term, dependencies. The PRNN output is used to detect changes at each time step with a binary classifier. ",
219
+ "bbox": [
220
+ 174,
221
+ 767,
222
+ 825,
223
+ 851
224
+ ],
225
+ "page_idx": 2
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "3.1 NEURAL WAVELET LAYER ",
230
+ "text_level": 1,
231
+ "bbox": [
232
+ 176,
233
+ 869,
234
+ 398,
235
+ 882
236
+ ],
237
+ "page_idx": 2
238
+ },
239
+ {
240
+ "type": "text",
241
+ "text": "CNNs can learn to recognize complex patterns in multivariate time series, partly due to parametersharing across time (via the convolution operation), which leads to shift-invariance. However, CNNs are not scale-invariant, so a learned pattern cannot necessarily be recognized when it appears more gradually or more quickly. To augment CNNs with scale invariance, we introduce Deep Wavelet Neural Networks (DWNN), which consist of a proposed Neural Wavelet Layer followed by parallel streams of CNN. ",
242
+ "bbox": [
243
+ 174,
244
+ 895,
245
+ 821,
246
+ 922
247
+ ],
248
+ "page_idx": 2
249
+ },
250
+ {
251
+ "type": "image",
252
+ "img_path": "images/ec4d2c493e2aec3b5bec00cc0fac99b16d8120f1610d56a496c49fd0b23d9ab6.jpg",
253
+ "image_caption": [
254
+ "Figure 1: An illustration of (a) a convolutional layer; (b) the Neural Wavelet Layer. Only one feature map of each output has been shown. "
255
+ ],
256
+ "image_footnote": [],
257
+ "bbox": [
258
+ 276,
259
+ 104,
260
+ 717,
261
+ 203
262
+ ],
263
+ "page_idx": 3
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "",
268
+ "bbox": [
269
+ 173,
270
+ 268,
271
+ 825,
272
+ 325
273
+ ],
274
+ "page_idx": 3
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "The Neural Wavelet Layer (NWL) can be seen as a set of multi-scale convolutions with trainable kernels, which are applied in parallel on each variable of the input time series. The input to the NWL is a multivariate time series, $X \\in \\mathbb { R } ^ { T \\times c }$ , where $T$ is the number of timepoints and $c$ is the number of variables. The NWL takes $X$ and produces multiple feature maps, which together form a pyramid of convolution responses. That is: ",
279
+ "bbox": [
280
+ 173,
281
+ 332,
282
+ 825,
283
+ 402
284
+ ],
285
+ "page_idx": 3
286
+ },
287
+ {
288
+ "type": "equation",
289
+ "img_path": "images/cb73b282e342d4901fd569246cef5fd7e6da5a143f121f0b5e54a4d4ee3e8563.jpg",
290
+ "text": "$$\nf _ { N W L } ( X ) = ( H _ { 1 } , H _ { 2 } , . . . , H _ { k } ) : H _ { i } \\in \\mathbb { R } ^ { T / 2 ^ { i - 1 } \\times c } .\n$$",
291
+ "text_format": "latex",
292
+ "bbox": [
293
+ 331,
294
+ 409,
295
+ 666,
296
+ 429
297
+ ],
298
+ "page_idx": 3
299
+ },
300
+ {
301
+ "type": "text",
302
+ "text": "An example is shown in Figure 1. Specifically, the NWL uses the filter bank technique $\\gimel$ for discrete wavelet transform. Given a pair of separating convolutional kernels (typically a low-pass and a highpass kernel), it convolves the signal with both, outputs the high-pass response, and down-samples the low-pass response for the next iteration. It repeats this process and in each iteration outputs an upper level of the output pyramid. Although traditional wavelets such as Haar or Gabor ? can be used, we have experimentally found that initializing the filter banks with random numbers and training them using backpropagation with the rest of the network leads to higher accuracy. ",
303
+ "bbox": [
304
+ 173,
305
+ 435,
306
+ 825,
307
+ 535
308
+ ],
309
+ "page_idx": 3
310
+ },
311
+ {
312
+ "type": "text",
313
+ "text": "More formally, the NWL is characterized by its trainable kernels $K _ { l } ^ { ( v ) } , K _ { h } ^ { ( v ) } \\in \\mathbb { R } ^ { \\tau \\times c }$ for all variables $v \\in \\{ 1 . . . c \\}$ , where $\\tau$ is the kernel size. Given each channel of $X$ as input (e.g. ), the NWL iteratively computes lowpass and highpass responses, starting with $L _ { 1 } ^ { ( v ) }$ and $H _ { 1 } ^ { ( v ) }$ , that are: ",
314
+ "bbox": [
315
+ 173,
316
+ 541,
317
+ 825,
318
+ 593
319
+ ],
320
+ "page_idx": 3
321
+ },
322
+ {
323
+ "type": "equation",
324
+ "img_path": "images/d5c39f5fc50029558f3abbe3bd71690d6b0ca516054294adec62e0efb3a87a1e.jpg",
325
+ "text": "$$\n\\begin{array} { r } { L _ { 1 } ^ { ( v ) } = \\omega ( \\boldsymbol { X } ^ { ( v ) } * \\boldsymbol { K } _ { l } ^ { ( v ) } ) \\quad , \\quad \\boldsymbol { H } _ { 1 } ^ { ( v ) } = \\omega ( \\boldsymbol { X } ^ { ( v ) } * \\boldsymbol { K } _ { h } ^ { ( v ) } ) , } \\end{array}\n$$",
326
+ "text_format": "latex",
327
+ "bbox": [
328
+ 316,
329
+ 599,
330
+ 679,
331
+ 621
332
+ ],
333
+ "page_idx": 3
334
+ },
335
+ {
336
+ "type": "text",
337
+ "text": "where is convolution and is a downsampling operation (e.g. implemented by linear interpolation). At the $i$ -th iteration of the wavelet transform, given $L _ { i - 1 } ^ { ( v ) }$ and $H _ { i - 1 } ^ { ( v ) }$ , it computes $L _ { i } ^ { ( v ) }$ and $H _ { i } ^ { ( v ) }$ such that: ",
338
+ "bbox": [
339
+ 173,
340
+ 627,
341
+ 825,
342
+ 676
343
+ ],
344
+ "page_idx": 3
345
+ },
346
+ {
347
+ "type": "equation",
348
+ "img_path": "images/52f7d9f2ba02dd24651f725650dbd1a6f0b65f804925df0b1f450a79839dc4ef.jpg",
349
+ "text": "$$\n\\begin{array} { r } { L _ { i } ^ { ( v ) } = \\omega ( L _ { i - 1 } ^ { ( v ) } * K _ { l } ^ { ( v ) } ) \\quad , \\quad U _ { i } ^ { ( v ) } = \\omega ( L _ { i - 1 } ^ { ( v ) } * K _ { h } ^ { ( v ) } ) . } \\end{array}\n$$",
350
+ "text_format": "latex",
351
+ "bbox": [
352
+ 318,
353
+ 676,
354
+ 679,
355
+ 699
356
+ ],
357
+ "page_idx": 3
358
+ },
359
+ {
360
+ "type": "text",
361
+ "text": "This operation is repeated for a pre-specified number of times, $k$ , or until the length of $L _ { i } ^ { ( v ) }$ and $H _ { i } ^ { ( v ) }$ becomes smaller than a threshold. The hyperparameter, $k$ , can be selected using cross-validation. A larger $k$ (or smaller threshold) results in a larger receptive field at the highest level of the pyramid, enabling the detection of more gradual patterns. However, a large $k$ also brings more computation and also requires a larger buffer in the case of online processing. ",
362
+ "bbox": [
363
+ 173,
364
+ 705,
365
+ 825,
366
+ 777
367
+ ],
368
+ "page_idx": 3
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "The output of each iteration $i \\in \\{ 1 . . . k \\}$ for variables $v \\in \\{ 1 . . . c \\}$ can be concatenated to form ",
373
+ "bbox": [
374
+ 171,
375
+ 782,
376
+ 784,
377
+ 797
378
+ ],
379
+ "page_idx": 3
380
+ },
381
+ {
382
+ "type": "equation",
383
+ "img_path": "images/33316865cac48833a6a3c6e74827ade5ba126ad8486e91c8f3a1e467d02b8710.jpg",
384
+ "text": "$$\nL _ { i } = [ L _ { i } ^ { ( 1 ) } | L _ { i } ^ { ( 2 ) } | . . . | L _ { i } ^ { ( c ) } ] \\quad , \\quad H _ { i } = [ H _ { i } ^ { ( 1 ) } | H _ { i } ^ { ( 2 ) } | . . . | H _ { i } ^ { ( c ) } ] ,\n$$",
385
+ "text_format": "latex",
386
+ "bbox": [
387
+ 307,
388
+ 804,
389
+ 689,
390
+ 825
391
+ ],
392
+ "page_idx": 3
393
+ },
394
+ {
395
+ "type": "text",
396
+ "text": "where $[ . | . ]$ indicates concatenation. The output of the NWL is the stack of all $H _ { i }$ . These are called different levels of a pyramid throughout this paper. In the original filter bank method the last lowpass response, $L _ { k }$ , is also stacked with the output but we did not observe an improvement with $L _ { k }$ . ",
397
+ "bbox": [
398
+ 174,
399
+ 832,
400
+ 825,
401
+ 875
402
+ ],
403
+ "page_idx": 3
404
+ },
405
+ {
406
+ "type": "text",
407
+ "text": "The key advantage of a NWL over a conventional convolution layer is that a single wavelet can encode the input with multiple granularities at once, whereas a single convolution only encodes a single granularity. Although different layers of a CNN have different granularities, they encode the data at a different level of abstraction, and thus cannot simultaneously extract the same pattern at different scales. On the other hand, a single wavelet layer can encode changes with the same patterns at different paces, simultaneously into the same feature map, at different levels of the pyramid. ",
408
+ "bbox": [
409
+ 174,
410
+ 881,
411
+ 825,
412
+ 924
413
+ ],
414
+ "page_idx": 3
415
+ },
416
+ {
417
+ "type": "image",
418
+ "img_path": "images/ee33c52e0e5a345e052c9e0a9abbded980f375801c67de99897774cbac9082f2.jpg",
419
+ "image_caption": [
420
+ "Figure 2: An illustration of the proposed Pyramid Recurrent Layer, with downsampling ratio of 2. "
421
+ ],
422
+ "image_footnote": [],
423
+ "bbox": [
424
+ 302,
425
+ 98,
426
+ 692,
427
+ 174
428
+ ],
429
+ "page_idx": 4
430
+ },
431
+ {
432
+ "type": "text",
433
+ "text": "",
434
+ "bbox": [
435
+ 176,
436
+ 229,
437
+ 821,
438
+ 272
439
+ ],
440
+ "page_idx": 4
441
+ },
442
+ {
443
+ "type": "text",
444
+ "text": "We will use the proposed NWL as a part of a larger, deeper architecture, which is described in the rest of this section. Hence, an important aspect of NWL is that it can be used as a layer of a deep network, in composition with other neural layer types such as convolutional and fully connected layers. For example, the input to a wavelet layer can be the output of a convolutional layer. Alternatively, to stack a convolutional layer on the output of a wavelet layer, one should apply the convolution on each level of the wavelet pyramid, resulting in a pyramid-shaped output. ",
445
+ "bbox": [
446
+ 174,
447
+ 279,
448
+ 825,
449
+ 363
450
+ ],
451
+ "page_idx": 4
452
+ },
453
+ {
454
+ "type": "text",
455
+ "text": "Accordingly, a network composed of one wavelet layer and an arbitrary number of other layers, can take a multi-variate time series as input, and produce a pyramid-shaped response as output. We refer to such a network architecture as a Deep Wavelet Neural Network (DWNN). In this paper we use a specific form of DWNN, which starts with a NWL, directly applied on the input time series $X$ , followed by parallel streams of CNN with shared parameters, each of which takes one level of the NWL pyramid. More specifically, we use an $\\ell$ -layer CNN with a down-sampling stride of $p _ { j }$ at the $j$ -th layer, which results in a total down-sampling factor of $\\begin{array} { r } { P = \\prod _ { j = 1 } ^ { \\ell } p _ { j } } \\end{array}$ , and with $f _ { j }$ feature maps at the $j$ -th layer. We apply that CNN in parallel on each level of the output pyramid of the NWL, which means for each $i \\in \\{ 1 . . . k \\}$ , it gets $\\bar { \\boldsymbol { H } } _ { i } \\in \\mathbb { R } ^ { T / 2 ^ { i - 1 } \\times c }$ and outputs $\\bar { C _ { i } } \\in \\bar { \\mathbb { R } } ^ { \\bar { T } / 2 ^ { i - 1 } / P \\times f _ { \\ell } }$ . ",
456
+ "bbox": [
457
+ 173,
458
+ 369,
459
+ 825,
460
+ 502
461
+ ],
462
+ "page_idx": 4
463
+ },
464
+ {
465
+ "type": "text",
466
+ "text": "3.2 PYRAMID RECURRENT LAYER",
467
+ "text_level": 1,
468
+ "bbox": [
469
+ 176,
470
+ 518,
471
+ 424,
472
+ 534
473
+ ],
474
+ "page_idx": 4
475
+ },
476
+ {
477
+ "type": "text",
478
+ "text": "The output of the DWNN is a multi-scale pyramid of sequential feature maps that encode short-term temporal patterns at different times and scales. It is common to process sequential features using an RNN, to encode longer-term temporal patterns. However, conventional RNNs process a single sequence, not a multi-scale pyramid of sequences. Similar to the need for a wavelet layer, RNNs are not scale-invariant, meaning if an RNN can recognize a pattern, it does not necessarily imply it can recognize a temporally shortened or stretched instance of the same pattern without having seen this scale in the training data. Further, RNNs fail to learn very gradual patterns, due to limited memory. While this can be addressed by memory-augmented networks, they remain sensitive to scale. ",
479
+ "bbox": [
480
+ 174,
481
+ 544,
482
+ 825,
483
+ 657
484
+ ],
485
+ "page_idx": 4
486
+ },
487
+ {
488
+ "type": "text",
489
+ "text": "To address these issues, we introduce a novel hierarchically connected variant of RNNs. Our proposed network, PRNN, scans the multi-scale output of a DWNN, and simultaneously encodes temporal patterns at different scales. An RNN is applied in parallel on different levels of the input pyramid. On each level at each step, it takes as input the corresponding entry from the input pyramid, along with the most recent output of the RNN operating at the upper level. We concatenate those two vectors and feed as input to the RNN. We refer to this technique as Pyramid Recurrent Layer (PRL). ",
490
+ "bbox": [
491
+ 174,
492
+ 662,
493
+ 825,
494
+ 761
495
+ ],
496
+ "page_idx": 4
497
+ },
498
+ {
499
+ "type": "text",
500
+ "text": "Denoting the value at level $i$ of the input pyramid at time $t$ as $C _ { i } [ t ]$ , and assuming the downsampling ratio in wavelet transform is $d$ , (i.e., each level of the pyramid has $d$ -times the length of its upper level) we can write the recurrent state at level $i$ and time $t$ as: ",
501
+ "bbox": [
502
+ 176,
503
+ 767,
504
+ 823,
505
+ 810
506
+ ],
507
+ "page_idx": 4
508
+ },
509
+ {
510
+ "type": "equation",
511
+ "img_path": "images/67e83b924c740a2fa308b90dd309c7804387035f149bb107a6c55c7b4246e274.jpg",
512
+ "text": "$$\nh _ { i } [ t ] = \\sigma ( W _ { 1 } C _ { i } [ t ] + W _ { 2 } h _ { i } [ t - 1 ] + W _ { 3 } h _ { i + 1 } [ \\lfloor t / d \\rfloor ] + b ) ,\n$$",
513
+ "text_format": "latex",
514
+ "bbox": [
515
+ 305,
516
+ 815,
517
+ 691,
518
+ 833
519
+ ],
520
+ "page_idx": 4
521
+ },
522
+ {
523
+ "type": "text",
524
+ "text": "where $\\sigma$ is a nonlinear activation function such as ReLU, and $W _ { 1 } , W _ { 2 } , W _ { 3 }$ and $b$ are trainable parameters of this layer. These parameters define a linear transformation of the current state, past state, and higher-level state, as illustrated in Figure 2. Note that the proposed hierarchical structure is agnostic of the function of each cell. Although we used a simple RNN cell for illustration, we could use any variant of RNNs such as a Long Short-Term Memory (LSTM) (Hochreiter & Schmidhuber, 1997) or Skip RNN (Campos et al., 2017) as our RNN cell. ",
525
+ "bbox": [
526
+ 174,
527
+ 839,
528
+ 825,
529
+ 924
530
+ ],
531
+ "page_idx": 4
532
+ },
533
+ {
534
+ "type": "text",
535
+ "text": "The proposed architecture can be compared with an RNN operating on a single data sequence. If the data granularity is high, the RNN likely fails to model long-term dependencies, due to the wellknown problem of vanishing gradients. One can lower the data granularity, so long-term patterns can be summarized in fewer steps, but this results in the loss of details. Accordingly, conventional RNNs were not designed to effectively detect both abrupt and gradual patterns at the same time. ",
536
+ "bbox": [
537
+ 174,
538
+ 103,
539
+ 825,
540
+ 174
541
+ ],
542
+ "page_idx": 5
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "On the other hand, in the proposed PRL, each RNN unit is provided with inputs from the same level of granularity as well as the level above. The RNN that operates at the lowest level, in turn, receives information from all levels of granularity. Figure 2 illustrates the effect of forgetting using decreasing color saturation. While it is impossible to keep track of the past through the lower level alone, the information path from upper levels connect the past to present in only three steps. This lets the PRL model long-term patterns, while it can still model details through the lower levels. ",
547
+ "bbox": [
548
+ 174,
549
+ 180,
550
+ 825,
551
+ 263
552
+ ],
553
+ "page_idx": 5
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "3.3 PYRAMID RECURRENT NEURAL NETWORKS",
558
+ "text_level": 1,
559
+ "bbox": [
560
+ 174,
561
+ 280,
562
+ 524,
563
+ 295
564
+ ],
565
+ "page_idx": 5
566
+ },
567
+ {
568
+ "type": "text",
569
+ "text": "We propose PRNN as a composition of a DWNN and a PRL. An input time series of arbitrary length is transformed through a DWNN into a pyramid-shaped representation, which is then fed into a PRL. For CPD and other classification problems, a logistic regression layer is built on the output of the RNN cells that operate at the lowest level of the pyramid. This layer produces detection scores at each time step with the highest possible granularity. Specifically, the detection score for time $t$ is: ",
570
+ "bbox": [
571
+ 174,
572
+ 305,
573
+ 825,
574
+ 377
575
+ ],
576
+ "page_idx": 5
577
+ },
578
+ {
579
+ "type": "equation",
580
+ "img_path": "images/71e1527b4d9417719ffba2983d0bd28ce62d2f60d8c8ac7cfa09c88a89e260b5.jpg",
581
+ "text": "$$\ny _ { t } = \\sigma ( W _ { o } h _ { 1 } [ t ] + b _ { o } ) ,\n$$",
582
+ "text_format": "latex",
583
+ "bbox": [
584
+ 421,
585
+ 382,
586
+ 575,
587
+ 400
588
+ ],
589
+ "page_idx": 5
590
+ },
591
+ {
592
+ "type": "text",
593
+ "text": "where $\\sigma$ is the sigmoid function and $W _ { o }$ and $b _ { o }$ are trainable parameters. The classification loss at each time is the cross entropy loss written as: ",
594
+ "bbox": [
595
+ 171,
596
+ 405,
597
+ 825,
598
+ 433
599
+ ],
600
+ "page_idx": 5
601
+ },
602
+ {
603
+ "type": "equation",
604
+ "img_path": "images/3fb8698a91ddac1aa13bac8bb1b83ef86c7cab3b03cecd2989a90ff7e5f7d9e8.jpg",
605
+ "text": "$$\nE _ { t } = y _ { t } ^ { * } \\log y _ { t } + ( 1 - y _ { t } ^ { * } ) \\log { ( 1 - y _ { t } ) } ,\n$$",
606
+ "text_format": "latex",
607
+ "bbox": [
608
+ 367,
609
+ 438,
610
+ 629,
611
+ 455
612
+ ],
613
+ "page_idx": 5
614
+ },
615
+ {
616
+ "type": "text",
617
+ "text": "where $\\boldsymbol { y } _ { t } ^ { * }$ is the ground truth at time $t$ . We optimize this loss using stochastic gradient descent on parameters of the classifier $W _ { o }$ and $b _ { o }$ ), PRL $W _ { 1 }$ , $W _ { 2 }$ , $W _ { 3 }$ and $b$ ), and NWL $K _ { l }$ and $K _ { h }$ ). ",
618
+ "bbox": [
619
+ 173,
620
+ 460,
621
+ 828,
622
+ 489
623
+ ],
624
+ "page_idx": 5
625
+ },
626
+ {
627
+ "type": "text",
628
+ "text": "4 EVALUATION ",
629
+ "text_level": 1,
630
+ "bbox": [
631
+ 176,
632
+ 508,
633
+ 315,
634
+ 525
635
+ ],
636
+ "page_idx": 5
637
+ },
638
+ {
639
+ "type": "text",
640
+ "text": "We compare the proposed PRNN to conventional deep learning baselines. Using both simulated and real-world datasets, we show that PRNNs can detect abrupt and gradual changes more accurately than baseline approaches and can be used for activity recognition by learning labels for different changes. ",
641
+ "bbox": [
642
+ 174,
643
+ 540,
644
+ 825,
645
+ 597
646
+ ],
647
+ "page_idx": 5
648
+ },
649
+ {
650
+ "type": "text",
651
+ "text": "4.1 DATASETS ",
652
+ "text_level": 1,
653
+ "bbox": [
654
+ 174,
655
+ 612,
656
+ 287,
657
+ 627
658
+ ],
659
+ "page_idx": 5
660
+ },
661
+ {
662
+ "type": "text",
663
+ "text": "Synthetic dataset We create a synthetic dataset to evaluate accuracy at simultaneously detecting gradual and abrupt changes. We construct 2000 time series each with 12 variables and 8192 time steps (a power of two chosen to avoid rounding errors in downsampling). Each time series is a combination of a Brownian process and white noise and has 4 changepoints at randomly chosen times. A change is a shift in the mean of 4 randomly chosen dimensions, with randomly chosen speed (duration of change) and amount of shift. A speed of 0 gives an abrupt change, while longer ones provide more challenging cases to recognize. An example of the simulated time series together with ground truth and detection results are shown in Figure 3. We randomly split the data in half, 1000 for training and 1000 for testing. To demonstrate robustness of the proposed method against variability in scale, we also do a split by scale, where all changes in one half are strictly more gradual than all in the other half. ",
664
+ "bbox": [
665
+ 174,
666
+ 638,
667
+ 825,
668
+ 791
669
+ ],
670
+ "page_idx": 5
671
+ },
672
+ {
673
+ "type": "text",
674
+ "text": "Opportunity dataset For real-world evaluation, we first use the OPPORTUNITY activity recognition dataset (Chavarriaga et al., 2013), which consists of on-body sensor recordings from 4 participants performing activities of daily living, such as cleaning a table. Each participant has 6 records (runs) of around $2 0 \\mathrm { { m i n } }$ each. Values of 72 sensors from 10 modalities were recorded at $3 0 \\mathrm { H z }$ , and manually labeled with 18 activity types. Following (Hammerla et al., 2016), we ignore variables with missing values, which leads to 79 variables for each record. We use run 2 of subject 1 for validation and runs 4 and 5 of subjects 2 and 3 for test, and the rest for training. To repurpose this activity recognition dataset for CPD, we consider the transition between two activities as a change. This transition can take place at various durations, which makes the task challenging. As ground truth, we use the temporal annotation provided with the OPPORTUNITY dataset to determine moments that the activity type changes. Fig. 6 shows a sample of this dataset with ground truth and detection results. ",
675
+ "bbox": [
676
+ 173,
677
+ 797,
678
+ 825,
679
+ 924
680
+ ],
681
+ "page_idx": 5
682
+ },
683
+ {
684
+ "type": "image",
685
+ "img_path": "images/eb8c258fb61f883d4120b39334499caebe63e2aeb14df13b433ec0c197a3d12b.jpg",
686
+ "image_caption": [
687
+ "Figure 3: Detected changes in 3 of 12 dimensions of the synthetic dataset. "
688
+ ],
689
+ "image_footnote": [],
690
+ "bbox": [
691
+ 276,
692
+ 104,
693
+ 722,
694
+ 255
695
+ ],
696
+ "page_idx": 6
697
+ },
698
+ {
699
+ "type": "text",
700
+ "text": "",
701
+ "bbox": [
702
+ 174,
703
+ 310,
704
+ 823,
705
+ 353
706
+ ],
707
+ "page_idx": 6
708
+ },
709
+ {
710
+ "type": "text",
711
+ "text": "Bee Waggle Dance dataset We also test our methods on the Bee Waggle Dance data (Oh et al., 2008). Honey bees perform waggle dance to communicate with other bees about the orientation and distance to the food sources. The Bee Waggle Dance data includes six videos of bee waggle dances with 30 frames per second. The data include 3 variables encoding the honey bee’s position and head angle at each frame. Using the position and angle information, each frame is labeled with activity of “turn left”, “turn right”, or “waggle dance.” Similar to the OPPORTUNITY dataset, we consider the transition between two activities of the honey bee as a change point. We test our method and other baselines on “sequence 1” of the bee data. We train on the first 256 frames (a power of 2 chosen to avoid rounding errors) and test on the other 768 frames. We use small size of training data to see how the proposed method behaves and for consistency with other prior works (Saatc¸i et al., 2010). ",
712
+ "bbox": [
713
+ 173,
714
+ 359,
715
+ 825,
716
+ 500
717
+ ],
718
+ "page_idx": 6
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "4.2 BASELINES",
723
+ "text_level": 1,
724
+ "bbox": [
725
+ 174,
726
+ 517,
727
+ 294,
728
+ 530
729
+ ],
730
+ "page_idx": 6
731
+ },
732
+ {
733
+ "type": "text",
734
+ "text": "We compare the proposed architecture to the following unsupervised CPD method and supervised deep-learning baselines: ",
735
+ "bbox": [
736
+ 176,
737
+ 542,
738
+ 823,
739
+ 570
740
+ ],
741
+ "page_idx": 6
742
+ },
743
+ {
744
+ "type": "text",
745
+ "text": "GGM Xuan & Murphy (2007) is related to BOCPD (Adams & MacKay, 2007), a classic method for CPD, but was selected to provide fairer comparison against our approach as it is offline and incorporates multivariate time series. ",
746
+ "bbox": [
747
+ 176,
748
+ 578,
749
+ 823,
750
+ 619
751
+ ],
752
+ "page_idx": 6
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "CNN We use a CNN that takes a time series as input and predicts a sequence of detection scores for changes. Due to the widely used max-pooling layers, the output has a lower temporal granularity compared to the input. We denote the ratio of output length to the input length as $\\gamma$ . ",
757
+ "bbox": [
758
+ 176,
759
+ 627,
760
+ 821,
761
+ 670
762
+ ],
763
+ "page_idx": 6
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "RCN We apply an RNN to the output of the CNN. The output has the same granularity as CNN, while each step of the output has a larger receptive field that encodes all the past data. ",
768
+ "bbox": [
769
+ 171,
770
+ 676,
771
+ 821,
772
+ 704
773
+ ],
774
+ "page_idx": 6
775
+ },
776
+ {
777
+ "type": "text",
778
+ "text": "DWNN We use the proposed DWNN, which is formed by applying an NWL to the input time series and feeding the output pyramid levels to parallel branches of a CNN. The output of CNN branches are upsampled to have the same size and fused by arithmetic mean. ",
779
+ "bbox": [
780
+ 174,
781
+ 712,
782
+ 825,
783
+ 753
784
+ ],
785
+ "page_idx": 6
786
+ },
787
+ {
788
+ "type": "text",
789
+ "text": "PRNN We apply the complete proposed method which consists of a DWNN followed by a Pyramid Recurrent Layer to fuse levels of the pyramid. ",
790
+ "bbox": [
791
+ 174,
792
+ 761,
793
+ 821,
794
+ 789
795
+ ],
796
+ "page_idx": 6
797
+ },
798
+ {
799
+ "type": "text",
800
+ "text": "PRNN-S As a final baseline, we replace the conventional RNN cell in our PRNN method with a Skip RNN (Campos et al., 2017) which was found to have lower time complexity. This enables us to test whether an efficient RNN can preserve the performance of PRNN. ",
801
+ "bbox": [
802
+ 174,
803
+ 796,
804
+ 825,
805
+ 838
806
+ ],
807
+ "page_idx": 6
808
+ },
809
+ {
810
+ "type": "text",
811
+ "text": "4.3 IMPLEMENTATION DETAILS ",
812
+ "text_level": 1,
813
+ "bbox": [
814
+ 176,
815
+ 856,
816
+ 403,
817
+ 869
818
+ ],
819
+ "page_idx": 6
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "All of the deep-learning baselines share a core CNN architecture on which the additional modules are built. We fix the architecture of the core CNN to be $[ 9 : 1 2 8 : 4 ] , [ 5 : 1 2 8 : 2 ] , [ 5 : 1 2 8 : 2 ]$ , where we use the notation $x : y : z$ for a convolution layer where $x$ is the kernel size, $y$ is the number of output feature maps, and $z$ is the pooling stride. Each convolution layer is followed by max-pooling and ReLU activation. The output of all baselines are fed to a fully connected perceptron with sigmoid activation which results in binary detection scores at each time step. The granularity ratio $\\gamma$ for this architecture is $1 / 1 6$ . For DWNN, PRNN, and PRNN-S, we used a 7-level wavelet with kernel size 3 for both synthetic and OPPORTUNITY dataset. For Bee Waggle Dance data, due to the small size of the data and the more abrupt activities (compared with synthetic and OPPORTUNITY dataset) of honey bee, we used a 5-level wavelet with kernel size 3. For all datasets RCN and PRNN used an LSTM cell with 256 hidden units. ",
824
+ "bbox": [
825
+ 176,
826
+ 882,
827
+ 823,
828
+ 924
829
+ ],
830
+ "page_idx": 6
831
+ },
832
+ {
833
+ "type": "image",
834
+ "img_path": "images/354fa77d6c3f1cdf3253e65b5ca785277678384229de3b8253095c6d84364a81.jpg",
835
+ "image_caption": [
836
+ "Figure 4: AUC (Area Under the ROC Curve) results for the synthetic dataset with three different test/train scenarios. $\\eta$ is the tolerance for how close in time a detected change must be to a true change to be considered a positive. See Appendix A for AUC score tables. "
837
+ ],
838
+ "image_footnote": [],
839
+ "bbox": [
840
+ 199,
841
+ 112,
842
+ 802,
843
+ 250
844
+ ],
845
+ "page_idx": 7
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "",
850
+ "bbox": [
851
+ 174,
852
+ 333,
853
+ 825,
854
+ 444
855
+ ],
856
+ "page_idx": 7
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "We train all models using Adam (Kingma & Ba, 2014) with early stopping to avoid overfitting. At test time, the models take a time series and predict a sequence of detection scores. To detect changepoints, we apply non-maximum suppression with a sliding window of length $\\omega$ and filter the maximum values with a threshold. We evaluate AUC by iterating over this threshold. Hyperparameter $\\omega$ controls how nearby two distinct changes can be detected and is tuned for each method separately using cross-validation. ",
861
+ "bbox": [
862
+ 174,
863
+ 452,
864
+ 825,
865
+ 535
866
+ ],
867
+ "page_idx": 7
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "The real world datasets (Bee data and OPPORTUNITY data) are more challenging than the synthetic data, as they include diverse changepoints formed by transitions between many activity types. To address this, we use multitask learning, training the model to both detect changes and classify activity by changing the output dimension of the last fully connected later to have multiple units (19 for OPPORTUNITY data, and 4 for Bee data). For OPPORTUNITY data, the first 18 units predict a log probability for each activity and the last 1 unit outputs the probability of a change point (for bee data, it’s 3 units and 1 unit). We define a softmax cross-entropy loss on those 18 units and add it as a regularization term to the objective function. Multitask learning improved the results equally for all baselines, because the model has auxiliary information, namely the activity type and not just the existence of a change. ",
872
+ "bbox": [
873
+ 173,
874
+ 541,
875
+ 825,
876
+ 681
877
+ ],
878
+ "page_idx": 7
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "For GGM, we use the full covariance model instead of the independent features model to capture the correlations between features. We use a uniform prior as in (Xuan & Murphy, 2007), and set the pruning threshold to $1 0 ^ { - 2 0 }$ . Since there is no training for GGM, we evaluate the algorithm using the same test data as all other methods we compared on both synthetic and real world dataset. ",
883
+ "bbox": [
884
+ 174,
885
+ 688,
886
+ 825,
887
+ 743
888
+ ],
889
+ "page_idx": 7
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "We evaluate precision and recall, and report AUC. As detected changepoints may not exactly match the true changepoints, we use a tolerance parameter $\\eta$ that sets how close a detected change must be to a true change to be considered a correct detection. We match detected changepoints to the closest true changepoint within $\\eta$ time steps. Precision is the number of matched detections divided by the number of all detections, and recall is the number of matches divided by the number of true changes. ",
894
+ "bbox": [
895
+ 174,
896
+ 751,
897
+ 823,
898
+ 820
899
+ ],
900
+ "page_idx": 7
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "4.4 RESULTS ",
905
+ "text_level": 1,
906
+ "bbox": [
907
+ 174,
908
+ 842,
909
+ 277,
910
+ 856
911
+ ],
912
+ "page_idx": 7
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "4.4.1 SYNTHETIC DATA ",
917
+ "text_level": 1,
918
+ "bbox": [
919
+ 176,
920
+ 869,
921
+ 349,
922
+ 883
923
+ ],
924
+ "page_idx": 7
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "For the synthetic dataset, three different train/test splits were used to demonstrate extrapolation from gradual to abrupt changes and vice versa. Fig. 4c shows the results for a random split (mixing scales), while Fig. 4a and 4b use the scale-variant split introduced in section 4.1. In the scale-variant split, the model needs to extrapolate patterns learned from training data to scales that have not been observed. This is extremely challenging for a model that is not scale-invariant. This is apparent in Fig. 4a where both CNN and RCN show worse results in parts compared to their own performance in Fig. 4c. From experiment of Fig. 4c to Fig. 4a, AUC of CNN (RCN) decreased from $41 \\%$ $( 3 9 \\% )$ to $15 \\%$ $( 1 1 \\% )$ when the tolerance is 64 steps $( 2 ^ { 6 } )$ . This is because the methods are not designed to be specifically robust against scale variability. In the transition from 4c to 4a, DWNN, PRNN, and PRNN-S like other methods inevitably suffer from a performance drop, which is due to the increase in task difficulty. However, the amount of this drop is substantially lower for DWNN, due to the wavelet layer and shared parameters across scales. At a tolerance of 64 steps, for instance, the performance drop for DWNN is $20 \\%$ , which is lower than PRNN-S $( 2 2 \\% )$ and CNN $( 2 6 \\% )$ . Again DWNN and CNN respectively work better than PRNN and RCN in this setting, which is consistent with the overall results (See Appendix A for AUC details). ",
929
+ "bbox": [
930
+ 174,
931
+ 895,
932
+ 823,
933
+ 924
934
+ ],
935
+ "page_idx": 7
936
+ },
937
+ {
938
+ "type": "image",
939
+ "img_path": "images/f370684f1ec28911c5b1b81449b8457c46f4a03808a0a60e75e91edb3ae9dfc9.jpg",
940
+ "image_caption": [
941
+ "Figure 5: AUC (Area Under the ROC Curve) results for Opportunity and Bee Waggle Dance data. $\\eta$ is the tolerance with a unit of 1/30 seconds for both dataset. See Appendix B for AUC score tables. "
942
+ ],
943
+ "image_footnote": [],
944
+ "bbox": [
945
+ 300,
946
+ 113,
947
+ 697,
948
+ 250
949
+ ],
950
+ "page_idx": 8
951
+ },
952
+ {
953
+ "type": "text",
954
+ "text": "",
955
+ "bbox": [
956
+ 174,
957
+ 320,
958
+ 825,
959
+ 501
960
+ ],
961
+ "page_idx": 8
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "While recognizing abrupt changes from gradual training ones (Fig. 4b) is easier than recognizing a mix of scales, CNN and RCN perform worse than our approach due to their inability to generalize in scale. In Fig. 4b, when tolerance is 64 steps, AUC for CNN and RCN are $66 \\%$ and $30 \\%$ , which are lower than both PRNN $(72 \\% )$ and DWNN $(7 9 \\% )$ . In contrast, DWNN, PRNN-S, and PRNN have higher AUC than their own performance in the mixed experiment (Fig. 4c). The performance of PRNN at different tolerances is $20 \\%$ higher on average in the mixed experiments than the experiment of “train abrupt, test gradual” (Fig. 4a). In the train on gradual and test on abrupt experiment (4b), DWNN performs even better than PRNN and PRNN-S in all tolerances, and similarly, CNN outperforms RCN. This shows recurrent architectures are generally less effective for this kind of extreme generalization. The high performance of DWNN 4b also shows the effectiveness of the added wavelet layer in modeling both gradual and abrupt changes in time series. However, in realworld cases we are more likely to have a mix of scales in both training and test, and it is in this case (fig. 4c) that PRNN is most accurate. As shown in the AUC plots, it is in general more difficult to recognize gradual changes. It is possible to adapt our work to detect segments rather than specific points (e.g. as in (Bardwell & Fearnhead, 2017)), if instead of applying a non-maximum suppression on the output score map of change, we perform binary segmentation to detect intervals with continuously high detection score. ",
966
+ "bbox": [
967
+ 174,
968
+ 508,
969
+ 825,
970
+ 743
971
+ ],
972
+ "page_idx": 8
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "Figure 3 shows example results for our scale invariant PRNN and scale sensitive CNN. Overall CNN has a higher false positive rate, while also missing one of the changes. While detected changes and ground truth are not always precisely aligned, the small gaps are acceptable in the case of gradual changes, where it can be hard to define a single moment when the change occurs. ",
977
+ "bbox": [
978
+ 174,
979
+ 751,
980
+ 823,
981
+ 808
982
+ ],
983
+ "page_idx": 8
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "4.4.2 OPPORTUNITY DATA ",
988
+ "text_level": 1,
989
+ "bbox": [
990
+ 176,
991
+ 828,
992
+ 369,
993
+ 842
994
+ ],
995
+ "page_idx": 8
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "Figure 6 shows results and AUC plots for the OPPORTUNITY dataset. In the time series, we see that CNN has a missed detection and at least one false positive around time 300, while PRNN detects all changes close to their actual times. In fig 5a, we see that PRNN outperforms other methods at all tolerance levels. In contrast to the synthetic data, PRNN-S has significantly lower AUC than both PRNN and DWNN for every tolerance. It may be that Skip RNN is skipping important information encoded in our wavelet later. Finally, the performance of GGM is lowest for all cases. This is not surprising, as it is an unsupervised method, and does not learn from previously observed patterns. When the tolerance is 64 (around 2 seconds, $\\eta = 2 ^ { 6 } = 6 4 ,$ ), a reasonable value for practical activity recognition use, PRNN achieves $81 \\%$ AUC while DWNN, RCN, CNN, and PRNN-S respectively achieve $7 5 \\%$ , $74 \\%$ , $69 \\%$ , $47 \\%$ . Full results can be seen in Appendix B.1. ",
1000
+ "bbox": [
1001
+ 173,
1002
+ 853,
1003
+ 823,
1004
+ 924
1005
+ ],
1006
+ "page_idx": 8
1007
+ },
1008
+ {
1009
+ "type": "image",
1010
+ "img_path": "images/b4d53d49eca2de36109c46114d1ee1cce14dabcdfc5f2a7b1676fed42f914775.jpg",
1011
+ "image_caption": [
1012
+ "Figure 6: Detected changes on sample (3 of 79 dimensions shown) of Opportunity dataset. "
1013
+ ],
1014
+ "image_footnote": [],
1015
+ "bbox": [
1016
+ 331,
1017
+ 116,
1018
+ 666,
1019
+ 232
1020
+ ],
1021
+ "page_idx": 9
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "",
1026
+ "bbox": [
1027
+ 174,
1028
+ 285,
1029
+ 823,
1030
+ 353
1031
+ ],
1032
+ "page_idx": 9
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "The five deep learning methods, PRNN, PRNN-S, RCN, DWNN, and CNN, respectively took 110, 105, 80, 24, and 6 minutes to train and converge on the OPPORTUNITY dataset. Recurrent methods generally take longer due to backpropagation through time. However, this only happens during training, and does not affect test complexity. One can compare PRNN to RCN, and DWNN to CNN, and observe an increase in time complexity. This is due to repeating computations on multiple levels of a pyramid. This however, only multiplies the time complexity by a constant factor, since the length of pyramid levels exponentially vanish. Note that DWNN has a superior performance to RCN in most cases, while also being faster to train. ",
1037
+ "bbox": [
1038
+ 174,
1039
+ 361,
1040
+ 825,
1041
+ 472
1042
+ ],
1043
+ "page_idx": 9
1044
+ },
1045
+ {
1046
+ "type": "text",
1047
+ "text": "4.4.3 BEE WAGGLE DANCE DATA",
1048
+ "text_level": 1,
1049
+ "bbox": [
1050
+ 176,
1051
+ 487,
1052
+ 418,
1053
+ 501
1054
+ ],
1055
+ "page_idx": 9
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "Figure 5b shows AUC plots for all methods we tested on Bee Waggle Dance dataset. Our PRNN method outperforms other methods when the value of $\\eta$ is no less than 5 (around 1 second) with AUC of $93 \\%$ . Similar to the result on OPPORTUNITY dataset, GGM has the lowest AUC for all tolerances. When the tolerance is 64 (around 2 seconds, $\\eta \\ : = \\ : 2 ^ { 6 } = 6 4 )$ , PRNN achieves $93 \\%$ AUC while PRNN-S, RCN, and CNN respectively achieve $64 \\%$ , $84 \\%$ , $78 \\%$ (see Appendix B.2 for AUC details). Similar to OPPORTUNITY dataset, the drop of AUC for PRNN-S is caused by the skipping of states updates. However, compared with the OPPORTUNITY data where PRNN-S has maximum AUC of $51 \\%$ , PRNN-S for Bee Waggle Dance data has higher maximum AUC of $64 \\%$ . This is because the changes in honey bee activities are more abrupt than human activities, so the skipped updates have lower impact on the detection performance. From the AUC plots, a change in tolerance affects our PRNN much less compared to other methods. For instance, when the tolerance is lowered from 32 $\\eta = 2 ^ { 5 } = 3 2$ ) to 16 $( \\eta ^ { \\star } = 2 ^ { 4 } = 1 6 )$ ), the AUC of RCN drops significantly (from $84 \\%$ to $1 8 \\%$ ), while AUC of PRNN drops much less (from $93 \\%$ to $61 \\%$ ). CNN has a dramatic drop in accuracy from $\\eta = 4$ to $\\eta = 3$ , suggesting it is consistently detecting changes with a delay. Thus, PRNN is less sensitive to this parameter and more reliable for real world cases. ",
1060
+ "bbox": [
1061
+ 173,
1062
+ 512,
1063
+ 825,
1064
+ 719
1065
+ ],
1066
+ "page_idx": 9
1067
+ },
1068
+ {
1069
+ "type": "text",
1070
+ "text": "5 CONCLUSION ",
1071
+ "text_level": 1,
1072
+ "bbox": [
1073
+ 176,
1074
+ 739,
1075
+ 318,
1076
+ 756
1077
+ ],
1078
+ "page_idx": 9
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "We propose a new class of DNNs that are scale-invariant, and show they can detect from abrupt to gradual changepoints in multimodality time series. The core is 1) augmenting CNNs with trainable Wavelet layers to recognize short-term multi-scale patterns; and 2) building a pyramid-shaped RNN on top of the multi-scale feature maps to simultaneously model long-term patterns and fuse multiscale information. The final model can detect events involving short- and long-term patterns at various scales, which is a difficult task for conventional DNNs. Although this reduces the amount of training data required to learn from changes, the proposed method still requires clean labels. Experiments show our approach detects changes quickly, with lower sensitivity to the tolerance parameter than other approaches. For real-world applications, this leads to much higher reliability. In future work we will real-world challenges (e.g. noisy data, missing/noisy labels) by incorporating robustness, semi-supervised learning methods, and multi-view learning techniques. ",
1083
+ "bbox": [
1084
+ 174,
1085
+ 770,
1086
+ 825,
1087
+ 924
1088
+ ],
1089
+ "page_idx": 9
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "REFERENCES ",
1094
+ "text_level": 1,
1095
+ "bbox": [
1096
+ 174,
1097
+ 102,
1098
+ 287,
1099
+ 118
1100
+ ],
1101
+ "page_idx": 10
1102
+ },
1103
+ {
1104
+ "type": "text",
1105
+ "text": "Ryan Prescott Adams and David JC MacKay. Bayesian Online Changepoint Detection. arXiv preprint arXiv:0710.3742, 2007. ",
1106
+ "bbox": [
1107
+ 176,
1108
+ 126,
1109
+ 823,
1110
+ 155
1111
+ ],
1112
+ "page_idx": 10
1113
+ },
1114
+ {
1115
+ "type": "text",
1116
+ "text": "Jimmy Ba, Ruslan R Salakhutdinov, Roger B Grosse, and Brendan J Frey. Learning Wake-Sleep Recurrent Attention Models. In NIPS, pp. 2593–2601, 2015. ",
1117
+ "bbox": [
1118
+ 176,
1119
+ 162,
1120
+ 823,
1121
+ 193
1122
+ ],
1123
+ "page_idx": 10
1124
+ },
1125
+ {
1126
+ "type": "text",
1127
+ "text": "Lawrence Bardwell and Paul Fearnhead. Bayesian Detection of Abnormal Segments in Multiple Time Series. Bayesian Analysis, (1):193–218, 2017. ",
1128
+ "bbox": [
1129
+ 174,
1130
+ 200,
1131
+ 823,
1132
+ 229
1133
+ ],
1134
+ "page_idx": 10
1135
+ },
1136
+ {
1137
+ "type": "text",
1138
+ "text": "Ian Barnett and Jukka-Pekka Onnela. Change Point Detection in Correlation Networks. Scientific reports, 6:18893, 2016. ",
1139
+ "bbox": [
1140
+ 171,
1141
+ 238,
1142
+ 823,
1143
+ 267
1144
+ ],
1145
+ "page_idx": 10
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "text": "Jedelyn Cabrieto, Francis Tuerlinckx, Peter Kuppens, Mariel Grassmann, and Eva Ceulemans. Detecting Correlation Changes in Multivariate Time Series: A Comparison of Four Non-parametric Change Point Detection Methods. Behavior research methods, 49(3):988–1005, 2017. ",
1150
+ "bbox": [
1151
+ 173,
1152
+ 276,
1153
+ 823,
1154
+ 319
1155
+ ],
1156
+ "page_idx": 10
1157
+ },
1158
+ {
1159
+ "type": "text",
1160
+ "text": "V´ıctor Campos, Brendan Jou, Xavier Giro-i Nieto, Jordi Torres, and Shih-Fu Chang. Skip RNN: ´ Learning to Skip State Updates in Recurrent Neural Networks. arXiv preprint arXiv:1708.06834, 2017. ",
1161
+ "bbox": [
1162
+ 176,
1163
+ 327,
1164
+ 823,
1165
+ 369
1166
+ ],
1167
+ "page_idx": 10
1168
+ },
1169
+ {
1170
+ "type": "text",
1171
+ "text": "Rodolfo C Cavalcante, Leandro L Minku, and Adriano LI Oliveira. FEDD: Feature Extraction for Explicit Concept Drift Detection in Time Series. In IJCNN, pp. 740–747. IEEE, 2016. ",
1172
+ "bbox": [
1173
+ 169,
1174
+ 378,
1175
+ 823,
1176
+ 409
1177
+ ],
1178
+ "page_idx": 10
1179
+ },
1180
+ {
1181
+ "type": "text",
1182
+ "text": "Ricardo Chavarriaga, Hesam Sagha, Alberto Calatroni, Sundara Tejaswi Digumarti, Gerhard Troster, Jos ¨ e del R Mill ´ an, and Daniel Roggen. The Opportunity Challenge: A Benchmark ´ Database for On-body Sensor-based Activity Recognition. Pattern Recognition Letters, 34(15): 2033–2042, 2013. ",
1183
+ "bbox": [
1184
+ 173,
1185
+ 416,
1186
+ 825,
1187
+ 472
1188
+ ],
1189
+ "page_idx": 10
1190
+ },
1191
+ {
1192
+ "type": "text",
1193
+ "text": "Hao Chen, Nancy Zhang, et al. Graph-based change-point detection. The Annals of Statistics, 43 (1):139–176, 2015. ",
1194
+ "bbox": [
1195
+ 173,
1196
+ 481,
1197
+ 823,
1198
+ 511
1199
+ ],
1200
+ "page_idx": 10
1201
+ },
1202
+ {
1203
+ "type": "text",
1204
+ "text": "Jie Chen and AK Gupta. Parametric Statistical Change Point Analysis. Springer, 2000. ",
1205
+ "bbox": [
1206
+ 171,
1207
+ 518,
1208
+ 746,
1209
+ 535
1210
+ ],
1211
+ "page_idx": 10
1212
+ },
1213
+ {
1214
+ "type": "text",
1215
+ "text": "Kyunghyun Cho, B van Merrienboer, Dzmitry Bahdanau, and Yoshua Bengio. On the Properties of Neural Machine Translation: Encoder-decoder Approaches. In Eighth Workshop on Syntax, Semantics and Structure in Statistical Translation (SSST-8), 2014. ",
1216
+ "bbox": [
1217
+ 174,
1218
+ 542,
1219
+ 823,
1220
+ 585
1221
+ ],
1222
+ "page_idx": 10
1223
+ },
1224
+ {
1225
+ "type": "text",
1226
+ "text": "Junyoung Chung, Sungjin Ahn, and Yoshua Bengio. Hierarchical Multiscale Recurrent Neural Networks. arXiv preprint arXiv:1609.01704, 2016. ",
1227
+ "bbox": [
1228
+ 173,
1229
+ 593,
1230
+ 821,
1231
+ 623
1232
+ ],
1233
+ "page_idx": 10
1234
+ },
1235
+ {
1236
+ "type": "text",
1237
+ "text": "Fred´ eric Desobry, Manuel Davy, and Christian Doncarli. An Online Kernel Change Detection Al-´ gorithm. IEEE Transactions on Signal Processing, 53(8):2961–2974, 2005. ",
1238
+ "bbox": [
1239
+ 174,
1240
+ 631,
1241
+ 820,
1242
+ 661
1243
+ ],
1244
+ "page_idx": 10
1245
+ },
1246
+ {
1247
+ "type": "text",
1248
+ "text": "Paul Fearnhead. Exact and Efficient Bayesian Inference for Multiple Changepoint Problems. Statistics and computing, 16(2), 2006. ",
1249
+ "bbox": [
1250
+ 173,
1251
+ 669,
1252
+ 823,
1253
+ 699
1254
+ ],
1255
+ "page_idx": 10
1256
+ },
1257
+ {
1258
+ "type": "text",
1259
+ "text": "Shin Fujieda, Kohei Takayama, and Toshiya Hachisuka. Wavelet Convolutional Neural Networks. arXiv preprint arXiv:1805.08620, 2018. ",
1260
+ "bbox": [
1261
+ 174,
1262
+ 707,
1263
+ 821,
1264
+ 736
1265
+ ],
1266
+ "page_idx": 10
1267
+ },
1268
+ {
1269
+ "type": "text",
1270
+ "text": "Andrew B Gardner, Abba M Krieger, George Vachtsevanos, and Brian Litt. One-class Novelty Detection for Seizure Analysis from Intracranial EEG. JMLR, 7(Jun):1025–1044, 2006. ",
1271
+ "bbox": [
1272
+ 173,
1273
+ 744,
1274
+ 821,
1275
+ 773
1276
+ ],
1277
+ "page_idx": 10
1278
+ },
1279
+ {
1280
+ "type": "text",
1281
+ "text": "Arthur Gretton, Karsten M Borgwardt, Malte Rasch, Bernhard Scholkopf, and Alex J Smola. A ¨ kernel method for the two-sample-problem. In NIPS, pp. 513–520, 2007. ",
1282
+ "bbox": [
1283
+ 173,
1284
+ 782,
1285
+ 823,
1286
+ 811
1287
+ ],
1288
+ "page_idx": 10
1289
+ },
1290
+ {
1291
+ "type": "text",
1292
+ "text": "Sudipto Guha, Nina Mishra, Gourav Roy, and Okke Schrijvers. Robust Random Cut Forest Based Anomaly Detection on Streams. In ICML, pp. 2712–2721, 2016. ",
1293
+ "bbox": [
1294
+ 173,
1295
+ 820,
1296
+ 823,
1297
+ 849
1298
+ ],
1299
+ "page_idx": 10
1300
+ },
1301
+ {
1302
+ "type": "text",
1303
+ "text": "Nils Y. Hammerla, Shane Halloran, and Thomas Plotz. Deep, Convolutional, and Recurrent Models ¨ for Human Activity Recognition Using Wearables. In IJCAI, pp. 1533–1540, 2016. ",
1304
+ "bbox": [
1305
+ 173,
1306
+ 857,
1307
+ 821,
1308
+ 887
1309
+ ],
1310
+ "page_idx": 10
1311
+ },
1312
+ {
1313
+ "type": "text",
1314
+ "text": "Zaid Harchaoui, Eric Moulines, and Francis R Bach. Kernel change-point analysis. In NIPS, pp. 609–616, 2009. ",
1315
+ "bbox": [
1316
+ 174,
1317
+ 895,
1318
+ 820,
1319
+ 924
1320
+ ],
1321
+ "page_idx": 10
1322
+ },
1323
+ {
1324
+ "type": "text",
1325
+ "text": "Maayan Harel, Shie Mannor, Ran El-Yaniv, and Koby Crammer. Concept Drift Detection through Resampling. In ICML, pp. 1009–1017, 2014. ",
1326
+ "bbox": [
1327
+ 171,
1328
+ 103,
1329
+ 823,
1330
+ 132
1331
+ ],
1332
+ "page_idx": 11
1333
+ },
1334
+ {
1335
+ "type": "text",
1336
+ "text": "Sepp Hochreiter and Jurgen Schmidhuber. Long Short-term Memory. ¨ Neural computation, 9(8): 1735–1780, 1997. ",
1337
+ "bbox": [
1338
+ 173,
1339
+ 141,
1340
+ 823,
1341
+ 170
1342
+ ],
1343
+ "page_idx": 11
1344
+ },
1345
+ {
1346
+ "type": "text",
1347
+ "text": "Tsuyoshi Ide, Dzung T Phan, and Jayant Kalagnanam. Change Detection Using Directional Statis- ´ tics. In IJCAI, pp. 1613–1619, 2016. ",
1348
+ "bbox": [
1349
+ 173,
1350
+ 180,
1351
+ 823,
1352
+ 209
1353
+ ],
1354
+ "page_idx": 11
1355
+ },
1356
+ {
1357
+ "type": "text",
1358
+ "text": "Barry James, Kang Ling James, and David Siegmund. Asymptotic Approximations for Likelihood Ratio Tests and Confidence Regions for a Change-point in the Mean of a Multivariate Normal Distribution. Statistica Sinica, pp. 69–90, 1992. ",
1359
+ "bbox": [
1360
+ 174,
1361
+ 218,
1362
+ 823,
1363
+ 262
1364
+ ],
1365
+ "page_idx": 11
1366
+ },
1367
+ {
1368
+ "type": "text",
1369
+ "text": "Michael Jones, Daniel Nikovski, Makoto Imamura, and Takahisa Hirata. Exemplar learning for extremely efficient anomaly detection in real-valued time series. Data Mining and Knowledge Discovery, 30(6):1427–1454, 2016. ",
1370
+ "bbox": [
1371
+ 173,
1372
+ 271,
1373
+ 823,
1374
+ 314
1375
+ ],
1376
+ "page_idx": 11
1377
+ },
1378
+ {
1379
+ "type": "text",
1380
+ "text": "Armand Joulin and Tomas Mikolov. Inferring Algorithmic Patterns with Stack-augmented Recurrent Nets. In NIPS, pp. 190–198, 2015. ",
1381
+ "bbox": [
1382
+ 173,
1383
+ 324,
1384
+ 823,
1385
+ 353
1386
+ ],
1387
+ "page_idx": 11
1388
+ },
1389
+ {
1390
+ "type": "text",
1391
+ "text": "Yoshinobu Kawahara and Masashi Sugiyama. Sequential Change-point Detection based on Direct Density-ratio Estimation. Statistical Analysis and Data Mining: The ASA Data Science Journal, 5(2):114–127, 2012. ",
1392
+ "bbox": [
1393
+ 174,
1394
+ 362,
1395
+ 823,
1396
+ 405
1397
+ ],
1398
+ "page_idx": 11
1399
+ },
1400
+ {
1401
+ "type": "text",
1402
+ "text": "Diederik P Kingma and Jimmy Ba. Adam: A Method for Stochastic Optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1403
+ "bbox": [
1404
+ 171,
1405
+ 414,
1406
+ 823,
1407
+ 444
1408
+ ],
1409
+ "page_idx": 11
1410
+ },
1411
+ {
1412
+ "type": "text",
1413
+ "text": "Ludmila I Kuncheva. Change Detection in Streaming Multivariate Data using Likelihood Detectors. IEEE Transactions on Knowledge and Data Engineering, 25(5):1175–1180, 2013. ",
1414
+ "bbox": [
1415
+ 169,
1416
+ 453,
1417
+ 823,
1418
+ 483
1419
+ ],
1420
+ "page_idx": 11
1421
+ },
1422
+ {
1423
+ "type": "text",
1424
+ "text": "Ludmila I Kuncheva and William J Faithfull. PCA Feature Extraction for Change Detection in Multidimensional Unlabeled Data. IEEE transactions on neural networks and learning systems, 25(1):69–80, 2014. ",
1425
+ "bbox": [
1426
+ 173,
1427
+ 491,
1428
+ 823,
1429
+ 535
1430
+ ],
1431
+ "page_idx": 11
1432
+ },
1433
+ {
1434
+ "type": "text",
1435
+ "text": "Shuang Li, Yao Xie, Hanjun Dai, and Le Song. M-statistic for Kernel Change-point Detection. In NIPS, pp. 3366–3374, 2015. ",
1436
+ "bbox": [
1437
+ 173,
1438
+ 544,
1439
+ 823,
1440
+ 574
1441
+ ],
1442
+ "page_idx": 11
1443
+ },
1444
+ {
1445
+ "type": "text",
1446
+ "text": "Tsung-Yi Lin, Piotr Dollar, Ross B Girshick, Kaiming He, Bharath Hariharan, and Serge J. Belongie. ´ Feature Pyramid Networks for Object Detection. In CVPR, volume 1, 2017. ",
1447
+ "bbox": [
1448
+ 173,
1449
+ 583,
1450
+ 820,
1451
+ 613
1452
+ ],
1453
+ "page_idx": 11
1454
+ },
1455
+ {
1456
+ "type": "text",
1457
+ "text": "Song Liu, Makoto Yamada, Nigel Collier, and Masashi Sugiyama. Change-point Detection in Timeseries Data by Relative Density-ratio Estimation. Neural Networks, 43:72–83, 2013. ",
1458
+ "bbox": [
1459
+ 173,
1460
+ 621,
1461
+ 821,
1462
+ 651
1463
+ ],
1464
+ "page_idx": 11
1465
+ },
1466
+ {
1467
+ "type": "text",
1468
+ "text": "Rakesh Malladi, Giridhar P Kalamangalam, and Behnaam Aazhang. Online Bayesian Change Point Detection Algorithms for Segmentation of Epileptic Activity. In Signals, Systems and Computers, pp. 1833–1837. IEEE, 2013. ",
1469
+ "bbox": [
1470
+ 173,
1471
+ 660,
1472
+ 823,
1473
+ 703
1474
+ ],
1475
+ "page_idx": 11
1476
+ },
1477
+ {
1478
+ "type": "text",
1479
+ "text": "George D Montanez, Saeed Amizadeh, and Nikolay Laptev. Inertial Hidden Markov Models: Modeling Change in Multivariate Time Series. In AAAI, pp. 1819–1825, 2015. ",
1480
+ "bbox": [
1481
+ 171,
1482
+ 712,
1483
+ 825,
1484
+ 742
1485
+ ],
1486
+ "page_idx": 11
1487
+ },
1488
+ {
1489
+ "type": "text",
1490
+ "text": "Sang Min Oh, James M Rehg, Tucker Balch, and Frank Dellaert. Learning and Inferring Motion Patterns using Parametric Segmental Switching Linear Dynamic Systems. IJCV, 77(1-3):103– 124, 2008. ",
1491
+ "bbox": [
1492
+ 171,
1493
+ 751,
1494
+ 823,
1495
+ 795
1496
+ ],
1497
+ "page_idx": 11
1498
+ },
1499
+ {
1500
+ "type": "text",
1501
+ "text": "Aaron van den Oord, Sander Dieleman, Heiga Zen, Karen Simonyan, Oriol Vinyals, Alex Graves, Nal Kalchbrenner, Andrew Senior, and Koray Kavukcuoglu. Wavenet: A Generative Model for Raw Audio. arXiv preprint arXiv:1609.03499, 2016. ",
1502
+ "bbox": [
1503
+ 173,
1504
+ 804,
1505
+ 823,
1506
+ 847
1507
+ ],
1508
+ "page_idx": 11
1509
+ },
1510
+ {
1511
+ "type": "text",
1512
+ "text": "Ewan S Page. Continuous inspection schemes. Biometrika, 41(1/2):100–115, 1954. ",
1513
+ "bbox": [
1514
+ 171,
1515
+ 856,
1516
+ 723,
1517
+ 872
1518
+ ],
1519
+ "page_idx": 11
1520
+ },
1521
+ {
1522
+ "type": "text",
1523
+ "text": "Abdulhakim A Qahtan, Basma Alharbi, Suojin Wang, and Xiangliang Zhang. A Pca-based Change Detection Framework for Multidimensional Data Streams: Change Detection in Multidimensional Data Streams. In SIGKDD, pp. 935–944. ACM, 2015. ",
1524
+ "bbox": [
1525
+ 176,
1526
+ 882,
1527
+ 825,
1528
+ 924
1529
+ ],
1530
+ "page_idx": 11
1531
+ },
1532
+ {
1533
+ "type": "text",
1534
+ "text": "Yunus Saatc¸i, Ryan D Turner, and Carl E Rasmussen. Gaussian Process Change Point Models. In ICML, pp. 927–934. Citeseer, 2010. \nWei Shen, Mu Zhou, Feng Yang, Caiyun Yang, and Jie Tian. Multi-scale Convolutional Neural Networks for Lung Nodule Classification. In International Conference on Information Processing in Medical Imaging, pp. 588–599. Springer, 2015. \nSainbayar Sukhbaatar, Jason Weston, Rob Fergus, et al. End-to-end Memory Networks. In NIPS, pp. 2440–2448, 2015. \nChristian Szegedy, Wei Liu, Yangqing Jia, Pierre Sermanet, Scott Reed, Dragomir Anguelov, Dumitru Erhan, Vincent Vanhoucke, Andrew Rabinovich, et al. Going Deeper with Convolutions. CVPR, 2015. \nAndreas S Weigend. Time Series Prediction: Forecasting the Future and Understanding the Past. Routledge, 2018. \nXiang Xuan and Kevin Murphy. Modeling Changing Dependency Structure in Multivariate Time Series. In ICML, pp. 1055–1062, 2007. \nMakoto Yamada, Akisato Kimura, Futoshi Naya, and Hiroshi Sawada. Change-Point Detection with Feature Selection in High-Dimensional Time-Series Data. In IJCAI, pp. 1827–1833, 2013. \nKenji Yamanishi and Jun-ichi Takeuchi. A Unifying Framework for Detecting Outliers and Change Points from Non-stationary Time Series Data. In SIGKDD, pp. 676–681. ACM, 2002. \nJianbo Yang, Minh Nhut Nguyen, Phyo Phyo San, Xiaoli Li, and Shonali Krishnaswamy. Deep Convolutional Neural Networks on Multichannel Time Series for Human Activity Recognition. In IJCAI, pp. 3995–4001, 2015. \nFisher Yu and Vladlen Koltun. Multi-scale Context Aggregation by Dilated Convolutions. In ICLR, 2016. \nNancy R Zhang, David O Siegmund, Hanlee Ji, and Jun Z Li. Detecting Simultaneous Changepoints in Multiple Sequences. Biometrika, 97(3):631–645, 2010. ",
1535
+ "bbox": [
1536
+ 171,
1537
+ 99,
1538
+ 826,
1539
+ 553
1540
+ ],
1541
+ "page_idx": 12
1542
+ },
1543
+ {
1544
+ "type": "text",
1545
+ "text": "APPENDIX A SYNTHETIC DATA ",
1546
+ "text_level": 1,
1547
+ "bbox": [
1548
+ 176,
1549
+ 102,
1550
+ 449,
1551
+ 118
1552
+ ],
1553
+ "page_idx": 13
1554
+ },
1555
+ {
1556
+ "type": "text",
1557
+ "text": "Table 1-3 show the AUC (Area Under the ROC Curve) results for synthetic data. To detect changepoints, we apply non-maximum suppression with a sliding window of length $\\omega$ and filter the maximum values with a threshold. We evaluate AUC by iterating over this threshold. Since changepoints may not exactly match the true changepoints, we use a tolerance parameter $\\eta$ that sets how close a detected change must be to a true change to be considered a correct detection. We match detected changepoints to the closest true changepoint within $\\eta$ time step. ",
1558
+ "bbox": [
1559
+ 174,
1560
+ 132,
1561
+ 825,
1562
+ 218
1563
+ ],
1564
+ "page_idx": 13
1565
+ },
1566
+ {
1567
+ "type": "text",
1568
+ "text": "Table 1 shows the results for the experiment of “train abrupt and test gradual” for synthetic data. \nTable 2 shows the results for the experiment of “train gradual and test abrupt” for synthetic data. \nTable 3 shows the results for the experiment of “train all and test all” for synthetic data. ",
1569
+ "bbox": [
1570
+ 174,
1571
+ 224,
1572
+ 825,
1573
+ 266
1574
+ ],
1575
+ "page_idx": 13
1576
+ },
1577
+ {
1578
+ "type": "table",
1579
+ "img_path": "images/43a3b7f1c6a46324d86158ae4f9bdb177d4fc6651fe1d108467f081596d9f787.jpg",
1580
+ "table_caption": [
1581
+ "Table 1: AUC results for the experiment of “train abrupt and test gradual” for synthetic data for each tolerance (η) "
1582
+ ],
1583
+ "table_footnote": [],
1584
+ "table_body": "<table><tr><td>Tolerance (n)</td><td>RCN</td><td>CNN</td><td>GGM</td><td>PRNN-S</td><td>DWNN</td><td>PRNN</td></tr><tr><td>8</td><td>0.002</td><td>0.003</td><td>0.007</td><td>0.006</td><td>0.005</td><td>0.003</td></tr><tr><td>16</td><td>0.008</td><td>0.011</td><td>0.010</td><td>0.023</td><td>0.016</td><td>0.011</td></tr><tr><td>32</td><td>0.026</td><td>0.042</td><td>0.012</td><td>0.076</td><td>0.063</td><td>0.043</td></tr><tr><td>64</td><td>0.107</td><td>0.153</td><td>0.012</td><td>0.271</td><td>0.213</td><td>0.155</td></tr><tr><td>128</td><td>0.391</td><td>0.421</td><td>0.013</td><td>0.625</td><td>0.546</td><td>0.503</td></tr><tr><td>256</td><td>0.783</td><td>0.757</td><td>0.016</td><td>0.849</td><td>0.822</td><td>0.863</td></tr><tr><td>512</td><td>0.824</td><td>0.801</td><td>0.023</td><td>0.862</td><td>0.835</td><td>0.876</td></tr></table>",
1585
+ "bbox": [
1586
+ 269,
1587
+ 324,
1588
+ 728,
1589
+ 430
1590
+ ],
1591
+ "page_idx": 13
1592
+ },
1593
+ {
1594
+ "type": "table",
1595
+ "img_path": "images/f41c9aab66396106bea05be4bf3eacfa491daf4ca222ddc6d880799f00bbce6f.jpg",
1596
+ "table_caption": [
1597
+ "Table 2: AUC results for the experiment of “train gradual and test abrupt” for synthetic data for each tolerance (η) "
1598
+ ],
1599
+ "table_footnote": [],
1600
+ "table_body": "<table><tr><td>Tolerance (n)</td><td>RCN</td><td>CNN</td><td>GGM</td><td>PRNN-S</td><td>DWNN</td><td>PRNN</td></tr><tr><td>8</td><td>0.001</td><td>0.013</td><td>0.007</td><td>0.033</td><td>0.102</td><td>0.027</td></tr><tr><td>16</td><td>0.003</td><td>0.049</td><td>0.011</td><td>0.115</td><td>0.301</td><td>0.100</td></tr><tr><td>32</td><td>0.014</td><td>0.188</td><td>0.013</td><td>0.347</td><td>0.599</td><td>0.376</td></tr><tr><td>64</td><td>0.269</td><td>0.665</td><td>0.013</td><td>0.689</td><td>0.787</td><td>0.724</td></tr><tr><td>128</td><td>0.650</td><td>0.797</td><td>0.014</td><td>0.811</td><td>0.822</td><td>0.816</td></tr><tr><td>256</td><td>0.795</td><td>0.814</td><td>0.018</td><td>0.833</td><td>0.833</td><td>0.830</td></tr><tr><td>512</td><td>0.817</td><td>0.830</td><td>0.026</td><td>0.834</td><td>0.834</td><td>0.830</td></tr></table>",
1601
+ "bbox": [
1602
+ 267,
1603
+ 494,
1604
+ 728,
1605
+ 599
1606
+ ],
1607
+ "page_idx": 13
1608
+ },
1609
+ {
1610
+ "type": "table",
1611
+ "img_path": "images/14bc3853369456c59d2f55ae1e40241b8316ad9308099f8bedd73c0448d10813.jpg",
1612
+ "table_caption": [
1613
+ "Table 3: AUC results for the experiment of “train all and test all” for synthetic data for each tolerance (η) "
1614
+ ],
1615
+ "table_footnote": [],
1616
+ "table_body": "<table><tr><td>Tolerance (n)</td><td>RCN</td><td>CNN</td><td>GGM</td><td>PRNN-S</td><td>DWNN</td><td>PRNN</td></tr><tr><td>8</td><td>0.039</td><td>0.061</td><td>0.007</td><td>0.027</td><td>0.014</td><td>0.039</td></tr><tr><td>16</td><td>0.093</td><td>0.144</td><td>0.011</td><td>0.100</td><td>0.061</td><td>0.122</td></tr><tr><td>32</td><td>0.204</td><td>0.244</td><td>0.012</td><td>0.249</td><td>0.164</td><td>0.284</td></tr><tr><td>64</td><td>0.390</td><td>0.407</td><td>0.017</td><td>0.496</td><td>0.406</td><td>0.551</td></tr><tr><td>128</td><td>0.582</td><td>0.586</td><td>0.021</td><td>0.737</td><td>0.700</td><td>0.747</td></tr><tr><td>256</td><td>0.788</td><td>0.747</td><td>0.030</td><td>0.863</td><td>0.840</td><td>0.860</td></tr><tr><td>512</td><td>0.852</td><td>0.808</td><td>0.043</td><td>0.874</td><td>0.860</td><td>0.869</td></tr></table>",
1617
+ "bbox": [
1618
+ 269,
1619
+ 665,
1620
+ 728,
1621
+ 770
1622
+ ],
1623
+ "page_idx": 13
1624
+ },
1625
+ {
1626
+ "type": "text",
1627
+ "text": "APPENDIX B REAL WORLD DATA ",
1628
+ "text_level": 1,
1629
+ "bbox": [
1630
+ 176,
1631
+ 102,
1632
+ 467,
1633
+ 118
1634
+ ],
1635
+ "page_idx": 14
1636
+ },
1637
+ {
1638
+ "type": "text",
1639
+ "text": "B.1 OPPORTUNITY DATA ",
1640
+ "text_level": 1,
1641
+ "bbox": [
1642
+ 174,
1643
+ 133,
1644
+ 359,
1645
+ 148
1646
+ ],
1647
+ "page_idx": 14
1648
+ },
1649
+ {
1650
+ "type": "text",
1651
+ "text": "Table 4 shows the results for Opportunity data. ",
1652
+ "bbox": [
1653
+ 174,
1654
+ 160,
1655
+ 480,
1656
+ 174
1657
+ ],
1658
+ "page_idx": 14
1659
+ },
1660
+ {
1661
+ "type": "table",
1662
+ "img_path": "images/0b4863d54c8df072fe84888110118a160e979121fa31ce48c87d7a0cddb313e7.jpg",
1663
+ "table_caption": [
1664
+ "Table 4: AUC results of Opportunity data for each tolerance (η) "
1665
+ ],
1666
+ "table_footnote": [],
1667
+ "table_body": "<table><tr><td>Tolerance (n)</td><td>RCN</td><td>CNN</td><td>GGM</td><td>PRNN-S</td><td>DWNN</td><td>PRNN</td></tr><tr><td>2</td><td>0.036</td><td>0.024</td><td>0.007</td><td>0.007</td><td>0.034</td><td>0.040</td></tr><tr><td>4</td><td>0.077</td><td>0.066</td><td>0.016</td><td>0.024</td><td>0.093</td><td>0.104</td></tr><tr><td>8</td><td>0.213</td><td>0.197</td><td>0.022</td><td>0.068</td><td>0.234</td><td>0.297</td></tr><tr><td>16</td><td>0.513</td><td>0.442</td><td>0.027</td><td>0.236</td><td>0.515</td><td>0.601</td></tr><tr><td>32</td><td>0.713</td><td>0.629</td><td>0.032</td><td>0.418</td><td>0.712</td><td>0.773</td></tr><tr><td>64</td><td>0.744</td><td>0.687</td><td>0.046</td><td>0.471</td><td>0.753</td><td>0.815</td></tr><tr><td>128</td><td>0.771</td><td>0.710</td><td>0.065</td><td>0.507</td><td>0.759</td><td>0.833</td></tr></table>",
1668
+ "bbox": [
1669
+ 271,
1670
+ 218,
1671
+ 727,
1672
+ 324
1673
+ ],
1674
+ "page_idx": 14
1675
+ },
1676
+ {
1677
+ "type": "text",
1678
+ "text": "B.2 BEE WAGGLE DANCE DATA",
1679
+ "text_level": 1,
1680
+ "bbox": [
1681
+ 174,
1682
+ 347,
1683
+ 408,
1684
+ 362
1685
+ ],
1686
+ "page_idx": 14
1687
+ },
1688
+ {
1689
+ "type": "text",
1690
+ "text": "Table 5 shows the results for Bee Waggle Dance data. ",
1691
+ "bbox": [
1692
+ 174,
1693
+ 373,
1694
+ 526,
1695
+ 388
1696
+ ],
1697
+ "page_idx": 14
1698
+ },
1699
+ {
1700
+ "type": "table",
1701
+ "img_path": "images/65bac6fb9ffd4a3a01e9f1364215a3ebd9bdb136b1930325524894ab707bc698.jpg",
1702
+ "table_caption": [
1703
+ "Table 5: AUC results of Bee Waggle Dance data for each tolerance $( \\eta )$ "
1704
+ ],
1705
+ "table_footnote": [],
1706
+ "table_body": "<table><tr><td>Tolerance (n)</td><td>RCN</td><td>CNN</td><td>GGM</td><td>PRNN-S</td><td>DWNN</td><td>PRNN</td></tr><tr><td>2</td><td>0.007</td><td>0.008</td><td>0.019</td><td>0.009</td><td>0.007</td><td>0.025</td></tr><tr><td>4</td><td>0.007</td><td>0.053</td><td>0.023</td><td>0.009</td><td>0.023</td><td>0.145</td></tr><tr><td>8</td><td>0.054</td><td>0.192</td><td>0.041</td><td>0.119</td><td>0.131</td><td>0.400</td></tr><tr><td>16</td><td>0.178</td><td>0.703</td><td>0.077</td><td>0.393</td><td>0.329</td><td>0.608</td></tr><tr><td>32</td><td>0.841</td><td>0.789</td><td>0.083</td><td>0.643</td><td>0.777</td><td>0.932</td></tr><tr><td>64</td><td>0.841</td><td>0.789</td><td>0.083</td><td>0.643</td><td>0.777</td><td>0.932</td></tr><tr><td>128</td><td>0.841</td><td>0.789</td><td>0.083</td><td>0.643</td><td>0.777</td><td>0.932</td></tr></table>",
1707
+ "bbox": [
1708
+ 269,
1709
+ 431,
1710
+ 728,
1711
+ 537
1712
+ ],
1713
+ "page_idx": 14
1714
+ }
1715
+ ]
parse/train/HkGTwjCctm/HkGTwjCctm_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/HkGTwjCctm/HkGTwjCctm_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SyeD0RVtvS/SyeD0RVtvS.md ADDED
@@ -0,0 +1,324 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # DEEPSFM: STRUCTURE FROM MOTION VIA DEEP BUNDLE ADJUSTMENT
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Structure from motion (SfM) is an essential computer vision problem which has not been well handled by deep learning. One of the promising trends is to apply explicit structural constraint, e.g. 3D cost volume, into the network. In this work, we design a physical driven architecture, namely DeepSFM, inspired by traditional Bundle Adjustment (BA), which consists of two cost volume based architectures for depth and pose estimation respectively, iteratively running to improve both. In each cost volume, we encode not only photo-metric consistency across multiple input images, but also geometric consistency to ensure that depths from multiple views agree with each other. The explicit constraints on both depth (structure) and pose (motion), when combined with the learning components, bring the merit from both traditional BA and emerging deep learning technology. Extensive experiments on various datasets show that our model achieves the state-of-the-art performance on both depth and pose estimation with superior robustness against less number of inputs and the noise in initialization.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ Structure from motion (SfM) is a fundamental human vision functionality which recovers 3D structures from the projected retinal images of moving objects or scenes. It enables machines to sense and understand with the 3D world and is critical in achieving real-world artificial intelligence. Over decades of researches, there has been a lot of great success on SfM; however, the performance is far from perfect.
12
+
13
+ Conventional SfM approaches (Agarwal et al., 2011; Wu et al., 2011a; Engel et al., 2017; Delaunoy & Pollefeys, 2014) heavily rely on Bundle-Adjustment (BA) (Triggs et al., 1999; Agarwal et al., 2010), in which 3D structures and camera motions of each view are jointly optimized via LevenbergMarquardt (LM) algorithm (Nocedal & Wright, 2006) according to the cross-view correspondence. Though successful in certain scenarios, conventional SfM based approaches are fundamentally restricted by the coverage of the provided multiple views and the overlaps among them. They also typically fail to reconstruct textureless or non-lambertian (e.g. reflective or transparent) surfaces due to the missing of correspondence across views. As a result, selecting sufficiently good input views and the right scene requires excessive caution and is usually non-trivial to even experienced user.
14
+
15
+ Recent researches resort to deep learning to deal with the typical weakness of conventional SfM. Early effort utilizes deep neural network as a powerful mapping function that directly regresses the structures and motions (Ummenhofer et al., 2017; Vijayanarasimhan et al., 2017; Zhou et al., 2017; Wang et al., 2017). Since the geometric constraints of structures and motions are not explicitly enforced, the network does not learn the underlying physics and prone to overfitting. Consequently, they do not perform as accurate as conventional SfM approaches and suffer from extremely poor generalization capability. Most recently, the 3D cost volume (Teed & Deng, 2018) has been introduced to explicit leveraging photo-consistency in a differentiable way, which significantly boosts the performance of deep learning based 3D reconstruction. However, the camera motion usually has to be known (Yao et al., 2018; Im et al., 2019) or predicted via direct regression (Ummenhofer et al., 2017; Zhou et al., 2017; Teed & Deng, 2018), which still suffer from generalization issue.
16
+
17
+ In this paper, we explicitly enforce photo-consistency, geometric-consistency, and camera motion constraints in a unified deep learning framework. In particular, our network includes a depth based cost volume (D-CV) and a pose based cost volume (P-CV). D-CV optimizes per-pixel depth values with the current camera poses, while P-CV optimizes camera poses with the current depth estimations. Conventional 3D cost volume enforces photo-consistency by unprojecting pixels into the discrete camera fronto-parallel planes and computing the photometric (i.e. image feature) difference as the cost. In addition to that, our D-CV further enforces geometric-consistency among cameras with their current depth estimations by adding the geometric (i.e. depth) difference to the cost. Note that the initial depth estimation can be obtained using the conventional 3D cost volume. For pose estimation, rather than direct regression, our P-CV discretizes around the current camera positions, and also computes the photometric and/or geometric differences by hypothetically moving the camera into the discretized position. Note that the initial camera pose can be obtained by a rough estimation from the direct regression methods such as (Ummenhofer et al., 2017). Our framework bridges the gap between the conventional and deep learning based SfM by incorporating explicit constraints of photo-consistency, geometric-consistency and camera motions all in the deep network.
18
+
19
+ The closest work in the literature is the recently proposed BA-Net (Tang & Tan, 2018), which also aims to explicitly incorporate multi-view geometric constraints in a deep learning framework. They achieve this goal by integrating the LM optimization into the network. However, the LM iterations are unrolled with few iterations due to the memory and computational inefficiency, and thus it may lead to non-optimal solutions. In contrast, our method does not have a restriction on the number of iterations and achieves empirically better performance. Furthermore, LM in SfM originally optimizes point and camera positions, and thus direct integration of LM still requires good correspondences. To evade the correspondence issue in typical SfM, their models employ a direct regressor to predict depth at the front end, which heavily relies on prior in the training data. In contrast, our model is a fully physical-driven architecture that less suffers from over-fitting issue for both depth and pose estimation.
20
+
21
+ To demonstrate the superiority of our method, we conduct extensive experiments on DeMoN datasets, ScanNet and ETH3D. The experiments show that our approach outperforms the state-ofthe-art Schonberger & Frahm (2016); Ummenhofer et al. (2017); Tang & Tan (2018).
22
+
23
+ # 2 RELATED WORK
24
+
25
+ There is a large body of work that focuses on inferring depth or motion from color images, ranging from single view, multiple views and monocular video. We discuss them in the context of our work.
26
+
27
+ Single-view Depth Estimation. While ill-posed, the emerging of deep learning technology enables the estimation of depth from a single color image. The early work directly formulates this into a per-pixel regression problem (Eigen et al., 2014), and follow-up works improve the performance by introducing multi-scale network architectures (Eigen et al., 2014; Eigen & Fergus, 2015), skipconnections (Wang et al., 2015; Liu et al., 2016), powerful decoder and post process (Garg et al., 2016; Laina et al., 2016; Kuznietsov et al., 2017; Wang et al., 2015; Liu et al., 2016), and new loss functions (Fu et al., 2018). Even though single view based methods generate plausible results, the models usually resort heavily to the prior in the training data and suffer from generalization capability. Nevertheless, these methods still act as an important component in some multi-view systems (Tang & Tan, 2018)
28
+
29
+ Traditional Structure-from-Motion Simultaneously estimating 3d structure and camera motion is a well studied problem which has a traditional tool-chain of techniques (Furukawa et al., 2010; Newcombe et al., 2011; Wu et al., 2011b). Structure from Motion(SfM) has made great progress in many aspects. Lowe (2004); Han et al. (2015) aim at improving features and Snavely (2011) introduce new optimization techniques. More robust structures and data representations are introduced by Gherardi et al. (2010); Schonberger & Frahm (2016). Simultaneous Localization and Sapping(SLAM) systems track the motion of the camera and build 3D structure from video sequence (Newcombe et al., 2011; Engel et al., 2014; Mur-Artal et al., 2015; Mur-Artal & Tardós, 2017). Engel et al. (2014) propose the photometric bundle adjustment algorithm to directly minimize the photometric error of aligned pixels. However, traditional SfM and SLAM methods are sensitive to low texture region, occlusions, moving objects and lighting changes, which limit the performance and stability.
30
+
31
+ Deep Learning for Structure-from-Motion Deep neural networks have shown great success in stereo matching and Structure-from-Motion problems. Ummenhofer et al. (2017); Wang et al. (2017); Vijayanarasimhan et al. (2017); Zhou et al. (2017) regress depth map and camera pose directly in a supervised manner or by introducing photometric constraints between depth and motion as a self-supervision signal. Such methods solve the camera motion as a regression problem, and the relation between camera motion and depth prediction is neglected.
32
+
33
+ ![](images/8f3457766b539a218a007e3afc9869af94fe3e63eee69596ebe607ac992c5a31.jpg)
34
+ Figure 1: Overview of our method. 2D CNN is used to extract photometric feature to construct cost volumes. Initial source depth maps are used to introduce geometry consistency. A series of 3D CNN layers are applied for both pose based cost volume and D-CV. Then a context network and depth regression operation are applied to produce predicted depth map of reference image.
35
+
36
+ Recently, some methods exploit multi-view photometric or feature-metric constraints to enforce the relationship between dense depth map and the camera pose in network. The SE3 transformer layer is introduced by Teed & Deng (2018), which uses geometry to map flow and depth into a camera pose update. Wang et al. (2018) propose the differentiable camera motion estimator based on the Direct Visual Odometry (Steinbrücker et al., 2011). Clark et al. (2018) using a LSTM-RNN (Hochreiter et al., 2001) as the optimizer to solve nonlinear least squares in two-view SfM. Tang & Tan (2018) train a network to generate a set of basis depth maps and optimize depth and camera poses in a BA-layer by minimizing a feature-metric error.
37
+
38
+ # 3 ARCHITECTURE
39
+
40
+ Our framework receives frames of a scene from different viewpoints, and produces photo-metrically and geometrically consistent depth maps across all frames and the corresponding camera poses. Similar to BA, we also assume initial structures (i.e depth maps) and motions (i.e. camera poses) are given. Note that the initialization is not necessary to be super accurate for the good performance using our framework and thus can be easily obtained from some direct regression methods (Ummenhofer et al., 2017).
41
+
42
+ Now we introduce the detail of our model – DeepSFM. Without loss of generality, we describe our model taking two images as input, namely the reference image and the source image, as an example, and all the technical components can be extended for multiple images straightforward. As shown in Figure 1, we first extract feature maps from input images through a shared encoder. We then sample the solution space for depth uniformly in the inverse-depth space between a predefined minimum and maximum range and camera pose around the initialization respectively. After that, we build cost volumes accordingly to reason the confidence of each hypothesis. This is achieved by validating the consistency between the feature of the reference view and the ones warped from the source image. Besides photo-metric consistency that measures the color image similarity, we also take into account the geometric consistency across warped depth maps. Note that depth and pose require different designs of cost volume to efficiently sample the hypothesis space. Gradients can back-propagate through cost volumes, and cost-volume construction does not affect any trainable parameters. The cost volumes are then fed into 3D CNN to regress new depth and pose. These updated value can be used to create new cost volumes, and the model improves the prediction iteratively.
43
+
44
+ For notations, we denote $\{ \mathbf { I } _ { i } \} _ { i = 1 } ^ { n }$ as the image sequences in one scene, $\{ \mathbf { D } _ { i } \} _ { i = 1 } ^ { n }$ as the corresponding ground truth depth maps, $\{ { \bf K } _ { i } \} _ { i = 1 } ^ { n }$ as the camera intrinsics, $\{ \mathbf { R } _ { i } , \mathbf { t } _ { i } \} _ { i = 1 } ^ { n }$ as the ground truth rotations and translations of camera, $\{ \mathbf { D } _ { i } ^ { * } \} _ { i = 1 } ^ { n }$ and $\{ \mathbf { R } _ { i } ^ { * } , \mathbf { t } _ { i } ^ { * } \} _ { i = 1 } ^ { n }$ as initial depth maps and camera pose parameters for constructing cost volumes, where $n$ is the number of image samples.
45
+
46
+ # 3.1 2D FEATURE EXTRACTION
47
+
48
+ Given the input sequences $\{ \mathbf { I } _ { i } \} _ { i = 1 } ^ { n }$ , we extract the 2D CNN feature $\{ \mathbf { F } _ { i } \} _ { i = 1 } ^ { n }$ for each frame. Firstly, a 7 layers’ CNN with kernel size $3 \times 3$ is applied to extract low contextual information. Then we adopt a spatial pyramid pooling (SPP) (Kaiming et al., 2014) module, which can extract hierarchical multiscale features through 4 average pooling blocks with different pooling kernel size $( 4 \times 4 , 8 \times 8$ , $1 6 \times$ $1 6 , 3 2 \times 3 2 )$ . Finally, we pass the concatenated features through 2D CNNs to get the 32-channel image features after upsampling these multi-scale features into the same resolution. These image sequence features are used by the building of both our depth based and pose based cost volumes.
49
+
50
+ # 3.2 DEPTH BASED COST VOLUME (D-CV)
51
+
52
+ Traditional plane sweep cost volume aims to back-project the source images onto successive virtual planes in the 3D space and measure photo-consistency error among the warped image features and reference image features for each pixel. Different from the cost volume used in previous multiview and structure-from-motion methods, we construct a D-CV to further utilize the local geometric consistency constraints introduced by depth maps. Inspired by the traditional plane sweep cost volumes, our D-CV is a concatenation of three components: the reference image features, the warped source image features and the homogeneous depth consistency maps.
53
+
54
+ Hypothesis Sampling To back-project the features and depth maps from source viewpoint to the 3D space in reference viewpoint, we uniformly sample a set of $L$ virtual planes $\{ d _ { l } \} _ { l = 1 } ^ { L }$ in the inverse-depth space which are perpendicular to the forward direction $z$ -axis) of the reference viewpoint. These planes serve as the hypothesis of the output depth map, and the cost volume can be built upon them.
55
+
56
+ Feature warping. To construct our D-CV, we first warp source image features $\mathbf { F } _ { i }$ (of size $C H a n n e l \times W i d t h \times H e i g h t )$ to each of the hypothetical depth map planes $d _ { l }$ using camera intrinsic matrix $\mathbf { K }$ and initial camera poses $\{ \mathbf { R } _ { i } ^ { * } , \mathbf { t } _ { i } ^ { * } \}$ , according to:
57
+
58
+ $$
59
+ \tilde { \mathbf { F } } _ { i l } ( u ) = \mathbf { F } _ { i } \left( \tilde { u } _ { l } \right) , \tilde { u } _ { l } \sim \mathbf { K } \left[ \mathbf { R } _ { i } ^ { * } | \mathbf { t } _ { i } ^ { * } \right] \left[ \begin{array} { c } { \left( \mathbf { K } ^ { - 1 } u \right) d _ { l } } \\ { 1 } \end{array} \right]
60
+ $$
61
+
62
+ where $u$ and $\tilde { u } _ { l }$ are the homogeneous coordinates of each pixel in the reference view and the projected coordinates onto the corresponding source view. $\tilde { \mathbf { F } } _ { i l } ( u )$ denotes the warped feature of the source image through the $l$ -th virtual depth plane. Note that the projected homogeneous coordinates $\tilde { u } _ { l }$ are floating numbers, and we adopt a differentiable bilinear interpolation to generate the warped feature map $\tilde { \mathbf { F } } _ { i l }$ . The pixels with no source view coverage are assigned with zeros. Following Im et al. (2019), we concatenate the reference feature and the warped reference feature together and obtain a $2 C H \times L \times W \times H$ 4D feature volume.
63
+
64
+ Depth consistency. In addition to photometric consistency, to exploit geometric consistency and promote the quality of depth prediction, we add two more channels on each virtual plane: the warped initial depth maps from the source view and the depth map of the virtual plane from the perspective of the source view. Note that the former is the same as image feature warping, while the latter requires a coordinate transformation from the reference camera to the source camera.
65
+
66
+ In particular, the first channel is computed as follows. The initial depth map of source image is first down-sampled and then warped to hypothetical depth planes based on initial camera pose similarly to the image feature warping:
67
+
68
+ $$
69
+ \tilde { \mathbf { D } } _ { i l } ^ { * } ( u ) = \mathbf { D } _ { i } ^ { * } \left( \tilde { u } _ { l } \right)
70
+ $$
71
+
72
+ where the coordinates $u$ and $\tilde { u } _ { l }$ are defined in Eq. 1 and $\tilde { \mathbf { D } } _ { i l } ^ { * } ( u )$ represents the warped one-channel depth map on the $l$ -th depth plane. One distinction between depth warping and feature warping is that we adopt nearest neighbor sampling for depth warping, instead of bilinear interpolation. A comparison between the two methods are provided in Appendix C.
73
+
74
+ The second channel contains the depth values of the virtual planes in the reference view by seeing them from the source view. To transform the virtual planes to the source view coordinate system, we apply a $T$ function on each virtual plane $d _ { l }$ in the following:
75
+
76
+ $$
77
+ T ( d _ { l } ) \sim [ \mathbf { R } _ { i } ^ { * } | \mathbf { t } _ { i } ^ { * } ] \left[ \begin{array} { c } { \left( \mathbf { K } ^ { - 1 } u \right) d _ { l } } \\ { 1 } \end{array} \right]
78
+ $$
79
+
80
+ We stack the warped initial depth maps and the transformed depth planes together, and get a depth volume of size $2 \times L \times W \times H$ .
81
+
82
+ By concatenating the feature volume and depth volume together, we obtain a 4D cost tensor of size $( 2 C H + 2 ) \times L \times W \times H$ . Given the 4D cost volume, our network learns a cost volume of size $L \times W \times H$ using several 3D convolutional layers with kernel size $3 \times 3 \times 3$ . When there is more than one source image, we get the final cost volume by averaging over multiple input source views.
83
+
84
+ # 3.3 POSE BASED COST VOLUME (P-CV)
85
+
86
+ In addition to the construction of D-CV, we also propose a P-CV, aiming at optimizing initial camera poses through both photometric and geometric consistency. Instead of building a cost volume based on hypothetical depth map planes, our novel P-CV is constructed based on a set of assumptive camera poses. Similar to D-CV, P-CV is also concatenated by three components: the reference image features, the warped source image features and the homogeneous depth consistency maps. Given initial camera pose parameters $\{ \mathbf { R } _ { i } ^ { * } , \mathbf { t } _ { i } ^ { * } \}$ , we uniformly sample a batch of discrete candidate camera poses around. Since jointly sampling camera rotation and translation along 6-DoF is costly, we shift rotation and translation separately by keeping one frozen while sampling the other one. In the end, a group of $P$ virtual camera poses noted as $\{ \bar { \mathbf { R } } _ { i p } ^ { * } | \mathbf { t } _ { i p } ^ { * } \} _ { p = 1 } ^ { P }$ around input pose are obtained for cost volume construction.
87
+
88
+ The posed-based cost volume is also constructed by concatenating image features and homogeneous depth maps. However, source view features and depth maps are warped based on sampled camera poses. For feature warping, we compute $\tilde { u } _ { p }$ as following equations:
89
+
90
+ $$
91
+ \tilde { u } _ { p } \sim { \bf K } \left[ { \bf R } _ { i p } ^ { * } | \mathbf { t } _ { i p } ^ { * } \right] \left[ \begin{array} { c } { \left( { \bf K } ^ { - 1 } u \right) { \bf D } _ { i } ^ { * } } \\ { 1 } \end{array} \right]
92
+ $$
93
+
94
+ where $\mathbf { D } _ { i } ^ { * }$ is the initial reference view depth. Similar to D-CV, we get warped source feature map $\tilde { \mathbf { F } } _ { i p }$ after bilinear sampling and concatenate it with reference view feature map. We also transform the initial reference view depth and source view depth into one homogeneous coordinate system, which enhances the geometric consistency between camera pose and multi view depth maps.
95
+
96
+ After concatenating the above feature maps and depth maps together, we again build a 4D cost volume of size $( 2 C H + 2 ) \times P \times W \times H$ , where $W$ and $H$ are the width and height of feature map, $C H$ is the number of channels. We get output of size $1 \times P \times 1 \times 1$ from the above 4-D tensor after eight 3D convolutional layers with kernel size $3 \times 3 \times 3$ , three 3D average pooling layers with stride size $2 \times 2 \times 1$ and one global average pooling at the end.
97
+
98
+ # 3.4 COST AGGREGATION AND REGRESSION
99
+
100
+ For depth prediction, we follow the cost aggregation technique introduced by Im et al. (2019). We adopt a context network, which takes reference image features and each slice of the coarse cost volume after 3D convolution as input and produce the refined cost slice. The final aggregated depth based volume is obtained by adding coarse and refined cost slices together. The last step to get depth prediction of reference image is depth regression. We pass each slice of D-CV through a soft-max function to get the probability of every depth value $l$ . Then the weighted sum of all hypothetical depth values is regarded as predicted depth map; this operation is called soft-argmax. We can also get the predicted coarse depth map by the same way using coarse D-CV. For camera poses prediction, we also apply a soft-argmax function on pose cost volume and get the estimated output rotation and translation vectors.
101
+
102
+ # 3.5 TRAINING
103
+
104
+ The DeepSFM learns the feature extractor, cost aggregation, and the regression layers in a supervised way. We denote $\hat { { \bf R } } _ { i }$ and $\hat { \mathbf { t } } _ { i }$ as predicted rotation angles and translation vectors of camera pose. Then the pose loss function is defined as the $L 1$ distance between prediction and groundtruth: $\mathcal { L } _ { r o t a t i o n } =$ $\left| \hat { \mathbf { R } } _ { i } - \mathbf { R } _ { i } \right|$ and $\mathcal { L } _ { t r a n s l a t i o n } = \left| \hat { \mathbf { t } } _ { i } - \mathbf { t } _ { i } \right|$ . We denote $\hat { D } _ { i } ^ { 0 }$ and $\hat { D } _ { i }$ as predicted coarse depth map and refined depth map for the $i$ -th image, then the depth loss function is defined as following equation:
105
+
106
+ $$
107
+ \mathcal { L } _ { d e p t h } = \sum _ { i } \lambda H ( \hat { D } _ { i } ^ { 0 } , \mathbf { D } _ { i } ) + H ( \hat { D } _ { i } , \mathbf { D } _ { i } )
108
+ $$
109
+
110
+ where $\lambda$ is weight parameter and function $H$ is Huber loss.
111
+
112
+ Our final objective becomes
113
+
114
+ $$
115
+ \mathcal { L } _ { f i n a l } = \lambda _ { r } \mathcal { L } _ { r o t a t i o n } + \lambda _ { t } \mathcal { L } _ { t r a n s l a t i o n } + \lambda _ { d } \mathcal { L } _ { d e p t h }
116
+ $$
117
+
118
+ We follow two rules to set $\lambda _ { r }$ , $\lambda _ { t }$ and $\lambda _ { d } \colon 1 \ \mathrm { , }$ ) the loss term provides gradient on the same order of numerical value range, such that no single loss term could dominate the training process, since accuracy in depth and camera pose are both important to reach a good consensus. 2) we found in practice the camera rotation has higher impact on the accuracy of the depth but not the opposite. To encourage better performance of pose, we set a relatively large $\lambda _ { r }$ . In practice, the weight parameter $\lambda$ to balance loss objective is set to 0.7, while $\lambda _ { r } = 0 . 8$ , $\lambda _ { t } = 0 . 1$ and $\lambda _ { d } = 0 . 1$ .
119
+
120
+ The RGB sequences, corresponding ground-truth depth maps and camera intrinsics and extrinsics are fed as input samples. We initialize the 2D feature extraction layers with pre-trained DPSNet weight. The initial depth maps and camera poses $\{ \mathbf { D } _ { i } ^ { * } \} _ { i = 1 } ^ { n }$ and $\{ \mathbf { R } _ { i } ^ { * } , \mathbf { \bar { t } } _ { i } ^ { * } \} _ { i = 1 } ^ { n }$ are obtained from DeMoN. To keep correct scale, we multiply translation vectors and depth maps by the norm of the ground truth camera translation vector. The whole training and testing procedure are performed as four iterations. During each iteration, we take the predicted depth maps and camera poses of previous iteration as new $\mathbf { \bar { \{ D } } _ { i } ^ { * } \} _ { i = 1 } ^ { n }$ and $\{ \mathbf { R } _ { i } ^ { * } , \mathbf { t } _ { i } ^ { * } \} _ { i = 1 } ^ { n }$ for cost volume construction.
121
+
122
+ We implement our system using PyTorch framework. The training procedure takes 6 days on 3 NVIDIA TITAN GPUs on all 160k training sequences. The training batch size is set to 4, and the Adam optimizer $( \beta _ { 1 } = 0 . 9 , \beta _ { 2 } = 0 . 9 9 9 )$ is used with learning rate $2 \times 1 0 ^ { - 4 }$ , which decreases to $4 \times 1 0 ^ { - 5 }$ after 2 epochs. Within the first two epochs, the parameters in 2D CNN feature extraction module are frozen, and the ground truth depth maps for source images are used to construct D-CV and P-CV, which are replaced with predicted depth maps from network in latter epochs. During training process, the length of input sequences is 2 (one reference image and one source image). The $L$ for D-CV is set to 64 and the $\mathbf { N }$ for P-CV is 10. The range of both cost volumes is adapted during training and testing.
123
+
124
+ # 4 EXPERIMENTS
125
+
126
+ # 4.1 DATASETS
127
+
128
+ We evaluate DeepSFM on widely used datasets and compare to state-of-the-art methods on accuracy and generalization capability.
129
+
130
+ DeMoN Datasets Proposed in DeMoN (Ummenhofer et al., 2017), this dataset contains data from various sources, including SUN3D (Xiao et al., 2013), RGB-D SLAM (Sturm et al., 2012), and Scenes11 (Chang et al., 2015). To test the generalization capability, we also evaluate on MVS (Fuhrmann et al., 2014) dataset but not use it for the training. In all four datasets, RGB image sequences and the ground truth depth maps are provided with the camera intrinsics and camera poses. Note that those datasets together provide a diverse set of both indoor and outdoor, synthetic and real-world scenes. Specifically, Scenes11 consists of synthetic images rendered from random scenes, on which ground truth camera poses and depth are perfect, but objects are lack of reality in scale and semantics. For training and testing, we use the same setting as DeMoN.
131
+
132
+ ETH3D Dataset ETH3D dataset provides a variety of indoor and outdoor scenes with highprecision ground truth 3D points captured by laser scanners, which is a more solid benchmark
133
+
134
+ dataset. Ground truth depth maps are obtained by projecting the point clouds to each camera view. Raw images are in high resolution but resized to $8 1 0 \times 5 4 0$ pixels for evaluation due to memory constraint. Again, all the models are trained on DeMoN and tested here.
135
+
136
+ <table><tr><td>MVS</td><td colspan="3">Depth</td><td colspan="2">Motion</td><td>Scenes11</td><td colspan="2">Depth</td><td colspan="3"></td></tr><tr><td>Method</td><td>L1-inv</td><td>sc-inv</td><td>L1-rel</td><td>Rot</td><td>Trans</td><td>Method</td><td>L1-inv</td><td>sc-inv</td><td>L1-rel</td><td>Rot</td><td>Trans</td></tr><tr><td>Base-Oracle</td><td>0.019</td><td>0.197</td><td>0.105</td><td>0</td><td>0</td><td>Base-Oracle</td><td>0.023</td><td>0.618</td><td>0.349</td><td>0</td><td>0</td></tr><tr><td>Base-SIFT</td><td>0.056</td><td>0.309</td><td>0.361</td><td>21.180</td><td>60.516</td><td>Base-SIFT</td><td>0.051</td><td>0.900</td><td>1.027</td><td>6.179</td><td>56.650</td></tr><tr><td>Base-FF</td><td>0.055</td><td>0.308</td><td>0.322</td><td>4.834</td><td>17.252</td><td>Base-FF</td><td>0.038</td><td>0.793</td><td>0.776</td><td>1.309</td><td>19.426</td></tr><tr><td>Base-Matlab</td><td>-</td><td>-</td><td>-</td><td>10.843</td><td>32.736</td><td>Base-Matlab</td><td>-</td><td>-</td><td>-</td><td>0.917</td><td>14.639</td></tr><tr><td>DeMoN</td><td>0.047</td><td>0.202</td><td>0.305</td><td>5.156</td><td>14.447</td><td>DeMoN</td><td>0.019</td><td>0.315</td><td>0.248</td><td>0.809</td><td>8.918</td></tr><tr><td>LS-Net</td><td>0.051</td><td>0.221</td><td>0.311</td><td>4.653</td><td>11.221</td><td>LS-Net</td><td>0.010</td><td>0.410</td><td>0.210</td><td>4.653</td><td>8.210</td></tr><tr><td>BANet</td><td>0.030</td><td>0.150</td><td>0.080</td><td>3.499</td><td>11.238</td><td>BANet</td><td>0.080</td><td>0.210</td><td>0.130</td><td>3.499</td><td>10.370</td></tr><tr><td>Ours</td><td>0.021</td><td>0.129</td><td>0.079</td><td>2.824</td><td>9.881</td><td>Ours</td><td>0.007</td><td>0.112</td><td>0.064</td><td>0.403</td><td>5.828</td></tr><tr><td>RGB-D</td><td></td><td>Depth</td><td></td><td colspan="2">Motion</td><td>Sun3D</td><td></td><td>Depth</td><td></td><td colspan="2">Motion</td></tr><tr><td>Method</td><td>L1-inv</td><td>sc-inv</td><td>L1-rel</td><td>Rot</td><td>Trans</td><td>Method</td><td>L1-inv</td><td>sc-inv</td><td>L1-rel</td><td>Rot</td><td>Trans</td></tr><tr><td>Base-Oracle</td><td>0.026</td><td>0.398</td><td>0.36</td><td>0</td><td>0</td><td>Base-Oracle</td><td>0.020</td><td>0.241</td><td>0.220</td><td>0</td><td>0</td></tr><tr><td>Base-SIFT</td><td>0.050</td><td>0.577</td><td>0.703</td><td>12.010</td><td>56.021</td><td>Base-SIFT</td><td>0.029</td><td>0.290</td><td>0.286</td><td>7.702</td><td>41.825</td></tr><tr><td>Base-FF</td><td>0.045</td><td>0.548</td><td>0.613</td><td>4.709</td><td>46.058</td><td>Base-FF</td><td>0.029</td><td>0.284</td><td>0.297</td><td>3.681</td><td>33.301</td></tr><tr><td>Base-Matlab</td><td>-</td><td>-</td><td>-</td><td>12.813</td><td>49.612</td><td>Base-Matlab</td><td>-</td><td>-</td><td>-</td><td>5.920</td><td>32.298</td></tr><tr><td>DeMoN</td><td>0.028</td><td>0.130</td><td>0.212</td><td>2.641</td><td>20.585</td><td>DeMoN</td><td>0.019</td><td>0.114</td><td>0.172</td><td>1.801</td><td>18.811</td></tr><tr><td>LS-Net</td><td>0.019</td><td>0.090</td><td>0.301</td><td>1.010</td><td>22.100</td><td>LS-Net</td><td>0.015</td><td>0.189</td><td>0.650</td><td>1.521</td><td>14.347</td></tr><tr><td>BANet</td><td>0.008</td><td>0.087</td><td>0.050</td><td>2.459</td><td>14.900</td><td>BANet</td><td>0.015</td><td>0.110</td><td>0.060</td><td>1.729</td><td>13.260</td></tr><tr><td>Ours</td><td>0.011</td><td>0.071</td><td>0.126</td><td>1.862</td><td>14.570</td><td>Ours</td><td>0.013</td><td>0.093</td><td>0.072</td><td>1.704</td><td>13.107</td></tr></table>
137
+
138
+ Table 1: Results on MVS, SUN3D, RGBD and Scenes11, the best results are noted by Bold.
139
+
140
+ # 4.2 EVALUATION
141
+
142
+ DeMoN Datasets Our results on DeMoN datasets and the comparison to other methods are shown in Table 1. We cite results of some strong baseline methods from DeMoN paper, named as Base-Oracle, Base-SIFT, Base-FF and Base-Matlab respectively (Ummenhofer et al., 2017). Base-Oracle estimate depth with the ground truth camera motion using SGM (Hirschmuller, 2005). Base-SIFT, BaseFF and Base-Matlab solve camera motion and depth using feature, optical flow, and KLT tracking correspondence from 8-pt algorithm (Hartley, 1997). We also compare to some most recent stateof-the-art methods LS-Net (Clark et al., 2018) and BA-Net (Tang & Tan, 2018). LS-Net introduces the learned LSTM-RNN optimizer to minimizing photometric error for stereo reconstruction. BANet is the most recent work that minimizes the feature-metric error between multi-view via the differentiable Levenberg-Marquardt (Lourakis & Argyros, 2005) algorithm.
143
+
144
+ To make a fair comparison, we adopt the same error metrics as DeMoN for depth and camera pose evaluation. L1-inv computes the disparity map errors, and sc-inv is a scale-invariant error metric.
145
+
146
+ <table><tr><td rowspan="2">Method</td><td colspan="5">Error metric</td><td colspan="3">Accuracy metric(δ &lt;αt)</td></tr><tr><td>abs_rel</td><td>abs_diff</td><td>sq_rel</td><td>rms</td><td>log_rms</td><td>a</td><td>q</td><td>a3</td></tr><tr><td>COLMAP</td><td>0.324</td><td>0.615</td><td>36.71</td><td>2.370</td><td>0.349</td><td>86.5</td><td>90.3</td><td>92.7</td></tr><tr><td>DeMoN</td><td>0.191</td><td>0.726</td><td>0.365</td><td>1.059</td><td>0.240</td><td>73.3</td><td>89.8</td><td>95.1</td></tr><tr><td>Ours</td><td>0.127</td><td>0.661</td><td>0.278</td><td>1.003</td><td>0.195</td><td>84.1</td><td>93.8</td><td>96.9</td></tr></table>
147
+
148
+ Table 2: Results on ETH3D (Bold: best; $\alpha = 1 . 2 5$ ). abs_rel, abs_diff, sq_rel, rms, and log_rms, are absolute relative error, absolute difference, square relative difference, root mean square and log root mean square, respectively.
149
+
150
+ L1-rel measures the depth errors relative to the ground truth depth, which emphasize depth estimation of close range in the scene. For camera poses evaluation, the angles between the prediction and the ground truth rotation and translation are shown as Rot and Trans respectively.
151
+
152
+ Our method outperforms all traditional baseline methods and DeMoN on both depth and camera poses. When compared to more recent LS-Net and BA-Net, our method produces better results in most metrics of the four datasets. On RGB-D dataset, our performance is comparable to the stateof-the-art due to relatively higher noise in the RGB-D ground truth. LS-Net trains an initialization network which regresses depth and motion directly before adding the LSTM-RNN optimizer. The performance of the RNN optimizer is highly affected by the accuracy of the regressed initialization. The depth results of LS-Net are consistently poorer than BA-Net and our method, despite better rotation parameters are estimated by LS-Net on RGB-D and Sun3D datasets with very good initialization. Our method is slightly inferior to BA-Net on the L1-rel metric, which is probably due to that we sample 64 virtual planes uniformly as the hypothetical depth set, while BA-Net optimizes depth prediction based on a set of 128-channel estimated basis depth maps that are more memory consuming but have more fine-grained results empirically. Despite all that, it is shown that our learned cost volumes with geometric consistency work better than the photometric bundle adjustment (e.g. used in BA-Net) in most scenes. In particular, we improve mostly on the Scenes11 dataset, where the ground truth is perfect but the input images contain a lot of texture-less regions, which are challenging to photo-consistency based methods.
153
+
154
+ ETH3D We further test the generalization capability on ETH3D. We provide comparisons to COLMAP (Schonberger & Frahm, 2016) and DeMoN on ETH3D. COLMAP is a state-of-the-art Structure-from-Motion method, while DeMoN introduces a classical deep network architecture that fined as $\begin{array} { r } { \operatorname* { m a x } \Bigl ( \frac { y _ { i } ^ { * } } { y _ { i } } , \frac { y _ { i } } { y _ { i } ^ { * } } \Bigr ) } \end{array}$ , and the thresholds are typically set as $[ 1 . 2 5 , 1 . 2 5 ^ { 2 } , 1 . 2 5 ^ { 3 } ]$ . In Table $\delta$ 2, our method shows the best performance overall among all the comparison methods. Our method produces better results than DeMoN consistently, since we impose geometric and physical constraints onto network rather than learning to regress directly. When compared with COLMAP, our method performs better on most metrics. COLMAP behaves well in the accuracy metric (i.e. abs_diff). However, the presence of outliers is often observed in the predictions of COLMAP, which leads to poor performance in other metrics such as abs_rel and sq_rel, since those metrics are sensitive to outliers. We put more qualitative comparisons with COLMAP in Appendix C. For more comparison on generalization, another experiment on ScanNet is provided in Appendix B.
155
+
156
+ # 4.3 MODEL ANALYSIS
157
+
158
+ In this section, we analyze our model on several aspects to verify the optimality and show advantages over previous methods.
159
+
160
+ ![](images/ef4b4efad999e3c3cdf431ef5f34c8301c4c1741ef44f24d2018370517f7635b.jpg)
161
+ Figure 2: Comparison with baseline during iterations. Our work converges at a better position. (a) abs relative error and log RMSE. (b) rotation and translation degree error.
162
+
163
+ Iterative Improvement Our model can run iteratively to reduce the prediction error. Figure 2 (solid lines) shows our performance over iterations when initialized with the prediction from DeMoN. As can be seen, our model effectively reduces both depth and pose errors upon the DeMoN output.
164
+
165
+ Throughout the iterations, better depth and pose benefit each other by building more accurate cost volume, and both are consistently improved. The whole process is similar to coordinate descent algorithm, and finally converges at iteration 4.
166
+
167
+ Effect of P-CV We compare DeepSFM to a baseline method for our P-CV. In this baseline, the depth prediction is the same as DeepSFM, but the pose prediction network is replaced by a direct visual odometry model Steinbrücker et al. (2011), which updates camera parameters by minimizing pixel-wise photometric error between image features. Both methods are initialized with DeMoN results. As provided in Figure 2, DeepSFM consistently produces lower errors on both depth and pose over all the iterations. This shows that our P-CV predicts more accurate pose and performs more robust against noise depth at early stages.
168
+
169
+ ![](images/6b91aa781c2bca13017105bf80c05ab026ebc2968c1bafec058c3e3a8f268d6a.jpg)
170
+ Figure 3: Depth map results w.r.t. the number of images.
171
+
172
+ View Number DeepSFM works still reasonably well with fewer views due to the free from optimization based components. To show this, we compare to COLMAP with respect to the number of input views on ETH3D. As depicted in Figure 3, more images yield better results for both methods as expected. However, our performance drops significantly slower than COLMAP with fewer number of inputs. Numerically, DeepSFM cuts the depth error by half under the same number of views as COLMAP, or achieves similar error with half number of views required by COLMAP. This clearly demonstrates that DeepSFM is more robust when fewer inputs are available.
173
+
174
+ # 5 CONCLUSIONS
175
+
176
+ We present a deep learning framework for Structure-from-Motion, which explicitly enforces photometric consistency, geometric consistency and camera motion constraints all in the deep network. This is achieved by two key components - namely D-CV and P-CV. Both cost volumes measure the photo-metric errors and geometric errors but hypothetically move reconstructed scene points (structure) or camera (motion) respectively. Our deep network can be considered as an enhanced learning based BA algorithm, which takes the best benefits from both learnable priors and geometric rules. Consequently, our method outperforms conventional BA and state-of-the-art deep learning based methods for SfM.
177
+
178
+ # REFERENCES
179
+
180
+ Sameer Agarwal, Noah Snavely, Steven M Seitz, and Richard Szeliski. Bundle adjustment in the large. In European conference on computer vision, pp. 29–42. Springer, 2010.
181
+
182
+ Sameer Agarwal, Yasutaka Furukawa, Noah Snavely, Ian Simon, Brian Curless, Steven M Seitz, and Richard Szeliski. Building rome in a day. Communications of the ACM, 54(10):105–112, 2011.
183
+
184
+ Angel X Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, et al. Shapenet: An information-rich 3d model repository. arXiv preprint arXiv:1512.03012, 2015.
185
+
186
+ Ronald Clark, Michael Bloesch, Jan Czarnowski, Stefan Leutenegger, and Andrew J Davison. Learning to solve nonlinear least squares for monocular stereo. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 284–299, 2018.
187
+
188
+ Amaël Delaunoy and Marc Pollefeys. Photometric bundle adjustment for dense multi-view 3d modeling. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1486–1493, 2014.
189
+
190
+ David Eigen and Rob Fergus. Predicting depth, surface normals and semantic labels with a common multi-scale convolutional architecture. In The IEEE International Conference on Computer Vision (ICCV), December 2015.
191
+
192
+ David Eigen, Christian Puhrsch, and Rob Fergus. Depth map prediction from a single image using a multi-scale deep network. In Advances in neural information processing systems, pp. 2366–2374, 2014.
193
+
194
+ Jakob Engel, Thomas Schöps, and Daniel Cremers. Lsd-slam: Large-scale direct monocular slam. In European conference on computer vision, pp. 834–849. Springer, 2014.
195
+
196
+ Jakob Engel, Vladlen Koltun, and Daniel Cremers. Direct sparse odometry. IEEE transactions on pattern analysis and machine intelligence, 40(3):611–625, 2017.
197
+
198
+ Huan Fu, Mingming Gong, Chaohui Wang, Kayhan Batmanghelich, and Dacheng Tao. Deep ordinal regression network for monocular depth estimation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018.
199
+
200
+ Simon Fuhrmann, Fabian Langguth, and Michael Goesele. Mve-a multi-view reconstruction environment. In GCH, pp. 11–18, 2014.
201
+
202
+ Yasutaka Furukawa, Brian Curless, Steven M Seitz, and Richard Szeliski. Towards internet-scale multi-view stereo. In 2010 IEEE computer society conference on computer vision and pattern recognition, pp. 1434–1441. IEEE, 2010.
203
+
204
+ Ravi Garg, Vijay Kumar BG, Gustavo Carneiro, and Ian Reid. Unsupervised cnn for single view depth estimation: Geometry to the rescue. In European Conference on Computer Vision (ECCV), pp. 740–756. Springer, 2016.
205
+
206
+ Riccardo Gherardi, Michela Farenzena, and Andrea Fusiello. Improving the efficiency of hierarchical structure-and-motion. In 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pp. 1594–1600. IEEE, 2010.
207
+
208
+ Xufeng Han, Thomas Leung, Yangqing Jia, Rahul Sukthankar, and Alexander C Berg. Matchnet: Unifying feature and metric learning for patch-based matching. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3279–3286, 2015.
209
+
210
+ Richard I Hartley. In defense of the eight-point algorithm. IEEE Transactions on pattern analysis and machine intelligence, 19(6):580–593, 1997.
211
+
212
+ Heiko Hirschmuller. Accurate and efficient stereo processing by semi-global matching and mutual information. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’05), volume 2, pp. 807–814. IEEE, 2005.
213
+
214
+ Sepp Hochreiter, A Steven Younger, and Peter R Conwell. Learning to learn using gradient descent. In International Conference on Artificial Neural Networks, pp. 87–94. Springer, 2001.
215
+
216
+ Sunghoon Im, Hae-Gon Jeon, Stephen Lin, and In So Kweon. Dpsnet: End-to-end deep plane sweep stereo. In International Conference on Learning Representations, 2019. URL https: //openreview.net/forum?id $=$ ryeYHi0ctQ.
217
+
218
+ He Kaiming, Zhang Xiangyu, Ren Shaoqing, and Jian Sun. Spatial pyramid pooling in deep convolutional networks for visual recognition. In European Conference on Computer Vision (ECCV), 2014.
219
+
220
+ Yevhen Kuznietsov, Jorg Stuckler, and Bastian Leibe. Semi-supervised deep learning for monocular depth map prediction. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017.
221
+
222
+ Iro Laina, Christian Rupprecht, Vasileios Belagiannis, Federico Tombari, and Nassir Navab. Deeper depth prediction with fully convolutional residual networks. In 2016 Fourth International Conference on 3D Vision (3DV), pp. 239–248. IEEE, 2016.
223
+
224
+ Fayao Liu, Chunhua Shen, Guosheng Lin, and Ian Reid. Learning depth from single monocular images using deep convolutional neural fields. IEEE transactions on pattern analysis and machine intelligence, 38(10):2024–2039, 2016.
225
+
226
+ MLA Lourakis and Antonis A Argyros. Is levenberg-marquardt the most efficient optimization algorithm for implementing bundle adjustment? In Tenth IEEE International Conference on Computer Vision (ICCV’05) Volume 1, volume 2, pp. 1526–1531. IEEE, 2005.
227
+
228
+ David G Lowe. Distinctive image features from scale-invariant keypoints. International journal of computer vision, 60(2):91–110, 2004.
229
+
230
+ Raul Mur-Artal and Juan D Tardós. Orb-slam2: An open-source slam system for monocular, stereo, and rgb-d cameras. IEEE Transactions on Robotics, 33(5):1255–1262, 2017.
231
+
232
+ Raul Mur-Artal, Jose Maria Martinez Montiel, and Juan D Tardos. Orb-slam: a versatile and accurate monocular slam system. IEEE transactions on robotics, 31(5):1147–1163, 2015.
233
+
234
+ Richard A Newcombe, Steven J Lovegrove, and Andrew J Davison. Dtam: Dense tracking and mapping in real-time. In 2011 international conference on computer vision, pp. 2320–2327. IEEE, 2011.
235
+
236
+ Jorge Nocedal and Stephen Wright. Numerical optimization. Springer Science & Business Media, 2006.
237
+
238
+ Johannes L Schonberger and Jan-Michael Frahm. Structure-from-motion revisited. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4104–4113, 2016.
239
+
240
+ Noah Snavely. Scene reconstruction and visualization from internet photo collections: A survey. IPSJ Transactions on Computer Vision and Applications, 3:44–66, 2011.
241
+
242
+ Frank Steinbrücker, Jürgen Sturm, and Daniel Cremers. Real-time visual odometry from dense rgb-d images. In 2011 IEEE International Conference on Computer Vision Workshops (ICCV Workshops), pp. 719–722. IEEE, 2011.
243
+
244
+ Jürgen Sturm, Nikolas Engelhard, Felix Endres, Wolfram Burgard, and Daniel Cremers. A benchmark for the evaluation of rgb-d slam systems. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 573–580. IEEE, 2012.
245
+
246
+ Chengzhou Tang and Ping Tan. Ba-net: Dense bundle adjustment network. arXiv preprint arXiv:1806.04807, 2018.
247
+
248
+ Zachary Teed and Jia Deng. Deepv2d: Video to depth with differentiable structure from motion. arXiv preprint arXiv:1812.04605, 2018.
249
+
250
+ Bill Triggs, Philip F McLauchlan, Richard I Hartley, and Andrew W Fitzgibbon. Bundle adjustment—a modern synthesis. In International workshop on vision algorithms, pp. 298–372. Springer, 1999.
251
+
252
+ Benjamin Ummenhofer, Huizhong Zhou, Jonas Uhrig, Nikolaus Mayer, Eddy Ilg, Alexey Dosovitskiy, and Thomas Brox. Demon: Depth and motion network for learning monocular stereo. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5038– 5047, 2017.
253
+
254
+ Sudheendra Vijayanarasimhan, Susanna Ricco, Cordelia Schmid, Rahul Sukthankar, and Katerina Fragkiadaki. Sfm-net: Learning of structure and motion from video. arXiv preprint arXiv:1704.07804, 2017.
255
+
256
+ Chaoyang Wang, José Miguel Buenaposada, Rui Zhu, and Simon Lucey. Learning depth from monocular videos using direct methods. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2022–2030, 2018.
257
+
258
+ Peng Wang, Xiaohui Shen, Zhe Lin, Scott Cohen, Brian Price, and Alan L. Yuille. Towards unified depth and semantic prediction from a single image. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2015.
259
+
260
+ Sen Wang, Ronald Clark, Hongkai Wen, and Niki Trigoni. Deepvo: Towards end-to-end visual odometry with deep recurrent convolutional neural networks. In 2017 IEEE International Conference on Robotics and Automation (ICRA), pp. 2043–2050. IEEE, 2017.
261
+
262
+ Changchang Wu, Sameer Agarwal, Brian Curless, and Steven M Seitz. Multicore bundle adjustment. In CVPR 2011, pp. 3057–3064. IEEE, 2011a.
263
+
264
+ Changchang Wu et al. Visualsfm: A visual structure from motion system. 2011b.
265
+
266
+ Jianxiong Xiao, Andrew Owens, and Antonio Torralba. Sun3d: A database of big spaces reconstructed using sfm and object labels. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1625–1632, 2013.
267
+
268
+ Yao Yao, Zixin Luo, Shiwei Li, Tian Fang, and Long Quan. Mvsnet: Depth inference for unstructured multi-view stereo. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 767–783, 2018.
269
+
270
+ Tinghui Zhou, Matthew Brown, Noah Snavely, and David G Lowe. Unsupervised learning of depth and ego-motion from video. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1851–1858, 2017.
271
+
272
+ ![](images/82aa82d94f6cdad0bad2a4bfbc9a3ef894b5ee7c833ffa4f7e8ab2cfaef8e7c6.jpg)
273
+ Figure 4: Detail architecture of feature extractor.
274
+
275
+ # A IMPLEMENTATION DETAILS
276
+
277
+ Feature extraction module As shown in Figure 4, we build our feature extraction module referring to DPSNet (Im et al., 2019). The module takes $4 W \times 4 H \times 3$ images as input and output feature maps of size $W \times H \times 3 2$ , which are used to build D-CV and P-CV.
278
+
279
+ Cost volumes Figure 5 shows the detailed components for the P-CV and D-CV. Each channel of cost volume is composed of four components: reference view feature maps, warped source view feature maps, the warped source view initial depth map and the projected reference view depth plane or initial depth map. For P-CV construction, we take each sampled hypothetical camera pose, and carry out the warping process on source view depth maps and initial depth map based on the camera pose. And the initial reference view depth map is projected to align numeric values with the warped source view depth map. Finally those four components are concatenated as one channel of 4D P-CV. We do this on all P sampled camera poses, and get the P channel P-CV. The building approach for D-CV is similar, we take each sampled hypothetical depth plane, and carry out warping process on source view feature maps and the initial depth map. And the depth plane is projected to align with the source view depth map. After concatenation, one channel in D-CV is got. Same computation is done based on all L virtual depth planes, and the L channel D-CV is built up.
280
+
281
+ ![](images/3ba50161d35ea26d1065e2a10ed33e236b8823d86d19b9b271a570432fc77675.jpg)
282
+ Figure 5: Four components in D-CV or P-CV.
283
+
284
+ <table><tr><td rowspan="3">Method</td><td colspan="5">Depth</td><td colspan="2">Motion</td></tr><tr><td>abs_rel</td><td>sq_rel</td><td>rms</td><td>log_rms</td><td>sc_inv</td><td>Rot</td><td>Trans</td></tr><tr><td>Ours</td><td>0.227</td><td>0.170</td><td>0.479</td><td>0.271</td><td>0.268</td><td>1.588</td><td>30.613</td></tr><tr><td>BA-Net</td><td>0.238</td><td>0.176</td><td>0.488</td><td>0.279</td><td>0.276</td><td>1.587</td><td>31.005</td></tr><tr><td>DeMoN</td><td>0.231</td><td>0.520</td><td>0.761</td><td>0.289</td><td>0.284</td><td>3.791</td><td>31.626</td></tr><tr><td>LSD-SLAM</td><td>0.268</td><td>0.427</td><td>0.788</td><td>0.330</td><td>0.323</td><td>4.409</td><td>34.360</td></tr><tr><td>Geometric BA</td><td>0.382</td><td>1.163</td><td>0.876</td><td>0.366</td><td>0.357</td><td>8.560</td><td>39.392</td></tr></table>
285
+
286
+ Table 3: Results on ScanNet. (sc_inv: scale invariant log rms; Bold: best.)
287
+
288
+ 3D convolutional layers The detail architecture of 3D convolutional layers after D-CV is almost the same as DPSNet (Im et al., 2019), except for the fist convolution layer. In order to compatible with the newly introduced depth consistent components in D-CV, We adjust the input channel number to 66 instead of 64. As shown in Figure 6, for 3D convolutional layers after P-CV, the architecture is similar to D-CV 3D convolution layers with three extra 3D average pooling layers and finally there is one global average pooling in the dimensions of image width and height, after which we get a $P \times 1 \times 1$ tensor.
289
+
290
+ # B EVALUATION ON SCANNET
291
+
292
+ ScanNet provides a large set of indoor sequences with camera poses and depth maps captured from a commodity RGBD sensor. Following BA-Net, we leverage this dataset to evaluate the generalization capability by training models on DeMoN and testing here. The testing set is the same as BA-Net, which takes 2000 pairs filtered from 100 sequences.
293
+
294
+ We evaluate the generalization capability of DeepSFM on ScanNet. Table 3 shows the quantitative evaluation results for models trained on DeMoN. The results of BA-Net, DeMoN, LSD-SLAM and Geometric BA are obtained from Tang & Tan (2018). As can be seen, our method significantly outperforms all previous work, which indicates that our model generalizes well to general indoor environments.
295
+
296
+ ![](images/fca6b0e5f5130467df98ed3f4fd31833a302b11d8ee0e4c40341da6e3f63944f.jpg)
297
+ Figure 6: 3D convolutional layers After P-CV.
298
+
299
+ Table 4: The performance of the optimization iterations for testing.
300
+
301
+ <table><tr><td></td><td>Initialization</td><td>Iteration 2</td><td>Iteration 4</td><td>Iteration 6</td><td>Iteration 10</td><td>Iteration 20</td></tr><tr><td>abs relative</td><td>0.254</td><td>0.153</td><td>0.126</td><td>0.121</td><td>0.120</td><td>0.120</td></tr><tr><td>log rms</td><td>0.248</td><td>0.195</td><td>0.191</td><td>0.190</td><td>0.190</td><td>0.191</td></tr><tr><td>translation</td><td>15.20</td><td>9.75</td><td>9.73</td><td>9.73</td><td>9.73</td><td>9.73</td></tr><tr><td>rotation</td><td>2.38</td><td>1.43</td><td>1.40</td><td>1.39</td><td>1.39</td><td>1.39</td></tr></table>
302
+
303
+ # C SUPPLEMENTAL ABLATION STUDY
304
+
305
+ More Iterations for Testing. We take up to four iterations when we train DeepSFM. During inference, the predicted depth maps and camera poses of previous iteration are taken as initialization of next iteration. To show how DeepSFM performs with more iterations than it is trained with, we show results in Table 4. We tested with up to 20 iterations, and it converges at the 6-th iteration.
306
+
307
+ Bilinear Interpolation vs Nearest Neighbor Sampling. For the construction of D-CV and P-CV, depth maps are warped via the nearest neighbor sampling instead of bilinear interpolation. Due to the discontinuity of the depth values in depth maps, the bilinear interpolation may bring some side effects. It may do damage to the geometry consistency and smooth the depth boundaries. As a comparison, we replace the nearest neighbor sampling with the bilinear interpolation. As shown in Table 5, the performance of our model gains a slight drop with the bilinear interpolation, which indicates that the nearest neighbor sampling method is indeed more geometrically meaningful for depth. In contrast, the differentiable bilinear interpolation is required for the warping of image features, whose gradients are back propagated to feature extractor layers. Further exploration will be an interesting future work.
308
+
309
+ Table 5: The performance with different warping methods.
310
+
311
+ <table><tr><td>MVS Dataset</td><td>L1-inv</td><td>sc-inv</td><td>L1-rel</td><td>Rot</td><td>Trans</td></tr><tr><td>Billinear interpolation</td><td>0.023</td><td>0.134</td><td>0.079</td><td>2.867</td><td>9.910</td></tr><tr><td>Nearest neighbor</td><td>0.021</td><td>0.129</td><td>0.076</td><td>2.824</td><td>9.881</td></tr></table>
312
+
313
+ # D VISUALIZATION
314
+
315
+ We show some qualitative comparison with the previous methods. Since there are no source code available for BA-Net (Tang & Tan, 2018), we compare the visualization results of our method with DeMoN (Ummenhofer et al., 2017) and COLMAP (Schonberger & Frahm, 2016). Figure 7 shows the predicted dense depth map by our method and DeMoN on the DeMoN datasets. As we can see, demon often miss some details in the scene, such as plants, keyboard and table legs. In contrast, our method reconstructs more shape details. Figure 8 shows some estimated results from COLMAP and our method on the ETH3D dataset. As shown in the figure, the outputs from COLMAP are often incomplete, especially in textureless area. On the other hand, our method performs better and always produce an integral depth map. In Figure 9, more qualitative comparisons with COLMAP on challenging materials are provided.
316
+
317
+ ![](images/d1d8e78470fe8ea9e33858a875cf60eb3ac9db9f442d830215aa50f08f0c7dec.jpg)
318
+ Figure 7: Qualitative Comparisons with DeMoN (Ummenhofer et al., 2017) on DeMoN datasets.
319
+
320
+ ![](images/f6ce758d60ed49790987198ba31a9f2c749b569adaf7675d4e9bb17289aecf36.jpg)
321
+ Figure 8: Qualitative Comparisons with COLMAP (Schonberger & Frahm, 2016) on ETH3D datasets.
322
+
323
+ ![](images/eaaa27d867a2a1f0a7855b26aaf316d001b34d4873c902502606794e36f11bb7.jpg)
324
+ Figure 9: Qualitative Comparisons with COLMAP (Schonberger & Frahm, 2016) on challenging materials. a) Textureless ground and wall. b) Poor illumination scene. c) Reflective and transparent glass wall. d) Reflective and textureless wall.
parse/train/SyeD0RVtvS/SyeD0RVtvS_content_list.json ADDED
@@ -0,0 +1,1747 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "DEEPSFM: STRUCTURE FROM MOTION VIA DEEP BUNDLE ADJUSTMENT ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 176,
8
+ 98,
9
+ 821,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 170,
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": "Structure from motion (SfM) is an essential computer vision problem which has not been well handled by deep learning. One of the promising trends is to apply explicit structural constraint, e.g. 3D cost volume, into the network. In this work, we design a physical driven architecture, namely DeepSFM, inspired by traditional Bundle Adjustment (BA), which consists of two cost volume based architectures for depth and pose estimation respectively, iteratively running to improve both. In each cost volume, we encode not only photo-metric consistency across multiple input images, but also geometric consistency to ensure that depths from multiple views agree with each other. The explicit constraints on both depth (structure) and pose (motion), when combined with the learning components, bring the merit from both traditional BA and emerging deep learning technology. Extensive experiments on various datasets show that our model achieves the state-of-the-art performance on both depth and pose estimation with superior robustness against less number of inputs and the noise in initialization. ",
40
+ "bbox": [
41
+ 233,
42
+ 263,
43
+ 764,
44
+ 458
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 178,
54
+ 482,
55
+ 336,
56
+ 498
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Structure from motion (SfM) is a fundamental human vision functionality which recovers 3D structures from the projected retinal images of moving objects or scenes. It enables machines to sense and understand with the 3D world and is critical in achieving real-world artificial intelligence. Over decades of researches, there has been a lot of great success on SfM; however, the performance is far from perfect. ",
63
+ "bbox": [
64
+ 174,
65
+ 512,
66
+ 823,
67
+ 582
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Conventional SfM approaches (Agarwal et al., 2011; Wu et al., 2011a; Engel et al., 2017; Delaunoy & Pollefeys, 2014) heavily rely on Bundle-Adjustment (BA) (Triggs et al., 1999; Agarwal et al., 2010), in which 3D structures and camera motions of each view are jointly optimized via LevenbergMarquardt (LM) algorithm (Nocedal & Wright, 2006) according to the cross-view correspondence. Though successful in certain scenarios, conventional SfM based approaches are fundamentally restricted by the coverage of the provided multiple views and the overlaps among them. They also typically fail to reconstruct textureless or non-lambertian (e.g. reflective or transparent) surfaces due to the missing of correspondence across views. As a result, selecting sufficiently good input views and the right scene requires excessive caution and is usually non-trivial to even experienced user. ",
74
+ "bbox": [
75
+ 174,
76
+ 589,
77
+ 825,
78
+ 715
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Recent researches resort to deep learning to deal with the typical weakness of conventional SfM. Early effort utilizes deep neural network as a powerful mapping function that directly regresses the structures and motions (Ummenhofer et al., 2017; Vijayanarasimhan et al., 2017; Zhou et al., 2017; Wang et al., 2017). Since the geometric constraints of structures and motions are not explicitly enforced, the network does not learn the underlying physics and prone to overfitting. Consequently, they do not perform as accurate as conventional SfM approaches and suffer from extremely poor generalization capability. Most recently, the 3D cost volume (Teed & Deng, 2018) has been introduced to explicit leveraging photo-consistency in a differentiable way, which significantly boosts the performance of deep learning based 3D reconstruction. However, the camera motion usually has to be known (Yao et al., 2018; Im et al., 2019) or predicted via direct regression (Ummenhofer et al., 2017; Zhou et al., 2017; Teed & Deng, 2018), which still suffer from generalization issue. ",
85
+ "bbox": [
86
+ 174,
87
+ 722,
88
+ 825,
89
+ 875
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In this paper, we explicitly enforce photo-consistency, geometric-consistency, and camera motion constraints in a unified deep learning framework. In particular, our network includes a depth based cost volume (D-CV) and a pose based cost volume (P-CV). D-CV optimizes per-pixel depth values with the current camera poses, while P-CV optimizes camera poses with the current depth estimations. Conventional 3D cost volume enforces photo-consistency by unprojecting pixels into the discrete camera fronto-parallel planes and computing the photometric (i.e. image feature) difference as the cost. In addition to that, our D-CV further enforces geometric-consistency among cameras with their current depth estimations by adding the geometric (i.e. depth) difference to the cost. Note that the initial depth estimation can be obtained using the conventional 3D cost volume. For pose estimation, rather than direct regression, our P-CV discretizes around the current camera positions, and also computes the photometric and/or geometric differences by hypothetically moving the camera into the discretized position. Note that the initial camera pose can be obtained by a rough estimation from the direct regression methods such as (Ummenhofer et al., 2017). Our framework bridges the gap between the conventional and deep learning based SfM by incorporating explicit constraints of photo-consistency, geometric-consistency and camera motions all in the deep network. ",
96
+ "bbox": [
97
+ 176,
98
+ 882,
99
+ 823,
100
+ 924
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "",
107
+ "bbox": [
108
+ 174,
109
+ 103,
110
+ 825,
111
+ 270
112
+ ],
113
+ "page_idx": 1
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "The closest work in the literature is the recently proposed BA-Net (Tang & Tan, 2018), which also aims to explicitly incorporate multi-view geometric constraints in a deep learning framework. They achieve this goal by integrating the LM optimization into the network. However, the LM iterations are unrolled with few iterations due to the memory and computational inefficiency, and thus it may lead to non-optimal solutions. In contrast, our method does not have a restriction on the number of iterations and achieves empirically better performance. Furthermore, LM in SfM originally optimizes point and camera positions, and thus direct integration of LM still requires good correspondences. To evade the correspondence issue in typical SfM, their models employ a direct regressor to predict depth at the front end, which heavily relies on prior in the training data. In contrast, our model is a fully physical-driven architecture that less suffers from over-fitting issue for both depth and pose estimation. ",
118
+ "bbox": [
119
+ 174,
120
+ 277,
121
+ 825,
122
+ 430
123
+ ],
124
+ "page_idx": 1
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "To demonstrate the superiority of our method, we conduct extensive experiments on DeMoN datasets, ScanNet and ETH3D. The experiments show that our approach outperforms the state-ofthe-art Schonberger & Frahm (2016); Ummenhofer et al. (2017); Tang & Tan (2018). ",
129
+ "bbox": [
130
+ 176,
131
+ 438,
132
+ 823,
133
+ 479
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "2 RELATED WORK ",
140
+ "text_level": 1,
141
+ "bbox": [
142
+ 176,
143
+ 506,
144
+ 339,
145
+ 521
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "There is a large body of work that focuses on inferring depth or motion from color images, ranging from single view, multiple views and monocular video. We discuss them in the context of our work. ",
152
+ "bbox": [
153
+ 174,
154
+ 540,
155
+ 823,
156
+ 569
157
+ ],
158
+ "page_idx": 1
159
+ },
160
+ {
161
+ "type": "text",
162
+ "text": "Single-view Depth Estimation. While ill-posed, the emerging of deep learning technology enables the estimation of depth from a single color image. The early work directly formulates this into a per-pixel regression problem (Eigen et al., 2014), and follow-up works improve the performance by introducing multi-scale network architectures (Eigen et al., 2014; Eigen & Fergus, 2015), skipconnections (Wang et al., 2015; Liu et al., 2016), powerful decoder and post process (Garg et al., 2016; Laina et al., 2016; Kuznietsov et al., 2017; Wang et al., 2015; Liu et al., 2016), and new loss functions (Fu et al., 2018). Even though single view based methods generate plausible results, the models usually resort heavily to the prior in the training data and suffer from generalization capability. Nevertheless, these methods still act as an important component in some multi-view systems (Tang & Tan, 2018) ",
163
+ "bbox": [
164
+ 174,
165
+ 575,
166
+ 825,
167
+ 714
168
+ ],
169
+ "page_idx": 1
170
+ },
171
+ {
172
+ "type": "text",
173
+ "text": "Traditional Structure-from-Motion Simultaneously estimating 3d structure and camera motion is a well studied problem which has a traditional tool-chain of techniques (Furukawa et al., 2010; Newcombe et al., 2011; Wu et al., 2011b). Structure from Motion(SfM) has made great progress in many aspects. Lowe (2004); Han et al. (2015) aim at improving features and Snavely (2011) introduce new optimization techniques. More robust structures and data representations are introduced by Gherardi et al. (2010); Schonberger & Frahm (2016). Simultaneous Localization and Sapping(SLAM) systems track the motion of the camera and build 3D structure from video sequence (Newcombe et al., 2011; Engel et al., 2014; Mur-Artal et al., 2015; Mur-Artal & Tardós, 2017). Engel et al. (2014) propose the photometric bundle adjustment algorithm to directly minimize the photometric error of aligned pixels. However, traditional SfM and SLAM methods are sensitive to low texture region, occlusions, moving objects and lighting changes, which limit the performance and stability. ",
174
+ "bbox": [
175
+ 174,
176
+ 722,
177
+ 825,
178
+ 875
179
+ ],
180
+ "page_idx": 1
181
+ },
182
+ {
183
+ "type": "text",
184
+ "text": "Deep Learning for Structure-from-Motion Deep neural networks have shown great success in stereo matching and Structure-from-Motion problems. Ummenhofer et al. (2017); Wang et al. (2017); Vijayanarasimhan et al. (2017); Zhou et al. (2017) regress depth map and camera pose directly in a supervised manner or by introducing photometric constraints between depth and motion as a self-supervision signal. Such methods solve the camera motion as a regression problem, and the relation between camera motion and depth prediction is neglected. ",
185
+ "bbox": [
186
+ 176,
187
+ 882,
188
+ 823,
189
+ 924
190
+ ],
191
+ "page_idx": 1
192
+ },
193
+ {
194
+ "type": "image",
195
+ "img_path": "images/8f3457766b539a218a007e3afc9869af94fe3e63eee69596ebe607ac992c5a31.jpg",
196
+ "image_caption": [
197
+ "Figure 1: Overview of our method. 2D CNN is used to extract photometric feature to construct cost volumes. Initial source depth maps are used to introduce geometry consistency. A series of 3D CNN layers are applied for both pose based cost volume and D-CV. Then a context network and depth regression operation are applied to produce predicted depth map of reference image. "
198
+ ],
199
+ "image_footnote": [],
200
+ "bbox": [
201
+ 192,
202
+ 98,
203
+ 800,
204
+ 295
205
+ ],
206
+ "page_idx": 2
207
+ },
208
+ {
209
+ "type": "text",
210
+ "text": "",
211
+ "bbox": [
212
+ 174,
213
+ 392,
214
+ 823,
215
+ 434
216
+ ],
217
+ "page_idx": 2
218
+ },
219
+ {
220
+ "type": "text",
221
+ "text": "Recently, some methods exploit multi-view photometric or feature-metric constraints to enforce the relationship between dense depth map and the camera pose in network. The SE3 transformer layer is introduced by Teed & Deng (2018), which uses geometry to map flow and depth into a camera pose update. Wang et al. (2018) propose the differentiable camera motion estimator based on the Direct Visual Odometry (Steinbrücker et al., 2011). Clark et al. (2018) using a LSTM-RNN (Hochreiter et al., 2001) as the optimizer to solve nonlinear least squares in two-view SfM. Tang & Tan (2018) train a network to generate a set of basis depth maps and optimize depth and camera poses in a BA-layer by minimizing a feature-metric error. ",
222
+ "bbox": [
223
+ 174,
224
+ 440,
225
+ 825,
226
+ 553
227
+ ],
228
+ "page_idx": 2
229
+ },
230
+ {
231
+ "type": "text",
232
+ "text": "3 ARCHITECTURE ",
233
+ "text_level": 1,
234
+ "bbox": [
235
+ 176,
236
+ 573,
237
+ 339,
238
+ 588
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "text",
244
+ "text": "Our framework receives frames of a scene from different viewpoints, and produces photo-metrically and geometrically consistent depth maps across all frames and the corresponding camera poses. Similar to BA, we also assume initial structures (i.e depth maps) and motions (i.e. camera poses) are given. Note that the initialization is not necessary to be super accurate for the good performance using our framework and thus can be easily obtained from some direct regression methods (Ummenhofer et al., 2017). ",
245
+ "bbox": [
246
+ 174,
247
+ 603,
248
+ 825,
249
+ 688
250
+ ],
251
+ "page_idx": 2
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "Now we introduce the detail of our model – DeepSFM. Without loss of generality, we describe our model taking two images as input, namely the reference image and the source image, as an example, and all the technical components can be extended for multiple images straightforward. As shown in Figure 1, we first extract feature maps from input images through a shared encoder. We then sample the solution space for depth uniformly in the inverse-depth space between a predefined minimum and maximum range and camera pose around the initialization respectively. After that, we build cost volumes accordingly to reason the confidence of each hypothesis. This is achieved by validating the consistency between the feature of the reference view and the ones warped from the source image. Besides photo-metric consistency that measures the color image similarity, we also take into account the geometric consistency across warped depth maps. Note that depth and pose require different designs of cost volume to efficiently sample the hypothesis space. Gradients can back-propagate through cost volumes, and cost-volume construction does not affect any trainable parameters. The cost volumes are then fed into 3D CNN to regress new depth and pose. These updated value can be used to create new cost volumes, and the model improves the prediction iteratively. ",
256
+ "bbox": [
257
+ 174,
258
+ 694,
259
+ 825,
260
+ 888
261
+ ],
262
+ "page_idx": 2
263
+ },
264
+ {
265
+ "type": "text",
266
+ "text": "For notations, we denote $\\{ \\mathbf { I } _ { i } \\} _ { i = 1 } ^ { n }$ as the image sequences in one scene, $\\{ \\mathbf { D } _ { i } \\} _ { i = 1 } ^ { n }$ as the corresponding ground truth depth maps, $\\{ { \\bf K } _ { i } \\} _ { i = 1 } ^ { n }$ as the camera intrinsics, $\\{ \\mathbf { R } _ { i } , \\mathbf { t } _ { i } \\} _ { i = 1 } ^ { n }$ as the ground truth rotations and translations of camera, $\\{ \\mathbf { D } _ { i } ^ { * } \\} _ { i = 1 } ^ { n }$ and $\\{ \\mathbf { R } _ { i } ^ { * } , \\mathbf { t } _ { i } ^ { * } \\} _ { i = 1 } ^ { n }$ as initial depth maps and camera pose parameters for constructing cost volumes, where $n$ is the number of image samples. ",
267
+ "bbox": [
268
+ 174,
269
+ 895,
270
+ 823,
271
+ 925
272
+ ],
273
+ "page_idx": 2
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "",
278
+ "bbox": [
279
+ 171,
280
+ 103,
281
+ 823,
282
+ 132
283
+ ],
284
+ "page_idx": 3
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "3.1 2D FEATURE EXTRACTION ",
289
+ "text_level": 1,
290
+ "bbox": [
291
+ 176,
292
+ 148,
293
+ 401,
294
+ 164
295
+ ],
296
+ "page_idx": 3
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "Given the input sequences $\\{ \\mathbf { I } _ { i } \\} _ { i = 1 } ^ { n }$ , we extract the 2D CNN feature $\\{ \\mathbf { F } _ { i } \\} _ { i = 1 } ^ { n }$ for each frame. Firstly, a 7 layers’ CNN with kernel size $3 \\times 3$ is applied to extract low contextual information. Then we adopt a spatial pyramid pooling (SPP) (Kaiming et al., 2014) module, which can extract hierarchical multiscale features through 4 average pooling blocks with different pooling kernel size $( 4 \\times 4 , 8 \\times 8$ , $1 6 \\times$ $1 6 , 3 2 \\times 3 2 )$ . Finally, we pass the concatenated features through 2D CNNs to get the 32-channel image features after upsampling these multi-scale features into the same resolution. These image sequence features are used by the building of both our depth based and pose based cost volumes. ",
301
+ "bbox": [
302
+ 173,
303
+ 174,
304
+ 825,
305
+ 273
306
+ ],
307
+ "page_idx": 3
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "3.2 DEPTH BASED COST VOLUME (D-CV) ",
312
+ "text_level": 1,
313
+ "bbox": [
314
+ 176,
315
+ 290,
316
+ 482,
317
+ 305
318
+ ],
319
+ "page_idx": 3
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "Traditional plane sweep cost volume aims to back-project the source images onto successive virtual planes in the 3D space and measure photo-consistency error among the warped image features and reference image features for each pixel. Different from the cost volume used in previous multiview and structure-from-motion methods, we construct a D-CV to further utilize the local geometric consistency constraints introduced by depth maps. Inspired by the traditional plane sweep cost volumes, our D-CV is a concatenation of three components: the reference image features, the warped source image features and the homogeneous depth consistency maps. ",
324
+ "bbox": [
325
+ 173,
326
+ 316,
327
+ 825,
328
+ 415
329
+ ],
330
+ "page_idx": 3
331
+ },
332
+ {
333
+ "type": "text",
334
+ "text": "Hypothesis Sampling To back-project the features and depth maps from source viewpoint to the 3D space in reference viewpoint, we uniformly sample a set of $L$ virtual planes $\\{ d _ { l } \\} _ { l = 1 } ^ { L }$ in the inverse-depth space which are perpendicular to the forward direction $z$ -axis) of the reference viewpoint. These planes serve as the hypothesis of the output depth map, and the cost volume can be built upon them. ",
335
+ "bbox": [
336
+ 173,
337
+ 429,
338
+ 825,
339
+ 500
340
+ ],
341
+ "page_idx": 3
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "Feature warping. To construct our D-CV, we first warp source image features $\\mathbf { F } _ { i }$ (of size $C H a n n e l \\times W i d t h \\times H e i g h t )$ to each of the hypothetical depth map planes $d _ { l }$ using camera intrinsic matrix $\\mathbf { K }$ and initial camera poses $\\{ \\mathbf { R } _ { i } ^ { * } , \\mathbf { t } _ { i } ^ { * } \\}$ , according to: ",
346
+ "bbox": [
347
+ 173,
348
+ 515,
349
+ 823,
350
+ 559
351
+ ],
352
+ "page_idx": 3
353
+ },
354
+ {
355
+ "type": "equation",
356
+ "img_path": "images/bb434cd6d512b7ee55e2d12addf5b776c653a95a2260d22c434751e6b79668b4.jpg",
357
+ "text": "$$\n\\tilde { \\mathbf { F } } _ { i l } ( u ) = \\mathbf { F } _ { i } \\left( \\tilde { u } _ { l } \\right) , \\tilde { u } _ { l } \\sim \\mathbf { K } \\left[ \\mathbf { R } _ { i } ^ { * } | \\mathbf { t } _ { i } ^ { * } \\right] \\left[ \\begin{array} { c } { \\left( \\mathbf { K } ^ { - 1 } u \\right) d _ { l } } \\\\ { 1 } \\end{array} \\right]\n$$",
358
+ "text_format": "latex",
359
+ "bbox": [
360
+ 328,
361
+ 565,
362
+ 668,
363
+ 601
364
+ ],
365
+ "page_idx": 3
366
+ },
367
+ {
368
+ "type": "text",
369
+ "text": "where $u$ and $\\tilde { u } _ { l }$ are the homogeneous coordinates of each pixel in the reference view and the projected coordinates onto the corresponding source view. $\\tilde { \\mathbf { F } } _ { i l } ( u )$ denotes the warped feature of the source image through the $l$ -th virtual depth plane. Note that the projected homogeneous coordinates $\\tilde { u } _ { l }$ are floating numbers, and we adopt a differentiable bilinear interpolation to generate the warped feature map $\\tilde { \\mathbf { F } } _ { i l }$ . The pixels with no source view coverage are assigned with zeros. Following Im et al. (2019), we concatenate the reference feature and the warped reference feature together and obtain a $2 C H \\times L \\times W \\times H$ 4D feature volume. ",
370
+ "bbox": [
371
+ 173,
372
+ 606,
373
+ 825,
374
+ 708
375
+ ],
376
+ "page_idx": 3
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "Depth consistency. In addition to photometric consistency, to exploit geometric consistency and promote the quality of depth prediction, we add two more channels on each virtual plane: the warped initial depth maps from the source view and the depth map of the virtual plane from the perspective of the source view. Note that the former is the same as image feature warping, while the latter requires a coordinate transformation from the reference camera to the source camera. ",
381
+ "bbox": [
382
+ 173,
383
+ 723,
384
+ 825,
385
+ 794
386
+ ],
387
+ "page_idx": 3
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "In particular, the first channel is computed as follows. The initial depth map of source image is first down-sampled and then warped to hypothetical depth planes based on initial camera pose similarly to the image feature warping: ",
392
+ "bbox": [
393
+ 173,
394
+ 799,
395
+ 825,
396
+ 842
397
+ ],
398
+ "page_idx": 3
399
+ },
400
+ {
401
+ "type": "equation",
402
+ "img_path": "images/7ae79777b8be47e06d385838ecffefb98c0495abe9abc1678baf2ed4ca53a12c.jpg",
403
+ "text": "$$\n\\tilde { \\mathbf { D } } _ { i l } ^ { * } ( u ) = \\mathbf { D } _ { i } ^ { * } \\left( \\tilde { u } _ { l } \\right)\n$$",
404
+ "text_format": "latex",
405
+ "bbox": [
406
+ 439,
407
+ 840,
408
+ 558,
409
+ 861
410
+ ],
411
+ "page_idx": 3
412
+ },
413
+ {
414
+ "type": "text",
415
+ "text": "where the coordinates $u$ and $\\tilde { u } _ { l }$ are defined in Eq. 1 and $\\tilde { \\mathbf { D } } _ { i l } ^ { * } ( u )$ represents the warped one-channel depth map on the $l$ -th depth plane. One distinction between depth warping and feature warping is that we adopt nearest neighbor sampling for depth warping, instead of bilinear interpolation. A comparison between the two methods are provided in Appendix C. ",
416
+ "bbox": [
417
+ 174,
418
+ 866,
419
+ 823,
420
+ 924
421
+ ],
422
+ "page_idx": 3
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "The second channel contains the depth values of the virtual planes in the reference view by seeing them from the source view. To transform the virtual planes to the source view coordinate system, we apply a $T$ function on each virtual plane $d _ { l }$ in the following: ",
427
+ "bbox": [
428
+ 174,
429
+ 103,
430
+ 825,
431
+ 146
432
+ ],
433
+ "page_idx": 4
434
+ },
435
+ {
436
+ "type": "equation",
437
+ "img_path": "images/b416881f855ec64179cc7d9169365fc14b90ad5a4e19b0b5c5b8f5934e19d1b7.jpg",
438
+ "text": "$$\nT ( d _ { l } ) \\sim [ \\mathbf { R } _ { i } ^ { * } | \\mathbf { t } _ { i } ^ { * } ] \\left[ \\begin{array} { c } { \\left( \\mathbf { K } ^ { - 1 } u \\right) d _ { l } } \\\\ { 1 } \\end{array} \\right]\n$$",
439
+ "text_format": "latex",
440
+ "bbox": [
441
+ 387,
442
+ 157,
443
+ 611,
444
+ 194
445
+ ],
446
+ "page_idx": 4
447
+ },
448
+ {
449
+ "type": "text",
450
+ "text": "We stack the warped initial depth maps and the transformed depth planes together, and get a depth volume of size $2 \\times L \\times W \\times H$ . ",
451
+ "bbox": [
452
+ 171,
453
+ 204,
454
+ 823,
455
+ 233
456
+ ],
457
+ "page_idx": 4
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "By concatenating the feature volume and depth volume together, we obtain a 4D cost tensor of size $( 2 C H + 2 ) \\times L \\times W \\times H$ . Given the 4D cost volume, our network learns a cost volume of size $L \\times W \\times H$ using several 3D convolutional layers with kernel size $3 \\times 3 \\times 3$ . When there is more than one source image, we get the final cost volume by averaging over multiple input source views. ",
462
+ "bbox": [
463
+ 174,
464
+ 239,
465
+ 825,
466
+ 296
467
+ ],
468
+ "page_idx": 4
469
+ },
470
+ {
471
+ "type": "text",
472
+ "text": "3.3 POSE BASED COST VOLUME (P-CV) ",
473
+ "text_level": 1,
474
+ "bbox": [
475
+ 176,
476
+ 319,
477
+ 468,
478
+ 334
479
+ ],
480
+ "page_idx": 4
481
+ },
482
+ {
483
+ "type": "text",
484
+ "text": "In addition to the construction of D-CV, we also propose a P-CV, aiming at optimizing initial camera poses through both photometric and geometric consistency. Instead of building a cost volume based on hypothetical depth map planes, our novel P-CV is constructed based on a set of assumptive camera poses. Similar to D-CV, P-CV is also concatenated by three components: the reference image features, the warped source image features and the homogeneous depth consistency maps. Given initial camera pose parameters $\\{ \\mathbf { R } _ { i } ^ { * } , \\mathbf { t } _ { i } ^ { * } \\}$ , we uniformly sample a batch of discrete candidate camera poses around. Since jointly sampling camera rotation and translation along 6-DoF is costly, we shift rotation and translation separately by keeping one frozen while sampling the other one. In the end, a group of $P$ virtual camera poses noted as $\\{ \\bar { \\mathbf { R } } _ { i p } ^ { * } | \\mathbf { t } _ { i p } ^ { * } \\} _ { p = 1 } ^ { P }$ around input pose are obtained for cost volume construction. ",
485
+ "bbox": [
486
+ 174,
487
+ 347,
488
+ 825,
489
+ 488
490
+ ],
491
+ "page_idx": 4
492
+ },
493
+ {
494
+ "type": "text",
495
+ "text": "The posed-based cost volume is also constructed by concatenating image features and homogeneous depth maps. However, source view features and depth maps are warped based on sampled camera poses. For feature warping, we compute $\\tilde { u } _ { p }$ as following equations: ",
496
+ "bbox": [
497
+ 174,
498
+ 494,
499
+ 825,
500
+ 536
501
+ ],
502
+ "page_idx": 4
503
+ },
504
+ {
505
+ "type": "equation",
506
+ "img_path": "images/60507974328199071613aa16551a92bf5ecece6eb78a1e57a1cc3482427823ce.jpg",
507
+ "text": "$$\n\\tilde { u } _ { p } \\sim { \\bf K } \\left[ { \\bf R } _ { i p } ^ { * } | \\mathbf { t } _ { i p } ^ { * } \\right] \\left[ \\begin{array} { c } { \\left( { \\bf K } ^ { - 1 } u \\right) { \\bf D } _ { i } ^ { * } } \\\\ { 1 } \\end{array} \\right]\n$$",
508
+ "text_format": "latex",
509
+ "bbox": [
510
+ 382,
511
+ 549,
512
+ 617,
513
+ 585
514
+ ],
515
+ "page_idx": 4
516
+ },
517
+ {
518
+ "type": "text",
519
+ "text": "where $\\mathbf { D } _ { i } ^ { * }$ is the initial reference view depth. Similar to D-CV, we get warped source feature map $\\tilde { \\mathbf { F } } _ { i p }$ after bilinear sampling and concatenate it with reference view feature map. We also transform the initial reference view depth and source view depth into one homogeneous coordinate system, which enhances the geometric consistency between camera pose and multi view depth maps. ",
520
+ "bbox": [
521
+ 173,
522
+ 597,
523
+ 825,
524
+ 656
525
+ ],
526
+ "page_idx": 4
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "After concatenating the above feature maps and depth maps together, we again build a 4D cost volume of size $( 2 C H + 2 ) \\times P \\times W \\times H$ , where $W$ and $H$ are the width and height of feature map, $C H$ is the number of channels. We get output of size $1 \\times P \\times 1 \\times 1$ from the above 4-D tensor after eight 3D convolutional layers with kernel size $3 \\times 3 \\times 3$ , three 3D average pooling layers with stride size $2 \\times 2 \\times 1$ and one global average pooling at the end. ",
531
+ "bbox": [
532
+ 174,
533
+ 662,
534
+ 825,
535
+ 733
536
+ ],
537
+ "page_idx": 4
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "3.4 COST AGGREGATION AND REGRESSION ",
542
+ "text_level": 1,
543
+ "bbox": [
544
+ 176,
545
+ 756,
546
+ 490,
547
+ 770
548
+ ],
549
+ "page_idx": 4
550
+ },
551
+ {
552
+ "type": "text",
553
+ "text": "For depth prediction, we follow the cost aggregation technique introduced by Im et al. (2019). We adopt a context network, which takes reference image features and each slice of the coarse cost volume after 3D convolution as input and produce the refined cost slice. The final aggregated depth based volume is obtained by adding coarse and refined cost slices together. The last step to get depth prediction of reference image is depth regression. We pass each slice of D-CV through a soft-max function to get the probability of every depth value $l$ . Then the weighted sum of all hypothetical depth values is regarded as predicted depth map; this operation is called soft-argmax. We can also get the predicted coarse depth map by the same way using coarse D-CV. For camera poses prediction, we also apply a soft-argmax function on pose cost volume and get the estimated output rotation and translation vectors. ",
554
+ "bbox": [
555
+ 174,
556
+ 784,
557
+ 825,
558
+ 924
559
+ ],
560
+ "page_idx": 4
561
+ },
562
+ {
563
+ "type": "text",
564
+ "text": "3.5 TRAINING ",
565
+ "text_level": 1,
566
+ "bbox": [
567
+ 174,
568
+ 103,
569
+ 287,
570
+ 117
571
+ ],
572
+ "page_idx": 5
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "The DeepSFM learns the feature extractor, cost aggregation, and the regression layers in a supervised way. We denote $\\hat { { \\bf R } } _ { i }$ and $\\hat { \\mathbf { t } } _ { i }$ as predicted rotation angles and translation vectors of camera pose. Then the pose loss function is defined as the $L 1$ distance between prediction and groundtruth: $\\mathcal { L } _ { r o t a t i o n } =$ $\\left| \\hat { \\mathbf { R } } _ { i } - \\mathbf { R } _ { i } \\right|$ and $\\mathcal { L } _ { t r a n s l a t i o n } = \\left| \\hat { \\mathbf { t } } _ { i } - \\mathbf { t } _ { i } \\right|$ . We denote $\\hat { D } _ { i } ^ { 0 }$ and $\\hat { D } _ { i }$ as predicted coarse depth map and refined depth map for the $i$ -th image, then the depth loss function is defined as following equation: ",
577
+ "bbox": [
578
+ 173,
579
+ 128,
580
+ 825,
581
+ 212
582
+ ],
583
+ "page_idx": 5
584
+ },
585
+ {
586
+ "type": "equation",
587
+ "img_path": "images/2128075f30418c774f93ecfed253ddfceb29ea8f018b5b6dee202788c1e11579.jpg",
588
+ "text": "$$\n\\mathcal { L } _ { d e p t h } = \\sum _ { i } \\lambda H ( \\hat { D } _ { i } ^ { 0 } , \\mathbf { D } _ { i } ) + H ( \\hat { D } _ { i } , \\mathbf { D } _ { i } )\n$$",
589
+ "text_format": "latex",
590
+ "bbox": [
591
+ 362,
592
+ 217,
593
+ 633,
594
+ 250
595
+ ],
596
+ "page_idx": 5
597
+ },
598
+ {
599
+ "type": "text",
600
+ "text": "where $\\lambda$ is weight parameter and function $H$ is Huber loss. ",
601
+ "bbox": [
602
+ 173,
603
+ 256,
604
+ 560,
605
+ 271
606
+ ],
607
+ "page_idx": 5
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "Our final objective becomes ",
612
+ "bbox": [
613
+ 173,
614
+ 277,
615
+ 359,
616
+ 291
617
+ ],
618
+ "page_idx": 5
619
+ },
620
+ {
621
+ "type": "equation",
622
+ "img_path": "images/52777dfe306a0c6e789ff192e6cc9b4b83dbd2becffa129c220e5e097e0291a3.jpg",
623
+ "text": "$$\n\\mathcal { L } _ { f i n a l } = \\lambda _ { r } \\mathcal { L } _ { r o t a t i o n } + \\lambda _ { t } \\mathcal { L } _ { t r a n s l a t i o n } + \\lambda _ { d } \\mathcal { L } _ { d e p t h }\n$$",
624
+ "text_format": "latex",
625
+ "bbox": [
626
+ 326,
627
+ 299,
628
+ 671,
629
+ 316
630
+ ],
631
+ "page_idx": 5
632
+ },
633
+ {
634
+ "type": "text",
635
+ "text": "We follow two rules to set $\\lambda _ { r }$ , $\\lambda _ { t }$ and $\\lambda _ { d } \\colon 1 \\ \\mathrm { , }$ ) the loss term provides gradient on the same order of numerical value range, such that no single loss term could dominate the training process, since accuracy in depth and camera pose are both important to reach a good consensus. 2) we found in practice the camera rotation has higher impact on the accuracy of the depth but not the opposite. To encourage better performance of pose, we set a relatively large $\\lambda _ { r }$ . In practice, the weight parameter $\\lambda$ to balance loss objective is set to 0.7, while $\\lambda _ { r } = 0 . 8$ , $\\lambda _ { t } = 0 . 1$ and $\\lambda _ { d } = 0 . 1$ . ",
636
+ "bbox": [
637
+ 174,
638
+ 329,
639
+ 825,
640
+ 415
641
+ ],
642
+ "page_idx": 5
643
+ },
644
+ {
645
+ "type": "text",
646
+ "text": "The RGB sequences, corresponding ground-truth depth maps and camera intrinsics and extrinsics are fed as input samples. We initialize the 2D feature extraction layers with pre-trained DPSNet weight. The initial depth maps and camera poses $\\{ \\mathbf { D } _ { i } ^ { * } \\} _ { i = 1 } ^ { n }$ and $\\{ \\mathbf { R } _ { i } ^ { * } , \\mathbf { \\bar { t } } _ { i } ^ { * } \\} _ { i = 1 } ^ { n }$ are obtained from DeMoN. To keep correct scale, we multiply translation vectors and depth maps by the norm of the ground truth camera translation vector. The whole training and testing procedure are performed as four iterations. During each iteration, we take the predicted depth maps and camera poses of previous iteration as new $\\mathbf { \\bar { \\{ D } } _ { i } ^ { * } \\} _ { i = 1 } ^ { n }$ and $\\{ \\mathbf { R } _ { i } ^ { * } , \\mathbf { t } _ { i } ^ { * } \\} _ { i = 1 } ^ { n }$ for cost volume construction. ",
647
+ "bbox": [
648
+ 173,
649
+ 420,
650
+ 825,
651
+ 520
652
+ ],
653
+ "page_idx": 5
654
+ },
655
+ {
656
+ "type": "text",
657
+ "text": "We implement our system using PyTorch framework. The training procedure takes 6 days on 3 NVIDIA TITAN GPUs on all 160k training sequences. The training batch size is set to 4, and the Adam optimizer $( \\beta _ { 1 } = 0 . 9 , \\beta _ { 2 } = 0 . 9 9 9 )$ is used with learning rate $2 \\times 1 0 ^ { - 4 }$ , which decreases to $4 \\times 1 0 ^ { - 5 }$ after 2 epochs. Within the first two epochs, the parameters in 2D CNN feature extraction module are frozen, and the ground truth depth maps for source images are used to construct D-CV and P-CV, which are replaced with predicted depth maps from network in latter epochs. During training process, the length of input sequences is 2 (one reference image and one source image). The $L$ for D-CV is set to 64 and the $\\mathbf { N }$ for P-CV is 10. The range of both cost volumes is adapted during training and testing. ",
658
+ "bbox": [
659
+ 173,
660
+ 523,
661
+ 825,
662
+ 651
663
+ ],
664
+ "page_idx": 5
665
+ },
666
+ {
667
+ "type": "text",
668
+ "text": "4 EXPERIMENTS ",
669
+ "text_level": 1,
670
+ "bbox": [
671
+ 176,
672
+ 670,
673
+ 326,
674
+ 686
675
+ ],
676
+ "page_idx": 5
677
+ },
678
+ {
679
+ "type": "text",
680
+ "text": "4.1 DATASETS ",
681
+ "text_level": 1,
682
+ "bbox": [
683
+ 174,
684
+ 702,
685
+ 287,
686
+ 717
687
+ ],
688
+ "page_idx": 5
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "We evaluate DeepSFM on widely used datasets and compare to state-of-the-art methods on accuracy and generalization capability. ",
693
+ "bbox": [
694
+ 174,
695
+ 728,
696
+ 821,
697
+ 757
698
+ ],
699
+ "page_idx": 5
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "DeMoN Datasets Proposed in DeMoN (Ummenhofer et al., 2017), this dataset contains data from various sources, including SUN3D (Xiao et al., 2013), RGB-D SLAM (Sturm et al., 2012), and Scenes11 (Chang et al., 2015). To test the generalization capability, we also evaluate on MVS (Fuhrmann et al., 2014) dataset but not use it for the training. In all four datasets, RGB image sequences and the ground truth depth maps are provided with the camera intrinsics and camera poses. Note that those datasets together provide a diverse set of both indoor and outdoor, synthetic and real-world scenes. Specifically, Scenes11 consists of synthetic images rendered from random scenes, on which ground truth camera poses and depth are perfect, but objects are lack of reality in scale and semantics. For training and testing, we use the same setting as DeMoN. ",
704
+ "bbox": [
705
+ 174,
706
+ 762,
707
+ 825,
708
+ 888
709
+ ],
710
+ "page_idx": 5
711
+ },
712
+ {
713
+ "type": "text",
714
+ "text": "ETH3D Dataset ETH3D dataset provides a variety of indoor and outdoor scenes with highprecision ground truth 3D points captured by laser scanners, which is a more solid benchmark ",
715
+ "bbox": [
716
+ 173,
717
+ 895,
718
+ 820,
719
+ 924
720
+ ],
721
+ "page_idx": 5
722
+ },
723
+ {
724
+ "type": "table",
725
+ "img_path": "images/b5db52a917ec07b9a43cc58113d0866ed6691311634e205bdabb3f2ff0635838.jpg",
726
+ "table_caption": [
727
+ "dataset. Ground truth depth maps are obtained by projecting the point clouds to each camera view. Raw images are in high resolution but resized to $8 1 0 \\times 5 4 0$ pixels for evaluation due to memory constraint. Again, all the models are trained on DeMoN and tested here. "
728
+ ],
729
+ "table_footnote": [
730
+ "Table 1: Results on MVS, SUN3D, RGBD and Scenes11, the best results are noted by Bold. "
731
+ ],
732
+ "table_body": "<table><tr><td>MVS</td><td colspan=\"3\">Depth</td><td colspan=\"2\">Motion</td><td>Scenes11</td><td colspan=\"2\">Depth</td><td colspan=\"3\"></td></tr><tr><td>Method</td><td>L1-inv</td><td>sc-inv</td><td>L1-rel</td><td>Rot</td><td>Trans</td><td>Method</td><td>L1-inv</td><td>sc-inv</td><td>L1-rel</td><td>Rot</td><td>Trans</td></tr><tr><td>Base-Oracle</td><td>0.019</td><td>0.197</td><td>0.105</td><td>0</td><td>0</td><td>Base-Oracle</td><td>0.023</td><td>0.618</td><td>0.349</td><td>0</td><td>0</td></tr><tr><td>Base-SIFT</td><td>0.056</td><td>0.309</td><td>0.361</td><td>21.180</td><td>60.516</td><td>Base-SIFT</td><td>0.051</td><td>0.900</td><td>1.027</td><td>6.179</td><td>56.650</td></tr><tr><td>Base-FF</td><td>0.055</td><td>0.308</td><td>0.322</td><td>4.834</td><td>17.252</td><td>Base-FF</td><td>0.038</td><td>0.793</td><td>0.776</td><td>1.309</td><td>19.426</td></tr><tr><td>Base-Matlab</td><td>-</td><td>-</td><td>-</td><td>10.843</td><td>32.736</td><td>Base-Matlab</td><td>-</td><td>-</td><td>-</td><td>0.917</td><td>14.639</td></tr><tr><td>DeMoN</td><td>0.047</td><td>0.202</td><td>0.305</td><td>5.156</td><td>14.447</td><td>DeMoN</td><td>0.019</td><td>0.315</td><td>0.248</td><td>0.809</td><td>8.918</td></tr><tr><td>LS-Net</td><td>0.051</td><td>0.221</td><td>0.311</td><td>4.653</td><td>11.221</td><td>LS-Net</td><td>0.010</td><td>0.410</td><td>0.210</td><td>4.653</td><td>8.210</td></tr><tr><td>BANet</td><td>0.030</td><td>0.150</td><td>0.080</td><td>3.499</td><td>11.238</td><td>BANet</td><td>0.080</td><td>0.210</td><td>0.130</td><td>3.499</td><td>10.370</td></tr><tr><td>Ours</td><td>0.021</td><td>0.129</td><td>0.079</td><td>2.824</td><td>9.881</td><td>Ours</td><td>0.007</td><td>0.112</td><td>0.064</td><td>0.403</td><td>5.828</td></tr><tr><td>RGB-D</td><td></td><td>Depth</td><td></td><td colspan=\"2\">Motion</td><td>Sun3D</td><td></td><td>Depth</td><td></td><td colspan=\"2\">Motion</td></tr><tr><td>Method</td><td>L1-inv</td><td>sc-inv</td><td>L1-rel</td><td>Rot</td><td>Trans</td><td>Method</td><td>L1-inv</td><td>sc-inv</td><td>L1-rel</td><td>Rot</td><td>Trans</td></tr><tr><td>Base-Oracle</td><td>0.026</td><td>0.398</td><td>0.36</td><td>0</td><td>0</td><td>Base-Oracle</td><td>0.020</td><td>0.241</td><td>0.220</td><td>0</td><td>0</td></tr><tr><td>Base-SIFT</td><td>0.050</td><td>0.577</td><td>0.703</td><td>12.010</td><td>56.021</td><td>Base-SIFT</td><td>0.029</td><td>0.290</td><td>0.286</td><td>7.702</td><td>41.825</td></tr><tr><td>Base-FF</td><td>0.045</td><td>0.548</td><td>0.613</td><td>4.709</td><td>46.058</td><td>Base-FF</td><td>0.029</td><td>0.284</td><td>0.297</td><td>3.681</td><td>33.301</td></tr><tr><td>Base-Matlab</td><td>-</td><td>-</td><td>-</td><td>12.813</td><td>49.612</td><td>Base-Matlab</td><td>-</td><td>-</td><td>-</td><td>5.920</td><td>32.298</td></tr><tr><td>DeMoN</td><td>0.028</td><td>0.130</td><td>0.212</td><td>2.641</td><td>20.585</td><td>DeMoN</td><td>0.019</td><td>0.114</td><td>0.172</td><td>1.801</td><td>18.811</td></tr><tr><td>LS-Net</td><td>0.019</td><td>0.090</td><td>0.301</td><td>1.010</td><td>22.100</td><td>LS-Net</td><td>0.015</td><td>0.189</td><td>0.650</td><td>1.521</td><td>14.347</td></tr><tr><td>BANet</td><td>0.008</td><td>0.087</td><td>0.050</td><td>2.459</td><td>14.900</td><td>BANet</td><td>0.015</td><td>0.110</td><td>0.060</td><td>1.729</td><td>13.260</td></tr><tr><td>Ours</td><td>0.011</td><td>0.071</td><td>0.126</td><td>1.862</td><td>14.570</td><td>Ours</td><td>0.013</td><td>0.093</td><td>0.072</td><td>1.704</td><td>13.107</td></tr></table>",
733
+ "bbox": [
734
+ 173,
735
+ 160,
736
+ 826,
737
+ 487
738
+ ],
739
+ "page_idx": 6
740
+ },
741
+ {
742
+ "type": "text",
743
+ "text": "4.2 EVALUATION ",
744
+ "text_level": 1,
745
+ "bbox": [
746
+ 174,
747
+ 539,
748
+ 305,
749
+ 554
750
+ ],
751
+ "page_idx": 6
752
+ },
753
+ {
754
+ "type": "text",
755
+ "text": "DeMoN Datasets Our results on DeMoN datasets and the comparison to other methods are shown in Table 1. We cite results of some strong baseline methods from DeMoN paper, named as Base-Oracle, Base-SIFT, Base-FF and Base-Matlab respectively (Ummenhofer et al., 2017). Base-Oracle estimate depth with the ground truth camera motion using SGM (Hirschmuller, 2005). Base-SIFT, BaseFF and Base-Matlab solve camera motion and depth using feature, optical flow, and KLT tracking correspondence from 8-pt algorithm (Hartley, 1997). We also compare to some most recent stateof-the-art methods LS-Net (Clark et al., 2018) and BA-Net (Tang & Tan, 2018). LS-Net introduces the learned LSTM-RNN optimizer to minimizing photometric error for stereo reconstruction. BANet is the most recent work that minimizes the feature-metric error between multi-view via the differentiable Levenberg-Marquardt (Lourakis & Argyros, 2005) algorithm. ",
756
+ "bbox": [
757
+ 173,
758
+ 565,
759
+ 825,
760
+ 705
761
+ ],
762
+ "page_idx": 6
763
+ },
764
+ {
765
+ "type": "text",
766
+ "text": "To make a fair comparison, we adopt the same error metrics as DeMoN for depth and camera pose evaluation. L1-inv computes the disparity map errors, and sc-inv is a scale-invariant error metric. ",
767
+ "bbox": [
768
+ 174,
769
+ 712,
770
+ 823,
771
+ 741
772
+ ],
773
+ "page_idx": 6
774
+ },
775
+ {
776
+ "type": "table",
777
+ "img_path": "images/09b5bbaba4c27746cd41e5e87503944ec039124ad1e5ab9982b5ee33af9a02e3.jpg",
778
+ "table_caption": [],
779
+ "table_footnote": [
780
+ "Table 2: Results on ETH3D (Bold: best; $\\alpha = 1 . 2 5$ ). abs_rel, abs_diff, sq_rel, rms, and log_rms, are absolute relative error, absolute difference, square relative difference, root mean square and log root mean square, respectively. "
781
+ ],
782
+ "table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"5\">Error metric</td><td colspan=\"3\">Accuracy metric(δ &lt;αt)</td></tr><tr><td>abs_rel</td><td>abs_diff</td><td>sq_rel</td><td>rms</td><td>log_rms</td><td>a</td><td>q</td><td>a3</td></tr><tr><td>COLMAP</td><td>0.324</td><td>0.615</td><td>36.71</td><td>2.370</td><td>0.349</td><td>86.5</td><td>90.3</td><td>92.7</td></tr><tr><td>DeMoN</td><td>0.191</td><td>0.726</td><td>0.365</td><td>1.059</td><td>0.240</td><td>73.3</td><td>89.8</td><td>95.1</td></tr><tr><td>Ours</td><td>0.127</td><td>0.661</td><td>0.278</td><td>1.003</td><td>0.195</td><td>84.1</td><td>93.8</td><td>96.9</td></tr></table>",
783
+ "bbox": [
784
+ 196,
785
+ 765,
786
+ 802,
787
+ 862
788
+ ],
789
+ "page_idx": 6
790
+ },
791
+ {
792
+ "type": "text",
793
+ "text": "L1-rel measures the depth errors relative to the ground truth depth, which emphasize depth estimation of close range in the scene. For camera poses evaluation, the angles between the prediction and the ground truth rotation and translation are shown as Rot and Trans respectively. ",
794
+ "bbox": [
795
+ 174,
796
+ 103,
797
+ 823,
798
+ 146
799
+ ],
800
+ "page_idx": 7
801
+ },
802
+ {
803
+ "type": "text",
804
+ "text": "Our method outperforms all traditional baseline methods and DeMoN on both depth and camera poses. When compared to more recent LS-Net and BA-Net, our method produces better results in most metrics of the four datasets. On RGB-D dataset, our performance is comparable to the stateof-the-art due to relatively higher noise in the RGB-D ground truth. LS-Net trains an initialization network which regresses depth and motion directly before adding the LSTM-RNN optimizer. The performance of the RNN optimizer is highly affected by the accuracy of the regressed initialization. The depth results of LS-Net are consistently poorer than BA-Net and our method, despite better rotation parameters are estimated by LS-Net on RGB-D and Sun3D datasets with very good initialization. Our method is slightly inferior to BA-Net on the L1-rel metric, which is probably due to that we sample 64 virtual planes uniformly as the hypothetical depth set, while BA-Net optimizes depth prediction based on a set of 128-channel estimated basis depth maps that are more memory consuming but have more fine-grained results empirically. Despite all that, it is shown that our learned cost volumes with geometric consistency work better than the photometric bundle adjustment (e.g. used in BA-Net) in most scenes. In particular, we improve mostly on the Scenes11 dataset, where the ground truth is perfect but the input images contain a lot of texture-less regions, which are challenging to photo-consistency based methods. ",
805
+ "bbox": [
806
+ 174,
807
+ 154,
808
+ 825,
809
+ 375
810
+ ],
811
+ "page_idx": 7
812
+ },
813
+ {
814
+ "type": "text",
815
+ "text": "ETH3D We further test the generalization capability on ETH3D. We provide comparisons to COLMAP (Schonberger & Frahm, 2016) and DeMoN on ETH3D. COLMAP is a state-of-the-art Structure-from-Motion method, while DeMoN introduces a classical deep network architecture that fined as $\\begin{array} { r } { \\operatorname* { m a x } \\Bigl ( \\frac { y _ { i } ^ { * } } { y _ { i } } , \\frac { y _ { i } } { y _ { i } ^ { * } } \\Bigr ) } \\end{array}$ , and the thresholds are typically set as $[ 1 . 2 5 , 1 . 2 5 ^ { 2 } , 1 . 2 5 ^ { 3 } ]$ . In Table $\\delta$ 2, our method shows the best performance overall among all the comparison methods. Our method produces better results than DeMoN consistently, since we impose geometric and physical constraints onto network rather than learning to regress directly. When compared with COLMAP, our method performs better on most metrics. COLMAP behaves well in the accuracy metric (i.e. abs_diff). However, the presence of outliers is often observed in the predictions of COLMAP, which leads to poor performance in other metrics such as abs_rel and sq_rel, since those metrics are sensitive to outliers. We put more qualitative comparisons with COLMAP in Appendix C. For more comparison on generalization, another experiment on ScanNet is provided in Appendix B. ",
816
+ "bbox": [
817
+ 174,
818
+ 382,
819
+ 825,
820
+ 569
821
+ ],
822
+ "page_idx": 7
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "4.3 MODEL ANALYSIS ",
827
+ "text_level": 1,
828
+ "bbox": [
829
+ 176,
830
+ 585,
831
+ 343,
832
+ 599
833
+ ],
834
+ "page_idx": 7
835
+ },
836
+ {
837
+ "type": "text",
838
+ "text": "In this section, we analyze our model on several aspects to verify the optimality and show advantages over previous methods. ",
839
+ "bbox": [
840
+ 173,
841
+ 612,
842
+ 823,
843
+ 640
844
+ ],
845
+ "page_idx": 7
846
+ },
847
+ {
848
+ "type": "image",
849
+ "img_path": "images/ef4b4efad999e3c3cdf431ef5f34c8301c4c1741ef44f24d2018370517f7635b.jpg",
850
+ "image_caption": [
851
+ "Figure 2: Comparison with baseline during iterations. Our work converges at a better position. (a) abs relative error and log RMSE. (b) rotation and translation degree error. "
852
+ ],
853
+ "image_footnote": [],
854
+ "bbox": [
855
+ 218,
856
+ 657,
857
+ 779,
858
+ 823
859
+ ],
860
+ "page_idx": 7
861
+ },
862
+ {
863
+ "type": "text",
864
+ "text": "Iterative Improvement Our model can run iteratively to reduce the prediction error. Figure 2 (solid lines) shows our performance over iterations when initialized with the prediction from DeMoN. As can be seen, our model effectively reduces both depth and pose errors upon the DeMoN output. ",
865
+ "bbox": [
866
+ 174,
867
+ 882,
868
+ 823,
869
+ 924
870
+ ],
871
+ "page_idx": 7
872
+ },
873
+ {
874
+ "type": "text",
875
+ "text": "Throughout the iterations, better depth and pose benefit each other by building more accurate cost volume, and both are consistently improved. The whole process is similar to coordinate descent algorithm, and finally converges at iteration 4. ",
876
+ "bbox": [
877
+ 176,
878
+ 103,
879
+ 823,
880
+ 145
881
+ ],
882
+ "page_idx": 8
883
+ },
884
+ {
885
+ "type": "text",
886
+ "text": "Effect of P-CV We compare DeepSFM to a baseline method for our P-CV. In this baseline, the depth prediction is the same as DeepSFM, but the pose prediction network is replaced by a direct visual odometry model Steinbrücker et al. (2011), which updates camera parameters by minimizing pixel-wise photometric error between image features. Both methods are initialized with DeMoN results. As provided in Figure 2, DeepSFM consistently produces lower errors on both depth and pose over all the iterations. This shows that our P-CV predicts more accurate pose and performs more robust against noise depth at early stages. ",
887
+ "bbox": [
888
+ 173,
889
+ 152,
890
+ 825,
891
+ 251
892
+ ],
893
+ "page_idx": 8
894
+ },
895
+ {
896
+ "type": "image",
897
+ "img_path": "images/6b91aa781c2bca13017105bf80c05ab026ebc2968c1bafec058c3e3a8f268d6a.jpg",
898
+ "image_caption": [
899
+ "Figure 3: Depth map results w.r.t. the number of images. "
900
+ ],
901
+ "image_footnote": [],
902
+ "bbox": [
903
+ 217,
904
+ 275,
905
+ 776,
906
+ 438
907
+ ],
908
+ "page_idx": 8
909
+ },
910
+ {
911
+ "type": "text",
912
+ "text": "View Number DeepSFM works still reasonably well with fewer views due to the free from optimization based components. To show this, we compare to COLMAP with respect to the number of input views on ETH3D. As depicted in Figure 3, more images yield better results for both methods as expected. However, our performance drops significantly slower than COLMAP with fewer number of inputs. Numerically, DeepSFM cuts the depth error by half under the same number of views as COLMAP, or achieves similar error with half number of views required by COLMAP. This clearly demonstrates that DeepSFM is more robust when fewer inputs are available. ",
913
+ "bbox": [
914
+ 173,
915
+ 484,
916
+ 825,
917
+ 582
918
+ ],
919
+ "page_idx": 8
920
+ },
921
+ {
922
+ "type": "text",
923
+ "text": "5 CONCLUSIONS ",
924
+ "text_level": 1,
925
+ "bbox": [
926
+ 176,
927
+ 604,
928
+ 328,
929
+ 621
930
+ ],
931
+ "page_idx": 8
932
+ },
933
+ {
934
+ "type": "text",
935
+ "text": "We present a deep learning framework for Structure-from-Motion, which explicitly enforces photometric consistency, geometric consistency and camera motion constraints all in the deep network. This is achieved by two key components - namely D-CV and P-CV. Both cost volumes measure the photo-metric errors and geometric errors but hypothetically move reconstructed scene points (structure) or camera (motion) respectively. Our deep network can be considered as an enhanced learning based BA algorithm, which takes the best benefits from both learnable priors and geometric rules. Consequently, our method outperforms conventional BA and state-of-the-art deep learning based methods for SfM. ",
936
+ "bbox": [
937
+ 174,
938
+ 637,
939
+ 825,
940
+ 748
941
+ ],
942
+ "page_idx": 8
943
+ },
944
+ {
945
+ "type": "text",
946
+ "text": "REFERENCES ",
947
+ "text_level": 1,
948
+ "bbox": [
949
+ 176,
950
+ 772,
951
+ 285,
952
+ 787
953
+ ],
954
+ "page_idx": 8
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "Sameer Agarwal, Noah Snavely, Steven M Seitz, and Richard Szeliski. Bundle adjustment in the large. In European conference on computer vision, pp. 29–42. Springer, 2010. ",
959
+ "bbox": [
960
+ 174,
961
+ 797,
962
+ 823,
963
+ 825
964
+ ],
965
+ "page_idx": 8
966
+ },
967
+ {
968
+ "type": "text",
969
+ "text": "Sameer Agarwal, Yasutaka Furukawa, Noah Snavely, Ian Simon, Brian Curless, Steven M Seitz, and Richard Szeliski. Building rome in a day. Communications of the ACM, 54(10):105–112, 2011. ",
970
+ "bbox": [
971
+ 171,
972
+ 839,
973
+ 823,
974
+ 867
975
+ ],
976
+ "page_idx": 8
977
+ },
978
+ {
979
+ "type": "text",
980
+ "text": "Angel X Chang, Thomas Funkhouser, Leonidas Guibas, Pat Hanrahan, Qixing Huang, Zimo Li, Silvio Savarese, Manolis Savva, Shuran Song, Hao Su, et al. Shapenet: An information-rich 3d model repository. arXiv preprint arXiv:1512.03012, 2015. ",
981
+ "bbox": [
982
+ 176,
983
+ 881,
984
+ 825,
985
+ 924
986
+ ],
987
+ "page_idx": 8
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "Ronald Clark, Michael Bloesch, Jan Czarnowski, Stefan Leutenegger, and Andrew J Davison. Learning to solve nonlinear least squares for monocular stereo. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 284–299, 2018. ",
992
+ "bbox": [
993
+ 179,
994
+ 103,
995
+ 823,
996
+ 146
997
+ ],
998
+ "page_idx": 9
999
+ },
1000
+ {
1001
+ "type": "text",
1002
+ "text": "Amaël Delaunoy and Marc Pollefeys. Photometric bundle adjustment for dense multi-view 3d modeling. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1486–1493, 2014. ",
1003
+ "bbox": [
1004
+ 174,
1005
+ 156,
1006
+ 825,
1007
+ 198
1008
+ ],
1009
+ "page_idx": 9
1010
+ },
1011
+ {
1012
+ "type": "text",
1013
+ "text": "David Eigen and Rob Fergus. Predicting depth, surface normals and semantic labels with a common multi-scale convolutional architecture. In The IEEE International Conference on Computer Vision (ICCV), December 2015. ",
1014
+ "bbox": [
1015
+ 173,
1016
+ 209,
1017
+ 825,
1018
+ 251
1019
+ ],
1020
+ "page_idx": 9
1021
+ },
1022
+ {
1023
+ "type": "text",
1024
+ "text": "David Eigen, Christian Puhrsch, and Rob Fergus. Depth map prediction from a single image using a multi-scale deep network. In Advances in neural information processing systems, pp. 2366–2374, 2014. ",
1025
+ "bbox": [
1026
+ 173,
1027
+ 262,
1028
+ 825,
1029
+ 304
1030
+ ],
1031
+ "page_idx": 9
1032
+ },
1033
+ {
1034
+ "type": "text",
1035
+ "text": "Jakob Engel, Thomas Schöps, and Daniel Cremers. Lsd-slam: Large-scale direct monocular slam. In European conference on computer vision, pp. 834–849. Springer, 2014. ",
1036
+ "bbox": [
1037
+ 171,
1038
+ 314,
1039
+ 821,
1040
+ 344
1041
+ ],
1042
+ "page_idx": 9
1043
+ },
1044
+ {
1045
+ "type": "text",
1046
+ "text": "Jakob Engel, Vladlen Koltun, and Daniel Cremers. Direct sparse odometry. IEEE transactions on pattern analysis and machine intelligence, 40(3):611–625, 2017. ",
1047
+ "bbox": [
1048
+ 171,
1049
+ 353,
1050
+ 823,
1051
+ 383
1052
+ ],
1053
+ "page_idx": 9
1054
+ },
1055
+ {
1056
+ "type": "text",
1057
+ "text": "Huan Fu, Mingming Gong, Chaohui Wang, Kayhan Batmanghelich, and Dacheng Tao. Deep ordinal regression network for monocular depth estimation. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2018. ",
1058
+ "bbox": [
1059
+ 174,
1060
+ 392,
1061
+ 823,
1062
+ 436
1063
+ ],
1064
+ "page_idx": 9
1065
+ },
1066
+ {
1067
+ "type": "text",
1068
+ "text": "Simon Fuhrmann, Fabian Langguth, and Michael Goesele. Mve-a multi-view reconstruction environment. In GCH, pp. 11–18, 2014. ",
1069
+ "bbox": [
1070
+ 173,
1071
+ 445,
1072
+ 821,
1073
+ 476
1074
+ ],
1075
+ "page_idx": 9
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "text": "Yasutaka Furukawa, Brian Curless, Steven M Seitz, and Richard Szeliski. Towards internet-scale multi-view stereo. In 2010 IEEE computer society conference on computer vision and pattern recognition, pp. 1434–1441. IEEE, 2010. ",
1080
+ "bbox": [
1081
+ 174,
1082
+ 484,
1083
+ 825,
1084
+ 529
1085
+ ],
1086
+ "page_idx": 9
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "Ravi Garg, Vijay Kumar BG, Gustavo Carneiro, and Ian Reid. Unsupervised cnn for single view depth estimation: Geometry to the rescue. In European Conference on Computer Vision (ECCV), pp. 740–756. Springer, 2016. ",
1091
+ "bbox": [
1092
+ 173,
1093
+ 537,
1094
+ 823,
1095
+ 580
1096
+ ],
1097
+ "page_idx": 9
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "Riccardo Gherardi, Michela Farenzena, and Andrea Fusiello. Improving the efficiency of hierarchical structure-and-motion. In 2010 IEEE Computer Society Conference on Computer Vision and Pattern Recognition, pp. 1594–1600. IEEE, 2010. ",
1102
+ "bbox": [
1103
+ 173,
1104
+ 590,
1105
+ 825,
1106
+ 633
1107
+ ],
1108
+ "page_idx": 9
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "Xufeng Han, Thomas Leung, Yangqing Jia, Rahul Sukthankar, and Alexander C Berg. Matchnet: Unifying feature and metric learning for patch-based matching. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3279–3286, 2015. ",
1113
+ "bbox": [
1114
+ 173,
1115
+ 643,
1116
+ 825,
1117
+ 688
1118
+ ],
1119
+ "page_idx": 9
1120
+ },
1121
+ {
1122
+ "type": "text",
1123
+ "text": "Richard I Hartley. In defense of the eight-point algorithm. IEEE Transactions on pattern analysis and machine intelligence, 19(6):580–593, 1997. ",
1124
+ "bbox": [
1125
+ 171,
1126
+ 696,
1127
+ 823,
1128
+ 727
1129
+ ],
1130
+ "page_idx": 9
1131
+ },
1132
+ {
1133
+ "type": "text",
1134
+ "text": "Heiko Hirschmuller. Accurate and efficient stereo processing by semi-global matching and mutual information. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’05), volume 2, pp. 807–814. IEEE, 2005. ",
1135
+ "bbox": [
1136
+ 173,
1137
+ 736,
1138
+ 825,
1139
+ 780
1140
+ ],
1141
+ "page_idx": 9
1142
+ },
1143
+ {
1144
+ "type": "text",
1145
+ "text": "Sepp Hochreiter, A Steven Younger, and Peter R Conwell. Learning to learn using gradient descent. In International Conference on Artificial Neural Networks, pp. 87–94. Springer, 2001. ",
1146
+ "bbox": [
1147
+ 169,
1148
+ 789,
1149
+ 823,
1150
+ 819
1151
+ ],
1152
+ "page_idx": 9
1153
+ },
1154
+ {
1155
+ "type": "text",
1156
+ "text": "Sunghoon Im, Hae-Gon Jeon, Stephen Lin, and In So Kweon. Dpsnet: End-to-end deep plane sweep stereo. In International Conference on Learning Representations, 2019. URL https: //openreview.net/forum?id $=$ ryeYHi0ctQ. ",
1157
+ "bbox": [
1158
+ 174,
1159
+ 828,
1160
+ 823,
1161
+ 872
1162
+ ],
1163
+ "page_idx": 9
1164
+ },
1165
+ {
1166
+ "type": "text",
1167
+ "text": "He Kaiming, Zhang Xiangyu, Ren Shaoqing, and Jian Sun. Spatial pyramid pooling in deep convolutional networks for visual recognition. In European Conference on Computer Vision (ECCV), 2014. ",
1168
+ "bbox": [
1169
+ 174,
1170
+ 881,
1171
+ 823,
1172
+ 922
1173
+ ],
1174
+ "page_idx": 9
1175
+ },
1176
+ {
1177
+ "type": "text",
1178
+ "text": "Yevhen Kuznietsov, Jorg Stuckler, and Bastian Leibe. Semi-supervised deep learning for monocular depth map prediction. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), July 2017. ",
1179
+ "bbox": [
1180
+ 176,
1181
+ 103,
1182
+ 823,
1183
+ 146
1184
+ ],
1185
+ "page_idx": 10
1186
+ },
1187
+ {
1188
+ "type": "text",
1189
+ "text": "Iro Laina, Christian Rupprecht, Vasileios Belagiannis, Federico Tombari, and Nassir Navab. Deeper depth prediction with fully convolutional residual networks. In 2016 Fourth International Conference on 3D Vision (3DV), pp. 239–248. IEEE, 2016. ",
1190
+ "bbox": [
1191
+ 174,
1192
+ 155,
1193
+ 821,
1194
+ 198
1195
+ ],
1196
+ "page_idx": 10
1197
+ },
1198
+ {
1199
+ "type": "text",
1200
+ "text": "Fayao Liu, Chunhua Shen, Guosheng Lin, and Ian Reid. Learning depth from single monocular images using deep convolutional neural fields. IEEE transactions on pattern analysis and machine intelligence, 38(10):2024–2039, 2016. ",
1201
+ "bbox": [
1202
+ 174,
1203
+ 205,
1204
+ 823,
1205
+ 248
1206
+ ],
1207
+ "page_idx": 10
1208
+ },
1209
+ {
1210
+ "type": "text",
1211
+ "text": "MLA Lourakis and Antonis A Argyros. Is levenberg-marquardt the most efficient optimization algorithm for implementing bundle adjustment? In Tenth IEEE International Conference on Computer Vision (ICCV’05) Volume 1, volume 2, pp. 1526–1531. IEEE, 2005. ",
1212
+ "bbox": [
1213
+ 173,
1214
+ 257,
1215
+ 825,
1216
+ 301
1217
+ ],
1218
+ "page_idx": 10
1219
+ },
1220
+ {
1221
+ "type": "text",
1222
+ "text": "David G Lowe. Distinctive image features from scale-invariant keypoints. International journal of computer vision, 60(2):91–110, 2004. ",
1223
+ "bbox": [
1224
+ 173,
1225
+ 309,
1226
+ 823,
1227
+ 338
1228
+ ],
1229
+ "page_idx": 10
1230
+ },
1231
+ {
1232
+ "type": "text",
1233
+ "text": "Raul Mur-Artal and Juan D Tardós. Orb-slam2: An open-source slam system for monocular, stereo, and rgb-d cameras. IEEE Transactions on Robotics, 33(5):1255–1262, 2017. ",
1234
+ "bbox": [
1235
+ 173,
1236
+ 347,
1237
+ 821,
1238
+ 376
1239
+ ],
1240
+ "page_idx": 10
1241
+ },
1242
+ {
1243
+ "type": "text",
1244
+ "text": "Raul Mur-Artal, Jose Maria Martinez Montiel, and Juan D Tardos. Orb-slam: a versatile and accurate monocular slam system. IEEE transactions on robotics, 31(5):1147–1163, 2015. ",
1245
+ "bbox": [
1246
+ 173,
1247
+ 383,
1248
+ 820,
1249
+ 414
1250
+ ],
1251
+ "page_idx": 10
1252
+ },
1253
+ {
1254
+ "type": "text",
1255
+ "text": "Richard A Newcombe, Steven J Lovegrove, and Andrew J Davison. Dtam: Dense tracking and mapping in real-time. In 2011 international conference on computer vision, pp. 2320–2327. IEEE, 2011. ",
1256
+ "bbox": [
1257
+ 173,
1258
+ 421,
1259
+ 825,
1260
+ 464
1261
+ ],
1262
+ "page_idx": 10
1263
+ },
1264
+ {
1265
+ "type": "text",
1266
+ "text": "Jorge Nocedal and Stephen Wright. Numerical optimization. Springer Science & Business Media, 2006. ",
1267
+ "bbox": [
1268
+ 173,
1269
+ 473,
1270
+ 823,
1271
+ 502
1272
+ ],
1273
+ "page_idx": 10
1274
+ },
1275
+ {
1276
+ "type": "text",
1277
+ "text": "Johannes L Schonberger and Jan-Michael Frahm. Structure-from-motion revisited. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 4104–4113, 2016. ",
1278
+ "bbox": [
1279
+ 173,
1280
+ 511,
1281
+ 821,
1282
+ 541
1283
+ ],
1284
+ "page_idx": 10
1285
+ },
1286
+ {
1287
+ "type": "text",
1288
+ "text": "Noah Snavely. Scene reconstruction and visualization from internet photo collections: A survey. IPSJ Transactions on Computer Vision and Applications, 3:44–66, 2011. ",
1289
+ "bbox": [
1290
+ 171,
1291
+ 547,
1292
+ 823,
1293
+ 578
1294
+ ],
1295
+ "page_idx": 10
1296
+ },
1297
+ {
1298
+ "type": "text",
1299
+ "text": "Frank Steinbrücker, Jürgen Sturm, and Daniel Cremers. Real-time visual odometry from dense rgb-d images. In 2011 IEEE International Conference on Computer Vision Workshops (ICCV Workshops), pp. 719–722. IEEE, 2011. ",
1300
+ "bbox": [
1301
+ 173,
1302
+ 585,
1303
+ 825,
1304
+ 630
1305
+ ],
1306
+ "page_idx": 10
1307
+ },
1308
+ {
1309
+ "type": "text",
1310
+ "text": "Jürgen Sturm, Nikolas Engelhard, Felix Endres, Wolfram Burgard, and Daniel Cremers. A benchmark for the evaluation of rgb-d slam systems. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pp. 573–580. IEEE, 2012. ",
1311
+ "bbox": [
1312
+ 173,
1313
+ 637,
1314
+ 825,
1315
+ 681
1316
+ ],
1317
+ "page_idx": 10
1318
+ },
1319
+ {
1320
+ "type": "text",
1321
+ "text": "Chengzhou Tang and Ping Tan. Ba-net: Dense bundle adjustment network. arXiv preprint arXiv:1806.04807, 2018. ",
1322
+ "bbox": [
1323
+ 169,
1324
+ 689,
1325
+ 825,
1326
+ 718
1327
+ ],
1328
+ "page_idx": 10
1329
+ },
1330
+ {
1331
+ "type": "text",
1332
+ "text": "Zachary Teed and Jia Deng. Deepv2d: Video to depth with differentiable structure from motion. arXiv preprint arXiv:1812.04605, 2018. ",
1333
+ "bbox": [
1334
+ 169,
1335
+ 727,
1336
+ 823,
1337
+ 756
1338
+ ],
1339
+ "page_idx": 10
1340
+ },
1341
+ {
1342
+ "type": "text",
1343
+ "text": "Bill Triggs, Philip F McLauchlan, Richard I Hartley, and Andrew W Fitzgibbon. Bundle adjustment—a modern synthesis. In International workshop on vision algorithms, pp. 298–372. Springer, 1999. ",
1344
+ "bbox": [
1345
+ 174,
1346
+ 763,
1347
+ 823,
1348
+ 808
1349
+ ],
1350
+ "page_idx": 10
1351
+ },
1352
+ {
1353
+ "type": "text",
1354
+ "text": "Benjamin Ummenhofer, Huizhong Zhou, Jonas Uhrig, Nikolaus Mayer, Eddy Ilg, Alexey Dosovitskiy, and Thomas Brox. Demon: Depth and motion network for learning monocular stereo. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 5038– 5047, 2017. ",
1355
+ "bbox": [
1356
+ 174,
1357
+ 815,
1358
+ 825,
1359
+ 872
1360
+ ],
1361
+ "page_idx": 10
1362
+ },
1363
+ {
1364
+ "type": "text",
1365
+ "text": "Sudheendra Vijayanarasimhan, Susanna Ricco, Cordelia Schmid, Rahul Sukthankar, and Katerina Fragkiadaki. Sfm-net: Learning of structure and motion from video. arXiv preprint arXiv:1704.07804, 2017. ",
1366
+ "bbox": [
1367
+ 174,
1368
+ 881,
1369
+ 823,
1370
+ 924
1371
+ ],
1372
+ "page_idx": 10
1373
+ },
1374
+ {
1375
+ "type": "text",
1376
+ "text": "Chaoyang Wang, José Miguel Buenaposada, Rui Zhu, and Simon Lucey. Learning depth from monocular videos using direct methods. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2022–2030, 2018. ",
1377
+ "bbox": [
1378
+ 174,
1379
+ 103,
1380
+ 823,
1381
+ 146
1382
+ ],
1383
+ "page_idx": 11
1384
+ },
1385
+ {
1386
+ "type": "text",
1387
+ "text": "Peng Wang, Xiaohui Shen, Zhe Lin, Scott Cohen, Brian Price, and Alan L. Yuille. Towards unified depth and semantic prediction from a single image. In The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), June 2015. ",
1388
+ "bbox": [
1389
+ 174,
1390
+ 155,
1391
+ 821,
1392
+ 196
1393
+ ],
1394
+ "page_idx": 11
1395
+ },
1396
+ {
1397
+ "type": "text",
1398
+ "text": "Sen Wang, Ronald Clark, Hongkai Wen, and Niki Trigoni. Deepvo: Towards end-to-end visual odometry with deep recurrent convolutional neural networks. In 2017 IEEE International Conference on Robotics and Automation (ICRA), pp. 2043–2050. IEEE, 2017. ",
1399
+ "bbox": [
1400
+ 174,
1401
+ 205,
1402
+ 825,
1403
+ 250
1404
+ ],
1405
+ "page_idx": 11
1406
+ },
1407
+ {
1408
+ "type": "text",
1409
+ "text": "Changchang Wu, Sameer Agarwal, Brian Curless, and Steven M Seitz. Multicore bundle adjustment. In CVPR 2011, pp. 3057–3064. IEEE, 2011a. ",
1410
+ "bbox": [
1411
+ 176,
1412
+ 257,
1413
+ 820,
1414
+ 286
1415
+ ],
1416
+ "page_idx": 11
1417
+ },
1418
+ {
1419
+ "type": "text",
1420
+ "text": "Changchang Wu et al. Visualsfm: A visual structure from motion system. 2011b. ",
1421
+ "bbox": [
1422
+ 173,
1423
+ 295,
1424
+ 709,
1425
+ 310
1426
+ ],
1427
+ "page_idx": 11
1428
+ },
1429
+ {
1430
+ "type": "text",
1431
+ "text": "Jianxiong Xiao, Andrew Owens, and Antonio Torralba. Sun3d: A database of big spaces reconstructed using sfm and object labels. In Proceedings of the IEEE International Conference on Computer Vision, pp. 1625–1632, 2013. ",
1432
+ "bbox": [
1433
+ 174,
1434
+ 319,
1435
+ 825,
1436
+ 363
1437
+ ],
1438
+ "page_idx": 11
1439
+ },
1440
+ {
1441
+ "type": "text",
1442
+ "text": "Yao Yao, Zixin Luo, Shiwei Li, Tian Fang, and Long Quan. Mvsnet: Depth inference for unstructured multi-view stereo. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 767–783, 2018. ",
1443
+ "bbox": [
1444
+ 174,
1445
+ 371,
1446
+ 825,
1447
+ 414
1448
+ ],
1449
+ "page_idx": 11
1450
+ },
1451
+ {
1452
+ "type": "text",
1453
+ "text": "Tinghui Zhou, Matthew Brown, Noah Snavely, and David G Lowe. Unsupervised learning of depth and ego-motion from video. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1851–1858, 2017. ",
1454
+ "bbox": [
1455
+ 174,
1456
+ 422,
1457
+ 825,
1458
+ 465
1459
+ ],
1460
+ "page_idx": 11
1461
+ },
1462
+ {
1463
+ "type": "image",
1464
+ "img_path": "images/82aa82d94f6cdad0bad2a4bfbc9a3ef894b5ee7c833ffa4f7e8ab2cfaef8e7c6.jpg",
1465
+ "image_caption": [
1466
+ "Figure 4: Detail architecture of feature extractor. "
1467
+ ],
1468
+ "image_footnote": [],
1469
+ "bbox": [
1470
+ 228,
1471
+ 104,
1472
+ 787,
1473
+ 579
1474
+ ],
1475
+ "page_idx": 12
1476
+ },
1477
+ {
1478
+ "type": "text",
1479
+ "text": "A IMPLEMENTATION DETAILS ",
1480
+ "text_level": 1,
1481
+ "bbox": [
1482
+ 176,
1483
+ 657,
1484
+ 441,
1485
+ 672
1486
+ ],
1487
+ "page_idx": 12
1488
+ },
1489
+ {
1490
+ "type": "text",
1491
+ "text": "Feature extraction module As shown in Figure 4, we build our feature extraction module referring to DPSNet (Im et al., 2019). The module takes $4 W \\times 4 H \\times 3$ images as input and output feature maps of size $W \\times H \\times 3 2$ , which are used to build D-CV and P-CV. ",
1492
+ "bbox": [
1493
+ 173,
1494
+ 693,
1495
+ 823,
1496
+ 734
1497
+ ],
1498
+ "page_idx": 12
1499
+ },
1500
+ {
1501
+ "type": "text",
1502
+ "text": "Cost volumes Figure 5 shows the detailed components for the P-CV and D-CV. Each channel of cost volume is composed of four components: reference view feature maps, warped source view feature maps, the warped source view initial depth map and the projected reference view depth plane or initial depth map. For P-CV construction, we take each sampled hypothetical camera pose, and carry out the warping process on source view depth maps and initial depth map based on the camera pose. And the initial reference view depth map is projected to align numeric values with the warped source view depth map. Finally those four components are concatenated as one channel of 4D P-CV. We do this on all P sampled camera poses, and get the P channel P-CV. The building approach for D-CV is similar, we take each sampled hypothetical depth plane, and carry out warping process on source view feature maps and the initial depth map. And the depth plane is projected to align with the source view depth map. After concatenation, one channel in D-CV is got. Same computation is done based on all L virtual depth planes, and the L channel D-CV is built up. ",
1503
+ "bbox": [
1504
+ 173,
1505
+ 757,
1506
+ 825,
1507
+ 924
1508
+ ],
1509
+ "page_idx": 12
1510
+ },
1511
+ {
1512
+ "type": "image",
1513
+ "img_path": "images/3ba50161d35ea26d1065e2a10ed33e236b8823d86d19b9b271a570432fc77675.jpg",
1514
+ "image_caption": [
1515
+ "Figure 5: Four components in D-CV or P-CV. "
1516
+ ],
1517
+ "image_footnote": [],
1518
+ "bbox": [
1519
+ 294,
1520
+ 137,
1521
+ 738,
1522
+ 361
1523
+ ],
1524
+ "page_idx": 13
1525
+ },
1526
+ {
1527
+ "type": "table",
1528
+ "img_path": "images/586465613c358094a0a8dce9a3069c1b8acb0d627ab70a50a8d0ccf376ab8ac4.jpg",
1529
+ "table_caption": [],
1530
+ "table_footnote": [
1531
+ "Table 3: Results on ScanNet. (sc_inv: scale invariant log rms; Bold: best.) "
1532
+ ],
1533
+ "table_body": "<table><tr><td rowspan=\"3\">Method</td><td colspan=\"5\">Depth</td><td colspan=\"2\">Motion</td></tr><tr><td>abs_rel</td><td>sq_rel</td><td>rms</td><td>log_rms</td><td>sc_inv</td><td>Rot</td><td>Trans</td></tr><tr><td>Ours</td><td>0.227</td><td>0.170</td><td>0.479</td><td>0.271</td><td>0.268</td><td>1.588</td><td>30.613</td></tr><tr><td>BA-Net</td><td>0.238</td><td>0.176</td><td>0.488</td><td>0.279</td><td>0.276</td><td>1.587</td><td>31.005</td></tr><tr><td>DeMoN</td><td>0.231</td><td>0.520</td><td>0.761</td><td>0.289</td><td>0.284</td><td>3.791</td><td>31.626</td></tr><tr><td>LSD-SLAM</td><td>0.268</td><td>0.427</td><td>0.788</td><td>0.330</td><td>0.323</td><td>4.409</td><td>34.360</td></tr><tr><td>Geometric BA</td><td>0.382</td><td>1.163</td><td>0.876</td><td>0.366</td><td>0.357</td><td>8.560</td><td>39.392</td></tr></table>",
1534
+ "bbox": [
1535
+ 222,
1536
+ 444,
1537
+ 776,
1538
+ 569
1539
+ ],
1540
+ "page_idx": 13
1541
+ },
1542
+ {
1543
+ "type": "text",
1544
+ "text": "3D convolutional layers The detail architecture of 3D convolutional layers after D-CV is almost the same as DPSNet (Im et al., 2019), except for the fist convolution layer. In order to compatible with the newly introduced depth consistent components in D-CV, We adjust the input channel number to 66 instead of 64. As shown in Figure 6, for 3D convolutional layers after P-CV, the architecture is similar to D-CV 3D convolution layers with three extra 3D average pooling layers and finally there is one global average pooling in the dimensions of image width and height, after which we get a $P \\times 1 \\times 1$ tensor. ",
1545
+ "bbox": [
1546
+ 173,
1547
+ 631,
1548
+ 825,
1549
+ 729
1550
+ ],
1551
+ "page_idx": 13
1552
+ },
1553
+ {
1554
+ "type": "text",
1555
+ "text": "B EVALUATION ON SCANNET ",
1556
+ "text_level": 1,
1557
+ "bbox": [
1558
+ 176,
1559
+ 756,
1560
+ 436,
1561
+ 771
1562
+ ],
1563
+ "page_idx": 13
1564
+ },
1565
+ {
1566
+ "type": "text",
1567
+ "text": "ScanNet provides a large set of indoor sequences with camera poses and depth maps captured from a commodity RGBD sensor. Following BA-Net, we leverage this dataset to evaluate the generalization capability by training models on DeMoN and testing here. The testing set is the same as BA-Net, which takes 2000 pairs filtered from 100 sequences. ",
1568
+ "bbox": [
1569
+ 174,
1570
+ 791,
1571
+ 825,
1572
+ 847
1573
+ ],
1574
+ "page_idx": 13
1575
+ },
1576
+ {
1577
+ "type": "text",
1578
+ "text": "We evaluate the generalization capability of DeepSFM on ScanNet. Table 3 shows the quantitative evaluation results for models trained on DeMoN. The results of BA-Net, DeMoN, LSD-SLAM and Geometric BA are obtained from Tang & Tan (2018). As can be seen, our method significantly outperforms all previous work, which indicates that our model generalizes well to general indoor environments. ",
1579
+ "bbox": [
1580
+ 176,
1581
+ 853,
1582
+ 823,
1583
+ 922
1584
+ ],
1585
+ "page_idx": 13
1586
+ },
1587
+ {
1588
+ "type": "image",
1589
+ "img_path": "images/fca6b0e5f5130467df98ed3f4fd31833a302b11d8ee0e4c40341da6e3f63944f.jpg",
1590
+ "image_caption": [
1591
+ "Figure 6: 3D convolutional layers After P-CV. "
1592
+ ],
1593
+ "image_footnote": [],
1594
+ "bbox": [
1595
+ 325,
1596
+ 113,
1597
+ 686,
1598
+ 585
1599
+ ],
1600
+ "page_idx": 14
1601
+ },
1602
+ {
1603
+ "type": "table",
1604
+ "img_path": "images/bca87bb8f57a5475c551b273765d85a82750834e8e32f8545234f2310b57e546.jpg",
1605
+ "table_caption": [
1606
+ "Table 4: The performance of the optimization iterations for testing. "
1607
+ ],
1608
+ "table_footnote": [],
1609
+ "table_body": "<table><tr><td></td><td>Initialization</td><td>Iteration 2</td><td>Iteration 4</td><td>Iteration 6</td><td>Iteration 10</td><td>Iteration 20</td></tr><tr><td>abs relative</td><td>0.254</td><td>0.153</td><td>0.126</td><td>0.121</td><td>0.120</td><td>0.120</td></tr><tr><td>log rms</td><td>0.248</td><td>0.195</td><td>0.191</td><td>0.190</td><td>0.190</td><td>0.191</td></tr><tr><td>translation</td><td>15.20</td><td>9.75</td><td>9.73</td><td>9.73</td><td>9.73</td><td>9.73</td></tr><tr><td>rotation</td><td>2.38</td><td>1.43</td><td>1.40</td><td>1.39</td><td>1.39</td><td>1.39</td></tr></table>",
1610
+ "bbox": [
1611
+ 173,
1612
+ 633,
1613
+ 825,
1614
+ 724
1615
+ ],
1616
+ "page_idx": 14
1617
+ },
1618
+ {
1619
+ "type": "text",
1620
+ "text": "C SUPPLEMENTAL ABLATION STUDY ",
1621
+ "text_level": 1,
1622
+ "bbox": [
1623
+ 173,
1624
+ 784,
1625
+ 500,
1626
+ 801
1627
+ ],
1628
+ "page_idx": 14
1629
+ },
1630
+ {
1631
+ "type": "text",
1632
+ "text": "More Iterations for Testing. We take up to four iterations when we train DeepSFM. During inference, the predicted depth maps and camera poses of previous iteration are taken as initialization of next iteration. To show how DeepSFM performs with more iterations than it is trained with, we show results in Table 4. We tested with up to 20 iterations, and it converges at the 6-th iteration. ",
1633
+ "bbox": [
1634
+ 174,
1635
+ 818,
1636
+ 825,
1637
+ 875
1638
+ ],
1639
+ "page_idx": 14
1640
+ },
1641
+ {
1642
+ "type": "text",
1643
+ "text": "Bilinear Interpolation vs Nearest Neighbor Sampling. For the construction of D-CV and P-CV, depth maps are warped via the nearest neighbor sampling instead of bilinear interpolation. Due to the discontinuity of the depth values in depth maps, the bilinear interpolation may bring some side effects. It may do damage to the geometry consistency and smooth the depth boundaries. As a comparison, we replace the nearest neighbor sampling with the bilinear interpolation. As shown in Table 5, the performance of our model gains a slight drop with the bilinear interpolation, which indicates that the nearest neighbor sampling method is indeed more geometrically meaningful for depth. In contrast, the differentiable bilinear interpolation is required for the warping of image features, whose gradients are back propagated to feature extractor layers. Further exploration will be an interesting future work. ",
1644
+ "bbox": [
1645
+ 174,
1646
+ 882,
1647
+ 823,
1648
+ 924
1649
+ ],
1650
+ "page_idx": 14
1651
+ },
1652
+ {
1653
+ "type": "table",
1654
+ "img_path": "images/16f42bbb9e991ec7d0a05278fcaccc0a117d622d15261b2204e7724a0164e132.jpg",
1655
+ "table_caption": [
1656
+ "Table 5: The performance with different warping methods. "
1657
+ ],
1658
+ "table_footnote": [],
1659
+ "table_body": "<table><tr><td>MVS Dataset</td><td>L1-inv</td><td>sc-inv</td><td>L1-rel</td><td>Rot</td><td>Trans</td></tr><tr><td>Billinear interpolation</td><td>0.023</td><td>0.134</td><td>0.079</td><td>2.867</td><td>9.910</td></tr><tr><td>Nearest neighbor</td><td>0.021</td><td>0.129</td><td>0.076</td><td>2.824</td><td>9.881</td></tr></table>",
1660
+ "bbox": [
1661
+ 266,
1662
+ 101,
1663
+ 730,
1664
+ 165
1665
+ ],
1666
+ "page_idx": 15
1667
+ },
1668
+ {
1669
+ "type": "text",
1670
+ "text": "",
1671
+ "bbox": [
1672
+ 174,
1673
+ 219,
1674
+ 825,
1675
+ 318
1676
+ ],
1677
+ "page_idx": 15
1678
+ },
1679
+ {
1680
+ "type": "text",
1681
+ "text": "D VISUALIZATION ",
1682
+ "text_level": 1,
1683
+ "bbox": [
1684
+ 176,
1685
+ 338,
1686
+ 343,
1687
+ 354
1688
+ ],
1689
+ "page_idx": 15
1690
+ },
1691
+ {
1692
+ "type": "text",
1693
+ "text": "We show some qualitative comparison with the previous methods. Since there are no source code available for BA-Net (Tang & Tan, 2018), we compare the visualization results of our method with DeMoN (Ummenhofer et al., 2017) and COLMAP (Schonberger & Frahm, 2016). Figure 7 shows the predicted dense depth map by our method and DeMoN on the DeMoN datasets. As we can see, demon often miss some details in the scene, such as plants, keyboard and table legs. In contrast, our method reconstructs more shape details. Figure 8 shows some estimated results from COLMAP and our method on the ETH3D dataset. As shown in the figure, the outputs from COLMAP are often incomplete, especially in textureless area. On the other hand, our method performs better and always produce an integral depth map. In Figure 9, more qualitative comparisons with COLMAP on challenging materials are provided. ",
1694
+ "bbox": [
1695
+ 174,
1696
+ 369,
1697
+ 825,
1698
+ 508
1699
+ ],
1700
+ "page_idx": 15
1701
+ },
1702
+ {
1703
+ "type": "image",
1704
+ "img_path": "images/d1d8e78470fe8ea9e33858a875cf60eb3ac9db9f442d830215aa50f08f0c7dec.jpg",
1705
+ "image_caption": [
1706
+ "Figure 7: Qualitative Comparisons with DeMoN (Ummenhofer et al., 2017) on DeMoN datasets. "
1707
+ ],
1708
+ "image_footnote": [],
1709
+ "bbox": [
1710
+ 205,
1711
+ 194,
1712
+ 794,
1713
+ 806
1714
+ ],
1715
+ "page_idx": 16
1716
+ },
1717
+ {
1718
+ "type": "image",
1719
+ "img_path": "images/f6ce758d60ed49790987198ba31a9f2c749b569adaf7675d4e9bb17289aecf36.jpg",
1720
+ "image_caption": [
1721
+ "Figure 8: Qualitative Comparisons with COLMAP (Schonberger & Frahm, 2016) on ETH3D datasets. "
1722
+ ],
1723
+ "image_footnote": [],
1724
+ "bbox": [
1725
+ 205,
1726
+ 193,
1727
+ 794,
1728
+ 801
1729
+ ],
1730
+ "page_idx": 17
1731
+ },
1732
+ {
1733
+ "type": "image",
1734
+ "img_path": "images/eaaa27d867a2a1f0a7855b26aaf316d001b34d4873c902502606794e36f11bb7.jpg",
1735
+ "image_caption": [
1736
+ "Figure 9: Qualitative Comparisons with COLMAP (Schonberger & Frahm, 2016) on challenging materials. a) Textureless ground and wall. b) Poor illumination scene. c) Reflective and transparent glass wall. d) Reflective and textureless wall. "
1737
+ ],
1738
+ "image_footnote": [],
1739
+ "bbox": [
1740
+ 199,
1741
+ 319,
1742
+ 790,
1743
+ 656
1744
+ ],
1745
+ "page_idx": 18
1746
+ }
1747
+ ]
parse/train/SyeD0RVtvS/SyeD0RVtvS_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/SyeD0RVtvS/SyeD0RVtvS_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/p2XgjS3Qp4X/p2XgjS3Qp4X.md ADDED
@@ -0,0 +1,417 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # baller2vec++: A Look-Ahead Multi-Entity Transformer For Modeling Coordinated Agents
2
+
3
+ Anonymous Author(s)
4
+ Affiliation
5
+ Address
6
+ email
7
+
8
+ # Abstract
9
+
10
+ 1 In many multi-agent spatiotemporal systems, agents operate under the influence of
11
+ 2 shared, unobserved variables (e.g., the play a team is executing in a game of bas
12
+ 3 ketball). As a result, the trajectories of the agents are often statistically dependent
13
+ 4 at any given time step; however, almost universally, multi-agent models implicitly
14
+ 5 assume the agents’ trajectories are statistically independent at each time step. In
15
+ 6 this paper, we introduce baller2vec $+ + ^ { 1 }$ , a multi-entity Transformer that can effec
16
+ 7 tively model coordinated agents. Specifically, baller2vec $^ { + + }$ applies a specially
17
+ 8 designed self-attention mask to a mixture of location and “look-ahead” trajectory
18
+ 9 sequences to learn the distributions of statistically dependent agent trajectories. We
19
+ 10 show that, unlike baller2vec (baller2vec $^ { + + }$ ’s predecessor), baller2vec++
20
+ 11 can learn to emulate the behavior of perfectly coordinated agents in a simulated
21
+ 12 toy dataset. Additionally, when modeling the trajectories of professional basketball
22
+ 13 players, baller2vec $^ { + + }$ outperforms baller2vec by a wide margin.
23
+
24
+ # 14 1 Introduction and Related Work
25
+
26
+ 15 Whether it is a team executing a play in a game of basketball, a family navigating to an attraction in a
27
+ 16 theme park, or friends posting about a birthday party on a social media platform, humans frequently
28
+ 17 coordinate their behavior in response to shared information. When this coordinating information is
29
+ 18 unobserved (which is often the case in many machine learning datasets), the individuals’ observed
30
+ 19 behaviors become correlated, i.e., the behavior of one individual at a specific moment contains
31
+ 20 information about the behavior of another individual at the same time. In the context of modeling
32
+ 21 agent trajectories in multi-agent spatiotemporal systems, this property translates to the trajectories
33
+ 22 being statistically dependent at each time step. However, nearly all multi-agent spatiotemporal models
34
+ 23 (e.g., [1–6]) implicitly (through their loss functions) assume the trajectories of the agents at each time
35
+ 24 step are statistically independent given the agents’ previous locations (Figure 1).
36
+ 25 Zhan et al. [7] explicitly focused on modeling coordinated multi-agent trajectories, using “macro
37
+ 26 intents” [8] that are shared across agents to do so. The macro-intents are generated from a
38
+ 27 separately trained recurrent neural network (RNN) that learns to predict a future, coarse, “sta
39
+ 28 tionary” location for each agent at each time step. The macro-intents for all of the agents at
40
+ 29 a specific time step are concatenated together to form a single, shared, macro-intent variable,
41
+ 30 which is then provided as input to the trajectories-generating model at that time step. However,
42
+ 31 similar to the previously mentioned multi-agent trajectory models, the macro-intents model im
43
+
44
+ 32 plicitly assumes the macro-intents for the agents at each time step are statistically independent, i.e., the macro-intent for one agent does not depend on the macro-intents of the other agents.233
45
+
46
+ ![](images/b32f76fd282f7da950743adfdc0395bc86b165cd3b520f45bb89c658e417dcec.jpg)
47
+ Figure 1: Left: most multi-agent systems implicitly assume the trajectories of the agents at each time step $( \Delta x _ { t , k } )$ are conditionally independent given the agents’ previous locations $( x _ { 1 : t , k } )$ . Right: however, the various decompositions of the joint probability of the trajectories, e.g., $p ( \Delta x _ { t , 1 } ) p ( \Delta x _ { t , 2 } | \Delta x _ { t , 1 } ) p ( \Delta x _ { t , 3 } | \Delta x _ { t , 1 } \Delta x _ { t , 2 } )$ (note, we omit the conditional $x _ { 1 : t , k }$ terms for brevity), suggest more complex statistical dependencies between the agents’ trajectories can exist (i.e., the independence assumption is an extremely strong one). Indeed, there are often shared unobserved variables influencing the spatiotemporal behaviors of agents—such as the play that the players on a basketball team are executing, or events occurring in a pedestrian environment—which suggests statistical dependencies between the agents’ trajectories are likely.
48
+
49
+ Further, the trajectories-generating model still implicitly assumes the trajectories of the agents at each time step are independent, which is only true if the shared macro-intent variable perfectly captures all of the unobserved information that could cause the agents’ trajectories to be correlated.
50
+
51
+ Notably, Social-BiGAT [9] does partially account for trajectory correlations through a global adversarial loss. Specifically, the trajectories for each agent are separately passed through an encoder RNN, and the final hidden states for each agent are then processed with a graph attention network (GAT) [10]. The output of the GAT is then used as an input to a discriminator that classifies whether or not the input trajectories are real or generated. This global adversarial loss, however, is only a single component of the full Social-BiGAT loss function, and other components of the loss function do implicitly make the independence assumption. Further, inter
52
+
53
+ estingly, adding the global discriminator to a baseline model only improved the model’s performance for one out of six pedestrian datasets.
54
+
55
+ 63 In this paper, we describe a novel multi-agent spatiotemporal model that integrates information about
56
+ 64 concurrent actions of agents to predict statistically dependent distributions of trajectories. Specifically,
57
+ 65 we extend the recently introduced multi-entity Transformer baller2vec [6] by: (1) augmenting its
58
+ 66 input with a parallel sequence of “look-ahead” agent trajectories and (2) using a specially designed
59
+ 67 self-attention mask, which allows our model to exploit the chain rule of probability (Section 3). We
60
+ 68 find that:
61
+ 69 1. baller2vec $^ { + + }$ is an effective learning algorithm for modeling coordinated agents. Unlike
62
+ 70 baller2vec, baller2vec++ can learn to emulate perfectly coordinated agents from a
63
+ 71 simulated toy dataset (Section 5.1). Further, baller2vec $^ { + + }$ outperforms baller2vec by
64
+ 72 a wide margin $( 8 . 9 \% )$ when modeling the trajectories of professional basketball players
65
+ 73 (Section 5.1).
66
+
67
+ 2. baller2vec $^ { + + }$ makes better predictions when conditioned on concurrent trajectory information from other agents, supporting our proposition that the commonly used independence assumption for agent trajectories is overly strong (Section 5.2).
68
+
69
+ 3. Lastly, the joint probability assigned to a sequence by baller2vec $^ { + + }$ is approximately permutation invariant with respect to the order of the agents, i.e., baller2vec $^ { + + }$ respects the properties of the chain rule (Section 5.3).
70
+
71
+ # 80 2 Background
72
+
73
+ # 2.1 Multi-agent trajectory modelling
74
+
75
+ 2 Our problem description closely follows Alcorn and Nguyen [6], whom we quote here:
76
+
77
+ Let $A = \{ 1 , 2 , \dots , B \}$ be a set indexing $B$ agents and $P = \{ p _ { 1 } , p _ { 2 } , . . . , p _ { K } \} \subset$ $A$ be the $K$ agents involved in a particular sequence. [Let] $\begin{array} { r l } { C _ { t } } & { { } = } \end{array}$ $\{ ( x _ { t , 1 } , y _ { t , 1 } ) , ( x _ { t , 2 } , y _ { t , 2 } ) , \ldots , ( x _ { t , K } , y _ { t , K } ) \}$ [be] an unordered set of $K$ coordinate pairs such that $( x _ { t , k } , y _ { t , k } )$ are the coordinates for agent $p _ { k }$ at time step $t$ . The ordered sequence of sets of coordinates $\mathcal { C } = ( C _ { 1 } , C _ { 2 } , \ldots , C _ { T } )$ , together with $P$ , thus defines the trajectories for the $K$ agents over $T$ time steps.
78
+
79
+ 89 In multi-agent trajectory modeling, the goal is to model a joint probability of the form:
80
+
81
+ $$
82
+ p ( \Delta x _ { t , 1 } , \Delta x _ { t , 2 } , \dots , \Delta x _ { t , K } | x _ { 1 : t , 1 } , x _ { 1 : t , 2 } , \dots , x _ { 1 : t , K } )
83
+ $$
84
+
85
+ 90 i.e., the joint probability of the $K$ agents’ trajectories $\Delta x _ { t , k }$ at time step $t$ given the agents’ location
86
+ 91 histories $x _ { 1 : t , k }$ . We note here that the common practice of simultaneously predicting the trajectories
87
+ 92 for all of the agents at a specific time step is not required by theory. Using the chain rule of probability,
88
+ 93 the joint probability of the agents’ trajectories can be factorized as, e.g.:
89
+
90
+ $$
91
+ \begin{array} { r } { \phantom { \frac { 1 } { 2 } } p ( \Delta x _ { t , 1 } , \Delta x _ { t , 2 } , \dots , \Delta x _ { t , K } ) = p ( \Delta x _ { t , 1 } ) p ( \Delta x _ { t , 2 } | \Delta x _ { t , 1 } ) \dots p ( \Delta x _ { t , K } | \Delta x _ { t , 1 } , \Delta x _ { t , 2 } , \dots , \Delta x _ { t , K - 1 } ) } \end{array}
92
+ $$
93
+
94
+ 94 where we omit the conditional historical trajectories for brevity. As a result, it is perfectly acceptable to
95
+ 95 generate trajectories agent-wise, using the previously generated trajectories as additional conditioning
96
+ 96 information when generating the trajectories for later agents (see Figure 2).
97
+
98
+ ![](images/ed386a62f73d652f761de1b44b4e63782f1cdf1c2bca079869acca63fff1bec1.jpg)
99
+ Figure 2: At inference time, a model is not required to simultaneously generate the trajectories for all of the agents at a specific time step. An alternative strategy is to allow the model to generate the agents’ trajectories one at a time, and let the model use the previously generated trajectories to inform the trajectories it generates for the remaining agents.
100
+
101
+ # 97 2.2 baller2vec is a (conditional) generative model.
102
+
103
+ 98 baller2vec is a recently described multi-entity Transformer that can model sequences of sets
104
+ 99 (the underlying data structure for multi-agent spatiotemporal systems), as opposed to sequences
105
+ 100 of individual inputs (like words in a sentence). When used to model the game of basketball, the
106
+ 101 input at each time step for baller2vec is a set of feature vectors where each feature vector contains
107
+ 102 information about the identity and location of a player on the court. baller2vec maps each input
108
+ 103 feature vector to an output feature vector, which is then used to “classify” the binned trajectory for
109
+ 104 that specific player at that specific time step.
110
+ 105 Here, we provide a probabilistic interpretation of baller2vec, which establishes the theoret
111
+ 106 ical grounds for using the chain rule to generate trajectories agent-wise at each time step in
112
+ 107 baller2vec++. Without loss of generality, we only consider one-dimensional trajectories for
113
+ 108 a single agent here. To briefly summarize, the outputs of the softmax function over the $n$ binned
114
+ 109 trajectories in baller2vec can be interpreted as mixture proportions for a mixture of uniform distri
115
+ 110 butions with predetermined bounds that partition the Euclidean trajectory space. Further, because
116
+ 111 $x _ { t + 1 } = x _ { t } + \Delta x _ { t }$ , baller2vec is in fact a conditional generative model that assigns a probability
117
+ 112 to a sequence of trajectories given the initial position of the agent, i.e., $p ( \Delta x _ { 1 } , \Delta x _ { 2 } , \dots , \Delta x _ { T } | x _ { 1 } )$ .
118
+ 113 Using the chain rule, we decompose the joint probability of the trajectories as:
119
+
120
+ $$
121
+ p ( \Delta x _ { 1 } , \Delta x _ { 2 } , . . . , \Delta x _ { T } ) = p ( \Delta x _ { 1 } ) p ( \Delta x _ { 2 } | \Delta x _ { 1 } ) . . . p ( \Delta x _ { T } | \Delta x _ { 1 } , \Delta x _ { 2 } , . . . , \Delta x _ { T - 1 } )
122
+ $$
123
+
124
+ 114 to reflect their temporal structure (we omit the conditional initial position term for brevity). Therefore,
125
+ 115 new trajectories can be generated from baller2vec with the following procedure (see Figure 3):
126
+
127
+ 1. First, sample one of the $n$ different mixture components using the mixture proportions output from the classifier $f$ (i.e., baller2vec) conditioned on the agent’s current position, i.e., $i \sim$ Categorica $\left( \pi _ { 1 } , \pi _ { 2 } , \ldots , \pi _ { n } \right)$ where $[ \pi _ { 1 } , \pi _ { 2 } , . . . , \pi _ { n } ] = f ( x _ { t } )$ .
128
+ 2. Next, sample a trajectory from the uniform distribution associated with the sampled component, i.e., $\Delta x _ { t } \sim \mathcal { U } ( a _ { i } , b _ { i } )$ .
129
+ 3. Finally, add the sampled trajectory to the agent’s input position to generate the agent’s position at the start of the next time step, i.e., $x _ { t + 1 } = x _ { t } + \Delta x _ { t }$ .
130
+
131
+ 123 Let $[ \Delta x _ { m i n } , \Delta x _ { m a x } )$ be an interval on the real line such that any trajectory $\Delta x \_ <$
132
+ 124 $\Delta x _ { m i n }$ or $\Delta x ~ \ge ~ \Delta x _ { m a x }$ has zero density (i.e., such trajectories are humanly impossible).
133
+ 125 Let $\{ [ a _ { i } , b _ { i } ) \} _ { i = 1 } ^ { n }$ be a set of $n$ intervals that par
134
+ 126 tition the interval $[ \Delta x _ { m i n } , \Delta x _ { m a x } )$ into $n$ bins,
135
+ 127 i.e., $\cup _ { i = 1 } ^ { n } [ a _ { i } , b _ { i } ) = [ \Delta x _ { m i n } , \Delta x _ { m a x } )$ and $i \neq$
136
+ 128 $j \implies [ a _ { i } , b _ { i } ) \cap [ a _ { j } , b _ { j } ) = \emptyset$ . Recall that the
137
+ 129 probability density function (PDF) for a uniform
138
+ 130 distribution with bounds $- \infty < a < b < \infty$ is:
139
+
140
+ $$
141
+ p ( \Delta x ) = { \left\{ \begin{array} { l l } { { \frac { 1 } { b - a } } } & { { \mathrm { f o r } } \Delta x \in [ a , b ) } \\ { 0 } & { { \mathrm { o t h e r w i s e } } } \end{array} \right. }
142
+ $$
143
+
144
+ Letting 131 $\begin{array} { r } { c _ { i } = \frac { 1 } { b _ { i } - a _ { i } } } \end{array}$ , the PDF for a mixture of 132 uniforms with these bounds is thus:
145
+
146
+ $$
147
+ p ( \Delta x ) = \sum _ { i = 1 } ^ { n } \pi _ { i } \mathcal { U } ( \Delta x ; a _ { i } , b _ { i } ) = \sum _ { i = 1 } ^ { n } \pi _ { i } c _ { i }
148
+ $$
149
+
150
+ 133 where $p ( \Delta x )$ is the density assigned to $\Delta x$
151
+ 134 by the mixture, $\pi _ { i }$ is the mixture proportion
152
+ 135 for the mixture component indexed by $i$ (i.e.,
153
+ 136 $0 \leq \pi _ { i } \leq 1$ and $\sum \bar { \pi } _ { i } = 1 )$ , and $\mathcal { U } ( \Delta x ; a _ { i } , b _ { i } )$
154
+ 137 is the density assigned to $\Delta x$ by the uniform dis
155
+ 138 tribution with bounds $- \infty < a _ { i } < b _ { i } < \infty$
156
+ 139 Because the bounds of the uniform distribu
157
+ 140 tions partition $[ \Delta x _ { m i n } , \Delta x _ { m a x } )$ , Equation (1)
158
+ 141 reduces to:
159
+
160
+ $$
161
+ p ( \Delta x ) = \pi _ { i ^ { \prime } } c _ { i ^ { \prime } }
162
+ $$
163
+
164
+ 142 where $\Delta x \in \left[ a _ { i ^ { \prime } } , b _ { i ^ { \prime } } \right)$ (because the other uni
165
+ 143 form distributions will assign a density of zero to
166
+ 144 $\Delta x )$ . The likelihood for data $D$ (with $| D | = N ,$ )
167
+ 145 is then:
168
+
169
+ ![](images/ad895eefce963b6b76b539b3ea83e433059fd418cd546f46723f400b873f96a9.jpg)
170
+
171
+ Figure 3: baller2vec can be viewed as a conditional generative model that assigns a probability to a sequence of trajectories given the initial positions of the agents. Here, we show a graphical model depiction of a baller2vec model that generates a sequence of one-dimensional trajectories for a single agent. Given the initial position of the agent (the circle containing $x _ { 1 }$ ), one of $n$ different uniform distributions (the square containing $i _ { 1 }$ ) is sampled using the mixture proportions $( \pi _ { i } )$ output by baller2vec $( f )$ . The agent’s trajectory (the diamond containing $\Delta x _ { 1 }$ ) is then sampled from the selected uniform distribution, which has bounds $- \infty < a _ { i } < b _ { i } < \infty$ . At the start of the next time step, the agent’s position is $x _ { 2 } = x _ { 1 } + \Delta x _ { 1 }$ Maximizing the likelihood of baller2vec as a classifier over the binned trajectories is thus equivalent to maximizing its likelihood when assuming the trajectories are generated from a mixture of uniform distributions that partition the Euclidean trajectory space (see Section 2.2 for details).
172
+
173
+ $$
174
+ \mathcal { L } ( D ) = \prod _ { j = 1 } ^ { N } p ( \Delta x _ { j } ) = \prod _ { j = 1 } ^ { N } \pi _ { j , i ^ { \prime } } c _ { j , i ^ { \prime } }
175
+ $$
176
+
177
+ 146 where $\pi _ { j , i ^ { \prime } }$ is the mixture proportion assigned to the component with $\Delta x _ { j } \in \left[ a _ { i ^ { \prime } } , b _ { i ^ { \prime } } \right)$ and $c _ { j , i ^ { \prime } }$ is the
178
+ 147 associated density. Taking the negative logarithm of the likelihood gives:
179
+
180
+ $$
181
+ - \ln ( \mathcal { L } ( D ) ) = - \sum _ { j = 1 } ^ { N } \ln ( \pi _ { j , i ^ { \prime } } ) - \sum _ { j = 1 } ^ { N } \ln ( c _ { j , i ^ { \prime } } )
182
+ $$
183
+
184
+ 148 Because the bounds are fixed, the second summation is a constant, and Equation (2) becomes:
185
+
186
+ $$
187
+ - \ln ( \mathcal { L } ( D ) ) = - \sum _ { j = 1 } ^ { N } \ln ( \pi _ { j , i ^ { \prime } } ) + C
188
+ $$
189
+
190
+ 149 where $\begin{array} { r } { C = - \sum _ { j = 1 } ^ { N } \ln ( c _ { j , i ^ { \prime } } ) } \end{array}$ . Therefore, minimizing the loss of baller2vec as a classifier of
191
+ 150 binned trajectories is equivalent to minimizing the loss of the model when assuming the trajectories
192
+ 151 are generated from a mixture of uniform distributions as specified in Equation (1).
193
+
194
+ # 152 3 Model Architecture
195
+
196
+ ![](images/845c61704d05f32340b681c3a13d1aa8fae16f68d81afff4f0341fc3ce37b75b.jpg)
197
+ Figure 4: A naive strategy for learning to predict statistically dependent agent trajectories is to adapt the baller2vec self-attention mask so that baller2vec can “look ahead” at future positions of agents whose trajectories are generated prior to the agent being processed in the current time step. However, this look-ahead self-attention mask cannot be used with multi-layer Transformers because doing so necessitates “seeing the future”. For example, after the model attends to the blue agent’s position at time step $t + 1$ when processing the yellow agent at time step $t$ , the yellow agent’s resultant feature vector contains information about the blue agent’s future position. As a result, when the model attends to the yellow agent while processing the blue agent at the next level, the model is seeing the future.
198
+
199
+ 153 We motivate our baller2vec $^ { + + }$ architecture by first highlighting an issue that arises in baller2vec
200
+ 154 when trying to model agent trajectories using the chain rule. The baller2vec self-attention mask
201
+ 155 can be adapted so that baller2vec “looks ahead” at the future positions of agents whose trajectories
202
+ 156 are generated prior to the agent being processed in the current time step (Figure 4). However, this
203
+ 157 look-ahead self-attention mask can only be used with the final layer of the Transformer; otherwise,
204
+ 158 the model needs to see the future (Figure 4). As a result, baller2vec is severely limited in the
205
+ 159 conditional distribution functions it can learn.
206
+ 160 baller2vec++ (Figure 5) overcomes this limitation by: (1) augmenting the baller2vec input with
207
+ 161 two other sets of feature vectors and (2) using a specially designed self-attention mask. The three sets
208
+ 162 of feature vectors in baller2vec++ take the following forms:
209
+
210
+ $$
211
+ u _ { t , k } = g _ { u } ( [ e ( p _ { k } ) , x _ { t + 1 , k } , y _ { t + 1 , k } , h _ { t , k } , \Delta x _ { t , k } , \Delta y _ { t , k } ] )
212
+ $$
213
+
214
+ (current location information) (“look-ahead” information) (initial location information)
215
+
216
+ ![](images/341f78788eddb00abb22b730cfa1023fd115a2ba1c459df00257391bef8e724d.jpg)
217
+ Figure 5: To learn statistically dependent agent trajectories, baller2vec $^ { + + }$ uses a specially designed self-attention mask to simultaneously process three different sets of features vectors in a single Transformer. The three sets of feature vectors consist of location feature vectors like those found in baller2vec $( z _ { t , k } )$ , look-ahead trajectory feature vectors $( u _ { t , k } )$ , and starting location feature vectors $( r _ { k }$ ; not shown). As can be seen in these partial depictions of baller2vec $^ { + + }$ and the baller2vec $^ { + + }$ self-attention mask, this design allows the model to integrate information about concurrent agent trajectories through multiple Transformer layers without seeing the future.
218
+
219
+ 166 where $g _ { z } , g _ { u }$ , and $g _ { r }$ are multilayer perceptrons (MLPs), $e$ is an agent embedding layer, and $h _ { t , k }$ is a
220
+ 167 vector of optional contextual features for agent $p _ { k }$ at time step $t$ . $z _ { t , k }$ is the same location feature
221
+ 168 vector used in baller2vec and contains information about a specific agent’s identity and the agent’s
222
+ 169 location at time step $t$ . $u _ { t , k }$ is a “look-ahead” trajectory feature vector that contains information about
223
+ 170 a specific agent’s identity, the agent’s location at the next time step $t + 1$ , and the agent’s trajectory
224
+ 171 at time step $t$ , i.e., $( x _ { t + 1 , k } - x _ { t , k } , y _ { t + 1 , k } - y _ { t , k } )$ . Lastly, $r _ { k }$ is a starting location feature vector that
225
+ 172 contains information about a specific agent’s identity and the agent’s location at time step $t = 1$
226
+ 173 The $r _ { k }$ feature vectors are necessary so that $_ { \mathtt { > a } \mathtt { 1 } \mathtt { 1 e r } 2 \mathtt { v e c } + + }$ can “see” the initial locations of all the
227
+ 174 agents when processing the agents agent-wise in the first time step.
228
+ 175 These three sets of feature vectors are combined to form a $( K + 2 T K ) \times F$ matrix $Z$ such that
229
+ 176 the first $K$ rows consist of the $\textit { K r } _ { k }$ feature vectors, and the remaining $2 T K$ rows consist of the
230
+ 177 $T K z _ { t , k }$ and $T K u _ { t , k }$ feature vectors interleaved with one another, i.e., each $z _ { t , k }$ is followed by its
231
+ 178 corresponding $u _ { t , k }$ in the matrix. This matrix is passed into the Transformer along with the specially
232
+ 179 designed self-attention mask, which encodes the following dependencies (see Figure 5):
233
+
234
+ 1. When processing $r _ { k _ { 1 } }$ , baller2vec $^ { + + }$ is exclusively allowed to “look” at each $r _ { k _ { 2 } }$ (i.e., baller2vec $^ { + + }$ cannot look at any location or look-ahead feature vectors when processing $r _ { k _ { 1 } } )$ ).
235
+ 2. When processing $z _ { t _ { 2 } , k _ { 2 } }$ , baller2vec $^ { + + }$ is allowed to “look” at: (i) each $r _ { k 1 }$ , (ii) any $z _ { t _ { 1 } , k _ { 1 } }$ where (a) $t _ { 1 } < t _ { 2 }$ or (b) $t _ { 1 } = t _ { 2 }$ and $k _ { 1 } \leq k _ { 2 }$ , and (iii) any $\boldsymbol { u } _ { t _ { 1 } , k _ { 1 } }$ where (a) $t _ { 1 } < t _ { 2 }$ or (b) $t _ { 1 } = t _ { 2 }$ and $k _ { 1 } < k _ { 2 }$ .
236
+ 3. When processing $u _ { t _ { 2 } , k _ { 2 } }$ , baller2vec $^ { + + }$ is allowed to “look” at: (i) each $r _ { k _ { 1 } }$ , (ii) any $z _ { t _ { 1 } , k _ { 1 } }$ where (a) $t _ { 1 } < t _ { 2 }$ or (b) $t _ { 1 } = t _ { 2 }$ and $k _ { 1 } \leq k _ { 2 }$ , and (iii) any $\boldsymbol { u } _ { t _ { 1 } , k _ { 1 } }$ where (a) $t _ { 1 } < t _ { 2 }$ or (b) $t _ { 1 } = t _ { 2 }$ and $k _ { 1 } \leq k _ { 2 }$ .
237
+
238
+ 189 Each processed $z _ { t , k }$ feature vector is then passed through a linear layer that is followed by a softmax,
239
+ 190 which gives a probability distribution over the trajectory bins for agent $p _ { k }$ at time step $t$ . Similar to
240
+ 191 baller2vec, the loss for each sample is:
241
+
242
+ $$
243
+ \mathcal { L } = \sum _ { t = 1 } ^ { T } \sum _ { k = 1 } ^ { K } - \ln ( f ( Z ) _ { t , 2 k - 1 } [ v _ { t , k } ] )
244
+ $$
245
+
246
+ 192 where $f ( Z ) _ { t , 2 k - 1 } [ v _ { t , k } ]$ is the probability assigned to the trajectory bin $v _ { t , k }$ (where $\begin{array} { r l } { v _ { t , k } } & { { } = } \end{array}$
247
+ 193 $\mathbf { B i n } ( \Delta x _ { t , k } , \Delta y _ { t , k } )$ is an integer from one to $n ^ { 2 }$ ) by $f$ , i.e., Equation (3) is the negative log-likelihood
248
+ 194 (NLL) of the data according to the model.
249
+ 195 Because any ordering of a chain rule decomposition of a joint probability produces the same value,
250
+ 196 e.g.:
251
+
252
+ $$
253
+ p ( \Delta x _ { t , 1 } ) p ( \Delta x _ { t , 2 } | \Delta x _ { t , 1 } ) p ( \Delta x _ { t , 3 } | \Delta x _ { t , 1 } \Delta x _ { t , 2 } ) = p ( \Delta x _ { t , 3 } ) p ( \Delta x _ { t , 2 } | \Delta x _ { t , 3 } ) p ( \Delta x _ { t , 1 } | \Delta x _ { t , 3 } \Delta x _ { t , 2 } )
254
+ $$
255
+
256
+ 97 like [11], we shuffled the order of the agents in each training sequence to encourage the model to
257
+ 98 learn joint probabilities of the agent trajectories that are approximately permutation invariant with
258
+ 199 respect to the ordering of the agents.
259
+
260
+ # 200 4 Experiments
261
+
262
+ We tested baller2vec $^ { + + }$ on two different datasets. To highlight the pathological behavior of models that assume agent trajectories are statistically independent at each time step, we trained scaled down versions of baller2vec $^ { + + }$ and baller2vec on a toy dataset consisting of simulated trajectories for two perfectly coordinated agents. Additionally, to demonstrate the efficacy of baller2vec $^ { + + }$ in real world settings, we trained baller2vec $^ { + + }$ and baller2vec on a dataset of trajectories for professional basketball players.
263
+
264
+ # 4.1 Toy dataset
265
+
266
+ Each training sample was initialized with the agents starting at $( - 1 , 0 )$ and $( 1 , 0 )$ on a grid in random order (i.e., the first agent could be placed to either the left or the right of the origin). At each time step, one of nine actions (corresponding to the $3 \times 3$ grid surrounding the agent) was sampled from a uniform distribution, and each of the agents was translated along this trajectory. This process was repeated for 20 time steps (see Figure 6(a) for a sample).
267
+
268
+ # 4.2 Basketball dataset
269
+
270
+ We used the same National Basketball Association (NBA) dataset3 employed by Alcorn and Nguyen [6], whom we paraphrase here:
271
+
272
+ The NBA dataset consists of trajectories from 631 games from the 2015-2016 season, which were split into 569/30/32 training/validation/test games, respectively. During training, each sequence was sampled using the following procedure: (1) randomly select a training game, (2) randomly select a starting time from the game, (3) take the following four seconds of data and downsample it to $5 \ : \mathrm { H z }$ from the original $2 5 \ : \mathrm { H z }$ , and then (4) randomly (with a probability of 0.5) rotate the court $1 8 0 ^ { \circ }$ . This sampling procedure gave us access to on the order of ${ \sim } 8 2$ million different (albeit overlapping) training sequences. For both the validation and test sets, $\mathord { \sim } 1 , 0 0 0$ different, non-overlapping sequences were selected for evaluation by dividing each game into $\lceil \frac { 1 , 0 0 0 } { N } \rceil$ non-overlapping chunks (where $N$ is the number of games), and using the starting four seconds from each chunk as the evaluation sequence.
273
+
274
+ # 4.3 Model
275
+
276
+ Our baller2vec $^ { + + }$ and baller2vec models for the basketball dataset closely followed [6], and so largely resemble the original Transformer architecture [12]. Specifically, the Transformer settings were: $d _ { \mathrm { m o d e l } } = 5 1 2$ (the dimension of the input and output of each Transformer layer), eight attention heads, $d _ { \mathrm { f f } } = 2 0 4 8$ (the dimension of the inner feedforward layers), six layers, no dropout, and no positional encoding. Each MLP (i.e., $g _ { z } , g _ { u }$ , and $g _ { r }$ ) had 128, 256, and 512 nodes in its three layers, respectively, and a ReLU nonlinearity following each of the first two layers. The player embeddings [13] had 20 dimensions, and $h _ { t , k }$ was a binary variable indicating the side of the frontcourt for player $p _ { k }$ (i.e., the direction of his team’s hoop) at time step $t$ . Lastly, the 11 ft $\times 1 1$ ft 2D Euclidean trajectory space was binned into $1 2 1 1 \mathrm { f t } \times 1$ ft squares.
277
+
278
+ We used the Adam optimizer [14] with an initial learning rate of $1 0 ^ { - 6 }$ , $\beta _ { 1 } = 0 . 9$ , $\beta _ { 2 } = 0 . 9 9 9$ , and 9 $\epsilon = 1 0 ^ { - 9 }$ to update the model parameters, of which there were ${ \sim } 1 9$ million. The learning rate was
279
+
280
+ 240 reduced to $1 0 ^ { - 7 }$ after 20 epochs of the validation loss not improving. Models were implemented in
281
+ 241 PyTorch and trained on a single NVIDIA GTX 1080 Ti GPU for ${ \sim } 6 5 0$ epochs (seven days) where
282
+ 242 each epoch consisted of 20,000 training samples, and the validation set was used for early stopping.
283
+
284
+ For the toy dataset, we used scaled down versions of the basketball models with $d _ { \mathrm { m o d e l } } = 1 2 8$ , four attention heads, $d _ { \mathrm { f f } } = 5 1 2$ , and two layers in the Transformer. Additionally, each MLP had two layers with 64 and 128 nodes, respectively. The models were trained for 50 epochs of 500 samples per epoch ( $\mathord { \sim } 1 0 . 5$ minutes) using a single learning rate of $1 0 ^ { - 5 }$ .
285
+
286
+ # 5 Results
287
+
288
+ # 5.1 baller2vec $^ { + + }$ can effectively model coordinated agents in both simulated and real settings
289
+
290
+ For the toy dataset, the training loss for baller2vec converged to ${ \sim } 2 . 2 \approx - \ln ( \frac { 1 } { 9 } )$ , i.e., the model was simply independently guessing the trajectories for both agents at every time step. In contrast, the training loss for baller2vec $^ { + + }$ converged to ${ \sim } 1 . 1 \approx - \ln ( \frac { 1 } { 9 } ) \div 2$ , which is the expected loss for a model that perfectly learns the deterministic relationship between the agents’ trajectories (because the prediction for the second agent will always contribute $- \ln ( 1 . 0 ) { \^ { - } } = 0$ to the loss).
291
+
292
+ When generating trajectories with baller2vec, the agents are completely uncoordinated, with each agent following an independent random walk around the grid (Figure 6(b)). In contrast, trajectories generated by baller2vec++ display the same coordinated agent behavior as the training data (Figure 6(c)).
293
+
294
+ 267 For the basketball dataset,
295
+ 268 baller2vec $^ { + + }$ achieved
296
+ 269 an average NLL of 0.472
297
+ 270 on the test set, $8 . 9 \%$ better
298
+ 271 than the average NLL for
299
+
300
+ ![](images/a0fb1e90a20bb4250fc54cd8087d4f9f3b791b5feaf43e27c0518a57b1ea6c9a.jpg)
301
+ Figure 6: When trained on a dataset of perfectly coordinated agent trajectories (a), the trajectories generated by baller2vec are completely uncoordinated (b) while the trajectories generated by baller2vec++ are perfectly coordinated (c). Animated versions can be found in the code repository.
302
+
303
+ baller2vec (0.518) (see Figure S1 for trajectories generated by baller2vec $^ { + + }$ and baller2vec). As was observed in [6], the trajectory bin distributions for baller2vec become much more certain after observing a portion of the sequence (Figure 7), which suggests baller2vec may be inferring some of the shared hidden variables (e.g., plays) influencing the players. If that hypothesis was true, the performance gap between baller2vec $^ { + + }$ and baller2vec should be largest at the beginning of the sequence (before any shared hidden variables can be inferred by baller2vec). Indeed, the average NLL for baller2vec $^ { + + }$ in the first time step of each test set sequence (1.567) is $1 6 . 1 \%$ better than the average NLL for baller2vec (1.869), while the average NLL for baller2vec $^ { + + }$ in the last time step of each test set sequence (0.420) is only $9 . 7 \%$ better than the average NLL for baller2vec (0.465) (see Figure 7).
304
+
305
+ # 5.2 baller2vec $^ { + + }$ makes better predictions when conditioned on concurrent trajectory information from other agents
306
+
307
+ Implicit in much of our discussion has been the intuition that providing a model with additional (relevant) information will improve its performance. To empirically test this conjecture, we compared the performance of baller2vec++ when predicting the trajectory of a specific basketball player placed in the first position of the player order (i.e., when $k = 1$ ) vs. predicting the trajectory for that same player placed in the last position (i.e., when $k = 1 0$ ). Specifically, for each player in each test sequence, we calculated the NLL of the player’s trajectory in the first time step4 with the player in the
308
+
309
+ ![](images/b0c117e5411d835f3b0dd0f04ad0c103bf28bedf51e5aa3f64afb60c928493d1.jpg)
310
+ Figure 7: Left: when modeling the trajectories of professional basketball players, the performance gap between baller2vec $^ { + + }$ and baller2vec is largest at the beginning of the sequence, before shared unobserved variables can be inferred by baller2vec. Each bar indicates a model’s average NLL over the entire test set for that particular time step. For full sequences, baller2vec++ outperforms baller2vec by $8 . 9 \%$ . Right: the joint probability assigned to a sequence by baller2vec $^ { + + }$ is approximately permutation invariant with respect to the order of the agents. For each point, its $x$ value indicates baller2vec $^ { + + }$ ’s average NLL for a test set sequence using the original order of the agents in the sequence, while its $y$ value indicates baller2vec $^ { + + }$ ’s average NLL for the same sequence with the order of the agents shuffled. The shuffled average NLLs are highly correlated with their corresponding unshuffled average NLLs.
311
+
312
+ 290 first position of the player order. Next, we moved the player to the last position of the player order,
313
+ 291 and then randomly shuffled the remaining nine players 10 times, calculating the NLL for the player
314
+ 292 in the last position each time. Finally, we calculated the average percent change in the last position
315
+ 293 NLLs relative to their corresponding first position NLLs. On average, moving a player from the first
316
+ 294 to the last position improved the NLL for the player’s trajectory by $1 4 . 6 \%$ .
317
+
318
+ # 5.3 The joint probability assigned to a sequence by baller2vec $^ { + + }$ is approximately permutation invariant with respect to the order of the agents
319
+
320
+ To determine whether or not baller2vec $^ { + + }$ respects the fact that any ordering of a chain rule decomposition of a joint probability produces the same value, we measured how much the average NLL for each test sequence in the basketball dataset varied when the order of the agents changed. Specifically, for each test set sequence, we shuffled the order of the agents 10 times. Then, for each permuted sequence, we calculated the percent error5 in the average NLL relative to the original, unshuffled sequence. Across all test sequences, the average percent error was only $\pm 1 . 5 \%$ . Further, as can be seen in Figure 7, the shuffled average NLLs are highly correlated with their corresponding unshuffled average NLLs (Pearson correlation coefficient $= 0 . 9 9 7 $ ), i.e., the joint probability assigned to a sequence by baller2vec $^ { + + }$ is approximately permutation invariant with respect to the order of the agents.
321
+
322
+ # 307 6 Conclusion and Future Work
323
+
324
+ In this paper, we have shown how the commonly used independence assumption of many multi-agent spatiotemporal models can severely limit their ability to learn to emulate coordinated agents. By relaxing this independence assumption in baller2vec, baller2vec++ was able to more accurately model the trajectories of professional basketball players. Models for other multi-agent spatiotemporal environments, such as pedestrian traffic (see [15] for a survey) and vehicle traffic (e.g., [16–19]), may also benefit from the look-ahead approach used by baller2vec++. Additionally, the interleaved input design of baller2vec++ could be useful when modeling other systems involving many entities interacting through time, such as social media platforms (e.g., [20, 21]). However, confronting the quadratic complexity of the Transformer attention mechanism as the number of entities grows large in these datasets is an open problem, but recent work in sparse Transformers (e.g., [22–27]) shows encouraging progress.
325
+
326
+ 319 References
327
+ 20 [1] Panna Felsen, Patrick Lucey, and Sujoy Ganguly. Where will they go? predicting fine-grained
328
+ 21 adversarial multi-agent motion using conditional variational autoencoders. In Proceedings of
329
+ 22 the European Conference on Computer Vision (ECCV), pages 732–747, 2018.
330
+ 323 [2] Agrim Gupta, Justin Johnson, Li Fei-Fei, Silvio Savarese, and Alexandre Alahi. Social gan:
331
+ 24 Socially acceptable trajectories with generative adversarial networks. In Proceedings of the
332
+ 325 IEEE Conference on Computer Vision and Pattern Recognition, pages 2255–2264, 2018.
333
+ 26 [3] Amir Sadeghian, Vineet Kosaraju, Ali Sadeghian, Noriaki Hirose, Hamid Rezatofighi, and
334
+ 327 Silvio Savarese. Sophie: An attentive gan for predicting paths compliant to social and physical
335
+ 28 constraints. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern
336
+ 29 Recognition, pages 1349–1358, 2019.
337
+ 330 [4] Raymond A Yeh, Alexander G Schwing, Jonathan Huang, and Kevin Murphy. Diverse genera
338
+ 31 tion for multi-agent sports games. In Proceedings of the IEEE Conference on Computer Vision
339
+ 332 and Pattern Recognition, pages 4610–4619, 2019.
340
+ 333 [5] Cunjun Yu, Xiao Ma, Jiawei Ren, Haiyu Zhao, and Shuai Yi. Spatio-temporal graph transformer
341
+ 34 networks for pedestrian trajectory prediction. In Proceedings of the European Conference on
342
+ 35 Computer Vision (ECCV), August 2020.
343
+ 336 [6] Michael A. Alcorn and Anh Nguyen. baller2vec: A multi-entity transformer for multi-agent
344
+ 37 spatiotemporal modeling. arXiv preprint arXiv:2102.03291, 2021.
345
+ 338 [7] Eric Zhan, Stephan Zheng, Yisong Yue, Long Sha, and Patrick Lucey. Generating multi-agent
346
+ 339 trajectories using programmatic weak supervision. In International Conference on Learning
347
+ 40 Representations, 2019. URL https://openreview.net/forum?id $\equiv$ rkxw-hAcFQ.
348
+ 41 [8] Stephan Zheng, Yisong Yue, and Jennifer Hobbs. Generating long-term trajectories using deep
349
+ 342 hierarchical networks. Advances in Neural Information Processing Systems, 29:1543–1551,
350
+ 43 2016.
351
+ 344 [9] Vineet Kosaraju, Amir Sadeghian, Roberto Martín-Martín, Ian Reid, Hamid Rezatofighi, and
352
+ 45 Silvio Savarese. Social-bigat: Multimodal trajectory forecasting using bicycle-gan and graph
353
+ 46 attention networks. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox,
354
+ 47 and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32.
355
+ 348 Curran Associates, Inc., 2019. URL https://proceedings.neurips.cc/paper/2019/
356
+ 49 file/d09bf41544a3365a46c9077ebb5e35c3-Paper.pdf.
357
+ 350 [10] Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Liò, and Yoshua ´
358
+ 51 Bengio. Graph Attention Networks. International Conference on Learning Representations,
359
+ 52 2018. URL https://openreview.net/forum?id=rJXMpikCZ. accepted as poster.
360
+ 53 [11] Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, and Quoc V
361
+ 354 Le. Xlnet: Generalized autoregressive pretraining for language understanding. arXiv preprint
362
+ 55 arXiv:1906.08237, 2019.
363
+ 56 [12] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez,
364
+ 357 Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Informa
365
+ 58 tion Processing Systems, pages 5998–6008, 2017.
366
+ 59 [13] Michael A Alcorn. (batter|pitcher)2vec: Statistic-free talent modeling with neural player
367
+ 60 embeddings. In MIT Sloan Sports Analytics Conference, 2018.
368
+ 61 [14] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Interna
369
+ 62 tional Conference on Learning Representations, 2015.
370
+ 63 [15] Andrey Rudenko, Luigi Palmieri, Michael Herman, Kris M Kitani, Dariu M Gavrila, and Kai O
371
+ 64 Arras. Human motion trajectory prediction: A survey. The International Journal of Robotics
372
+ 65 Research, 39(8):895–935, 2020.
373
+
374
+ [16] Nachiket Deo and Mohan M Trivedi. Convolutional social pooling for vehicle trajectory prediction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 1468–1476, 2018.
375
+ [17] Ming-Fang Chang, John Lambert, Patsorn Sangkloy, Jagjeet Singh, Slawomir Bak, Andrew Hartnett, De Wang, Peter Carr, Simon Lucey, Deva Ramanan, and James Hays. Argoverse: 3d tracking and forecasting with rich maps. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
376
+ [18] Tianyang Zhao, Yifei Xu, Mathew Monfort, Wongun Choi, Chris Baker, Yibiao Zhao, Yizhou Wang, and Ying Nian Wu. Multi-agent tensor fusion for contextual trajectory prediction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
377
+ [19] Rohan Chandra, Uttaran Bhattacharya, Aniket Bera, and Dinesh Manocha. Traphic: Trajectory prediction in dense and heterogeneous traffic using weighted interactions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019.
378
+ [20] Srijan Kumar, Xikun Zhang, and Jure Leskovec. Predicting dynamic embedding trajectory in temporal interaction networks. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 1269–1278, 2019.
379
+ [21] Emanuele Rossi, Ben Chamberlain, Fabrizio Frasca, Davide Eynard, Federico Monti, and Michael Bronstein. Temporal graph networks for deep learning on dynamic graphs. In ICML 2020 Workshop on Graph Representation Learning, 2020.
380
+ [22] Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019.
381
+ [23] Manzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, and Amr Ahmed. Big bird: Transformers for longer sequences. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 17283–17297. Curran Associates, Inc., 2020. URL https://proceedings.neurips. cc/paper/2020/file/c8512d142a2d849725f31a9a7a361ab9-Paper.pdf.
382
+ [24] Iz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020.
383
+ [25] Nikita Kitaev, Lukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. In International Conference on Learning Representations, 2020. URL https://openreview. net/forum?id $\equiv$ rkgNKkHtvB.
384
+ [26] Jonathan Ho, Nal Kalchbrenner, Dirk Weissenborn, and Tim Salimans. Axial attention in multidimensional transformers. arXiv preprint arXiv:1912.12180, 2019.
385
+ [27] Gedas Bertasius, Heng Wang, and Lorenzo Torresani. Is space-time attention all you need for video understanding? arXiv preprint arXiv:2102.05095, 2021.
386
+
387
+ 1. For all authors...
388
+
389
+ (a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes]
390
+ (b) Did you describe the limitations of your work? [Yes] See Section 6.
391
+ (c) Did you discuss any potential negative societal impacts of your work? [No] Our work does not introduce new ethical challenges.
392
+ (d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes]
393
+
394
+ 2. If you are including theoretical results...
395
+
396
+ (a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [Yes]
397
+
398
+ 3. If you ran experiments...
399
+
400
+ (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]
401
+ (b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes]
402
+ (c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [N/A]
403
+ (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]
404
+
405
+ 4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets...
406
+
407
+ (a) If your work uses existing assets, did you cite the creators? [Yes]
408
+ (b) Did you mention the license of the assets? [No] We link directly to the dataset.
409
+ (c) Did you include any new assets either in the supplemental material or as a URL? [Yes]
410
+ (d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A]
411
+ (e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A]
412
+
413
+ 5. If you used crowdsourcing or conducted research with human subjects...
414
+
415
+ (a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A]
416
+ (b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A]
417
+ (c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A]
parse/train/p2XgjS3Qp4X/p2XgjS3Qp4X_content_list.json ADDED
@@ -0,0 +1,1212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "baller2vec++: A Look-Ahead Multi-Entity Transformer For Modeling Coordinated Agents ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 210,
8
+ 122,
9
+ 787,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous Author(s) \nAffiliation \nAddress \nemail ",
17
+ "bbox": [
18
+ 423,
19
+ 226,
20
+ 580,
21
+ 281
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 318,
32
+ 535,
33
+ 334
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "1 In many multi-agent spatiotemporal systems, agents operate under the influence of \n2 shared, unobserved variables (e.g., the play a team is executing in a game of bas \n3 ketball). As a result, the trajectories of the agents are often statistically dependent \n4 at any given time step; however, almost universally, multi-agent models implicitly \n5 assume the agents’ trajectories are statistically independent at each time step. In \n6 this paper, we introduce baller2vec $+ + ^ { 1 }$ , a multi-entity Transformer that can effec \n7 tively model coordinated agents. Specifically, baller2vec $^ { + + }$ applies a specially \n8 designed self-attention mask to a mixture of location and “look-ahead” trajectory \n9 sequences to learn the distributions of statistically dependent agent trajectories. We \n10 show that, unlike baller2vec (baller2vec $^ { + + }$ ’s predecessor), baller2vec++ \n11 can learn to emulate the behavior of perfectly coordinated agents in a simulated \n12 toy dataset. Additionally, when modeling the trajectories of professional basketball \n13 players, baller2vec $^ { + + }$ outperforms baller2vec by a wide margin. ",
40
+ "bbox": [
41
+ 148,
42
+ 354,
43
+ 767,
44
+ 535
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "14 1 Introduction and Related Work ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 147,
54
+ 574,
55
+ 468,
56
+ 592
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "15 Whether it is a team executing a play in a game of basketball, a family navigating to an attraction in a \n16 theme park, or friends posting about a birthday party on a social media platform, humans frequently \n17 coordinate their behavior in response to shared information. When this coordinating information is \n18 unobserved (which is often the case in many machine learning datasets), the individuals’ observed \n19 behaviors become correlated, i.e., the behavior of one individual at a specific moment contains \n20 information about the behavior of another individual at the same time. In the context of modeling \n21 agent trajectories in multi-agent spatiotemporal systems, this property translates to the trajectories \n22 being statistically dependent at each time step. However, nearly all multi-agent spatiotemporal models \n23 (e.g., [1–6]) implicitly (through their loss functions) assume the trajectories of the agents at each time \n24 step are statistically independent given the agents’ previous locations (Figure 1). \n25 Zhan et al. [7] explicitly focused on modeling coordinated multi-agent trajectories, using “macro \n26 intents” [8] that are shared across agents to do so. The macro-intents are generated from a \n27 separately trained recurrent neural network (RNN) that learns to predict a future, coarse, “sta \n28 tionary” location for each agent at each time step. The macro-intents for all of the agents at \n29 a specific time step are concatenated together to form a single, shared, macro-intent variable, \n30 which is then provided as input to the trajectories-generating model at that time step. However, \n31 similar to the previously mentioned multi-agent trajectory models, the macro-intents model im",
63
+ "bbox": [
64
+ 147,
65
+ 611,
66
+ 825,
67
+ 750
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "",
74
+ "bbox": [
75
+ 147,
76
+ 756,
77
+ 825,
78
+ 853
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "32 plicitly assumes the macro-intents for the agents at each time step are statistically independent, i.e., the macro-intent for one agent does not depend on the macro-intents of the other agents.233 ",
85
+ "bbox": [
86
+ 155,
87
+ 92,
88
+ 825,
89
+ 119
90
+ ],
91
+ "page_idx": 1
92
+ },
93
+ {
94
+ "type": "image",
95
+ "img_path": "images/b32f76fd282f7da950743adfdc0395bc86b165cd3b520f45bb89c658e417dcec.jpg",
96
+ "image_caption": [
97
+ "Figure 1: Left: most multi-agent systems implicitly assume the trajectories of the agents at each time step $( \\Delta x _ { t , k } )$ are conditionally independent given the agents’ previous locations $( x _ { 1 : t , k } )$ . Right: however, the various decompositions of the joint probability of the trajectories, e.g., $p ( \\Delta x _ { t , 1 } ) p ( \\Delta x _ { t , 2 } | \\Delta x _ { t , 1 } ) p ( \\Delta x _ { t , 3 } | \\Delta x _ { t , 1 } \\Delta x _ { t , 2 } )$ (note, we omit the conditional $x _ { 1 : t , k }$ terms for brevity), suggest more complex statistical dependencies between the agents’ trajectories can exist (i.e., the independence assumption is an extremely strong one). Indeed, there are often shared unobserved variables influencing the spatiotemporal behaviors of agents—such as the play that the players on a basketball team are executing, or events occurring in a pedestrian environment—which suggests statistical dependencies between the agents’ trajectories are likely. "
98
+ ],
99
+ "image_footnote": [],
100
+ "bbox": [
101
+ 153,
102
+ 123,
103
+ 565,
104
+ 253
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "Further, the trajectories-generating model still implicitly assumes the trajectories of the agents at each time step are independent, which is only true if the shared macro-intent variable perfectly captures all of the unobserved information that could cause the agents’ trajectories to be correlated. ",
111
+ "bbox": [
112
+ 578,
113
+ 119,
114
+ 825,
115
+ 242
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "Notably, Social-BiGAT [9] does partially account for trajectory correlations through a global adversarial loss. Specifically, the trajectories for each agent are separately passed through an encoder RNN, and the final hidden states for each agent are then processed with a graph attention network (GAT) [10]. The output of the GAT is then used as an input to a discriminator that classifies whether or not the input trajectories are real or generated. This global adversarial loss, however, is only a single component of the full Social-BiGAT loss function, and other components of the loss function do implicitly make the independence assumption. Further, inter",
122
+ "bbox": [
123
+ 578,
124
+ 251,
125
+ 825,
126
+ 497
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "estingly, adding the global discriminator to a baseline model only improved the model’s performance for one out of six pedestrian datasets. ",
133
+ "bbox": [
134
+ 166,
135
+ 498,
136
+ 820,
137
+ 525
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "63 In this paper, we describe a novel multi-agent spatiotemporal model that integrates information about \n64 concurrent actions of agents to predict statistically dependent distributions of trajectories. Specifically, \n65 we extend the recently introduced multi-entity Transformer baller2vec [6] by: (1) augmenting its \n66 input with a parallel sequence of “look-ahead” agent trajectories and (2) using a specially designed \n67 self-attention mask, which allows our model to exploit the chain rule of probability (Section 3). We \n68 find that: \n69 1. baller2vec $^ { + + }$ is an effective learning algorithm for modeling coordinated agents. Unlike \n70 baller2vec, baller2vec++ can learn to emulate perfectly coordinated agents from a \n71 simulated toy dataset (Section 5.1). Further, baller2vec $^ { + + }$ outperforms baller2vec by \n72 a wide margin $( 8 . 9 \\% )$ when modeling the trajectories of professional basketball players \n73 (Section 5.1). ",
144
+ "bbox": [
145
+ 145,
146
+ 532,
147
+ 825,
148
+ 614
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "",
155
+ "bbox": [
156
+ 145,
157
+ 640,
158
+ 826,
159
+ 710
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "2. baller2vec $^ { + + }$ makes better predictions when conditioned on concurrent trajectory information from other agents, supporting our proposition that the commonly used independence assumption for agent trajectories is overly strong (Section 5.2). ",
166
+ "bbox": [
167
+ 199,
168
+ 729,
169
+ 823,
170
+ 772
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "3. Lastly, the joint probability assigned to a sequence by baller2vec $^ { + + }$ is approximately permutation invariant with respect to the order of the agents, i.e., baller2vec $^ { + + }$ respects the properties of the chain rule (Section 5.3). ",
177
+ "bbox": [
178
+ 209,
179
+ 791,
180
+ 825,
181
+ 834
182
+ ],
183
+ "page_idx": 1
184
+ },
185
+ {
186
+ "type": "text",
187
+ "text": "80 2 Background ",
188
+ "text_level": 1,
189
+ "bbox": [
190
+ 153,
191
+ 89,
192
+ 308,
193
+ 106
194
+ ],
195
+ "page_idx": 2
196
+ },
197
+ {
198
+ "type": "text",
199
+ "text": "2.1 Multi-agent trajectory modelling ",
200
+ "text_level": 1,
201
+ "bbox": [
202
+ 166,
203
+ 119,
204
+ 444,
205
+ 136
206
+ ],
207
+ "page_idx": 2
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "2 Our problem description closely follows Alcorn and Nguyen [6], whom we quote here: ",
212
+ "bbox": [
213
+ 158,
214
+ 145,
215
+ 743,
216
+ 161
217
+ ],
218
+ "page_idx": 2
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "Let $A = \\{ 1 , 2 , \\dots , B \\}$ be a set indexing $B$ agents and $P = \\{ p _ { 1 } , p _ { 2 } , . . . , p _ { K } \\} \\subset$ $A$ be the $K$ agents involved in a particular sequence. [Let] $\\begin{array} { r l } { C _ { t } } & { { } = } \\end{array}$ $\\{ ( x _ { t , 1 } , y _ { t , 1 } ) , ( x _ { t , 2 } , y _ { t , 2 } ) , \\ldots , ( x _ { t , K } , y _ { t , K } ) \\}$ [be] an unordered set of $K$ coordinate pairs such that $( x _ { t , k } , y _ { t , k } )$ are the coordinates for agent $p _ { k }$ at time step $t$ . The ordered sequence of sets of coordinates $\\mathcal { C } = ( C _ { 1 } , C _ { 2 } , \\ldots , C _ { T } )$ , together with $P$ , thus defines the trajectories for the $K$ agents over $T$ time steps. ",
223
+ "bbox": [
224
+ 232,
225
+ 171,
226
+ 766,
227
+ 256
228
+ ],
229
+ "page_idx": 2
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "89 In multi-agent trajectory modeling, the goal is to model a joint probability of the form: ",
234
+ "bbox": [
235
+ 143,
236
+ 267,
237
+ 740,
238
+ 284
239
+ ],
240
+ "page_idx": 2
241
+ },
242
+ {
243
+ "type": "equation",
244
+ "img_path": "images/8812c1572face6ce63ef9f02f36129b3b719094fe83619d10f67caaa523ca189.jpg",
245
+ "text": "$$\np ( \\Delta x _ { t , 1 } , \\Delta x _ { t , 2 } , \\dots , \\Delta x _ { t , K } | x _ { 1 : t , 1 } , x _ { 1 : t , 2 } , \\dots , x _ { 1 : t , K } )\n$$",
246
+ "text_format": "latex",
247
+ "bbox": [
248
+ 323,
249
+ 301,
250
+ 673,
251
+ 319
252
+ ],
253
+ "page_idx": 2
254
+ },
255
+ {
256
+ "type": "text",
257
+ "text": "90 i.e., the joint probability of the $K$ agents’ trajectories $\\Delta x _ { t , k }$ at time step $t$ given the agents’ location \n91 histories $x _ { 1 : t , k }$ . We note here that the common practice of simultaneously predicting the trajectories \n92 for all of the agents at a specific time step is not required by theory. Using the chain rule of probability, \n93 the joint probability of the agents’ trajectories can be factorized as, e.g.: ",
258
+ "bbox": [
259
+ 147,
260
+ 327,
261
+ 826,
262
+ 385
263
+ ],
264
+ "page_idx": 2
265
+ },
266
+ {
267
+ "type": "equation",
268
+ "img_path": "images/b5975f4b8bb79309cb6cbeb989557531c6f220c3c050bae78b9ee8cc6962e1e3.jpg",
269
+ "text": "$$\n\\begin{array} { r } { \\phantom { \\frac { 1 } { 2 } } p ( \\Delta x _ { t , 1 } , \\Delta x _ { t , 2 } , \\dots , \\Delta x _ { t , K } ) = p ( \\Delta x _ { t , 1 } ) p ( \\Delta x _ { t , 2 } | \\Delta x _ { t , 1 } ) \\dots p ( \\Delta x _ { t , K } | \\Delta x _ { t , 1 } , \\Delta x _ { t , 2 } , \\dots , \\Delta x _ { t , K - 1 } ) } \\end{array}\n$$",
270
+ "text_format": "latex",
271
+ "bbox": [
272
+ 181,
273
+ 410,
274
+ 826,
275
+ 428
276
+ ],
277
+ "page_idx": 2
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "94 where we omit the conditional historical trajectories for brevity. As a result, it is perfectly acceptable to \n95 generate trajectories agent-wise, using the previously generated trajectories as additional conditioning \n96 information when generating the trajectories for later agents (see Figure 2). ",
282
+ "bbox": [
283
+ 142,
284
+ 440,
285
+ 828,
286
+ 483
287
+ ],
288
+ "page_idx": 2
289
+ },
290
+ {
291
+ "type": "image",
292
+ "img_path": "images/ed386a62f73d652f761de1b44b4e63782f1cdf1c2bca079869acca63fff1bec1.jpg",
293
+ "image_caption": [
294
+ "Figure 2: At inference time, a model is not required to simultaneously generate the trajectories for all of the agents at a specific time step. An alternative strategy is to allow the model to generate the agents’ trajectories one at a time, and let the model use the previously generated trajectories to inform the trajectories it generates for the remaining agents. "
295
+ ],
296
+ "image_footnote": [],
297
+ "bbox": [
298
+ 183,
299
+ 503,
300
+ 816,
301
+ 628
302
+ ],
303
+ "page_idx": 2
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "97 2.2 baller2vec is a (conditional) generative model. ",
308
+ "text_level": 1,
309
+ "bbox": [
310
+ 147,
311
+ 727,
312
+ 545,
313
+ 742
314
+ ],
315
+ "page_idx": 2
316
+ },
317
+ {
318
+ "type": "text",
319
+ "text": "98 baller2vec is a recently described multi-entity Transformer that can model sequences of sets \n99 (the underlying data structure for multi-agent spatiotemporal systems), as opposed to sequences \n100 of individual inputs (like words in a sentence). When used to model the game of basketball, the \n101 input at each time step for baller2vec is a set of feature vectors where each feature vector contains \n102 information about the identity and location of a player on the court. baller2vec maps each input \n103 feature vector to an output feature vector, which is then used to “classify” the binned trajectory for \n104 that specific player at that specific time step. \n105 Here, we provide a probabilistic interpretation of baller2vec, which establishes the theoret \n106 ical grounds for using the chain rule to generate trajectories agent-wise at each time step in \n107 baller2vec++. Without loss of generality, we only consider one-dimensional trajectories for \n108 a single agent here. To briefly summarize, the outputs of the softmax function over the $n$ binned \n109 trajectories in baller2vec can be interpreted as mixture proportions for a mixture of uniform distri \n110 butions with predetermined bounds that partition the Euclidean trajectory space. Further, because \n111 $x _ { t + 1 } = x _ { t } + \\Delta x _ { t }$ , baller2vec is in fact a conditional generative model that assigns a probability \n112 to a sequence of trajectories given the initial position of the agent, i.e., $p ( \\Delta x _ { 1 } , \\Delta x _ { 2 } , \\dots , \\Delta x _ { T } | x _ { 1 } )$ . \n113 Using the chain rule, we decompose the joint probability of the trajectories as: ",
320
+ "bbox": [
321
+ 142,
322
+ 752,
323
+ 825,
324
+ 849
325
+ ],
326
+ "page_idx": 2
327
+ },
328
+ {
329
+ "type": "text",
330
+ "text": "",
331
+ "bbox": [
332
+ 142,
333
+ 856,
334
+ 825,
335
+ 911
336
+ ],
337
+ "page_idx": 2
338
+ },
339
+ {
340
+ "type": "text",
341
+ "text": "",
342
+ "bbox": [
343
+ 140,
344
+ 90,
345
+ 826,
346
+ 161
347
+ ],
348
+ "page_idx": 3
349
+ },
350
+ {
351
+ "type": "equation",
352
+ "img_path": "images/5c79b950b8686b5f3909e947ac7e0980bf56c0e1d2b917d6f5c1a5b917915d83.jpg",
353
+ "text": "$$\np ( \\Delta x _ { 1 } , \\Delta x _ { 2 } , . . . , \\Delta x _ { T } ) = p ( \\Delta x _ { 1 } ) p ( \\Delta x _ { 2 } | \\Delta x _ { 1 } ) . . . p ( \\Delta x _ { T } | \\Delta x _ { 1 } , \\Delta x _ { 2 } , . . . , \\Delta x _ { T - 1 } )\n$$",
354
+ "text_format": "latex",
355
+ "bbox": [
356
+ 218,
357
+ 179,
358
+ 777,
359
+ 196
360
+ ],
361
+ "page_idx": 3
362
+ },
363
+ {
364
+ "type": "text",
365
+ "text": "114 to reflect their temporal structure (we omit the conditional initial position term for brevity). Therefore, \n115 new trajectories can be generated from baller2vec with the following procedure (see Figure 3): ",
366
+ "bbox": [
367
+ 145,
368
+ 203,
369
+ 825,
370
+ 233
371
+ ],
372
+ "page_idx": 3
373
+ },
374
+ {
375
+ "type": "text",
376
+ "text": "1. First, sample one of the $n$ different mixture components using the mixture proportions output from the classifier $f$ (i.e., baller2vec) conditioned on the agent’s current position, i.e., $i \\sim$ Categorica $\\left( \\pi _ { 1 } , \\pi _ { 2 } , \\ldots , \\pi _ { n } \\right)$ where $[ \\pi _ { 1 } , \\pi _ { 2 } , . . . , \\pi _ { n } ] = f ( x _ { t } )$ . \n2. Next, sample a trajectory from the uniform distribution associated with the sampled component, i.e., $\\Delta x _ { t } \\sim \\mathcal { U } ( a _ { i } , b _ { i } )$ . \n3. Finally, add the sampled trajectory to the agent’s input position to generate the agent’s position at the start of the next time step, i.e., $x _ { t + 1 } = x _ { t } + \\Delta x _ { t }$ . ",
377
+ "bbox": [
378
+ 212,
379
+ 242,
380
+ 825,
381
+ 349
382
+ ],
383
+ "page_idx": 3
384
+ },
385
+ {
386
+ "type": "text",
387
+ "text": "123 Let $[ \\Delta x _ { m i n } , \\Delta x _ { m a x } )$ be an interval on the real line such that any trajectory $\\Delta x \\_ <$ \n124 $\\Delta x _ { m i n }$ or $\\Delta x ~ \\ge ~ \\Delta x _ { m a x }$ has zero density (i.e., such trajectories are humanly impossible). \n125 Let $\\{ [ a _ { i } , b _ { i } ) \\} _ { i = 1 } ^ { n }$ be a set of $n$ intervals that par \n126 tition the interval $[ \\Delta x _ { m i n } , \\Delta x _ { m a x } )$ into $n$ bins, \n127 i.e., $\\cup _ { i = 1 } ^ { n } [ a _ { i } , b _ { i } ) = [ \\Delta x _ { m i n } , \\Delta x _ { m a x } )$ and $i \\neq$ \n128 $j \\implies [ a _ { i } , b _ { i } ) \\cap [ a _ { j } , b _ { j } ) = \\emptyset$ . Recall that the \n129 probability density function (PDF) for a uniform \n130 distribution with bounds $- \\infty < a < b < \\infty$ is: ",
388
+ "bbox": [
389
+ 150,
390
+ 358,
391
+ 823,
392
+ 387
393
+ ],
394
+ "page_idx": 3
395
+ },
396
+ {
397
+ "type": "text",
398
+ "text": "",
399
+ "bbox": [
400
+ 140,
401
+ 387,
402
+ 485,
403
+ 469
404
+ ],
405
+ "page_idx": 3
406
+ },
407
+ {
408
+ "type": "equation",
409
+ "img_path": "images/3bb0642f643753afea857ee89038a4abf13b90f4ed08aaa703704bd78e270dc9.jpg",
410
+ "text": "$$\np ( \\Delta x ) = { \\left\\{ \\begin{array} { l l } { { \\frac { 1 } { b - a } } } & { { \\mathrm { f o r } } \\Delta x \\in [ a , b ) } \\\\ { 0 } & { { \\mathrm { o t h e r w i s e } } } \\end{array} \\right. }\n$$",
411
+ "text_format": "latex",
412
+ "bbox": [
413
+ 215,
414
+ 484,
415
+ 441,
416
+ 522
417
+ ],
418
+ "page_idx": 3
419
+ },
420
+ {
421
+ "type": "text",
422
+ "text": "Letting 131 $\\begin{array} { r } { c _ { i } = \\frac { 1 } { b _ { i } - a _ { i } } } \\end{array}$ , the PDF for a mixture of 132 uniforms with these bounds is thus: ",
423
+ "bbox": [
424
+ 140,
425
+ 530,
426
+ 485,
427
+ 561
428
+ ],
429
+ "page_idx": 3
430
+ },
431
+ {
432
+ "type": "equation",
433
+ "img_path": "images/72c08642c2b7e154fd2d7d5e28be1a2b137b0894430220b59f3fe749273cd243.jpg",
434
+ "text": "$$\np ( \\Delta x ) = \\sum _ { i = 1 } ^ { n } \\pi _ { i } \\mathcal { U } ( \\Delta x ; a _ { i } , b _ { i } ) = \\sum _ { i = 1 } ^ { n } \\pi _ { i } c _ { i }\n$$",
435
+ "text_format": "latex",
436
+ "bbox": [
437
+ 181,
438
+ 580,
439
+ 459,
440
+ 622
441
+ ],
442
+ "page_idx": 3
443
+ },
444
+ {
445
+ "type": "text",
446
+ "text": "133 where $p ( \\Delta x )$ is the density assigned to $\\Delta x$ \n134 by the mixture, $\\pi _ { i }$ is the mixture proportion \n135 for the mixture component indexed by $i$ (i.e., \n136 $0 \\leq \\pi _ { i } \\leq 1$ and $\\sum \\bar { \\pi } _ { i } = 1 )$ , and $\\mathcal { U } ( \\Delta x ; a _ { i } , b _ { i } )$ \n137 is the density assigned to $\\Delta x$ by the uniform dis \n138 tribution with bounds $- \\infty < a _ { i } < b _ { i } < \\infty$ \n139 Because the bounds of the uniform distribu \n140 tions partition $[ \\Delta x _ { m i n } , \\Delta x _ { m a x } )$ , Equation (1) \n141 reduces to: ",
447
+ "bbox": [
448
+ 140,
449
+ 631,
450
+ 485,
451
+ 756
452
+ ],
453
+ "page_idx": 3
454
+ },
455
+ {
456
+ "type": "equation",
457
+ "img_path": "images/c4a567f9fad412c51d3594de66f13c356330a85f2ff92de19254ad486b5716dc.jpg",
458
+ "text": "$$\np ( \\Delta x ) = \\pi _ { i ^ { \\prime } } c _ { i ^ { \\prime } }\n$$",
459
+ "text_format": "latex",
460
+ "bbox": [
461
+ 276,
462
+ 775,
463
+ 380,
464
+ 791
465
+ ],
466
+ "page_idx": 3
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "142 where $\\Delta x \\in \\left[ a _ { i ^ { \\prime } } , b _ { i ^ { \\prime } } \\right)$ (because the other uni \n143 form distributions will assign a density of zero to \n144 $\\Delta x )$ . The likelihood for data $D$ (with $| D | = N ,$ ) \n145 is then: ",
471
+ "bbox": [
472
+ 140,
473
+ 799,
474
+ 485,
475
+ 854
476
+ ],
477
+ "page_idx": 3
478
+ },
479
+ {
480
+ "type": "image",
481
+ "img_path": "images/ad895eefce963b6b76b539b3ea83e433059fd418cd546f46723f400b873f96a9.jpg",
482
+ "image_caption": [],
483
+ "image_footnote": [],
484
+ "bbox": [
485
+ 500,
486
+ 401,
487
+ 823,
488
+ 542
489
+ ],
490
+ "page_idx": 3
491
+ },
492
+ {
493
+ "type": "text",
494
+ "text": "Figure 3: baller2vec can be viewed as a conditional generative model that assigns a probability to a sequence of trajectories given the initial positions of the agents. Here, we show a graphical model depiction of a baller2vec model that generates a sequence of one-dimensional trajectories for a single agent. Given the initial position of the agent (the circle containing $x _ { 1 }$ ), one of $n$ different uniform distributions (the square containing $i _ { 1 }$ ) is sampled using the mixture proportions $( \\pi _ { i } )$ output by baller2vec $( f )$ . The agent’s trajectory (the diamond containing $\\Delta x _ { 1 }$ ) is then sampled from the selected uniform distribution, which has bounds $- \\infty < a _ { i } < b _ { i } < \\infty$ . At the start of the next time step, the agent’s position is $x _ { 2 } = x _ { 1 } + \\Delta x _ { 1 }$ Maximizing the likelihood of baller2vec as a classifier over the binned trajectories is thus equivalent to maximizing its likelihood when assuming the trajectories are generated from a mixture of uniform distributions that partition the Euclidean trajectory space (see Section 2.2 for details). ",
495
+ "bbox": [
496
+ 498,
497
+ 553,
498
+ 825,
499
+ 842
500
+ ],
501
+ "page_idx": 3
502
+ },
503
+ {
504
+ "type": "equation",
505
+ "img_path": "images/79716d50d965cb9587dc62158af721c0ef3bf8d05d5fdaf7ea247b5973ca24c9.jpg",
506
+ "text": "$$\n\\mathcal { L } ( D ) = \\prod _ { j = 1 } ^ { N } p ( \\Delta x _ { j } ) = \\prod _ { j = 1 } ^ { N } \\pi _ { j , i ^ { \\prime } } c _ { j , i ^ { \\prime } }\n$$",
507
+ "text_format": "latex",
508
+ "bbox": [
509
+ 377,
510
+ 869,
511
+ 619,
512
+ 915
513
+ ],
514
+ "page_idx": 3
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "146 where $\\pi _ { j , i ^ { \\prime } }$ is the mixture proportion assigned to the component with $\\Delta x _ { j } \\in \\left[ a _ { i ^ { \\prime } } , b _ { i ^ { \\prime } } \\right)$ and $c _ { j , i ^ { \\prime } }$ is the \n147 associated density. Taking the negative logarithm of the likelihood gives: ",
519
+ "bbox": [
520
+ 142,
521
+ 90,
522
+ 825,
523
+ 121
524
+ ],
525
+ "page_idx": 4
526
+ },
527
+ {
528
+ "type": "equation",
529
+ "img_path": "images/64689e68a173c1b15ed81fefa6daf5c438f1687d8e15574cf0cc758ca1d1de30.jpg",
530
+ "text": "$$\n- \\ln ( \\mathcal { L } ( D ) ) = - \\sum _ { j = 1 } ^ { N } \\ln ( \\pi _ { j , i ^ { \\prime } } ) - \\sum _ { j = 1 } ^ { N } \\ln ( c _ { j , i ^ { \\prime } } )\n$$",
531
+ "text_format": "latex",
532
+ "bbox": [
533
+ 348,
534
+ 137,
535
+ 651,
536
+ 183
537
+ ],
538
+ "page_idx": 4
539
+ },
540
+ {
541
+ "type": "text",
542
+ "text": "148 Because the bounds are fixed, the second summation is a constant, and Equation (2) becomes: ",
543
+ "bbox": [
544
+ 138,
545
+ 193,
546
+ 787,
547
+ 209
548
+ ],
549
+ "page_idx": 4
550
+ },
551
+ {
552
+ "type": "equation",
553
+ "img_path": "images/150c1fbebba25e5a086c8253ad9dcd17aefc1de1db3adaf7ce122b4237c41f16.jpg",
554
+ "text": "$$\n- \\ln ( \\mathcal { L } ( D ) ) = - \\sum _ { j = 1 } ^ { N } \\ln ( \\pi _ { j , i ^ { \\prime } } ) + C\n$$",
555
+ "text_format": "latex",
556
+ "bbox": [
557
+ 379,
558
+ 226,
559
+ 617,
560
+ 271
561
+ ],
562
+ "page_idx": 4
563
+ },
564
+ {
565
+ "type": "text",
566
+ "text": "149 where $\\begin{array} { r } { C = - \\sum _ { j = 1 } ^ { N } \\ln ( c _ { j , i ^ { \\prime } } ) } \\end{array}$ . Therefore, minimizing the loss of baller2vec as a classifier of \n150 binned trajectories is equivalent to minimizing the loss of the model when assuming the trajectories \n151 are generated from a mixture of uniform distributions as specified in Equation (1). ",
567
+ "bbox": [
568
+ 142,
569
+ 284,
570
+ 825,
571
+ 330
572
+ ],
573
+ "page_idx": 4
574
+ },
575
+ {
576
+ "type": "text",
577
+ "text": "152 3 Model Architecture ",
578
+ "text_level": 1,
579
+ "bbox": [
580
+ 142,
581
+ 349,
582
+ 370,
583
+ 367
584
+ ],
585
+ "page_idx": 4
586
+ },
587
+ {
588
+ "type": "image",
589
+ "img_path": "images/845c61704d05f32340b681c3a13d1aa8fae16f68d81afff4f0341fc3ce37b75b.jpg",
590
+ "image_caption": [
591
+ "Figure 4: A naive strategy for learning to predict statistically dependent agent trajectories is to adapt the baller2vec self-attention mask so that baller2vec can “look ahead” at future positions of agents whose trajectories are generated prior to the agent being processed in the current time step. However, this look-ahead self-attention mask cannot be used with multi-layer Transformers because doing so necessitates “seeing the future”. For example, after the model attends to the blue agent’s position at time step $t + 1$ when processing the yellow agent at time step $t$ , the yellow agent’s resultant feature vector contains information about the blue agent’s future position. As a result, when the model attends to the yellow agent while processing the blue agent at the next level, the model is seeing the future. "
592
+ ],
593
+ "image_footnote": [],
594
+ "bbox": [
595
+ 179,
596
+ 388,
597
+ 789,
598
+ 558
599
+ ],
600
+ "page_idx": 4
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "153 We motivate our baller2vec $^ { + + }$ architecture by first highlighting an issue that arises in baller2vec \n154 when trying to model agent trajectories using the chain rule. The baller2vec self-attention mask \n155 can be adapted so that baller2vec “looks ahead” at the future positions of agents whose trajectories \n156 are generated prior to the agent being processed in the current time step (Figure 4). However, this \n157 look-ahead self-attention mask can only be used with the final layer of the Transformer; otherwise, \n158 the model needs to see the future (Figure 4). As a result, baller2vec is severely limited in the \n159 conditional distribution functions it can learn. \n160 baller2vec++ (Figure 5) overcomes this limitation by: (1) augmenting the baller2vec input with \n161 two other sets of feature vectors and (2) using a specially designed self-attention mask. The three sets \n162 of feature vectors in baller2vec++ take the following forms: ",
605
+ "bbox": [
606
+ 140,
607
+ 696,
608
+ 825,
609
+ 795
610
+ ],
611
+ "page_idx": 4
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "",
616
+ "bbox": [
617
+ 140,
618
+ 800,
619
+ 825,
620
+ 843
621
+ ],
622
+ "page_idx": 4
623
+ },
624
+ {
625
+ "type": "equation",
626
+ "img_path": "images/8d00224629e2a0e61141f5913030113a2ac46c7b3e93512486bf080e7e8d8178.jpg",
627
+ "text": "$$\nu _ { t , k } = g _ { u } ( [ e ( p _ { k } ) , x _ { t + 1 , k } , y _ { t + 1 , k } , h _ { t , k } , \\Delta x _ { t , k } , \\Delta y _ { t , k } ] )\n$$",
628
+ "text_format": "latex",
629
+ "bbox": [
630
+ 232,
631
+ 873,
632
+ 581,
633
+ 892
634
+ ],
635
+ "page_idx": 4
636
+ },
637
+ {
638
+ "type": "text",
639
+ "text": "(current location information) (“look-ahead” information) (initial location information) ",
640
+ "bbox": [
641
+ 612,
642
+ 856,
643
+ 825,
644
+ 912
645
+ ],
646
+ "page_idx": 4
647
+ },
648
+ {
649
+ "type": "image",
650
+ "img_path": "images/341f78788eddb00abb22b730cfa1023fd115a2ba1c459df00257391bef8e724d.jpg",
651
+ "image_caption": [
652
+ "Figure 5: To learn statistically dependent agent trajectories, baller2vec $^ { + + }$ uses a specially designed self-attention mask to simultaneously process three different sets of features vectors in a single Transformer. The three sets of feature vectors consist of location feature vectors like those found in baller2vec $( z _ { t , k } )$ , look-ahead trajectory feature vectors $( u _ { t , k } )$ , and starting location feature vectors $( r _ { k }$ ; not shown). As can be seen in these partial depictions of baller2vec $^ { + + }$ and the baller2vec $^ { + + }$ self-attention mask, this design allows the model to integrate information about concurrent agent trajectories through multiple Transformer layers without seeing the future. "
653
+ ],
654
+ "image_footnote": [],
655
+ "bbox": [
656
+ 228,
657
+ 90,
658
+ 769,
659
+ 275
660
+ ],
661
+ "page_idx": 5
662
+ },
663
+ {
664
+ "type": "text",
665
+ "text": "166 where $g _ { z } , g _ { u }$ , and $g _ { r }$ are multilayer perceptrons (MLPs), $e$ is an agent embedding layer, and $h _ { t , k }$ is a \n167 vector of optional contextual features for agent $p _ { k }$ at time step $t$ . $z _ { t , k }$ is the same location feature \n168 vector used in baller2vec and contains information about a specific agent’s identity and the agent’s \n169 location at time step $t$ . $u _ { t , k }$ is a “look-ahead” trajectory feature vector that contains information about \n170 a specific agent’s identity, the agent’s location at the next time step $t + 1$ , and the agent’s trajectory \n171 at time step $t$ , i.e., $( x _ { t + 1 , k } - x _ { t , k } , y _ { t + 1 , k } - y _ { t , k } )$ . Lastly, $r _ { k }$ is a starting location feature vector that \n172 contains information about a specific agent’s identity and the agent’s location at time step $t = 1$ \n173 The $r _ { k }$ feature vectors are necessary so that $_ { \\mathtt { > a } \\mathtt { 1 } \\mathtt { 1 e r } 2 \\mathtt { v e c } + + }$ can “see” the initial locations of all the \n174 agents when processing the agents agent-wise in the first time step. \n175 These three sets of feature vectors are combined to form a $( K + 2 T K ) \\times F$ matrix $Z$ such that \n176 the first $K$ rows consist of the $\\textit { K r } _ { k }$ feature vectors, and the remaining $2 T K$ rows consist of the \n177 $T K z _ { t , k }$ and $T K u _ { t , k }$ feature vectors interleaved with one another, i.e., each $z _ { t , k }$ is followed by its \n178 corresponding $u _ { t , k }$ in the matrix. This matrix is passed into the Transformer along with the specially \n179 designed self-attention mask, which encodes the following dependencies (see Figure 5): ",
666
+ "bbox": [
667
+ 140,
668
+ 402,
669
+ 825,
670
+ 529
671
+ ],
672
+ "page_idx": 5
673
+ },
674
+ {
675
+ "type": "text",
676
+ "text": "",
677
+ "bbox": [
678
+ 142,
679
+ 534,
680
+ 825,
681
+ 603
682
+ ],
683
+ "page_idx": 5
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "1. When processing $r _ { k _ { 1 } }$ , baller2vec $^ { + + }$ is exclusively allowed to “look” at each $r _ { k _ { 2 } }$ (i.e., baller2vec $^ { + + }$ cannot look at any location or look-ahead feature vectors when processing $r _ { k _ { 1 } } )$ ). \n2. When processing $z _ { t _ { 2 } , k _ { 2 } }$ , baller2vec $^ { + + }$ is allowed to “look” at: (i) each $r _ { k 1 }$ , (ii) any $z _ { t _ { 1 } , k _ { 1 } }$ where (a) $t _ { 1 } < t _ { 2 }$ or (b) $t _ { 1 } = t _ { 2 }$ and $k _ { 1 } \\leq k _ { 2 }$ , and (iii) any $\\boldsymbol { u } _ { t _ { 1 } , k _ { 1 } }$ where (a) $t _ { 1 } < t _ { 2 }$ or (b) $t _ { 1 } = t _ { 2 }$ and $k _ { 1 } < k _ { 2 }$ . \n3. When processing $u _ { t _ { 2 } , k _ { 2 } }$ , baller2vec $^ { + + }$ is allowed to “look” at: (i) each $r _ { k _ { 1 } }$ , (ii) any $z _ { t _ { 1 } , k _ { 1 } }$ where (a) $t _ { 1 } < t _ { 2 }$ or (b) $t _ { 1 } = t _ { 2 }$ and $k _ { 1 } \\leq k _ { 2 }$ , and (iii) any $\\boldsymbol { u } _ { t _ { 1 } , k _ { 1 } }$ where (a) $t _ { 1 } < t _ { 2 }$ or (b) $t _ { 1 } = t _ { 2 }$ and $k _ { 1 } \\leq k _ { 2 }$ . ",
688
+ "bbox": [
689
+ 210,
690
+ 613,
691
+ 825,
692
+ 750
693
+ ],
694
+ "page_idx": 5
695
+ },
696
+ {
697
+ "type": "text",
698
+ "text": "189 Each processed $z _ { t , k }$ feature vector is then passed through a linear layer that is followed by a softmax, \n190 which gives a probability distribution over the trajectory bins for agent $p _ { k }$ at time step $t$ . Similar to \n191 baller2vec, the loss for each sample is: ",
699
+ "bbox": [
700
+ 142,
701
+ 757,
702
+ 825,
703
+ 801
704
+ ],
705
+ "page_idx": 5
706
+ },
707
+ {
708
+ "type": "equation",
709
+ "img_path": "images/2b2058b13dc90418021c1bb09038a6c9a1e3df0638527b6b121b08f521935b0e.jpg",
710
+ "text": "$$\n\\mathcal { L } = \\sum _ { t = 1 } ^ { T } \\sum _ { k = 1 } ^ { K } - \\ln ( f ( Z ) _ { t , 2 k - 1 } [ v _ { t , k } ] )\n$$",
711
+ "text_format": "latex",
712
+ "bbox": [
713
+ 379,
714
+ 815,
715
+ 619,
716
+ 861
717
+ ],
718
+ "page_idx": 5
719
+ },
720
+ {
721
+ "type": "text",
722
+ "text": "192 where $f ( Z ) _ { t , 2 k - 1 } [ v _ { t , k } ]$ is the probability assigned to the trajectory bin $v _ { t , k }$ (where $\\begin{array} { r l } { v _ { t , k } } & { { } = } \\end{array}$ \n193 $\\mathbf { B i n } ( \\Delta x _ { t , k } , \\Delta y _ { t , k } )$ is an integer from one to $n ^ { 2 }$ ) by $f$ , i.e., Equation (3) is the negative log-likelihood \n194 (NLL) of the data according to the model. \n195 Because any ordering of a chain rule decomposition of a joint probability produces the same value, \n196 e.g.: ",
723
+ "bbox": [
724
+ 140,
725
+ 867,
726
+ 825,
727
+ 912
728
+ ],
729
+ "page_idx": 5
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "",
734
+ "bbox": [
735
+ 143,
736
+ 90,
737
+ 825,
738
+ 121
739
+ ],
740
+ "page_idx": 6
741
+ },
742
+ {
743
+ "type": "equation",
744
+ "img_path": "images/29ef82fd840c7811fa76ff075dedfaea0fbd39a01d611ab86e18e63fc05189dc.jpg",
745
+ "text": "$$\np ( \\Delta x _ { t , 1 } ) p ( \\Delta x _ { t , 2 } | \\Delta x _ { t , 1 } ) p ( \\Delta x _ { t , 3 } | \\Delta x _ { t , 1 } \\Delta x _ { t , 2 } ) = p ( \\Delta x _ { t , 3 } ) p ( \\Delta x _ { t , 2 } | \\Delta x _ { t , 3 } ) p ( \\Delta x _ { t , 1 } | \\Delta x _ { t , 3 } \\Delta x _ { t , 2 } )\n$$",
746
+ "text_format": "latex",
747
+ "bbox": [
748
+ 181,
749
+ 126,
750
+ 816,
751
+ 145
752
+ ],
753
+ "page_idx": 6
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "97 like [11], we shuffled the order of the agents in each training sequence to encourage the model to \n98 learn joint probabilities of the agent trajectories that are approximately permutation invariant with \n199 respect to the ordering of the agents. ",
758
+ "bbox": [
759
+ 148,
760
+ 154,
761
+ 828,
762
+ 196
763
+ ],
764
+ "page_idx": 6
765
+ },
766
+ {
767
+ "type": "text",
768
+ "text": "200 4 Experiments ",
769
+ "text_level": 1,
770
+ "bbox": [
771
+ 148,
772
+ 215,
773
+ 312,
774
+ 233
775
+ ],
776
+ "page_idx": 6
777
+ },
778
+ {
779
+ "type": "text",
780
+ "text": "We tested baller2vec $^ { + + }$ on two different datasets. To highlight the pathological behavior of models that assume agent trajectories are statistically independent at each time step, we trained scaled down versions of baller2vec $^ { + + }$ and baller2vec on a toy dataset consisting of simulated trajectories for two perfectly coordinated agents. Additionally, to demonstrate the efficacy of baller2vec $^ { + + }$ in real world settings, we trained baller2vec $^ { + + }$ and baller2vec on a dataset of trajectories for professional basketball players. ",
781
+ "bbox": [
782
+ 163,
783
+ 246,
784
+ 825,
785
+ 329
786
+ ],
787
+ "page_idx": 6
788
+ },
789
+ {
790
+ "type": "text",
791
+ "text": "4.1 Toy dataset ",
792
+ "text_level": 1,
793
+ "bbox": [
794
+ 168,
795
+ 344,
796
+ 292,
797
+ 359
798
+ ],
799
+ "page_idx": 6
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "Each training sample was initialized with the agents starting at $( - 1 , 0 )$ and $( 1 , 0 )$ on a grid in random order (i.e., the first agent could be placed to either the left or the right of the origin). At each time step, one of nine actions (corresponding to the $3 \\times 3$ grid surrounding the agent) was sampled from a uniform distribution, and each of the agents was translated along this trajectory. This process was repeated for 20 time steps (see Figure 6(a) for a sample). ",
804
+ "bbox": [
805
+ 174,
806
+ 371,
807
+ 825,
808
+ 440
809
+ ],
810
+ "page_idx": 6
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "4.2 Basketball dataset ",
815
+ "text_level": 1,
816
+ "bbox": [
817
+ 163,
818
+ 455,
819
+ 339,
820
+ 469
821
+ ],
822
+ "page_idx": 6
823
+ },
824
+ {
825
+ "type": "text",
826
+ "text": "We used the same National Basketball Association (NBA) dataset3 employed by Alcorn and Nguyen [6], whom we paraphrase here: ",
827
+ "bbox": [
828
+ 161,
829
+ 481,
830
+ 823,
831
+ 510
832
+ ],
833
+ "page_idx": 6
834
+ },
835
+ {
836
+ "type": "text",
837
+ "text": "The NBA dataset consists of trajectories from 631 games from the 2015-2016 season, which were split into 569/30/32 training/validation/test games, respectively. During training, each sequence was sampled using the following procedure: (1) randomly select a training game, (2) randomly select a starting time from the game, (3) take the following four seconds of data and downsample it to $5 \\ : \\mathrm { H z }$ from the original $2 5 \\ : \\mathrm { H z }$ , and then (4) randomly (with a probability of 0.5) rotate the court $1 8 0 ^ { \\circ }$ . This sampling procedure gave us access to on the order of ${ \\sim } 8 2$ million different (albeit overlapping) training sequences. For both the validation and test sets, $\\mathord { \\sim } 1 , 0 0 0$ different, non-overlapping sequences were selected for evaluation by dividing each game into $\\lceil \\frac { 1 , 0 0 0 } { N } \\rceil$ non-overlapping chunks (where $N$ is the number of games), and using the starting four seconds from each chunk as the evaluation sequence. ",
838
+ "bbox": [
839
+ 232,
840
+ 520,
841
+ 767,
842
+ 688
843
+ ],
844
+ "page_idx": 6
845
+ },
846
+ {
847
+ "type": "text",
848
+ "text": "4.3 Model ",
849
+ "text_level": 1,
850
+ "bbox": [
851
+ 173,
852
+ 704,
853
+ 258,
854
+ 718
855
+ ],
856
+ "page_idx": 6
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "Our baller2vec $^ { + + }$ and baller2vec models for the basketball dataset closely followed [6], and so largely resemble the original Transformer architecture [12]. Specifically, the Transformer settings were: $d _ { \\mathrm { m o d e l } } = 5 1 2$ (the dimension of the input and output of each Transformer layer), eight attention heads, $d _ { \\mathrm { f f } } = 2 0 4 8$ (the dimension of the inner feedforward layers), six layers, no dropout, and no positional encoding. Each MLP (i.e., $g _ { z } , g _ { u }$ , and $g _ { r }$ ) had 128, 256, and 512 nodes in its three layers, respectively, and a ReLU nonlinearity following each of the first two layers. The player embeddings [13] had 20 dimensions, and $h _ { t , k }$ was a binary variable indicating the side of the frontcourt for player $p _ { k }$ (i.e., the direction of his team’s hoop) at time step $t$ . Lastly, the 11 ft $\\times 1 1$ ft 2D Euclidean trajectory space was binned into $1 2 1 1 \\mathrm { f t } \\times 1$ ft squares. ",
861
+ "bbox": [
862
+ 173,
863
+ 729,
864
+ 825,
865
+ 854
866
+ ],
867
+ "page_idx": 6
868
+ },
869
+ {
870
+ "type": "text",
871
+ "text": "We used the Adam optimizer [14] with an initial learning rate of $1 0 ^ { - 6 }$ , $\\beta _ { 1 } = 0 . 9$ , $\\beta _ { 2 } = 0 . 9 9 9$ , and 9 $\\epsilon = 1 0 ^ { - 9 }$ to update the model parameters, of which there were ${ \\sim } 1 9$ million. The learning rate was ",
872
+ "bbox": [
873
+ 158,
874
+ 859,
875
+ 825,
876
+ 888
877
+ ],
878
+ "page_idx": 6
879
+ },
880
+ {
881
+ "type": "text",
882
+ "text": "240 reduced to $1 0 ^ { - 7 }$ after 20 epochs of the validation loss not improving. Models were implemented in \n241 PyTorch and trained on a single NVIDIA GTX 1080 Ti GPU for ${ \\sim } 6 5 0$ epochs (seven days) where \n242 each epoch consisted of 20,000 training samples, and the validation set was used for early stopping. ",
883
+ "bbox": [
884
+ 147,
885
+ 92,
886
+ 826,
887
+ 133
888
+ ],
889
+ "page_idx": 7
890
+ },
891
+ {
892
+ "type": "text",
893
+ "text": "For the toy dataset, we used scaled down versions of the basketball models with $d _ { \\mathrm { m o d e l } } = 1 2 8$ , four attention heads, $d _ { \\mathrm { f f } } = 5 1 2$ , and two layers in the Transformer. Additionally, each MLP had two layers with 64 and 128 nodes, respectively. The models were trained for 50 epochs of 500 samples per epoch ( $\\mathord { \\sim } 1 0 . 5$ minutes) using a single learning rate of $1 0 ^ { - 5 }$ . ",
894
+ "bbox": [
895
+ 161,
896
+ 140,
897
+ 823,
898
+ 195
899
+ ],
900
+ "page_idx": 7
901
+ },
902
+ {
903
+ "type": "text",
904
+ "text": "5 Results ",
905
+ "text_level": 1,
906
+ "bbox": [
907
+ 173,
908
+ 215,
909
+ 266,
910
+ 232
911
+ ],
912
+ "page_idx": 7
913
+ },
914
+ {
915
+ "type": "text",
916
+ "text": "5.1 baller2vec $^ { + + }$ can effectively model coordinated agents in both simulated and real settings ",
917
+ "text_level": 1,
918
+ "bbox": [
919
+ 179,
920
+ 247,
921
+ 790,
922
+ 275
923
+ ],
924
+ "page_idx": 7
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "For the toy dataset, the training loss for baller2vec converged to ${ \\sim } 2 . 2 \\approx - \\ln ( \\frac { 1 } { 9 } )$ , i.e., the model was simply independently guessing the trajectories for both agents at every time step. In contrast, the training loss for baller2vec $^ { + + }$ converged to ${ \\sim } 1 . 1 \\approx - \\ln ( \\frac { 1 } { 9 } ) \\div 2$ , which is the expected loss for a model that perfectly learns the deterministic relationship between the agents’ trajectories (because the prediction for the second agent will always contribute $- \\ln ( 1 . 0 ) { \\^ { - } } = 0$ to the loss). ",
929
+ "bbox": [
930
+ 174,
931
+ 285,
932
+ 826,
933
+ 356
934
+ ],
935
+ "page_idx": 7
936
+ },
937
+ {
938
+ "type": "text",
939
+ "text": "When generating trajectories with baller2vec, the agents are completely uncoordinated, with each agent following an independent random walk around the grid (Figure 6(b)). In contrast, trajectories generated by baller2vec++ display the same coordinated agent behavior as the training data (Figure 6(c)). ",
940
+ "bbox": [
941
+ 173,
942
+ 356,
943
+ 356,
944
+ 521
945
+ ],
946
+ "page_idx": 7
947
+ },
948
+ {
949
+ "type": "text",
950
+ "text": "267 For the basketball dataset, \n268 baller2vec $^ { + + }$ achieved \n269 an average NLL of 0.472 \n270 on the test set, $8 . 9 \\%$ better \n271 than the average NLL for ",
951
+ "bbox": [
952
+ 142,
953
+ 527,
954
+ 356,
955
+ 597
956
+ ],
957
+ "page_idx": 7
958
+ },
959
+ {
960
+ "type": "image",
961
+ "img_path": "images/a0fb1e90a20bb4250fc54cd8087d4f9f3b791b5feaf43e27c0518a57b1ea6c9a.jpg",
962
+ "image_caption": [
963
+ "Figure 6: When trained on a dataset of perfectly coordinated agent trajectories (a), the trajectories generated by baller2vec are completely uncoordinated (b) while the trajectories generated by baller2vec++ are perfectly coordinated (c). Animated versions can be found in the code repository. "
964
+ ],
965
+ "image_footnote": [],
966
+ "bbox": [
967
+ 385,
968
+ 376,
969
+ 807,
970
+ 497
971
+ ],
972
+ "page_idx": 7
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "baller2vec (0.518) (see Figure S1 for trajectories generated by baller2vec $^ { + + }$ and baller2vec). As was observed in [6], the trajectory bin distributions for baller2vec become much more certain after observing a portion of the sequence (Figure 7), which suggests baller2vec may be inferring some of the shared hidden variables (e.g., plays) influencing the players. If that hypothesis was true, the performance gap between baller2vec $^ { + + }$ and baller2vec should be largest at the beginning of the sequence (before any shared hidden variables can be inferred by baller2vec). Indeed, the average NLL for baller2vec $^ { + + }$ in the first time step of each test set sequence (1.567) is $1 6 . 1 \\%$ better than the average NLL for baller2vec (1.869), while the average NLL for baller2vec $^ { + + }$ in the last time step of each test set sequence (0.420) is only $9 . 7 \\%$ better than the average NLL for baller2vec (0.465) (see Figure 7). ",
977
+ "bbox": [
978
+ 156,
979
+ 597,
980
+ 825,
981
+ 734
982
+ ],
983
+ "page_idx": 7
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "5.2 baller2vec $^ { + + }$ makes better predictions when conditioned on concurrent trajectory information from other agents ",
988
+ "text_level": 1,
989
+ "bbox": [
990
+ 174,
991
+ 752,
992
+ 792,
993
+ 780
994
+ ],
995
+ "page_idx": 7
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "Implicit in much of our discussion has been the intuition that providing a model with additional (relevant) information will improve its performance. To empirically test this conjecture, we compared the performance of baller2vec++ when predicting the trajectory of a specific basketball player placed in the first position of the player order (i.e., when $k = 1$ ) vs. predicting the trajectory for that same player placed in the last position (i.e., when $k = 1 0$ ). Specifically, for each player in each test sequence, we calculated the NLL of the player’s trajectory in the first time step4 with the player in the ",
1000
+ "bbox": [
1001
+ 173,
1002
+ 790,
1003
+ 825,
1004
+ 873
1005
+ ],
1006
+ "page_idx": 7
1007
+ },
1008
+ {
1009
+ "type": "image",
1010
+ "img_path": "images/b0c117e5411d835f3b0dd0f04ad0c103bf28bedf51e5aa3f64afb60c928493d1.jpg",
1011
+ "image_caption": [
1012
+ "Figure 7: Left: when modeling the trajectories of professional basketball players, the performance gap between baller2vec $^ { + + }$ and baller2vec is largest at the beginning of the sequence, before shared unobserved variables can be inferred by baller2vec. Each bar indicates a model’s average NLL over the entire test set for that particular time step. For full sequences, baller2vec++ outperforms baller2vec by $8 . 9 \\%$ . Right: the joint probability assigned to a sequence by baller2vec $^ { + + }$ is approximately permutation invariant with respect to the order of the agents. For each point, its $x$ value indicates baller2vec $^ { + + }$ ’s average NLL for a test set sequence using the original order of the agents in the sequence, while its $y$ value indicates baller2vec $^ { + + }$ ’s average NLL for the same sequence with the order of the agents shuffled. The shuffled average NLLs are highly correlated with their corresponding unshuffled average NLLs. "
1013
+ ],
1014
+ "image_footnote": [],
1015
+ "bbox": [
1016
+ 176,
1017
+ 90,
1018
+ 792,
1019
+ 213
1020
+ ],
1021
+ "page_idx": 8
1022
+ },
1023
+ {
1024
+ "type": "text",
1025
+ "text": "290 first position of the player order. Next, we moved the player to the last position of the player order, \n291 and then randomly shuffled the remaining nine players 10 times, calculating the NLL for the player \n292 in the last position each time. Finally, we calculated the average percent change in the last position \n293 NLLs relative to their corresponding first position NLLs. On average, moving a player from the first \n294 to the last position improved the NLL for the player’s trajectory by $1 4 . 6 \\%$ . ",
1026
+ "bbox": [
1027
+ 142,
1028
+ 382,
1029
+ 823,
1030
+ 452
1031
+ ],
1032
+ "page_idx": 8
1033
+ },
1034
+ {
1035
+ "type": "text",
1036
+ "text": "5.3 The joint probability assigned to a sequence by baller2vec $^ { + + }$ is approximately permutation invariant with respect to the order of the agents ",
1037
+ "text_level": 1,
1038
+ "bbox": [
1039
+ 168,
1040
+ 477,
1041
+ 766,
1042
+ 503
1043
+ ],
1044
+ "page_idx": 8
1045
+ },
1046
+ {
1047
+ "type": "text",
1048
+ "text": "To determine whether or not baller2vec $^ { + + }$ respects the fact that any ordering of a chain rule decomposition of a joint probability produces the same value, we measured how much the average NLL for each test sequence in the basketball dataset varied when the order of the agents changed. Specifically, for each test set sequence, we shuffled the order of the agents 10 times. Then, for each permuted sequence, we calculated the percent error5 in the average NLL relative to the original, unshuffled sequence. Across all test sequences, the average percent error was only $\\pm 1 . 5 \\%$ . Further, as can be seen in Figure 7, the shuffled average NLLs are highly correlated with their corresponding unshuffled average NLLs (Pearson correlation coefficient $= 0 . 9 9 7 $ ), i.e., the joint probability assigned to a sequence by baller2vec $^ { + + }$ is approximately permutation invariant with respect to the order of the agents. ",
1049
+ "bbox": [
1050
+ 171,
1051
+ 518,
1052
+ 826,
1053
+ 657
1054
+ ],
1055
+ "page_idx": 8
1056
+ },
1057
+ {
1058
+ "type": "text",
1059
+ "text": "307 6 Conclusion and Future Work ",
1060
+ "text_level": 1,
1061
+ "bbox": [
1062
+ 145,
1063
+ 684,
1064
+ 449,
1065
+ 702
1066
+ ],
1067
+ "page_idx": 8
1068
+ },
1069
+ {
1070
+ "type": "text",
1071
+ "text": "In this paper, we have shown how the commonly used independence assumption of many multi-agent spatiotemporal models can severely limit their ability to learn to emulate coordinated agents. By relaxing this independence assumption in baller2vec, baller2vec++ was able to more accurately model the trajectories of professional basketball players. Models for other multi-agent spatiotemporal environments, such as pedestrian traffic (see [15] for a survey) and vehicle traffic (e.g., [16–19]), may also benefit from the look-ahead approach used by baller2vec++. Additionally, the interleaved input design of baller2vec++ could be useful when modeling other systems involving many entities interacting through time, such as social media platforms (e.g., [20, 21]). However, confronting the quadratic complexity of the Transformer attention mechanism as the number of entities grows large in these datasets is an open problem, but recent work in sparse Transformers (e.g., [22–27]) shows encouraging progress. ",
1072
+ "bbox": [
1073
+ 173,
1074
+ 720,
1075
+ 825,
1076
+ 873
1077
+ ],
1078
+ "page_idx": 8
1079
+ },
1080
+ {
1081
+ "type": "text",
1082
+ "text": "319 References \n20 [1] Panna Felsen, Patrick Lucey, and Sujoy Ganguly. Where will they go? predicting fine-grained \n21 adversarial multi-agent motion using conditional variational autoencoders. In Proceedings of \n22 the European Conference on Computer Vision (ECCV), pages 732–747, 2018. \n323 [2] Agrim Gupta, Justin Johnson, Li Fei-Fei, Silvio Savarese, and Alexandre Alahi. Social gan: \n24 Socially acceptable trajectories with generative adversarial networks. In Proceedings of the \n325 IEEE Conference on Computer Vision and Pattern Recognition, pages 2255–2264, 2018. \n26 [3] Amir Sadeghian, Vineet Kosaraju, Ali Sadeghian, Noriaki Hirose, Hamid Rezatofighi, and \n327 Silvio Savarese. Sophie: An attentive gan for predicting paths compliant to social and physical \n28 constraints. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern \n29 Recognition, pages 1349–1358, 2019. \n330 [4] Raymond A Yeh, Alexander G Schwing, Jonathan Huang, and Kevin Murphy. Diverse genera \n31 tion for multi-agent sports games. In Proceedings of the IEEE Conference on Computer Vision \n332 and Pattern Recognition, pages 4610–4619, 2019. \n333 [5] Cunjun Yu, Xiao Ma, Jiawei Ren, Haiyu Zhao, and Shuai Yi. Spatio-temporal graph transformer \n34 networks for pedestrian trajectory prediction. In Proceedings of the European Conference on \n35 Computer Vision (ECCV), August 2020. \n336 [6] Michael A. Alcorn and Anh Nguyen. baller2vec: A multi-entity transformer for multi-agent \n37 spatiotemporal modeling. arXiv preprint arXiv:2102.03291, 2021. \n338 [7] Eric Zhan, Stephan Zheng, Yisong Yue, Long Sha, and Patrick Lucey. Generating multi-agent \n339 trajectories using programmatic weak supervision. In International Conference on Learning \n40 Representations, 2019. URL https://openreview.net/forum?id $\\equiv$ rkxw-hAcFQ. \n41 [8] Stephan Zheng, Yisong Yue, and Jennifer Hobbs. Generating long-term trajectories using deep \n342 hierarchical networks. Advances in Neural Information Processing Systems, 29:1543–1551, \n43 2016. \n344 [9] Vineet Kosaraju, Amir Sadeghian, Roberto Martín-Martín, Ian Reid, Hamid Rezatofighi, and \n45 Silvio Savarese. Social-bigat: Multimodal trajectory forecasting using bicycle-gan and graph \n46 attention networks. In H. Wallach, H. Larochelle, A. Beygelzimer, F. d'Alché-Buc, E. Fox, \n47 and R. Garnett, editors, Advances in Neural Information Processing Systems, volume 32. \n348 Curran Associates, Inc., 2019. URL https://proceedings.neurips.cc/paper/2019/ \n49 file/d09bf41544a3365a46c9077ebb5e35c3-Paper.pdf. \n350 [10] Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Liò, and Yoshua ´ \n51 Bengio. Graph Attention Networks. International Conference on Learning Representations, \n52 2018. URL https://openreview.net/forum?id=rJXMpikCZ. accepted as poster. \n53 [11] Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, and Quoc V \n354 Le. Xlnet: Generalized autoregressive pretraining for language understanding. arXiv preprint \n55 arXiv:1906.08237, 2019. \n56 [12] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, \n357 Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Informa \n58 tion Processing Systems, pages 5998–6008, 2017. \n59 [13] Michael A Alcorn. (batter|pitcher)2vec: Statistic-free talent modeling with neural player \n60 embeddings. In MIT Sloan Sports Analytics Conference, 2018. \n61 [14] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In Interna \n62 tional Conference on Learning Representations, 2015. \n63 [15] Andrey Rudenko, Luigi Palmieri, Michael Herman, Kris M Kitani, Dariu M Gavrila, and Kai O \n64 Arras. Human motion trajectory prediction: A survey. The International Journal of Robotics \n65 Research, 39(8):895–935, 2020. ",
1083
+ "bbox": [
1084
+ 150,
1085
+ 64,
1086
+ 828,
1087
+ 914
1088
+ ],
1089
+ "page_idx": 9
1090
+ },
1091
+ {
1092
+ "type": "text",
1093
+ "text": "[16] Nachiket Deo and Mohan M Trivedi. Convolutional social pooling for vehicle trajectory prediction. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops, pages 1468–1476, 2018. \n[17] Ming-Fang Chang, John Lambert, Patsorn Sangkloy, Jagjeet Singh, Slawomir Bak, Andrew Hartnett, De Wang, Peter Carr, Simon Lucey, Deva Ramanan, and James Hays. Argoverse: 3d tracking and forecasting with rich maps. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. \n[18] Tianyang Zhao, Yifei Xu, Mathew Monfort, Wongun Choi, Chris Baker, Yibiao Zhao, Yizhou Wang, and Ying Nian Wu. Multi-agent tensor fusion for contextual trajectory prediction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. \n[19] Rohan Chandra, Uttaran Bhattacharya, Aniket Bera, and Dinesh Manocha. Traphic: Trajectory prediction in dense and heterogeneous traffic using weighted interactions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2019. \n[20] Srijan Kumar, Xikun Zhang, and Jure Leskovec. Predicting dynamic embedding trajectory in temporal interaction networks. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, pages 1269–1278, 2019. \n[21] Emanuele Rossi, Ben Chamberlain, Fabrizio Frasca, Davide Eynard, Federico Monti, and Michael Bronstein. Temporal graph networks for deep learning on dynamic graphs. In ICML 2020 Workshop on Graph Representation Learning, 2020. \n[22] Rewon Child, Scott Gray, Alec Radford, and Ilya Sutskever. Generating long sequences with sparse transformers. arXiv preprint arXiv:1904.10509, 2019. \n[23] Manzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, and Amr Ahmed. Big bird: Transformers for longer sequences. In H. Larochelle, M. Ranzato, R. Hadsell, M. F. Balcan, and H. Lin, editors, Advances in Neural Information Processing Systems, volume 33, pages 17283–17297. Curran Associates, Inc., 2020. URL https://proceedings.neurips. cc/paper/2020/file/c8512d142a2d849725f31a9a7a361ab9-Paper.pdf. \n[24] Iz Beltagy, Matthew E Peters, and Arman Cohan. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150, 2020. \n[25] Nikita Kitaev, Lukasz Kaiser, and Anselm Levskaya. Reformer: The efficient transformer. In International Conference on Learning Representations, 2020. URL https://openreview. net/forum?id $\\equiv$ rkgNKkHtvB. \n[26] Jonathan Ho, Nal Kalchbrenner, Dirk Weissenborn, and Tim Salimans. Axial attention in multidimensional transformers. arXiv preprint arXiv:1912.12180, 2019. \n[27] Gedas Bertasius, Heng Wang, and Lorenzo Torresani. Is space-time attention all you need for video understanding? arXiv preprint arXiv:2102.05095, 2021. ",
1094
+ "bbox": [
1095
+ 148,
1096
+ 90,
1097
+ 828,
1098
+ 715
1099
+ ],
1100
+ "page_idx": 10
1101
+ },
1102
+ {
1103
+ "type": "text",
1104
+ "text": "1. For all authors... ",
1105
+ "bbox": [
1106
+ 214,
1107
+ 116,
1108
+ 339,
1109
+ 131
1110
+ ],
1111
+ "page_idx": 11
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "text": "(a) Do the main claims made in the abstract and introduction accurately reflect the paper’s contributions and scope? [Yes] \n(b) Did you describe the limitations of your work? [Yes] See Section 6. \n(c) Did you discuss any potential negative societal impacts of your work? [No] Our work does not introduce new ethical challenges. \n(d) Have you read the ethics review guidelines and ensured that your paper conforms to them? [Yes] ",
1116
+ "bbox": [
1117
+ 238,
1118
+ 135,
1119
+ 825,
1120
+ 239
1121
+ ],
1122
+ "page_idx": 11
1123
+ },
1124
+ {
1125
+ "type": "text",
1126
+ "text": "2. If you are including theoretical results... ",
1127
+ "bbox": [
1128
+ 214,
1129
+ 243,
1130
+ 493,
1131
+ 258
1132
+ ],
1133
+ "page_idx": 11
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "(a) Did you state the full set of assumptions of all theoretical results? [Yes] (b) Did you include complete proofs of all theoretical results? [Yes] ",
1138
+ "bbox": [
1139
+ 238,
1140
+ 262,
1141
+ 735,
1142
+ 295
1143
+ ],
1144
+ "page_idx": 11
1145
+ },
1146
+ {
1147
+ "type": "text",
1148
+ "text": "3. If you ran experiments... ",
1149
+ "bbox": [
1150
+ 212,
1151
+ 299,
1152
+ 393,
1153
+ 313
1154
+ ],
1155
+ "page_idx": 11
1156
+ },
1157
+ {
1158
+ "type": "text",
1159
+ "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] \n(b) Did you specify all the training details (e.g., data splits, hyperparameters, how they were chosen)? [Yes] \n(c) Did you report error bars (e.g., with respect to the random seed after running experiments multiple times)? [N/A] \n(d) Did you include the total amount of compute and the type of resources used (e.g., type of GPUs, internal cluster, or cloud provider)? [Yes] ",
1160
+ "bbox": [
1161
+ 238,
1162
+ 316,
1163
+ 825,
1164
+ 435
1165
+ ],
1166
+ "page_idx": 11
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "4. If you are using existing assets (e.g., code, data, models) or curating/releasing new assets... ",
1171
+ "bbox": [
1172
+ 220,
1173
+ 439,
1174
+ 823,
1175
+ 454
1176
+ ],
1177
+ "page_idx": 11
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "(a) If your work uses existing assets, did you cite the creators? [Yes] \n(b) Did you mention the license of the assets? [No] We link directly to the dataset. \n(c) Did you include any new assets either in the supplemental material or as a URL? [Yes] \n(d) Did you discuss whether and how consent was obtained from people whose data you’re using/curating? [N/A] \n(e) Did you discuss whether the data you are using/curating contains personally identifiable information or offensive content? [N/A] ",
1182
+ "bbox": [
1183
+ 238,
1184
+ 458,
1185
+ 823,
1186
+ 565
1187
+ ],
1188
+ "page_idx": 11
1189
+ },
1190
+ {
1191
+ "type": "text",
1192
+ "text": "5. If you used crowdsourcing or conducted research with human subjects... ",
1193
+ "bbox": [
1194
+ 214,
1195
+ 569,
1196
+ 705,
1197
+ 584
1198
+ ],
1199
+ "page_idx": 11
1200
+ },
1201
+ {
1202
+ "type": "text",
1203
+ "text": "(a) Did you include the full text of instructions given to participants and screenshots, if applicable? [N/A] \n(b) Did you describe any potential participant risks, with links to Institutional Review Board (IRB) approvals, if applicable? [N/A] \n(c) Did you include the estimated hourly wage paid to participants and the total amount spent on participant compensation? [N/A] ",
1204
+ "bbox": [
1205
+ 238,
1206
+ 588,
1207
+ 825,
1208
+ 678
1209
+ ],
1210
+ "page_idx": 11
1211
+ }
1212
+ ]
parse/train/p2XgjS3Qp4X/p2XgjS3Qp4X_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/p2XgjS3Qp4X/p2XgjS3Qp4X_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/w3x8K0M6sAz/w3x8K0M6sAz.md ADDED
@@ -0,0 +1,273 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Topology-Imbalance Learning for Semi-Supervised Node Classification
2
+
3
+ Deli Chen1,2, Yankai $\mathbf { L i n } ^ { 1 }$ , Guangxiang Zhao2, Xuancheng Ren2, Peng $\mathbf { L i } ^ { 1 }$ , Jie $\mathbf { Z } \mathbf { h o u } ^ { 1 }$ , $\mathbf { X } \mathbf { u } \mathbf { S } \mathbf { u } \mathbf { n } ^ { 2 }$ 1Pattern Recognition Center, WeChat AI, Tencent Inc., China 2MOE Key Lab of Computational Linguistics, School of EECS, Peking University {delichen, yankailin, patrickpli,withtomzhou}@tencent.com {zhaoguangxiang,renxc,xusun}@pku.edu.cn
4
+
5
+ # Abstract
6
+
7
+ The class imbalance problem, as an important issue in learning node representations, has drawn increasing attention from the community. Although the imbalance considered by existing studies roots from the unequal quantity of labeled examples in different classes (quantity imbalance), we argue that graph data expose a unique source of imbalance from the asymmetric topological properties of the labeled nodes, i.e., labeled nodes are not equal in terms of their structural role in the graph (topology imbalance). In this work, we first probe the previously unknown topology-imbalance issue, including its characteristics, causes, and threats to semisupervised node classification learning. We then provide a unified view to jointly analyzing the quantity- and topology- imbalance issues by considering the node influence shift phenomenon with the Label Propagation algorithm. In light of our analysis, we devise an influence conflict detection–based metric Totoro to measure the degree of graph topology imbalance and propose a model-agnostic method ReNode to address the topology-imbalance issue by re-weighting the influence of labeled nodes adaptively based on their relative positions to class boundaries. Systematic experiments demonstrate the effectiveness and generalizability of our method in relieving topology-imbalance issue and promoting semi-supervised node classification. The further analysis unveils varied sensitivity of different graph neural networks (GNNs) to topology imbalance, which may serve as a new perspective in evaluating GNN architectures.1
8
+
9
+ # 1 Introduction
10
+
11
+ Graph is a widely-used data structure [51], where the nodes are connected to each other through natural or handcrafted edges. Similar to other data structures, the representation learning for node classification faces the challenge of quantity-imbalance issue, where the labeling size varies among classes and the decision boundaries of trained classifiers are mainly decided by the majority classes [46]. There have been a series of studies [35, 11, 49] handling the Quantity-Imbalance Node Representation Learning (short as QINL). However, different with other data structures, graph-structured data suffers from another aspect of the imbalance problem: the imbalance caused by the asymmetric and uneven topology of labeled nodes, where the decision boundaries are driven by the labeled nodes close to the topological class boundaries (left of Figure 1) thus interfering with the model learning.
12
+
13
+ Present Work. For the first time, we recognize the Topology-Imbalance Node Representation Learning (short as TINL) as a graph-specific imbalance learning topic, which mainly focus on the decision boundaries shift phenomena driven by the topology imbalance in graph and is an essential component for node imbalance learning. Comparing with the well-explored QINL that studies the imbalance caused by the numbers of labeled nodes, TINL explores the imbalance caused by the positions of labeled nodes and owns the following characteristics:
14
+
15
+ ![](images/3c5d5345b792342769fcf85d480df7dfaf12f9fa1c75f46eec6382748a5fb423.jpg)
16
+ Figure 1: Schematic diagram of the topology-imbalance issue in node representation learning. The color and the hue denote the type and the intensity of each node’s received influence from the labeled nodes, respectively. The left shows that nodes close to the boundary have the risk of information conflict and nodes far away from labeled nodes have the risk of information insufficient. The right shows that our method can decrease the training weights of labeled nodes (R1) close to the class boundary and increase the weights of labeled nodes (B and R2) close to the class centers, thus relieving the topology-imbalance issue.
17
+
18
+ • Ubiquity: Due to the complex connections of the graph nodes, the topology structure of nodes in different categories is naturally asymmetric, which makes TINL an essential characteristic in node representation learning. Hence, it is difficult to construct a completely symmetric labeling set even with an abundant annotation budget. • Perniciousness: The influence from labeled nodes decays with the topology distance [3]. The asymmetric topology of labeled nodes in different classes and the uneven distribution of labeled nodes in the same class will cause the influence conflict and influence insufficient problems (left of Figure 1) respectively, resulting in a shift of decision boundaries. • Orthogonality: Quantity-imbalance studies [49, 8, 5] usually treat the labeled nodes of the same class as a whole and devise solutions based on the total numbers of each class, while TINL explores the influence of the unique position of each labeled node on decision boundaries. Thus, TINL is independent of QINL in terms of the object of study.
19
+
20
+ Exploring TINL is of great importance for node representation learning due to its ubiquity and perniciousness. However, the methods [17, 22] for quantity imbalance can be hardly applied to TINL because of the orthogonality. To remedy the topology-imbalance issue, thus promoting the node classification, we propose a model-agnostic training framework ReNode to re-weight the labeled nodes according to their positions. We devise the conflict detection-based Topology Relative Location (Totoro) metric to leverage the interaction among labeled nodes across the whole graph to locate their structural positions. Based on the Totoro metric, we further increase the training weights of nodes with small conflict that are highly likely to be close to topological class centers to make them play a more pivotal role during training, and vice versa (right of Figure 1). Empirical results of various imbalance scenarios (TINL, QINL, large-scale graph) and multiple graph neural networks (GNNs) demonstrate the effectiveness and generalizability of our method. Besides, we provide the sensitivity to topology imbalance as a new evaluation perspective for different GNN architectures.
21
+
22
+ # 2 Topology-Imbalance Node Representation Learning
23
+
24
+ # 2.1 Notations and Preliminary
25
+
26
+ In this work, we follow the well-established semi-supervised node classification setting [47, 18] to conduct analyses and experiments. Given an undirected and unweighted graph $\mathcal { G } = ( \boldsymbol { \nu } , \pmb { \varepsilon } , \pmb { c } )$ , where $\nu$ is the node set represented by the feature matrix $\boldsymbol { X } \in \mathbb { R } ^ { n * d }$ $\dot { \boldsymbol { n } } = | \boldsymbol { \nu } |$ is the node size and $d$ is the node embedding dimension), $\varepsilon$ is the edge set which is represented by an adjacency matrix $A \in \mathbb { R } ^ { n * n }$ , $\pmb { \mathcal { L } } \subset \nu$ is the labeled node set and usually we have $| \bar { \boldsymbol { L } } | \ll | \boldsymbol { \nu } |$ , the node classification task is to train a classifier $\mathcal { F }$ (usually a GNN) to predict the class label y for the unlabeled node set $u = \nu - c$ . The training sets for different classes are represented by $( \pmb { \mathscr { C } } _ { 1 } , \pmb { \mathscr { C } } _ { 2 } , \cdots , \pmb { \mathscr { C } } _ { k } )$ and $k$ is the number of classes. The labeling ratio $\delta = \angle \mathcal { x } / \nu$ is the proportion of labeled nodes in all nodes. In this work, we focus on TINL in homogeneously-connected graphs and hope to inspire future studies on the critical topology-imbalance issue.
27
+
28
+ ![](images/25999ec10387c1b8ccfbc868ce85fd4adb3997f394bbe9fe5415c3fa41a2bab0.jpg)
29
+ Figure 2: Node influence and boundary shift caused by quantity- and topology-imbalance. (a): The prediction results of GCN and LP are highly consistent (t-SNE [39] visualization of the $C O R A$ dataset). (b): The node influence boundary (the yellow dotted line) is shifted towards the small class from the true class boundary (the black dotted line) under the quantity- and topology-imbalance scene. (c): The node influence boundary is shifted towards the large class under the quantity-balanced, topology-imbalanced scene. We regard the large class as positive class to indicate the results.
30
+
31
+ # 2.2 Understanding Topology Imbalance via Label Propagation
32
+
33
+ From Figure 1, we can intuitively perceive the imbalance brought by the positions of labeled nodes; in this part, we further explore the nature of topology imbalance with the well-known Label Propagation [50] algorithm (short as LP) and provide a uniform analysis framework for the comprehensive node imbalance issue. In LP, labels are propagated from the labeled nodes and aggregated along edges, which can also be viewed as a random walk process from labeled nodes. The convergence result $\mathbf { Y }$ after repeated propagation is regarded as the nodes soft-labels:
34
+
35
+ $$
36
+ \pmb { Y } = \alpha ( \pmb { I } - ( 1 - \alpha ) \pmb { A } ^ { \prime } ) ^ { - 1 } \pmb { Y } ^ { 0 } ,
37
+ $$
38
+
39
+ where $\pmb { I }$ is the identity matrix, $\alpha \in ( 0 , 1 ]$ is the random walk restart probability, $A ^ { \prime } = D ^ { - { \frac { 1 } { 2 } } } A D ^ { - { \frac { 1 } { 2 } } }$ is the adjacency matrix normalized by the diagonal degree matrix $_ { D }$ , $\mathbf { \dot { Y } } ^ { 0 }$ is the initial label distribution where labeled nodes are represented by the one-hot vectors. The prediction label for the $i$ -th node is $q _ { i } = \arg \operatorname* { m a x } _ { j } Y _ { i j }$ . LP is a simple yet successful model [37] and can be unified with GNN models owning the message-passing mechanism [41]. From Figure 2(a), we can empirically find that there is a significant correlation between the results of LP and GCN (T/F indicates prediction is True/False).
40
+
41
+ The LP prediction $\pmb q$ can be viewed as the distribution of the (labeled) node influence [41] (i.e. each node is mostly influenced by which class’s information); hence the boundaries of the node influence can act as an effective reflection for the GNN model decision boundaries considering the high consistency between LP and GNN. Moreover, node influence offers a unified view of TINL and QINL: ideally, the node influence boundaries should be consistent with the true class boundaries, but both the labeled nodes’ numbers (QINL) and positions (TINL) can cause a shift of the node influence boundaries from the true one, resulting in deviation of the model decision boundaries.
42
+
43
+ Node imbalance issue is composed of topology- and quantity-imbalance. Figure 2 illustrates two examples of node influence boundary shift. In Figure 2(b), when the uniform selection is adopted to generate training set, both the quantity and the topology are imbalanced for model training; then the large class with more total nodes (denotes by blue color) will own stronger influence than the small class with fewer total nodes (denotes by red color) due to the quantity advantage and the node influence boundary is shifted towards the small class. In Figure 2(c), when the quantity-balanced strategy is adopted for sampling training nodes, it will be easier for the small class to has more labeled nodes close to the class boundary and the boundary of the node influence is shifted into the large class. We can find that even when the training set is quantity-balanced, the topology-imbalance issue still exists and hinders the node classification learning. Hence, we can conclude that node imbalance learning is caused by the joint effect of TINL and QINL. Separately considering TINL or QINL will lead to a one-sided solution to node imbalance learning.
44
+
45
+ ![](images/f912716e23c177a4938148c7a1170b81fdfe86390b15dbfd19bd85e1becda3fb.jpg)
46
+ Figure 3: Effectiveness of Totoro at (a) Node Level: labeled nodes (t-SNE visualization of the CORA dataset) with less influence conflict (lighter color) are farther-away from class boundaries than those with high conflict (darker color), and (b) Dataset Level: There is a significant negative correlation between the GNN (GCN) performance and overall conflict of the training set (the Pearson correlation coefficient is $- 0 . 6 1 8$ over 50 randomly selected training sets with the $p$ value smaller than 0.01).
47
+
48
+ # 2.3 Measuring Topology Imbalance by Influence Conflict
49
+
50
+ Although we have realized that the imbalance of node topology interferes with model learning, how to measure the labeled node’s relative topological position to its class (being far away from or close to the class center) remains the key challenge in handling the topology-imbalance issue due to the complex graph connections and the unknown class labels for most nodes in the graph. As the nodes are homogeneously connected when constructing the graph, even nodes close to the class boundaries own similar characteristics to their neighbors. Thus it is unreliable to leverage the difference between the characteristics of one labeled node and its surrounding subgraphs to locate its topological position. Instead, we propose to utilize the node topology information by considering the node influence conflict across the whole graph and devise the Conflict Detection-based Topology Relative Location metric (Totoro).
51
+
52
+ Similar to Eq (1), we calculate the Personalized PageRank [27] matrix $_ { r }$ to measure node influence distribution from each labeled node:
53
+
54
+ $$
55
+ P = \alpha ( { \cal I } - ( 1 - \alpha ) A ^ { \prime } ) ^ { - 1 } .
56
+ $$
57
+
58
+ Node influence conflict denotes topological position. According to related studies [41, 19, 2], $_ { r }$ can be viewed as the distribution of influence exerted outward from each node. We assume that if a labeled node $v \in \nu$ encounters strong heterogeneous influence from the other classes’ labeled nodes in the subgraph around node $v$ where node $v$ itself owns great influence, we have the conclusion that node $v$ meets large influence conflict in message passing and it is close to topological class boundaries, and vice versa. Based on this hypothesis, we take the expectation of the influence conflict between the node $v$ and the labeled nodes from other classes when node $v$ randomly walks across the entire graph as a measurement of how topologically close node $v$ is to the center of the class it belongs to. The Totoro value of node $v$ is computed as:
59
+
60
+ $$
61
+ \pmb { T } _ { v } = \mathbb { E } _ { \boldsymbol { x } \sim \pmb { P } _ { v , : } } [ \sum _ { \substack { j \in [ 1 , k ] , j \neq y _ { v } } } \frac { 1 } { | \pmb { \mathcal { C } } _ { j } | } \sum _ { i \in \pmb { \mathcal { C } } _ { j } } \pmb { P } _ { i , x } ] ,
62
+ $$
63
+
64
+ where $\mathbf { \nabla } _ { \mathbf { y } _ { v } }$ is the ground-truth label of node $v$ , $P _ { v }$ indicates the personalized PageRank probability vector for the node $v$ . A larger Totoro value $\mathbf { \delta } _ { \mathbf { \mathcal { T } } _ { v } }$ indicates that node $v$ is topologically closer to class boundaries, and vice versa. The normalization item $1 / | c _ { j } |$ is added to make the influence from the different classes comparable when computing conflict.
65
+
66
+ We visualize the node labels and the Totoro values (scaled to $[ 0 , 1 ] $ ) of labeled nodes in Figure 3(a). We can find that the labeled nodes with smaller Totoro values are farther away from the class boundaries, demonstrating the effectiveness of Totoro in locating the positions of labeled nodes. Besides, we sum the conflict of all the labeled nodes $\textstyle \sum _ { b \in { \mathcal { L } } } T _ { v }$ to measure the overall conflict of the dataset, which can be viewed as the metric for the overall topology imbalance given the graph $\mathfrak { g }$ and the training set $\mathcal { L }$ . Figure 3(b) shows that there is a significant negative correlation between the overall conflict and the model performance, which further demonstrates the effectiveness of Totoro in measuring the intensity of topology imbalance at the dataset level.
67
+
68
+ # 2.4 Alleviate Topology Imbalance by Instance-wise Node Re-weighting
69
+
70
+ In this section, we introduce ReNode, a model-agnostic training weight schedule mechanism to address TINL for general GNN encoder in a plug-and-play manner. Inspired by the analysis in Section 2.2, the ReNode method is devised to promote the training weights of the labeled nodes that are close to the topological class centers, so as to make these nodes play a more active role in model learning, and vice versa. Specifically, we devise a cosine annealing mechanise 2 for the training node weights based on their Totoro values:
71
+
72
+ $$
73
+ { \pmb w } _ { v } = w _ { \mathrm { m i n } } + \frac { 1 } { 2 } ( w _ { \mathrm { m a x } } - w _ { \mathrm { m i n } } ) ( 1 + \cos ( \frac { \mathrm { R a n k } ( { \pmb T } _ { v } ) } { | { \pmb L } | } \pi ) ) , \quad v \in { \pmb C }
74
+ $$
75
+
76
+ where $\pmb { w } _ { v }$ is the modified training weight for the labeled node $v , w _ { \mathrm { m i n } } , w _ { \mathrm { m a x } }$ are the hyper-parameters indicating the lower bound and upper bound of the weight correction factor, $\mathrm { R a n k } ( \pmb { T } _ { v } )$ is the ranking order of $\mathbf { \delta } _ { \mathbf { \mathcal { T } } _ { v } }$ from the smallest to the largest. The training loss $L _ { T }$ for the quantity-balanced, topologyimbalanced node classification task is computed by the following equations:
77
+
78
+ $$
79
+ L _ { T } = - \frac { 1 } { | { \cal { L } } | } \sum _ { v \in { \cal { L } } } w _ { v } \sum _ { c = 1 } ^ { k } y _ { v } ^ { * c } \log \ g _ { v } ^ { c } , \quad g = \mathrm { s o f t m a x } ( { \mathcal { F } } ( X , A , \theta ) ) ,
80
+ $$
81
+
82
+ where $\mathcal { F }$ denotes any GNN encoder, $\pmb \theta$ is the parameter of ${ \mathcal { F } } , g _ { i }$ is the GNN output for node $i$ , $\mathbf { \nabla } _ { \mathbf { \boldsymbol { y } } _ { i } ^ { * } }$ is the gold label for node $i$ in one-hot embedding. By encouraging the positive effects of the labeled nodes near the class topological centers, and reducing the negative effects of those near the topological class boundaries, our ReNode method is expected to minimize the deviation between the node influence boundaries and the true class boundaries, so as to correct the class imbalance caused by the positions of labeled nodes.
83
+
84
+ ReNode to Jointly Handle TINL and QINL In this part, we introduce the application of the ReNode method in a more general graph imbalance scenario where both the topology- and quantityimbalance issues exist. As analyzed in previous sections, the TINL and QINL are orthogonal problems. Therefore, we propose that our ReNode method based on (labeled) node topology can be seamlessly combined with the existing methods designed for the quantity-imbalance learning. Without loss of generality, we present how our ReNode method can be combined with the vanilla class frequency-based re-weight method [17]. The training loss $L _ { Q }$ for the quantity-imbalanced, topology-imbalanced node classification task is formalized in the following equation:
85
+
86
+ $$
87
+ L _ { Q } = - \frac { 1 } { | \mathcal { L } | } \sum _ { v \in \mathcal { L } } w _ { v } \frac { | \bar { \mathcal { C } } | } { | \mathcal { C } _ { j } | } \sum _ { c = 1 } ^ { k } { y } _ { v } ^ { * c } \log \textbf { \em g } _ { v } ^ { c } ,
88
+ $$
89
+
90
+ where $| \bar { c } |$ is the average number of the class training sizes. With this method, the final weight of the labeled node is affected by two perspectives: training examples of the minority classes will have higher weights than that of the majority classes; training examples close to the topological class centers will have higher weights than those are close to the topological class boundaries.
91
+
92
+ ReNode for Large-scale Graph There are mainly two challenges when applying ReNode to largescale graphs: (1) how to calculate the PageRank matrix, and (2) how to train the GNN model in an inductive setting [13]. In this work, we follow the PPRGo method [2] to implement our method on the large-scale graph, which can decouple the feature learning process from the information transmission process to resolve the dependence on the global graph topology structure and can be carried out much efficiently. Following PPRGo, the Personalized PageRank matrix $\hat { P }$ and the corresponding training ReNode factor $\hat { \pmb { w } }$ are generated by the estimation method from Andersen et al. [1] and then $\hat { P }$ is directly employed as the aggregation weights from all the other nodes regardless of their topology distance from the current node:
93
+
94
+ Table 1: ReNode (short as RN) for the pure topology-imbalance issue. We report Weighted-F1 (W-F, $\%$ ), Macro-F1 (M-F, $\%$ ) and the corresponding standard deviation for each group of experiments. $^ *$ and $^ { \ast \ast }$ represent the result is significant in student t-test with $p < 0 . 0 5$ and $p < 0 . 0 1$ , respectively.
95
+
96
+ <table><tr><td rowspan="2">Model</td><td rowspan="2">Training</td><td colspan="2">CORA</td><td colspan="2">CiteSeer</td><td colspan="2">PubMed</td><td colspan="2">Photo</td><td colspan="2">Computers</td></tr><tr><td>W-F</td><td>M-F</td><td>W-F</td><td>M-F</td><td>W-F</td><td>M-F</td><td>W-F</td><td>M-F</td><td>W-F</td><td>M-F</td></tr><tr><td rowspan="2">GCN</td><td>w/oRN</td><td>79.1±1.1</td><td>77.8±1.5</td><td>66.2±1.0</td><td>62.0±1.3</td><td>74.6±2.1</td><td>74.7±1.9</td><td>86.8±2.0</td><td>84.7±1.7</td><td>74.2±2.6</td><td>73.6±2.9</td></tr><tr><td>w/RN</td><td>79.8**±0.9</td><td>78.6**±1.2</td><td>66.9* ±1.1</td><td>62.8* ±1.4</td><td>76.1** ±1.5</td><td>76.1**±1.8</td><td>87.7**±2.2</td><td>85.4**±1.9</td><td>74.7* ±2.2</td><td>74.5**±2.3</td></tr><tr><td rowspan="2">GAT</td><td>w/o RN</td><td>76.0±1.7</td><td>74.9±1.9</td><td>66.3±2.8</td><td>62.4±2.6</td><td>73.9±2.2</td><td>73.9±2.1</td><td>88.3±2.0</td><td>86.2±2.2</td><td>79.0±2.1</td><td>78.8±2.3</td></tr><tr><td>W/RN</td><td>77.7**±*2.0</td><td>76.2**±1.8</td><td>67.1*±1.9</td><td>63.2*±1.6</td><td>75.2**±2.0</td><td>75.1**±2.5</td><td>89.1**±2.0</td><td>87.1**±2.0</td><td>78.8±1.9</td><td>78.7±2.0</td></tr><tr><td rowspan="2">PPNP</td><td>w/oRN</td><td>80.5±1.6</td><td>79.1±1.4</td><td>67.5±1.8</td><td>63.2±1.6</td><td>74.6±1.9</td><td>74.7±1.7</td><td>89.3±1.3</td><td>86.8±1.4</td><td>78.7±1.5</td><td>77.7±1.7</td></tr><tr><td>w/RN</td><td>81.9**±0.6</td><td>80.5**±0.8</td><td>68.1* ±1.4</td><td>63.7* ±2.0</td><td>76.0**±2.0</td><td>76.1**±2.2</td><td>89.7*±1.0</td><td>87.2* ±1.3</td><td>79.0* ±1.1</td><td>78.3* ±11</td></tr><tr><td rowspan="2">SAGE</td><td>w/o RN</td><td>75.1±1.7</td><td>74.6±1.4</td><td>67.0±1.4</td><td>63.0±1.4</td><td>74.2±2.2</td><td>74.2±2.1</td><td>86.2±2.6</td><td>83.9±2.4</td><td>73.5±3.4</td><td>71.6±2.5</td></tr><tr><td>w/RN</td><td>75.7**±1.7</td><td>75.1**±1.4</td><td>67.3±1.4</td><td>63.5* ±1.2</td><td>74.9**±1.9</td><td>78.2**±2.3</td><td>86.5±1.7</td><td>84.1±1.7</td><td>74.9**±3.0</td><td>72.3**±2.5</td></tr><tr><td rowspan="2">CHEB</td><td>w/oRN</td><td>74.5±1.1</td><td>73.4±1.1</td><td>66.8±1.8</td><td>63.2±1.6</td><td>75.1±1.8</td><td>75.2±1.1</td><td>82.1±2.2</td><td>79.4±3.5</td><td>70.3±4.0</td><td>68.4±3.4</td></tr><tr><td>w/RN</td><td>75.3**±1.1</td><td>74.0**±1.1</td><td>67.5**±1.6</td><td>63.8**±1.5</td><td>76.2**±1.4</td><td>76.3**±1.2</td><td>84.8**±2.4</td><td>82.1**±2.8</td><td>70.5±4.0</td><td>68.6±3.4</td></tr><tr><td rowspan="2">SGC</td><td>w/oRN</td><td>74.9±2.1</td><td>73.8±2.1</td><td>65.7±1.6</td><td>61.8±1.6</td><td>72.9±2.3</td><td>73.1±2.6</td><td>87.1±1.3</td><td>84.9±11</td><td>77.4±1.7</td><td>76.8±1.8</td></tr><tr><td>w/RN</td><td>77.0**±1.1</td><td>76.0**±1.1</td><td>67.2**±1.3</td><td>62.9**±1.8</td><td>73.7**±2.8</td><td>73.8**±2.1</td><td>87.4±1.5</td><td>85.2±1.5</td><td>78.2**±1.8</td><td>77.8**±1.2</td></tr></table>
97
+
98
+ Table 2: Result of different dataset conflict levels (High/Middle/Low). Our ReNode method improve the GNN (GCN) performance most when the conflict level of graph is high.
99
+
100
+ <table><tr><td>W-F(%)</td><td>CORA-H</td><td>CORA-M</td><td>CORA-L</td><td>CiteSeer-H</td><td>CiteSeer-M</td><td>CiteSeer-L</td><td>PubMed-H</td><td>PubMed-M</td><td>|PubMed-L</td></tr><tr><td>w/o RN w/RN</td><td>76.5±1.3 78.7**±0.8</td><td>78.4±0.7 79.3**±0.6</td><td>79.7±0.8 80.4**±0.6</td><td>62.6±1.5 63.8**±1.3</td><td>65.3±0.6 66.0**±0.8</td><td>67.3±1.1 67.5±1.4</td><td>72.1±2.4 74.3**±2.1</td><td>74.7±1.8 75.6**±1.9</td><td>78.3±1.8 78.8* ±1.5</td></tr></table>
101
+
102
+ $$
103
+ \pmb { g } ^ { \prime } = \mathrm { s o f t m a x } ( \hat { P } \mathcal { F } ^ { \prime } ( \pmb { X } , \pmb { \theta } ^ { \prime } ) ) ,
104
+ $$
105
+
106
+ where ${ \mathcal { F } } ^ { \prime }$ can be a linear layer or a multi-layer perceptron with parameter $\theta ^ { \prime }$ . The final training loss for large-scale graph $L _ { L }$ follows Eq (5) and (6), and replaces $\pmb { w }$ and $\textbf { { g } }$ with $\hat { \pmb { w } }$ and $\pmb { g } ^ { \prime }$ .
107
+
108
+ # 3 Experiments
109
+
110
+ In this section, we will first introduce the experimental datasets for both transductive and inductive semi-supervised node classification. Then we introduce the experiments to verify the effectiveness of the proposed ReNode method in three different imbalance situations: (1) TINL only, (2) TINL and QINL, (3) Large-scale Graph.
111
+
112
+ # 3.1 Datasets
113
+
114
+ We adopt two sets of graph datasets to conduct experiments. For the transductive setting [13], we take the widely-used Plantoid paper citation graphs [33] (CORA,CiteSeer, Pubmed) and the Amazon copurchase graphs [24] (Photo,Computers) to verify the effectiveness of our method. For the inductive setting, we conduct experiments on the popular Reddit dataset [13] and the enormous MAG-Scholar dataset (coarse-grain version) [2] which owns millions of nodes and features. For each of these datasets, we repeat experiments on 5 different datasets splittings [34] and we run 3 times for each splitting to reduce the random variance. More details about the datasets and experiment settings are presented in Appendix A.
115
+
116
+ # 3.2 ReNode for the Pure Topology-imbalance Issue
117
+
118
+ Settings When considering topology-imbalance only, the labeling set takes a balanced setting and the annotation size for each class is all equal to $| \dot { \mathcal { L } } | / k$ . Following the most widely-used semisupervised setting in node classification studies [47, 18], we randomly select 20 nodes in each class for training and 30 nodes per class for validation; all the remaining nodes form the test set. We display the experiment results for the 5 transductive datasets on 6 widely-used GNN models: GCN [18], GAT [40], PPNP [19], GraphSAGE [13] (short as SAGE), ChebGCN [9] (short as CHEB) and SGC [43]. We strictly align the hyperparameters in each group of experiments to show the pure improvement brought by our ReNode method (similarly hereinafter). The training loss $L _ { T }$ from section 2.4 is adopted.
119
+
120
+ Table 3: ReNode method for the compound scene of TINL and QINL. The imbalance ratio $\rho$ is set to different levels ([5, 10]) to test the effect of our method under different imbalance intensities.
121
+
122
+ <table><tr><td rowspan=1 colspan=1>Macro-F1(%)</td><td rowspan=1 colspan=2>CORA</td><td rowspan=1 colspan=2>CiteSeer</td><td rowspan=1 colspan=2>PubMed</td><td rowspan=1 colspan=2>Photo</td><td rowspan=1 colspan=2>Computers</td></tr><tr><td rowspan=1 colspan=1>Imbalance Ratio</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>10</td></tr><tr><td rowspan=1 colspan=1>CE</td><td rowspan=1 colspan=1>60.9±1.5</td><td rowspan=1 colspan=1>41.0±3.5</td><td rowspan=1 colspan=1>53.6±2.1</td><td rowspan=1 colspan=1>47.6±2.8</td><td rowspan=1 colspan=1>61.0±1.9</td><td rowspan=1 colspan=1>49.7±2.6</td><td rowspan=1 colspan=1>62.0±2.7</td><td rowspan=1 colspan=1>40.7±3.4</td><td rowspan=1 colspan=1>50.4±2.6</td><td rowspan=1 colspan=1>35.5±3.2</td></tr><tr><td rowspan=1 colspan=1>DR-GCN</td><td rowspan=1 colspan=1>67.7±1.1</td><td rowspan=1 colspan=1>51.3±1.4</td><td rowspan=1 colspan=1>54.7±1.7</td><td rowspan=1 colspan=1>52.5±2.6</td><td rowspan=1 colspan=1>79.4±1.2</td><td rowspan=1 colspan=1>78.0±1.6</td><td rowspan=1 colspan=1>80.8±2.3</td><td rowspan=1 colspan=1>79.5±2.8</td><td rowspan=1 colspan=1>66.9±3.5</td><td rowspan=1 colspan=1>67.4±3.6</td></tr><tr><td rowspan=2 colspan=1>RA-GCNG-SMOTE</td><td rowspan=1 colspan=1>69.0±1.5</td><td rowspan=2 colspan=1>51.7±1.749.6±1.1</td><td rowspan=2 colspan=1>55.6±1.354.0±1.6</td><td rowspan=1 colspan=1>52.7±2.1</td><td rowspan=2 colspan=1>80.6±1.879.7±1.2</td><td rowspan=2 colspan=1>78.1±2.176.4±1.5</td><td rowspan=2 colspan=1>81.4±2.682.2±1.8</td><td rowspan=2 colspan=1>79.4±3.277.5±2.1</td><td rowspan=2 colspan=1>71.2±2.871.9±2.5</td><td rowspan=1 colspan=1>68.7±3.0</td></tr><tr><td rowspan=1 colspan=1>68.1±0.9</td><td rowspan=1 colspan=1>51.8±1.3</td><td rowspan=1 colspan=1>61.3±3.2</td></tr><tr><td rowspan=1 colspan=1>RW (w/o RN)</td><td rowspan=1 colspan=1>69.1±1.4</td><td rowspan=1 colspan=1>49.7±1.6</td><td rowspan=1 colspan=1>53.6±2.3</td><td rowspan=1 colspan=1>52.9±2.6</td><td rowspan=1 colspan=1>80.5±1.5</td><td rowspan=1 colspan=1>78.0±2.0</td><td rowspan=1 colspan=1>80.5±2.7</td><td rowspan=1 colspan=1>80.4±3.3</td><td rowspan=1 colspan=1>70.5±3.2</td><td rowspan=1 colspan=1>67.8±4.2</td></tr><tr><td rowspan=1 colspan=1>RW (w/ RN)</td><td rowspan=1 colspan=1>70.0*±1.3</td><td rowspan=1 colspan=1>50.1±1.7</td><td rowspan=1 colspan=1>55.2**±1.8</td><td rowspan=1 colspan=1>54.0**±2.5</td><td rowspan=1 colspan=1>81.2* ±1.0</td><td rowspan=1 colspan=1>78.5*±2.2</td><td rowspan=1 colspan=1>83.9**±2.1</td><td rowspan=1 colspan=1>81.3**±3.2</td><td rowspan=1 colspan=1>72.4**±2.6</td><td rowspan=1 colspan=1>70.2**±2.4</td></tr><tr><td rowspan=2 colspan=1>FOCAL (w/o RN)FOCAL (w/RN)</td><td rowspan=1 colspan=1>66.4±1.6</td><td rowspan=1 colspan=1>51.9±1.8</td><td rowspan=1 colspan=1>54.3±1.3</td><td rowspan=1 colspan=1>54.0±1.9</td><td rowspan=1 colspan=1>80.5±0.7</td><td rowspan=1 colspan=1>78.0±1.6</td><td rowspan=1 colspan=1>79.3±1.9</td><td rowspan=1 colspan=1>79.2±2.2</td><td rowspan=1 colspan=1>65.8±2.7</td><td rowspan=1 colspan=1>63.9±2.6</td></tr><tr><td rowspan=1 colspan=1>68.7**±0.7</td><td rowspan=1 colspan=1>52.6**±1.9</td><td rowspan=1 colspan=1>54.6±1.2</td><td rowspan=1 colspan=1>54.7*±1.5</td><td rowspan=1 colspan=1>80.9*±0.8</td><td rowspan=1 colspan=1>78.7**±1.4</td><td rowspan=1 colspan=1>80.0**±*2.3</td><td rowspan=1 colspan=1>80.7**±2.9</td><td rowspan=1 colspan=1>68.6**±3.1</td><td rowspan=1 colspan=1>65.5**±3.5</td></tr><tr><td rowspan=2 colspan=1>CB (w/o RN)CB (w/RN)</td><td rowspan=1 colspan=1>69.8±1.5</td><td rowspan=2 colspan=1>51.5±1.551.9*±1.2</td><td rowspan=2 colspan=1>54.1±1.354.7*±1.6</td><td rowspan=2 colspan=1>53.5±0.854.3**±2.3</td><td rowspan=2 colspan=1>80.6±0.881.2*±1.8</td><td rowspan=2 colspan=1>77.6±1.678.3**±2.6</td><td rowspan=2 colspan=1>77.9±2.679.6** ±2.7</td><td rowspan=2 colspan=1>78.8±3.180.4**±3.3</td><td rowspan=2 colspan=1>69.6±2.273.1**±3.1</td><td rowspan=2 colspan=1>64.8±2.966.5**±3.6</td></tr><tr><td rowspan=1 colspan=1>71.1**±0.6</td></tr></table>
123
+
124
+ Results From Table 1, we can find that our ReNode method can effectively improve the overall performance (Weighted-F1) and the class-balance performance (Macro-F1) for all the 6 experiment GNNs in most cases, which proves the effectiveness and generalizability of our method. Our method considers the graph-specific topology imbalance issue which has been usually neglected in existing methods and conducts a fine-grained and self-adaptive adjustment to the training node weights based on their topological positions. We notice that the improvement for the CiteSeer dataset is less than the other datasets. We analyze the reason lies in that the connectivity of CiteSeer is poor, which makes the conflict detection–based method fail to reflect the node topological position well. To verify the motivation of relieving topology-imbalance, we set training sets with different levels of topologyimbalance to test our method3. Table 2 displays that our ReNode method improves the performance of GNN (GCN) most when the dataset is highly topologically imbalanced, which demonstrates that our method can effectively alleviate topology-imbalance and improve GNN performance.
125
+
126
+ # 3.3 ReNode for the Compound Scene of TINL and QINL
127
+
128
+ Settings When jointly considering both topology- and quantity-imbalance issues, following existing studies [5, 4], we take the step imbalance setting, in which all the minority classes have the same labeling size $n _ { i }$ and all the majority classes have the same labeling size $n _ { a } = \rho * n _ { i }$ . The imbalance ratio $\rho$ denotes the intensity of quantity imbalance which is equal to the ratio of the node size of the most frequent to least frequent class. In this work, the imbalance ratio $\rho$ is set to [5, 10] for each dataset. The fraction of the majority classes is $\mu$ , and for all experiments, we set $\mu = 0 . 5$ and round down the result $\mu * k$ . The training loss $L _ { Q }$ from section 2.4 is adopted. We implement two groups of baselines for comparison: (1) Popular quantity-imbalance methods for general scenarios: Re-weight [17] (RW), Focal Loss [22] (Focal) and Class Balanced Loss [8] (CB); (2) Graph-specific quantity-imbalance methods: DR-GCN [35], RA-GCN [11] and GraphSMOTE [49]. To jointly handle the topology- and quantity-imbalance issues and demonstrate the orthogonality of them, we combine our ReNode method with these three general quantity-imbalance methods (RW, Focal, CB)4. The backbone model is GCN [18], and the labeling ratio $\delta$ is set to $5 \%$ .
129
+
130
+ Results From Table 3 (Macro-F1 is reported here for a fair comparison with these methods designed for class-balance performance), we can find that our ReNode method significantly outperforms both the general and the graph-specific quantity-imbalance methods in most situations by simultaneously alleviating the topology- and quantity-imbalance issues. Even when the training set is severely quantity-imbalanced $\scriptstyle ( \rho = 1 0 )$ , our method still effectively alleviates the imbalance issue and promotes model performance well. The performance of the quantity-imbalance methods from the general field (RW, Focal, CB) is on par with or less effective than the graph-specific quantity-imbalance methods (DR-GCN, RA-GCN, G-SMOTE), while the combination of our ReNode method and these general quantity-imbalance methods can surpass the graph-specific quantity-imbalance methods, which demonstrates that the node imbalance learning can be further solved by jointly handling the topology- and quantity-imbalance issues instead of considering the quantity-imbalance issue only.
131
+
132
+ ![](images/6d160bd3b091be39bb9f07d48335845a9ed9ec4d5bd61d729b2de3828a23d52b.jpg)
133
+ Figure 4: Experimental results (Weighted-F1, $\%$ ) on the large-scale Reddit and MAG-Scholar graphs. Our ReNode method can effectively improve the model performance under different labeling sizes.
134
+
135
+ ![](images/f5bc5a21a4d8e008c5065041fd9c8ee0bd160c6729bf1cb6c89a70ee0cd10f49.jpg)
136
+ Figure 5: Evaluating GNNs from the aspect of topology-imbalance sensitivity (Metric: Weighted-F1 $( \% ) ,$ ). We can summarize the ranking of topology-imbalance sensitivity: $\mathrm { G C N } > \mathrm { P P N P } > \mathrm { G A T }$ .
137
+
138
+ # 3.4 ReNode for Large-scale Graphs
139
+
140
+ Settings We conduct experiments on the two large-scale datasets: Reddit and MAG-Scholar, to verify the effectiveness of our ReNode method in the inductive setting. We conduct experiments with different labeling sizes (20/50/100 training nodes per class) and imbalance settings (TINL-only, TINL and QINL). The backbone GNN model is PPRGo [2] 5. For QINL, we take the uniform selection to sample training nodes to be consistent with PPRGo. The training loss $L _ { L }$ from section 2.4 is adopted. Both baseline and our methods are not combined with any quantity-imbalance method.
141
+
142
+ Results In Figure 4, we present the experiment results with different labeling sizes and imbalance settings, we can find that our method can effectively promote the performance on the large-scale graphs comparing to the popular PPRGo model across different settings, which demonstrates the applicability of our method for extremely-large graphs. We also notice that our method can bring greater improvement when the labeling size is large. We explain the reason lies in that when the labeling size is large, the positions located by the conflicts among nodes will be more accurate, thus bringing more reasonable weight adjustments. On the other hand, when the labeling ratio is extremely small (especially for the enormous MAG-Scholar graph) and the influence conflict between the labeled nodes is negligible, our method exhibits the cold start problem.
143
+
144
+ # 4 Discussions
145
+
146
+ # 4.1 Evaluating GNNs from the Aspect of Topology-Imbalance Sensitivity
147
+
148
+ In Figure 5, we evaluate the GNN’s capability for handling topology-imbalance and find that different GNNs present significant difference in the topology-imbalance sensitivity across multiple datasets. The GCN model is susceptible to the topology-imbalance level of the graph and its performance decays greatly when the topology-imbalance increases. On the opposite, the GAT model is less sensitive to the topology-imbalance level and can achieve the best results when the topology-imbalance level is high. The PPNP model can achieve ideal performance when the topology-imbalance level is low, and its performance does not drop as sharply as GCN when the topology-imbalance level is high. We analyze the reason lies in that: (1) the aggregation operation of GCN is equivalent to directly averaging neighbor features [45] that lacks the noise filtering mechanism, so it is more sensitive to the topology-imbalance level of the graph; (2) the GAT model can dynamically adjust the aggregation weight from different neighbors, which increases its robustness to the high topology-imbalance situation but hinders the model performance when the graph topology-imbalance level is low and there is less need to filter neighbor information; (3) the infinite convolution mechanism of the PPNP model makes it possible to aggregate the information from distant nodes to enhance its robustness to the graph topology imbalance.
149
+
150
+ Shchur et al. [34] notice that the performance ranking of GNNs varies with the training set selection. Hence, existing node classification studies [32, 14] usually repeat experiments multiple times with different training sets to reduce this randomness. The results from Figure 5 inspire us that the topology imbalance can partly explain the randomness of GNN performance caused by the training set selection and we can adopt the topology-imbalance sensitivity as a new aspect in evaluating the performance of different GNN architectures.
151
+
152
+ # 4.2 Limitations of Method
153
+
154
+ Although our ReNode method has proven effective in multiple scenarios, we also notice some limitations of it because of the complexity of node imbalance learning. First, the ReNode method is devised for homogeneously-connected graphs (linked nodes are expected to be similar, such as the various datasets in experiments), and it needs a further update for heterogeneously-connected graphs (such as protein networks). Besides, the ReNode method improves less when the graph connectivity is poor (Section 3.2) or the labeling ratio is extremely low (Section 3.3) because in these cases, the conflict level among nodes is low thus the nodes topological positions are insufficiently reflected.
155
+
156
+ # 5 Related Work
157
+
158
+ Imbalanced classification problems are widespread in real scenarios and have attracted extensive attention from both academia and industry. Most existing studies on this topic focus on the classimbalanced quantity distribution [15], where the model’s inference ability for the majority classes will be significantly better than that of minority classes [12]. The existing methods for solving the quantity-imbalance issue can be roughly divided into methods for the data selection phase and the model training phase. Active learning [31, 10, 42] and Re-sampling [6, 16, 25] are two classical examples designed to construct a quantity-balanced training set . On the other hand, Re-weighting is a simple but effective solution for the model training phase, which adjusts the weights of training samples in different classes based on the labeling sizes [17, 30, 8, 5]. However, directly applying these methods into the graph scene lacks the consideration for the graph-specific topology-imbalance issue. Unlike the re-weight methods which conduct class-lever re-weighting, our ReNode method is a more fine-grained one and assign weights to each node individually.
159
+
160
+ There have been quantity-imbalance studies (Tomek links [38], NearMiss [23], One-Sided Selection [20]) trying to exclude the negative influence of labeling samples close to class boundaries by measuring the similarity of sample features. However, in the graph scene, the prior knowledge contained in node connections is more reliable than directly calculating the feature similarity. Besides, the number of labeled nodes is quite small in the semi-supervised setting. Thus it is not robust to locate their positions by computing similarity among a small number of nodes and we propose to leverage the influence conflict across the whole graph to locate node position to boundaries.
161
+
162
+ Graph data structure owns a wide range of applications, such as social media [13], stock exchange [21], shopping [34], medicine [44], transportation [28] and so on. Similar to other data structures, graph node representation learning also suffer from the quantity-imbalance issue [35]. Apart from the universal quantity-balance approaches introduced in Section 5 which can be transferred to the graph scene, there are some graph-specific quantity-imbalance methods recently proposed. DR-GCN [35] propose two types of regularization to tackle quantity imbalance: class-conditioned adversarial training and unlabeled nodes latent distribution constraint. RA-GCN [11] propose to automatically learn to weight the training samples in different classes in an adversarial training manner. AdaGCN Shi et al. [36] propose to leverage the boosting algorithm to handle the quantity-imbalance issue for the node classification task. GraphSMOTE [49] combines the synthetic node generation and the edge generation to up-sample nodes for the minority classes. However, these studies only pay attention to the quantity imbalance and overlook the topology imbalance.
163
+
164
+ Different from these studies [48, 29, 26] that try to locate the absolute positions for all the nodes by measuring their distance from the selected anchor nodes, our Totoro metric is devised to locate the relative positions to the class boundary for the labeling nodes by considering the influence conflict and can get rid of the dependence on the anchor nodes. Besides, our relative positions can more accurately reflect node class information because we distinguish the information from different classes while existing studies [48, 29] treat all the anchor nodes the same and ignore the class difference.
165
+
166
+ # 6 Conclusion and Future Work
167
+
168
+ In this work, we recognize the topology-imbalance node representation learning (TINL) as a graphspecific imbalance learning problem that has not been studied so far. We find that the topologyimbalance issue widely exists in graphs and severely hinders the learning of node classification. We unify TINL with the quantity-imbalance node representation learning (QINL) by considering the shift of the node influence boundaries from true class boundaries. To measure the degree of topology imbalance, we devise a conflict detection–based metric Totoro to locate node position, and further propose the ReNode method to adaptively adjust the training weights of labeled nodes based on their topological positions. Extensive empirical results have verified the effectiveness of our method in various settings: TINL-only, both TINL and QINL, and large-scale graph. Besides, we also propose the topology-imbalance sensitivity as a new metric to evaluate GNNs.
169
+
170
+ Considering the importance of the topology-imbalance issue and the limitations of our approach, advanced methods with stronger theoretical or experimental support are expected in future work. Moreover, since topology imbalance is widespread in graph-related tasks other than node classification, how to measure and solve the topology-imbalance issues in broader graph scopes remains a meaningful challenge for future study.
171
+
172
+ # 7 Acknowledgement
173
+
174
+ We appreciate all the thoughtful and insightful suggestions from reviews. This work was supported in part by a Tencent Research Grant and National Natural Science Foundation of China (No. 61673028). Xu Sun is the corresponding author of this paper.
175
+
176
+ # References
177
+
178
+ [1] Reid Andersen, Fan R. K. Chung, and Kevin J. Lang. Local Graph Partitioning using PageRank Vectors. In 47th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2006), 21-24 October 2006, Berkeley, California, USA, Proceedings, pages 475–486. IEEE Computer Society, 2006.
179
+ [2] Aleksandar Bojchevski, Johannes Klicpera, Bryan Perozzi, Amol Kapoor, Martin Blais, Benedek Rózemberczki, Michal Lukasik, and Stephan Günnemann. Scaling Graph Neural Networks with Approximate PageRank. In the 26th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, KDD 2020, pages 2464–2473. ACM, 2020.
180
+ [3] Eliav Buchnik and Edith Cohen. Bootstrapped Graph Diffusions: Exposing the Power of Nonlinearity. Proc. ACM Meas. Anal. Comput. Syst., 2(1):10:1–10:19, 2018.
181
+ [4] Mateusz Buda, Atsuto Maki, and Maciej A. Mazurowski. A Systematic Study of the Class Imbalance Problem in Convolutional Neural Networks. Neural Networks, 106:249–259, 2018.
182
+ [5] Kaidi Cao, Colin Wei, Adrien Gaidon, Nikos Aréchiga, and Tengyu Ma. Learning Imbalanced Datasets with Label-Distribution-Aware Margin Loss. In Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 1565–1576, 2019.
183
+ [6] Nitesh V Chawla, Kevin W Bowyer, Lawrence O Hall, and W Philip Kegelmeyer. SMOTE: Synthetic Minority Over-sampling Technique. Journal of artificial intelligence research, 16: 321–357, 2002.
184
+
185
+ [7] Wei-Lin Chiang, Xuanqing Liu, Si Si, Yang Li, Samy Bengio, and Cho-Jui Hsieh. Cluster-GCN: An Efficient Algorithm for Training Deep and Large Graph Convolutional Networks. In the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD 2019, Anchorage, AK, USA, August 4-8, 2019, pages 257–266. ACM, 2019.
186
+
187
+ [8] Yin Cui, Menglin Jia, Tsung-Yi Lin, Yang Song, and Serge J. Belongie. Class-Balanced Loss Based on Effective Number of Samples. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, pages 9268–9277. Computer Vision Foundation / IEEE, 2019.
188
+
189
+ [9] 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 29: Annual Conference on Neural Information Processing Systems 2016, December 5-10, 2016, Barcelona, Spain, pages 3837–3845, 2016.
190
+
191
+ [10] Seyda Ertekin, Jian Huang, and C Lee Giles. Active Learning for Class Imbalance Problem. In the 30th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR 2007, pages 823–824, 2007.
192
+
193
+ [11] Mahsa Ghorbani, Anees Kazi, Mahdieh Soleymani Baghshah, Hamid R. Rabiee, and Nassir Navab. RA-GCN: Graph Convolutional Network for Disease Prediction Problems with Imbalanced Data. arXiv preprint: 2103.00221, 2021.
194
+
195
+ [12] Haixiang Guo, Yijing Li, Jennifer Shang, Gu Mingyun, Huang Yuanyue, and Gong Bing. Learning from Class-Imbalanced Data: Review of Methods and Applications. Expert Syst. Appl., 73:220–239, 2017.
196
+
197
+ [13] William L. Hamilton, Zhitao Ying, and Jure Leskovec. Inductive Representation Learning on Large Graphs. In Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 1024–1034, 2017.
198
+
199
+ [14] Kaveh Hassani and Amir Hosein Khasahmadi. Contrastive Multi-View Representation Learning on Graphs. In the 37th International Conference on Machine Learning, ICML 2020, 13-18 July 2020, Virtual Event, volume 119 of Proceedings of Machine Learning Research, pages 4116–4126. PMLR, 2020.
200
+
201
+ [15] Haibo He and Edwardo A. Garcia. Learning from imbalanced data. IEEE Trans. Knowl. Data Eng., 21(9):1263–1284, 2009.
202
+
203
+ [16] Haibo He, Yang Bai, Edwardo A. Garcia, and Shutao Li. ADASYN: Adaptive synthetic sampling approach for imbalanced learning. In the International Joint Conference on Neural Networks, IJCNN 2008, part of the IEEE World Congress on Computational Intelligence, WCCI 2008, Hong Kong, China, June 1-6, 2008, pages 1322–1328. IEEE, 2008.
204
+
205
+ [17] Chen Huang, Yining Li, Chen Change Loy, and Xiaoou Tang. Learning Deep Representation for Imbalanced Classification. In the 29th IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, pages 5375–5384, 2016.
206
+
207
+ [18] Thomas N Kipf and Max Welling. Semi-supervised Classification with Graph Convolutional Networks. In the 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017.
208
+
209
+ [19] Johannes Klicpera, Aleksandar Bojchevski, and Stephan Günnemann. Predict then Propagate: Graph Neural Networks meet Personalized PageRank. In the 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019.
210
+
211
+ [20] Miroslav Kubat, Stan Matwin, et al. Addressing the Curse of Imbalanced Training Sets: Onesided Selection. In the 14th International Conference on Machine Learning (ICML 1997), Nashville, Tennessee, USA, July 8-12, 1997, volume 97, pages 179–186. Morgan Kaufmann, 1997.
212
+
213
+ [21] Wei Li, Ruihan Bao, Keiko Harimoto, Deli Chen, Jingjing Xu, and Qi Su. Modeling the Stock Relation with Graph Network for Overnight Stock Movement Prediction. In the 29th International Joint Conference on Artificial Intelligence, IJCAI 2020, pages 4541–4547. ijcai.org, 2020.
214
+
215
+ [22] Tsung-Yi Lin, Priya Goyal, Ross B. Girshick, Kaiming He, and Piotr Dollár. Focal Loss for Dense Object Detection. In IEEE International Conference on Computer Vision, ICCV 2017, Venice, Italy, October 22-29, 2017, pages 2999–3007. IEEE Computer Society, 2017.
216
+
217
+ [23] Inderjeet Mani and I Zhang. kNN Approach to Unbalanced Data Distributions: A Case Study Involving Information Extraction. In Workshop on Learning from Imbalanced Datasets, volume 126, 2003.
218
+
219
+ [24] Julian McAuley, Christopher Targett, Qinfeng Shi, and Anton Van Den Hengel. Image-based Recommendations on Styles and Substitutes. In the 38th International ACM SIGIR Conference on Research and Development in Information Retrieval, Santiago, Chile, August 9-13, 2015, pages 43–52. ACM, 2015.
220
+
221
+ [25] Iman Nekooeimehr and Susana K Lai-Yuen. Adaptive Semi-unsupervised Weighted Oversampling (A-SUWO) for Imbalanced Datasets. Expert Systems with Applications, 46:405–416, 2016.
222
+
223
+ [26] Sunil Nishad, Shubhangi Agarwal, Arnab Bhattacharya, and Sayan Ranu. GraphReach: PositionAware Graph Neural Networks using Reachability Estimations. In the 30th International Joint Conference on Artificial Intelligence IJCAI, 2020.
224
+
225
+ [27] Lawrence Page, Sergey Brin, Rajeev Motwani, and Terry Winograd. The PageRank Citation Ranking: Bringing Order to the Web. Technical report, Stanford InfoLab, 1999.
226
+
227
+ [28] Nikolay G Prokoptsev, AE Alekseenko, and Yaroslav Aleksandrovich Kholodov. Traffic Flow Speed Prediction on Transportation Graph with Convolutional Neural Networks. Computer research and modeling, 10(3):359–367, 2018.
228
+
229
+ [29] Zhenyue Qin, Saeed Anwar, Dongwoo Kim, Yang Liu, Pan Ji, and Tom Gedeon. PositionSensing Graph Neural Networks: Proactively Learning Nodes Relative Positions. arXiv preprint: 2105.11346, 2021.
230
+
231
+ [30] Mengye Ren, Wenyuan Zeng, Bin Yang, and Raquel Urtasun. Learning to Reweight Examples for Robust Deep Learning. In International Conference on Machine Learning, pages 4334–4343. PMLR, 2018.
232
+
233
+ [31] Pengzhen Ren, Yun Xiao, Xiaojun Chang, Po-Yao Huang, Zhihui Li, Xiaojiang Chen, and Xin Wang. A Survey of Deep Active Learning. arXiv preprint: 2009.00236, 2020.
234
+
235
+ [32] Yu Rong, Wenbing Huang, Tingyang Xu, and Junzhou Huang. The Truly Deep Graph Convolutional Networks for Node Classification. arXiv preprint: 1907.10903, 2019.
236
+
237
+ [33] Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina EliassiRad. Collective Classification in Network Data. AI magazine, 29(3):93–93, 2008.
238
+
239
+ [34] Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Günnemann. Pitfalls of Graph Neural Network Evaluation. arXiv preprint: 1811.05868, 2018.
240
+
241
+ [35] Min Shi, Yufei Tang, Xingquan Zhu, David A. Wilson, and Jianxun Liu. Multi-Class Imbalanced Graph Convolutional Network Learning. In the 29th International Joint Conference on Artificial Intelligence, IJCAI 2020, pages 2879–2885. ijcai.org, 2020.
242
+
243
+ [36] Shuhao Shi, Kai Qiao, Shuai Yang, L Wang, J Chen, and Bin Yan. AdaGCN: Adaptive Boosting Algorithm for Graph Convolutional Networks on Imbalanced Node Classification. arXiv preprint: 2105.11625, 2021.
244
+
245
+ [37] Marina Sokol, Konstantin Avrachenkov, Paulo Gonçalves, and Alexey Mishenin. Generalized Optimization Framework for Graph-based Semi-supervised Learning. In the 12th SIAM International Conference on Data Mining, Anaheim, California, USA, April 26-28, 2012, pages 966–974. SIAM / Omnipress, 2012.
246
+
247
+ [38] Ivan Tomek et al. Two Modifications of CNN. IEEE Transactions on Systems, Man, and Cybernetics, 1976.
248
+
249
+ [39] Laurens Van der Maaten and Geoffrey Hinton. Visualizing Data using t-SNE. Journal of machine learning research, 9(11), 2008.
250
+
251
+ [40] Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and ´ Yoshua Bengio. Graph Attention Networks. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018.
252
+
253
+ [41] Hongwei Wang and Jure Leskovec. Unifying Graph Convolutional Neural Networks and Label Propagation. arXiv preprint: 2002.06755, 2020.
254
+
255
+ [42] Xinyue Wang, Bo Liu, Siyu Cao, Liping Jing, and Jian Yu. Important Sampling based Active Learning for Imbalance Classification. Science China Information Sciences, 63(8):1–14, 2020.
256
+
257
+ [43] Felix Wu, Amauri Souza, Tianyi Zhang, Christopher Fifty, Tao Yu, and Kilian Weinberger. Simplifying Graph Convolutional Networks. In International Conference on Machine Learning, pages 6861–6871. PMLR, 2019.
258
+
259
+ [44] Zhenqin Wu, Bharath Ramsundar, Evan N Feinberg, Joseph Gomes, Caleb Geniesse, Aneesh S Pappu, Karl Leswing, and Vijay Pande. MoleculeNet: a Benchmark for Molecular Machine Learning. Chemical science, 2018.
260
+
261
+ [45] Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How Powerful are Graph Neural Networks? In the 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019.
262
+
263
+ [46] Yuzhe Yang and Zhi Xu. Rethinking the Value of Labels for Improving Class-Imbalanced Learning. In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020.
264
+
265
+ [47] Zhilin Yang, William W Cohen, and Ruslan Salakhutdinov. Revisiting Semi-supervised Learning with Graph Embeddings. In the 33nd International Conference on Machine Learning, ICML 2016, volume 48 of JMLR Workshop and Conference Proceedings, pages 40–48. JMLR.org, 2016.
266
+
267
+ [48] Jiaxuan You, Rex Ying, and Jure Leskovec. Position-aware Graph Neural Networks. In the 36th International Conference on Machine Learning, ICML 2019, volume 97 of Proceedings of Machine Learning Research, pages 7134–7143. PMLR, 2019.
268
+
269
+ [49] Tianxiang Zhao, Xiang Zhang, and Suhang Wang. GraphSMOTE: Imbalanced Node Classification on Graphs with Graph Neural Networks. In WSDM ’21, The Fourteenth ACM International Conference on Web Search and Data Mining, Virtual Event, Israel, March 8-12, 2021, pages 833–841. ACM, 2021.
270
+
271
+ [50] Dengyong Zhou and Christopher J. C. Burges. Spectral Clustering and Transductive Learning with Multiple Views. In the 24th Annual International Conference on Machine Learning, ICML 2007, volume 227, pages 1159–1166. ACM, 2007.
272
+
273
+ [51] Jie Zhou, Ganqu Cui, Zhengyan Zhang, Cheng Yang, Zhiyuan Liu, and Maosong Sun. Graph Neural Networks: A Review of Methods and Applications. AI Open, 1, 2020.
parse/train/w3x8K0M6sAz/w3x8K0M6sAz_content_list.json ADDED
@@ -0,0 +1,1479 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Topology-Imbalance Learning for Semi-Supervised Node Classification ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 253,
8
+ 122,
9
+ 740,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Deli Chen1,2, Yankai $\\mathbf { L i n } ^ { 1 }$ , Guangxiang Zhao2, Xuancheng Ren2, Peng $\\mathbf { L i } ^ { 1 }$ , Jie $\\mathbf { Z } \\mathbf { h o u } ^ { 1 }$ , $\\mathbf { X } \\mathbf { u } \\mathbf { S } \\mathbf { u } \\mathbf { n } ^ { 2 }$ 1Pattern Recognition Center, WeChat AI, Tencent Inc., China 2MOE Key Lab of Computational Linguistics, School of EECS, Peking University {delichen, yankailin, patrickpli,withtomzhou}@tencent.com {zhaoguangxiang,renxc,xusun}@pku.edu.cn ",
17
+ "bbox": [
18
+ 228,
19
+ 224,
20
+ 769,
21
+ 313
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 462,
31
+ 348,
32
+ 535,
33
+ 364
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "The class imbalance problem, as an important issue in learning node representations, has drawn increasing attention from the community. Although the imbalance considered by existing studies roots from the unequal quantity of labeled examples in different classes (quantity imbalance), we argue that graph data expose a unique source of imbalance from the asymmetric topological properties of the labeled nodes, i.e., labeled nodes are not equal in terms of their structural role in the graph (topology imbalance). In this work, we first probe the previously unknown topology-imbalance issue, including its characteristics, causes, and threats to semisupervised node classification learning. We then provide a unified view to jointly analyzing the quantity- and topology- imbalance issues by considering the node influence shift phenomenon with the Label Propagation algorithm. In light of our analysis, we devise an influence conflict detection–based metric Totoro to measure the degree of graph topology imbalance and propose a model-agnostic method ReNode to address the topology-imbalance issue by re-weighting the influence of labeled nodes adaptively based on their relative positions to class boundaries. Systematic experiments demonstrate the effectiveness and generalizability of our method in relieving topology-imbalance issue and promoting semi-supervised node classification. The further analysis unveils varied sensitivity of different graph neural networks (GNNs) to topology imbalance, which may serve as a new perspective in evaluating GNN architectures.1 ",
40
+ "bbox": [
41
+ 233,
42
+ 380,
43
+ 766,
44
+ 655
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 Introduction ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 174,
54
+ 683,
55
+ 310,
56
+ 700
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Graph is a widely-used data structure [51], where the nodes are connected to each other through natural or handcrafted edges. Similar to other data structures, the representation learning for node classification faces the challenge of quantity-imbalance issue, where the labeling size varies among classes and the decision boundaries of trained classifiers are mainly decided by the majority classes [46]. There have been a series of studies [35, 11, 49] handling the Quantity-Imbalance Node Representation Learning (short as QINL). However, different with other data structures, graph-structured data suffers from another aspect of the imbalance problem: the imbalance caused by the asymmetric and uneven topology of labeled nodes, where the decision boundaries are driven by the labeled nodes close to the topological class boundaries (left of Figure 1) thus interfering with the model learning. ",
63
+ "bbox": [
64
+ 174,
65
+ 714,
66
+ 825,
67
+ 839
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Present Work. For the first time, we recognize the Topology-Imbalance Node Representation Learning (short as TINL) as a graph-specific imbalance learning topic, which mainly focus on the decision boundaries shift phenomena driven by the topology imbalance in graph and is an essential component for node imbalance learning. Comparing with the well-explored QINL that studies the imbalance caused by the numbers of labeled nodes, TINL explores the imbalance caused by the positions of labeled nodes and owns the following characteristics: ",
74
+ "bbox": [
75
+ 176,
76
+ 845,
77
+ 823,
78
+ 873
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "image",
84
+ "img_path": "images/3c5d5345b792342769fcf85d480df7dfaf12f9fa1c75f46eec6382748a5fb423.jpg",
85
+ "image_caption": [
86
+ "Figure 1: Schematic diagram of the topology-imbalance issue in node representation learning. The color and the hue denote the type and the intensity of each node’s received influence from the labeled nodes, respectively. The left shows that nodes close to the boundary have the risk of information conflict and nodes far away from labeled nodes have the risk of information insufficient. The right shows that our method can decrease the training weights of labeled nodes (R1) close to the class boundary and increase the weights of labeled nodes (B and R2) close to the class centers, thus relieving the topology-imbalance issue. "
87
+ ],
88
+ "image_footnote": [],
89
+ "bbox": [
90
+ 210,
91
+ 0,
92
+ 784,
93
+ 213
94
+ ],
95
+ "page_idx": 1
96
+ },
97
+ {
98
+ "type": "text",
99
+ "text": "",
100
+ "bbox": [
101
+ 176,
102
+ 347,
103
+ 825,
104
+ 402
105
+ ],
106
+ "page_idx": 1
107
+ },
108
+ {
109
+ "type": "text",
110
+ "text": "• Ubiquity: Due to the complex connections of the graph nodes, the topology structure of nodes in different categories is naturally asymmetric, which makes TINL an essential characteristic in node representation learning. Hence, it is difficult to construct a completely symmetric labeling set even with an abundant annotation budget. • Perniciousness: The influence from labeled nodes decays with the topology distance [3]. The asymmetric topology of labeled nodes in different classes and the uneven distribution of labeled nodes in the same class will cause the influence conflict and influence insufficient problems (left of Figure 1) respectively, resulting in a shift of decision boundaries. • Orthogonality: Quantity-imbalance studies [49, 8, 5] usually treat the labeled nodes of the same class as a whole and devise solutions based on the total numbers of each class, while TINL explores the influence of the unique position of each labeled node on decision boundaries. Thus, TINL is independent of QINL in terms of the object of study. ",
111
+ "bbox": [
112
+ 217,
113
+ 414,
114
+ 825,
115
+ 588
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "Exploring TINL is of great importance for node representation learning due to its ubiquity and perniciousness. However, the methods [17, 22] for quantity imbalance can be hardly applied to TINL because of the orthogonality. To remedy the topology-imbalance issue, thus promoting the node classification, we propose a model-agnostic training framework ReNode to re-weight the labeled nodes according to their positions. We devise the conflict detection-based Topology Relative Location (Totoro) metric to leverage the interaction among labeled nodes across the whole graph to locate their structural positions. Based on the Totoro metric, we further increase the training weights of nodes with small conflict that are highly likely to be close to topological class centers to make them play a more pivotal role during training, and vice versa (right of Figure 1). Empirical results of various imbalance scenarios (TINL, QINL, large-scale graph) and multiple graph neural networks (GNNs) demonstrate the effectiveness and generalizability of our method. Besides, we provide the sensitivity to topology imbalance as a new evaluation perspective for different GNN architectures. ",
122
+ "bbox": [
123
+ 173,
124
+ 599,
125
+ 825,
126
+ 765
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "2 Topology-Imbalance Node Representation Learning ",
133
+ "text_level": 1,
134
+ "bbox": [
135
+ 176,
136
+ 784,
137
+ 638,
138
+ 801
139
+ ],
140
+ "page_idx": 1
141
+ },
142
+ {
143
+ "type": "text",
144
+ "text": "2.1 Notations and Preliminary ",
145
+ "text_level": 1,
146
+ "bbox": [
147
+ 176,
148
+ 814,
149
+ 398,
150
+ 830
151
+ ],
152
+ "page_idx": 1
153
+ },
154
+ {
155
+ "type": "text",
156
+ "text": "In this work, we follow the well-established semi-supervised node classification setting [47, 18] to conduct analyses and experiments. Given an undirected and unweighted graph $\\mathcal { G } = ( \\boldsymbol { \\nu } , \\pmb { \\varepsilon } , \\pmb { c } )$ , where $\\nu$ is the node set represented by the feature matrix $\\boldsymbol { X } \\in \\mathbb { R } ^ { n * d }$ $\\dot { \\boldsymbol { n } } = | \\boldsymbol { \\nu } |$ is the node size and $d$ is the node embedding dimension), $\\varepsilon$ is the edge set which is represented by an adjacency matrix $A \\in \\mathbb { R } ^ { n * n }$ , $\\pmb { \\mathcal { L } } \\subset \\nu$ is the labeled node set and usually we have $| \\bar { \\boldsymbol { L } } | \\ll | \\boldsymbol { \\nu } |$ , the node classification task is to train a classifier $\\mathcal { F }$ (usually a GNN) to predict the class label y for the unlabeled node set $u = \\nu - c$ . The training sets for different classes are represented by $( \\pmb { \\mathscr { C } } _ { 1 } , \\pmb { \\mathscr { C } } _ { 2 } , \\cdots , \\pmb { \\mathscr { C } } _ { k } )$ and $k$ is the number of classes. The labeling ratio $\\delta = \\angle \\mathcal { x } / \\nu$ is the proportion of labeled nodes in all nodes. In this work, we focus on TINL in homogeneously-connected graphs and hope to inspire future studies on the critical topology-imbalance issue. ",
157
+ "bbox": [
158
+ 174,
159
+ 840,
160
+ 825,
161
+ 911
162
+ ],
163
+ "page_idx": 1
164
+ },
165
+ {
166
+ "type": "image",
167
+ "img_path": "images/25999ec10387c1b8ccfbc868ce85fd4adb3997f394bbe9fe5415c3fa41a2bab0.jpg",
168
+ "image_caption": [
169
+ "Figure 2: Node influence and boundary shift caused by quantity- and topology-imbalance. (a): The prediction results of GCN and LP are highly consistent (t-SNE [39] visualization of the $C O R A$ dataset). (b): The node influence boundary (the yellow dotted line) is shifted towards the small class from the true class boundary (the black dotted line) under the quantity- and topology-imbalance scene. (c): The node influence boundary is shifted towards the large class under the quantity-balanced, topology-imbalanced scene. We regard the large class as positive class to indicate the results. "
170
+ ],
171
+ "image_footnote": [],
172
+ "bbox": [
173
+ 194,
174
+ 90,
175
+ 808,
176
+ 223
177
+ ],
178
+ "page_idx": 2
179
+ },
180
+ {
181
+ "type": "text",
182
+ "text": "",
183
+ "bbox": [
184
+ 173,
185
+ 344,
186
+ 825,
187
+ 415
188
+ ],
189
+ "page_idx": 2
190
+ },
191
+ {
192
+ "type": "text",
193
+ "text": "2.2 Understanding Topology Imbalance via Label Propagation ",
194
+ "text_level": 1,
195
+ "bbox": [
196
+ 173,
197
+ 433,
198
+ 620,
199
+ 449
200
+ ],
201
+ "page_idx": 2
202
+ },
203
+ {
204
+ "type": "text",
205
+ "text": "From Figure 1, we can intuitively perceive the imbalance brought by the positions of labeled nodes; in this part, we further explore the nature of topology imbalance with the well-known Label Propagation [50] algorithm (short as LP) and provide a uniform analysis framework for the comprehensive node imbalance issue. In LP, labels are propagated from the labeled nodes and aggregated along edges, which can also be viewed as a random walk process from labeled nodes. The convergence result $\\mathbf { Y }$ after repeated propagation is regarded as the nodes soft-labels: ",
206
+ "bbox": [
207
+ 173,
208
+ 459,
209
+ 825,
210
+ 542
211
+ ],
212
+ "page_idx": 2
213
+ },
214
+ {
215
+ "type": "equation",
216
+ "img_path": "images/42bcb685bc540a9eee6075578f556e2471c48f1ff915ac1c346657af459f487b.jpg",
217
+ "text": "$$\n\\pmb { Y } = \\alpha ( \\pmb { I } - ( 1 - \\alpha ) \\pmb { A } ^ { \\prime } ) ^ { - 1 } \\pmb { Y } ^ { 0 } ,\n$$",
218
+ "text_format": "latex",
219
+ "bbox": [
220
+ 395,
221
+ 550,
222
+ 602,
223
+ 569
224
+ ],
225
+ "page_idx": 2
226
+ },
227
+ {
228
+ "type": "text",
229
+ "text": "where $\\pmb { I }$ is the identity matrix, $\\alpha \\in ( 0 , 1 ]$ is the random walk restart probability, $A ^ { \\prime } = D ^ { - { \\frac { 1 } { 2 } } } A D ^ { - { \\frac { 1 } { 2 } } }$ is the adjacency matrix normalized by the diagonal degree matrix $_ { D }$ , $\\mathbf { \\dot { Y } } ^ { 0 }$ is the initial label distribution where labeled nodes are represented by the one-hot vectors. The prediction label for the $i$ -th node is $q _ { i } = \\arg \\operatorname* { m a x } _ { j } Y _ { i j }$ . LP is a simple yet successful model [37] and can be unified with GNN models owning the message-passing mechanism [41]. From Figure 2(a), we can empirically find that there is a significant correlation between the results of LP and GCN (T/F indicates prediction is True/False). ",
230
+ "bbox": [
231
+ 173,
232
+ 579,
233
+ 825,
234
+ 664
235
+ ],
236
+ "page_idx": 2
237
+ },
238
+ {
239
+ "type": "text",
240
+ "text": "The LP prediction $\\pmb q$ can be viewed as the distribution of the (labeled) node influence [41] (i.e. each node is mostly influenced by which class’s information); hence the boundaries of the node influence can act as an effective reflection for the GNN model decision boundaries considering the high consistency between LP and GNN. Moreover, node influence offers a unified view of TINL and QINL: ideally, the node influence boundaries should be consistent with the true class boundaries, but both the labeled nodes’ numbers (QINL) and positions (TINL) can cause a shift of the node influence boundaries from the true one, resulting in deviation of the model decision boundaries. ",
241
+ "bbox": [
242
+ 173,
243
+ 669,
244
+ 825,
245
+ 767
246
+ ],
247
+ "page_idx": 2
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "Node imbalance issue is composed of topology- and quantity-imbalance. Figure 2 illustrates two examples of node influence boundary shift. In Figure 2(b), when the uniform selection is adopted to generate training set, both the quantity and the topology are imbalanced for model training; then the large class with more total nodes (denotes by blue color) will own stronger influence than the small class with fewer total nodes (denotes by red color) due to the quantity advantage and the node influence boundary is shifted towards the small class. In Figure 2(c), when the quantity-balanced strategy is adopted for sampling training nodes, it will be easier for the small class to has more labeled nodes close to the class boundary and the boundary of the node influence is shifted into the large class. We can find that even when the training set is quantity-balanced, the topology-imbalance issue still exists and hinders the node classification learning. Hence, we can conclude that node imbalance learning is caused by the joint effect of TINL and QINL. Separately considering TINL or QINL will lead to a one-sided solution to node imbalance learning. ",
252
+ "bbox": [
253
+ 173,
254
+ 772,
255
+ 825,
256
+ 911
257
+ ],
258
+ "page_idx": 2
259
+ },
260
+ {
261
+ "type": "image",
262
+ "img_path": "images/f912716e23c177a4938148c7a1170b81fdfe86390b15dbfd19bd85e1becda3fb.jpg",
263
+ "image_caption": [
264
+ "Figure 3: Effectiveness of Totoro at (a) Node Level: labeled nodes (t-SNE visualization of the CORA dataset) with less influence conflict (lighter color) are farther-away from class boundaries than those with high conflict (darker color), and (b) Dataset Level: There is a significant negative correlation between the GNN (GCN) performance and overall conflict of the training set (the Pearson correlation coefficient is $- 0 . 6 1 8$ over 50 randomly selected training sets with the $p$ value smaller than 0.01). "
265
+ ],
266
+ "image_footnote": [],
267
+ "bbox": [
268
+ 232,
269
+ 90,
270
+ 764,
271
+ 247
272
+ ],
273
+ "page_idx": 3
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "",
278
+ "bbox": [
279
+ 173,
280
+ 353,
281
+ 823,
282
+ 381
283
+ ],
284
+ "page_idx": 3
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "2.3 Measuring Topology Imbalance by Influence Conflict ",
289
+ "text_level": 1,
290
+ "bbox": [
291
+ 173,
292
+ 397,
293
+ 581,
294
+ 412
295
+ ],
296
+ "page_idx": 3
297
+ },
298
+ {
299
+ "type": "text",
300
+ "text": "Although we have realized that the imbalance of node topology interferes with model learning, how to measure the labeled node’s relative topological position to its class (being far away from or close to the class center) remains the key challenge in handling the topology-imbalance issue due to the complex graph connections and the unknown class labels for most nodes in the graph. As the nodes are homogeneously connected when constructing the graph, even nodes close to the class boundaries own similar characteristics to their neighbors. Thus it is unreliable to leverage the difference between the characteristics of one labeled node and its surrounding subgraphs to locate its topological position. Instead, we propose to utilize the node topology information by considering the node influence conflict across the whole graph and devise the Conflict Detection-based Topology Relative Location metric (Totoro). ",
301
+ "bbox": [
302
+ 174,
303
+ 421,
304
+ 825,
305
+ 561
306
+ ],
307
+ "page_idx": 3
308
+ },
309
+ {
310
+ "type": "text",
311
+ "text": "Similar to Eq (1), we calculate the Personalized PageRank [27] matrix $_ { r }$ to measure node influence distribution from each labeled node: ",
312
+ "bbox": [
313
+ 174,
314
+ 568,
315
+ 823,
316
+ 595
317
+ ],
318
+ "page_idx": 3
319
+ },
320
+ {
321
+ "type": "equation",
322
+ "img_path": "images/e827f488f2cb6f4bae1776661058118e29eb4a6a3cf0b0275ff28b885f7fb059.jpg",
323
+ "text": "$$\nP = \\alpha ( { \\cal I } - ( 1 - \\alpha ) A ^ { \\prime } ) ^ { - 1 } .\n$$",
324
+ "text_format": "latex",
325
+ "bbox": [
326
+ 406,
327
+ 599,
328
+ 591,
329
+ 619
330
+ ],
331
+ "page_idx": 3
332
+ },
333
+ {
334
+ "type": "text",
335
+ "text": "Node influence conflict denotes topological position. According to related studies [41, 19, 2], $_ { r }$ can be viewed as the distribution of influence exerted outward from each node. We assume that if a labeled node $v \\in \\nu$ encounters strong heterogeneous influence from the other classes’ labeled nodes in the subgraph around node $v$ where node $v$ itself owns great influence, we have the conclusion that node $v$ meets large influence conflict in message passing and it is close to topological class boundaries, and vice versa. Based on this hypothesis, we take the expectation of the influence conflict between the node $v$ and the labeled nodes from other classes when node $v$ randomly walks across the entire graph as a measurement of how topologically close node $v$ is to the center of the class it belongs to. The Totoro value of node $v$ is computed as: ",
336
+ "bbox": [
337
+ 173,
338
+ 631,
339
+ 825,
340
+ 757
341
+ ],
342
+ "page_idx": 3
343
+ },
344
+ {
345
+ "type": "equation",
346
+ "img_path": "images/ced03fa0654fa8e24cf5155f24288804077529fb029dcce36ba9dafdf7019461.jpg",
347
+ "text": "$$\n\\pmb { T } _ { v } = \\mathbb { E } _ { \\boldsymbol { x } \\sim \\pmb { P } _ { v , : } } [ \\sum _ { \\substack { j \\in [ 1 , k ] , j \\neq y _ { v } } } \\frac { 1 } { | \\pmb { \\mathcal { C } } _ { j } | } \\sum _ { i \\in \\pmb { \\mathcal { C } } _ { j } } \\pmb { P } _ { i , x } ] ,\n$$",
348
+ "text_format": "latex",
349
+ "bbox": [
350
+ 357,
351
+ 761,
352
+ 638,
353
+ 801
354
+ ],
355
+ "page_idx": 3
356
+ },
357
+ {
358
+ "type": "text",
359
+ "text": "where $\\mathbf { \\nabla } _ { \\mathbf { y } _ { v } }$ is the ground-truth label of node $v$ , $P _ { v }$ indicates the personalized PageRank probability vector for the node $v$ . A larger Totoro value $\\mathbf { \\delta } _ { \\mathbf { \\mathcal { T } } _ { v } }$ indicates that node $v$ is topologically closer to class boundaries, and vice versa. The normalization item $1 / | c _ { j } |$ is added to make the influence from the different classes comparable when computing conflict. ",
360
+ "bbox": [
361
+ 174,
362
+ 806,
363
+ 825,
364
+ 863
365
+ ],
366
+ "page_idx": 3
367
+ },
368
+ {
369
+ "type": "text",
370
+ "text": "We visualize the node labels and the Totoro values (scaled to $[ 0 , 1 ] $ ) of labeled nodes in Figure 3(a). We can find that the labeled nodes with smaller Totoro values are farther away from the class boundaries, demonstrating the effectiveness of Totoro in locating the positions of labeled nodes. Besides, we sum the conflict of all the labeled nodes $\\textstyle \\sum _ { b \\in { \\mathcal { L } } } T _ { v }$ to measure the overall conflict of the dataset, which can be viewed as the metric for the overall topology imbalance given the graph $\\mathfrak { g }$ and the training set $\\mathcal { L }$ . Figure 3(b) shows that there is a significant negative correlation between the overall conflict and the model performance, which further demonstrates the effectiveness of Totoro in measuring the intensity of topology imbalance at the dataset level. ",
371
+ "bbox": [
372
+ 174,
373
+ 869,
374
+ 825,
375
+ 911
376
+ ],
377
+ "page_idx": 3
378
+ },
379
+ {
380
+ "type": "text",
381
+ "text": "",
382
+ "bbox": [
383
+ 174,
384
+ 90,
385
+ 825,
386
+ 161
387
+ ],
388
+ "page_idx": 4
389
+ },
390
+ {
391
+ "type": "text",
392
+ "text": "2.4 Alleviate Topology Imbalance by Instance-wise Node Re-weighting ",
393
+ "text_level": 1,
394
+ "bbox": [
395
+ 174,
396
+ 176,
397
+ 676,
398
+ 193
399
+ ],
400
+ "page_idx": 4
401
+ },
402
+ {
403
+ "type": "text",
404
+ "text": "In this section, we introduce ReNode, a model-agnostic training weight schedule mechanism to address TINL for general GNN encoder in a plug-and-play manner. Inspired by the analysis in Section 2.2, the ReNode method is devised to promote the training weights of the labeled nodes that are close to the topological class centers, so as to make these nodes play a more active role in model learning, and vice versa. Specifically, we devise a cosine annealing mechanise 2 for the training node weights based on their Totoro values: ",
405
+ "bbox": [
406
+ 174,
407
+ 202,
408
+ 825,
409
+ 286
410
+ ],
411
+ "page_idx": 4
412
+ },
413
+ {
414
+ "type": "equation",
415
+ "img_path": "images/97fa692803647ece0e15e8dc9163cbf376d0f9667dfe1963ea76ebb6f2d2a15e.jpg",
416
+ "text": "$$\n{ \\pmb w } _ { v } = w _ { \\mathrm { m i n } } + \\frac { 1 } { 2 } ( w _ { \\mathrm { m a x } } - w _ { \\mathrm { m i n } } ) ( 1 + \\cos ( \\frac { \\mathrm { R a n k } ( { \\pmb T } _ { v } ) } { | { \\pmb L } | } \\pi ) ) , \\quad v \\in { \\pmb C }\n$$",
417
+ "text_format": "latex",
418
+ "bbox": [
419
+ 285,
420
+ 292,
421
+ 714,
422
+ 327
423
+ ],
424
+ "page_idx": 4
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "where $\\pmb { w } _ { v }$ is the modified training weight for the labeled node $v , w _ { \\mathrm { m i n } } , w _ { \\mathrm { m a x } }$ are the hyper-parameters indicating the lower bound and upper bound of the weight correction factor, $\\mathrm { R a n k } ( \\pmb { T } _ { v } )$ is the ranking order of $\\mathbf { \\delta } _ { \\mathbf { \\mathcal { T } } _ { v } }$ from the smallest to the largest. The training loss $L _ { T }$ for the quantity-balanced, topologyimbalanced node classification task is computed by the following equations: ",
429
+ "bbox": [
430
+ 176,
431
+ 332,
432
+ 825,
433
+ 388
434
+ ],
435
+ "page_idx": 4
436
+ },
437
+ {
438
+ "type": "equation",
439
+ "img_path": "images/40cd7196ef8bd4df78cc3f6c94cf3f60db3b71d839a0cc42b944755b0b8fc868.jpg",
440
+ "text": "$$\nL _ { T } = - \\frac { 1 } { | { \\cal { L } } | } \\sum _ { v \\in { \\cal { L } } } w _ { v } \\sum _ { c = 1 } ^ { k } y _ { v } ^ { * c } \\log \\ g _ { v } ^ { c } , \\quad g = \\mathrm { s o f t m a x } ( { \\mathcal { F } } ( X , A , \\theta ) ) ,\n$$",
441
+ "text_format": "latex",
442
+ "bbox": [
443
+ 272,
444
+ 395,
445
+ 723,
446
+ 439
447
+ ],
448
+ "page_idx": 4
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "where $\\mathcal { F }$ denotes any GNN encoder, $\\pmb \\theta$ is the parameter of ${ \\mathcal { F } } , g _ { i }$ is the GNN output for node $i$ , $\\mathbf { \\nabla } _ { \\mathbf { \\boldsymbol { y } } _ { i } ^ { * } }$ is the gold label for node $i$ in one-hot embedding. By encouraging the positive effects of the labeled nodes near the class topological centers, and reducing the negative effects of those near the topological class boundaries, our ReNode method is expected to minimize the deviation between the node influence boundaries and the true class boundaries, so as to correct the class imbalance caused by the positions of labeled nodes. ",
453
+ "bbox": [
454
+ 173,
455
+ 445,
456
+ 826,
457
+ 530
458
+ ],
459
+ "page_idx": 4
460
+ },
461
+ {
462
+ "type": "text",
463
+ "text": "ReNode to Jointly Handle TINL and QINL In this part, we introduce the application of the ReNode method in a more general graph imbalance scenario where both the topology- and quantityimbalance issues exist. As analyzed in previous sections, the TINL and QINL are orthogonal problems. Therefore, we propose that our ReNode method based on (labeled) node topology can be seamlessly combined with the existing methods designed for the quantity-imbalance learning. Without loss of generality, we present how our ReNode method can be combined with the vanilla class frequency-based re-weight method [17]. The training loss $L _ { Q }$ for the quantity-imbalanced, topology-imbalanced node classification task is formalized in the following equation: ",
464
+ "bbox": [
465
+ 173,
466
+ 542,
467
+ 826,
468
+ 656
469
+ ],
470
+ "page_idx": 4
471
+ },
472
+ {
473
+ "type": "equation",
474
+ "img_path": "images/550bbdc0f33c4f67fad7538f929d6d585fa604bbd528576f360259da3d083c28.jpg",
475
+ "text": "$$\nL _ { Q } = - \\frac { 1 } { | \\mathcal { L } | } \\sum _ { v \\in \\mathcal { L } } w _ { v } \\frac { | \\bar { \\mathcal { C } } | } { | \\mathcal { C } _ { j } | } \\sum _ { c = 1 } ^ { k } { y } _ { v } ^ { * c } \\log \\textbf { \\em g } _ { v } ^ { c } ,\n$$",
476
+ "text_format": "latex",
477
+ "bbox": [
478
+ 359,
479
+ 661,
480
+ 637,
481
+ 707
482
+ ],
483
+ "page_idx": 4
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "where $| \\bar { c } |$ is the average number of the class training sizes. With this method, the final weight of the labeled node is affected by two perspectives: training examples of the minority classes will have higher weights than that of the majority classes; training examples close to the topological class centers will have higher weights than those are close to the topological class boundaries. ",
488
+ "bbox": [
489
+ 173,
490
+ 713,
491
+ 825,
492
+ 771
493
+ ],
494
+ "page_idx": 4
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "ReNode for Large-scale Graph There are mainly two challenges when applying ReNode to largescale graphs: (1) how to calculate the PageRank matrix, and (2) how to train the GNN model in an inductive setting [13]. In this work, we follow the PPRGo method [2] to implement our method on the large-scale graph, which can decouple the feature learning process from the information transmission process to resolve the dependence on the global graph topology structure and can be carried out much efficiently. Following PPRGo, the Personalized PageRank matrix $\\hat { P }$ and the corresponding training ReNode factor $\\hat { \\pmb { w } }$ are generated by the estimation method from Andersen et al. [1] and then $\\hat { P }$ is directly employed as the aggregation weights from all the other nodes regardless of their topology distance from the current node: ",
499
+ "bbox": [
500
+ 173,
501
+ 785,
502
+ 825,
503
+ 888
504
+ ],
505
+ "page_idx": 4
506
+ },
507
+ {
508
+ "type": "table",
509
+ "img_path": "images/00496b03416eee86d41061c56867037edfd20150971023a1fb06382e90a276e9.jpg",
510
+ "table_caption": [
511
+ "Table 1: ReNode (short as RN) for the pure topology-imbalance issue. We report Weighted-F1 (W-F, $\\%$ ), Macro-F1 (M-F, $\\%$ ) and the corresponding standard deviation for each group of experiments. $^ *$ and $^ { \\ast \\ast }$ represent the result is significant in student t-test with $p < 0 . 0 5$ and $p < 0 . 0 1$ , respectively. "
512
+ ],
513
+ "table_footnote": [],
514
+ "table_body": "<table><tr><td rowspan=\"2\">Model</td><td rowspan=\"2\">Training</td><td colspan=\"2\">CORA</td><td colspan=\"2\">CiteSeer</td><td colspan=\"2\">PubMed</td><td colspan=\"2\">Photo</td><td colspan=\"2\">Computers</td></tr><tr><td>W-F</td><td>M-F</td><td>W-F</td><td>M-F</td><td>W-F</td><td>M-F</td><td>W-F</td><td>M-F</td><td>W-F</td><td>M-F</td></tr><tr><td rowspan=\"2\">GCN</td><td>w/oRN</td><td>79.1±1.1</td><td>77.8±1.5</td><td>66.2±1.0</td><td>62.0±1.3</td><td>74.6±2.1</td><td>74.7±1.9</td><td>86.8±2.0</td><td>84.7±1.7</td><td>74.2±2.6</td><td>73.6±2.9</td></tr><tr><td>w/RN</td><td>79.8**±0.9</td><td>78.6**±1.2</td><td>66.9* ±1.1</td><td>62.8* ±1.4</td><td>76.1** ±1.5</td><td>76.1**±1.8</td><td>87.7**±2.2</td><td>85.4**±1.9</td><td>74.7* ±2.2</td><td>74.5**±2.3</td></tr><tr><td rowspan=\"2\">GAT</td><td>w/o RN</td><td>76.0±1.7</td><td>74.9±1.9</td><td>66.3±2.8</td><td>62.4±2.6</td><td>73.9±2.2</td><td>73.9±2.1</td><td>88.3±2.0</td><td>86.2±2.2</td><td>79.0±2.1</td><td>78.8±2.3</td></tr><tr><td>W/RN</td><td>77.7**±*2.0</td><td>76.2**±1.8</td><td>67.1*±1.9</td><td>63.2*±1.6</td><td>75.2**±2.0</td><td>75.1**±2.5</td><td>89.1**±2.0</td><td>87.1**±2.0</td><td>78.8±1.9</td><td>78.7±2.0</td></tr><tr><td rowspan=\"2\">PPNP</td><td>w/oRN</td><td>80.5±1.6</td><td>79.1±1.4</td><td>67.5±1.8</td><td>63.2±1.6</td><td>74.6±1.9</td><td>74.7±1.7</td><td>89.3±1.3</td><td>86.8±1.4</td><td>78.7±1.5</td><td>77.7±1.7</td></tr><tr><td>w/RN</td><td>81.9**±0.6</td><td>80.5**±0.8</td><td>68.1* ±1.4</td><td>63.7* ±2.0</td><td>76.0**±2.0</td><td>76.1**±2.2</td><td>89.7*±1.0</td><td>87.2* ±1.3</td><td>79.0* ±1.1</td><td>78.3* ±11</td></tr><tr><td rowspan=\"2\">SAGE</td><td>w/o RN</td><td>75.1±1.7</td><td>74.6±1.4</td><td>67.0±1.4</td><td>63.0±1.4</td><td>74.2±2.2</td><td>74.2±2.1</td><td>86.2±2.6</td><td>83.9±2.4</td><td>73.5±3.4</td><td>71.6±2.5</td></tr><tr><td>w/RN</td><td>75.7**±1.7</td><td>75.1**±1.4</td><td>67.3±1.4</td><td>63.5* ±1.2</td><td>74.9**±1.9</td><td>78.2**±2.3</td><td>86.5±1.7</td><td>84.1±1.7</td><td>74.9**±3.0</td><td>72.3**±2.5</td></tr><tr><td rowspan=\"2\">CHEB</td><td>w/oRN</td><td>74.5±1.1</td><td>73.4±1.1</td><td>66.8±1.8</td><td>63.2±1.6</td><td>75.1±1.8</td><td>75.2±1.1</td><td>82.1±2.2</td><td>79.4±3.5</td><td>70.3±4.0</td><td>68.4±3.4</td></tr><tr><td>w/RN</td><td>75.3**±1.1</td><td>74.0**±1.1</td><td>67.5**±1.6</td><td>63.8**±1.5</td><td>76.2**±1.4</td><td>76.3**±1.2</td><td>84.8**±2.4</td><td>82.1**±2.8</td><td>70.5±4.0</td><td>68.6±3.4</td></tr><tr><td rowspan=\"2\">SGC</td><td>w/oRN</td><td>74.9±2.1</td><td>73.8±2.1</td><td>65.7±1.6</td><td>61.8±1.6</td><td>72.9±2.3</td><td>73.1±2.6</td><td>87.1±1.3</td><td>84.9±11</td><td>77.4±1.7</td><td>76.8±1.8</td></tr><tr><td>w/RN</td><td>77.0**±1.1</td><td>76.0**±1.1</td><td>67.2**±1.3</td><td>62.9**±1.8</td><td>73.7**±2.8</td><td>73.8**±2.1</td><td>87.4±1.5</td><td>85.2±1.5</td><td>78.2**±1.8</td><td>77.8**±1.2</td></tr></table>",
515
+ "bbox": [
516
+ 176,
517
+ 138,
518
+ 820,
519
+ 275
520
+ ],
521
+ "page_idx": 5
522
+ },
523
+ {
524
+ "type": "table",
525
+ "img_path": "images/13e36310934705c5781a87916fbfdcec3ac3224954790f2a39226e1b68937f5b.jpg",
526
+ "table_caption": [
527
+ "Table 2: Result of different dataset conflict levels (High/Middle/Low). Our ReNode method improve the GNN (GCN) performance most when the conflict level of graph is high. "
528
+ ],
529
+ "table_footnote": [],
530
+ "table_body": "<table><tr><td>W-F(%)</td><td>CORA-H</td><td>CORA-M</td><td>CORA-L</td><td>CiteSeer-H</td><td>CiteSeer-M</td><td>CiteSeer-L</td><td>PubMed-H</td><td>PubMed-M</td><td>|PubMed-L</td></tr><tr><td>w/o RN w/RN</td><td>76.5±1.3 78.7**±0.8</td><td>78.4±0.7 79.3**±0.6</td><td>79.7±0.8 80.4**±0.6</td><td>62.6±1.5 63.8**±1.3</td><td>65.3±0.6 66.0**±0.8</td><td>67.3±1.1 67.5±1.4</td><td>72.1±2.4 74.3**±2.1</td><td>74.7±1.8 75.6**±1.9</td><td>78.3±1.8 78.8* ±1.5</td></tr></table>",
531
+ "bbox": [
532
+ 176,
533
+ 325,
534
+ 818,
535
+ 366
536
+ ],
537
+ "page_idx": 5
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "",
542
+ "bbox": [
543
+ 173,
544
+ 393,
545
+ 821,
546
+ 421
547
+ ],
548
+ "page_idx": 5
549
+ },
550
+ {
551
+ "type": "equation",
552
+ "img_path": "images/c1d448c4035fcc19ece2457264f5788047bdd7c12f8b0da0ea4e63a6a5003357.jpg",
553
+ "text": "$$\n\\pmb { g } ^ { \\prime } = \\mathrm { s o f t m a x } ( \\hat { P } \\mathcal { F } ^ { \\prime } ( \\pmb { X } , \\pmb { \\theta } ^ { \\prime } ) ) ,\n$$",
554
+ "text_format": "latex",
555
+ "bbox": [
556
+ 400,
557
+ 426,
558
+ 594,
559
+ 446
560
+ ],
561
+ "page_idx": 5
562
+ },
563
+ {
564
+ "type": "text",
565
+ "text": "where ${ \\mathcal { F } } ^ { \\prime }$ can be a linear layer or a multi-layer perceptron with parameter $\\theta ^ { \\prime }$ . The final training loss for large-scale graph $L _ { L }$ follows Eq (5) and (6), and replaces $\\pmb { w }$ and $\\textbf { { g } }$ with $\\hat { \\pmb { w } }$ and $\\pmb { g } ^ { \\prime }$ . ",
566
+ "bbox": [
567
+ 171,
568
+ 454,
569
+ 825,
570
+ 483
571
+ ],
572
+ "page_idx": 5
573
+ },
574
+ {
575
+ "type": "text",
576
+ "text": "3 Experiments ",
577
+ "text_level": 1,
578
+ "bbox": [
579
+ 174,
580
+ 502,
581
+ 312,
582
+ 520
583
+ ],
584
+ "page_idx": 5
585
+ },
586
+ {
587
+ "type": "text",
588
+ "text": "In this section, we will first introduce the experimental datasets for both transductive and inductive semi-supervised node classification. Then we introduce the experiments to verify the effectiveness of the proposed ReNode method in three different imbalance situations: (1) TINL only, (2) TINL and QINL, (3) Large-scale Graph. ",
589
+ "bbox": [
590
+ 174,
591
+ 534,
592
+ 825,
593
+ 590
594
+ ],
595
+ "page_idx": 5
596
+ },
597
+ {
598
+ "type": "text",
599
+ "text": "3.1 Datasets ",
600
+ "text_level": 1,
601
+ "bbox": [
602
+ 174,
603
+ 607,
604
+ 272,
605
+ 621
606
+ ],
607
+ "page_idx": 5
608
+ },
609
+ {
610
+ "type": "text",
611
+ "text": "We adopt two sets of graph datasets to conduct experiments. For the transductive setting [13], we take the widely-used Plantoid paper citation graphs [33] (CORA,CiteSeer, Pubmed) and the Amazon copurchase graphs [24] (Photo,Computers) to verify the effectiveness of our method. For the inductive setting, we conduct experiments on the popular Reddit dataset [13] and the enormous MAG-Scholar dataset (coarse-grain version) [2] which owns millions of nodes and features. For each of these datasets, we repeat experiments on 5 different datasets splittings [34] and we run 3 times for each splitting to reduce the random variance. More details about the datasets and experiment settings are presented in Appendix A. ",
612
+ "bbox": [
613
+ 174,
614
+ 632,
615
+ 825,
616
+ 743
617
+ ],
618
+ "page_idx": 5
619
+ },
620
+ {
621
+ "type": "text",
622
+ "text": "3.2 ReNode for the Pure Topology-imbalance Issue ",
623
+ "text_level": 1,
624
+ "bbox": [
625
+ 174,
626
+ 761,
627
+ 540,
628
+ 776
629
+ ],
630
+ "page_idx": 5
631
+ },
632
+ {
633
+ "type": "text",
634
+ "text": "Settings When considering topology-imbalance only, the labeling set takes a balanced setting and the annotation size for each class is all equal to $| \\dot { \\mathcal { L } } | / k$ . Following the most widely-used semisupervised setting in node classification studies [47, 18], we randomly select 20 nodes in each class for training and 30 nodes per class for validation; all the remaining nodes form the test set. We display the experiment results for the 5 transductive datasets on 6 widely-used GNN models: GCN [18], GAT [40], PPNP [19], GraphSAGE [13] (short as SAGE), ChebGCN [9] (short as CHEB) and SGC [43]. We strictly align the hyperparameters in each group of experiments to show the pure improvement brought by our ReNode method (similarly hereinafter). The training loss $L _ { T }$ from section 2.4 is adopted. ",
635
+ "bbox": [
636
+ 174,
637
+ 786,
638
+ 825,
639
+ 911
640
+ ],
641
+ "page_idx": 5
642
+ },
643
+ {
644
+ "type": "table",
645
+ "img_path": "images/d1bb9abdc48efa57ccfd11940d646394dc2aae52d1d770844156057bc45f9349.jpg",
646
+ "table_caption": [
647
+ "Table 3: ReNode method for the compound scene of TINL and QINL. The imbalance ratio $\\rho$ is set to different levels ([5, 10]) to test the effect of our method under different imbalance intensities. "
648
+ ],
649
+ "table_footnote": [],
650
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Macro-F1(%)</td><td rowspan=1 colspan=2>CORA</td><td rowspan=1 colspan=2>CiteSeer</td><td rowspan=1 colspan=2>PubMed</td><td rowspan=1 colspan=2>Photo</td><td rowspan=1 colspan=2>Computers</td></tr><tr><td rowspan=1 colspan=1>Imbalance Ratio</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>10</td><td rowspan=1 colspan=1>5</td><td rowspan=1 colspan=1>10</td></tr><tr><td rowspan=1 colspan=1>CE</td><td rowspan=1 colspan=1>60.9±1.5</td><td rowspan=1 colspan=1>41.0±3.5</td><td rowspan=1 colspan=1>53.6±2.1</td><td rowspan=1 colspan=1>47.6±2.8</td><td rowspan=1 colspan=1>61.0±1.9</td><td rowspan=1 colspan=1>49.7±2.6</td><td rowspan=1 colspan=1>62.0±2.7</td><td rowspan=1 colspan=1>40.7±3.4</td><td rowspan=1 colspan=1>50.4±2.6</td><td rowspan=1 colspan=1>35.5±3.2</td></tr><tr><td rowspan=1 colspan=1>DR-GCN</td><td rowspan=1 colspan=1>67.7±1.1</td><td rowspan=1 colspan=1>51.3±1.4</td><td rowspan=1 colspan=1>54.7±1.7</td><td rowspan=1 colspan=1>52.5±2.6</td><td rowspan=1 colspan=1>79.4±1.2</td><td rowspan=1 colspan=1>78.0±1.6</td><td rowspan=1 colspan=1>80.8±2.3</td><td rowspan=1 colspan=1>79.5±2.8</td><td rowspan=1 colspan=1>66.9±3.5</td><td rowspan=1 colspan=1>67.4±3.6</td></tr><tr><td rowspan=2 colspan=1>RA-GCNG-SMOTE</td><td rowspan=1 colspan=1>69.0±1.5</td><td rowspan=2 colspan=1>51.7±1.749.6±1.1</td><td rowspan=2 colspan=1>55.6±1.354.0±1.6</td><td rowspan=1 colspan=1>52.7±2.1</td><td rowspan=2 colspan=1>80.6±1.879.7±1.2</td><td rowspan=2 colspan=1>78.1±2.176.4±1.5</td><td rowspan=2 colspan=1>81.4±2.682.2±1.8</td><td rowspan=2 colspan=1>79.4±3.277.5±2.1</td><td rowspan=2 colspan=1>71.2±2.871.9±2.5</td><td rowspan=1 colspan=1>68.7±3.0</td></tr><tr><td rowspan=1 colspan=1>68.1±0.9</td><td rowspan=1 colspan=1>51.8±1.3</td><td rowspan=1 colspan=1>61.3±3.2</td></tr><tr><td rowspan=1 colspan=1>RW (w/o RN)</td><td rowspan=1 colspan=1>69.1±1.4</td><td rowspan=1 colspan=1>49.7±1.6</td><td rowspan=1 colspan=1>53.6±2.3</td><td rowspan=1 colspan=1>52.9±2.6</td><td rowspan=1 colspan=1>80.5±1.5</td><td rowspan=1 colspan=1>78.0±2.0</td><td rowspan=1 colspan=1>80.5±2.7</td><td rowspan=1 colspan=1>80.4±3.3</td><td rowspan=1 colspan=1>70.5±3.2</td><td rowspan=1 colspan=1>67.8±4.2</td></tr><tr><td rowspan=1 colspan=1>RW (w/ RN)</td><td rowspan=1 colspan=1>70.0*±1.3</td><td rowspan=1 colspan=1>50.1±1.7</td><td rowspan=1 colspan=1>55.2**±1.8</td><td rowspan=1 colspan=1>54.0**±2.5</td><td rowspan=1 colspan=1>81.2* ±1.0</td><td rowspan=1 colspan=1>78.5*±2.2</td><td rowspan=1 colspan=1>83.9**±2.1</td><td rowspan=1 colspan=1>81.3**±3.2</td><td rowspan=1 colspan=1>72.4**±2.6</td><td rowspan=1 colspan=1>70.2**±2.4</td></tr><tr><td rowspan=2 colspan=1>FOCAL (w/o RN)FOCAL (w/RN)</td><td rowspan=1 colspan=1>66.4±1.6</td><td rowspan=1 colspan=1>51.9±1.8</td><td rowspan=1 colspan=1>54.3±1.3</td><td rowspan=1 colspan=1>54.0±1.9</td><td rowspan=1 colspan=1>80.5±0.7</td><td rowspan=1 colspan=1>78.0±1.6</td><td rowspan=1 colspan=1>79.3±1.9</td><td rowspan=1 colspan=1>79.2±2.2</td><td rowspan=1 colspan=1>65.8±2.7</td><td rowspan=1 colspan=1>63.9±2.6</td></tr><tr><td rowspan=1 colspan=1>68.7**±0.7</td><td rowspan=1 colspan=1>52.6**±1.9</td><td rowspan=1 colspan=1>54.6±1.2</td><td rowspan=1 colspan=1>54.7*±1.5</td><td rowspan=1 colspan=1>80.9*±0.8</td><td rowspan=1 colspan=1>78.7**±1.4</td><td rowspan=1 colspan=1>80.0**±*2.3</td><td rowspan=1 colspan=1>80.7**±2.9</td><td rowspan=1 colspan=1>68.6**±3.1</td><td rowspan=1 colspan=1>65.5**±3.5</td></tr><tr><td rowspan=2 colspan=1>CB (w/o RN)CB (w/RN)</td><td rowspan=1 colspan=1>69.8±1.5</td><td rowspan=2 colspan=1>51.5±1.551.9*±1.2</td><td rowspan=2 colspan=1>54.1±1.354.7*±1.6</td><td rowspan=2 colspan=1>53.5±0.854.3**±2.3</td><td rowspan=2 colspan=1>80.6±0.881.2*±1.8</td><td rowspan=2 colspan=1>77.6±1.678.3**±2.6</td><td rowspan=2 colspan=1>77.9±2.679.6** ±2.7</td><td rowspan=2 colspan=1>78.8±3.180.4**±3.3</td><td rowspan=2 colspan=1>69.6±2.273.1**±3.1</td><td rowspan=2 colspan=1>64.8±2.966.5**±3.6</td></tr><tr><td rowspan=1 colspan=1>71.1**±0.6</td></tr></table>",
651
+ "bbox": [
652
+ 176,
653
+ 125,
654
+ 820,
655
+ 266
656
+ ],
657
+ "page_idx": 6
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "Results From Table 1, we can find that our ReNode method can effectively improve the overall performance (Weighted-F1) and the class-balance performance (Macro-F1) for all the 6 experiment GNNs in most cases, which proves the effectiveness and generalizability of our method. Our method considers the graph-specific topology imbalance issue which has been usually neglected in existing methods and conducts a fine-grained and self-adaptive adjustment to the training node weights based on their topological positions. We notice that the improvement for the CiteSeer dataset is less than the other datasets. We analyze the reason lies in that the connectivity of CiteSeer is poor, which makes the conflict detection–based method fail to reflect the node topological position well. To verify the motivation of relieving topology-imbalance, we set training sets with different levels of topologyimbalance to test our method3. Table 2 displays that our ReNode method improves the performance of GNN (GCN) most when the dataset is highly topologically imbalanced, which demonstrates that our method can effectively alleviate topology-imbalance and improve GNN performance. ",
662
+ "bbox": [
663
+ 173,
664
+ 294,
665
+ 825,
666
+ 460
667
+ ],
668
+ "page_idx": 6
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "3.3 ReNode for the Compound Scene of TINL and QINL ",
673
+ "text_level": 1,
674
+ "bbox": [
675
+ 174,
676
+ 479,
677
+ 581,
678
+ 494
679
+ ],
680
+ "page_idx": 6
681
+ },
682
+ {
683
+ "type": "text",
684
+ "text": "Settings When jointly considering both topology- and quantity-imbalance issues, following existing studies [5, 4], we take the step imbalance setting, in which all the minority classes have the same labeling size $n _ { i }$ and all the majority classes have the same labeling size $n _ { a } = \\rho * n _ { i }$ . The imbalance ratio $\\rho$ denotes the intensity of quantity imbalance which is equal to the ratio of the node size of the most frequent to least frequent class. In this work, the imbalance ratio $\\rho$ is set to [5, 10] for each dataset. The fraction of the majority classes is $\\mu$ , and for all experiments, we set $\\mu = 0 . 5$ and round down the result $\\mu * k$ . The training loss $L _ { Q }$ from section 2.4 is adopted. We implement two groups of baselines for comparison: (1) Popular quantity-imbalance methods for general scenarios: Re-weight [17] (RW), Focal Loss [22] (Focal) and Class Balanced Loss [8] (CB); (2) Graph-specific quantity-imbalance methods: DR-GCN [35], RA-GCN [11] and GraphSMOTE [49]. To jointly handle the topology- and quantity-imbalance issues and demonstrate the orthogonality of them, we combine our ReNode method with these three general quantity-imbalance methods (RW, Focal, CB)4. The backbone model is GCN [18], and the labeling ratio $\\delta$ is set to $5 \\%$ . ",
685
+ "bbox": [
686
+ 173,
687
+ 506,
688
+ 825,
689
+ 685
690
+ ],
691
+ "page_idx": 6
692
+ },
693
+ {
694
+ "type": "text",
695
+ "text": "Results From Table 3 (Macro-F1 is reported here for a fair comparison with these methods designed for class-balance performance), we can find that our ReNode method significantly outperforms both the general and the graph-specific quantity-imbalance methods in most situations by simultaneously alleviating the topology- and quantity-imbalance issues. Even when the training set is severely quantity-imbalanced $\\scriptstyle ( \\rho = 1 0 )$ , our method still effectively alleviates the imbalance issue and promotes model performance well. The performance of the quantity-imbalance methods from the general field (RW, Focal, CB) is on par with or less effective than the graph-specific quantity-imbalance methods (DR-GCN, RA-GCN, G-SMOTE), while the combination of our ReNode method and these general quantity-imbalance methods can surpass the graph-specific quantity-imbalance methods, which demonstrates that the node imbalance learning can be further solved by jointly handling the topology- and quantity-imbalance issues instead of considering the quantity-imbalance issue only. ",
696
+ "bbox": [
697
+ 173,
698
+ 704,
699
+ 825,
700
+ 856
701
+ ],
702
+ "page_idx": 6
703
+ },
704
+ {
705
+ "type": "image",
706
+ "img_path": "images/6d160bd3b091be39bb9f07d48335845a9ed9ec4d5bd61d729b2de3828a23d52b.jpg",
707
+ "image_caption": [
708
+ "Figure 4: Experimental results (Weighted-F1, $\\%$ ) on the large-scale Reddit and MAG-Scholar graphs. Our ReNode method can effectively improve the model performance under different labeling sizes. "
709
+ ],
710
+ "image_footnote": [],
711
+ "bbox": [
712
+ 179,
713
+ 89,
714
+ 816,
715
+ 193
716
+ ],
717
+ "page_idx": 7
718
+ },
719
+ {
720
+ "type": "image",
721
+ "img_path": "images/f5bc5a21a4d8e008c5065041fd9c8ee0bd160c6729bf1cb6c89a70ee0cd10f49.jpg",
722
+ "image_caption": [
723
+ "Figure 5: Evaluating GNNs from the aspect of topology-imbalance sensitivity (Metric: Weighted-F1 $( \\% ) ,$ ). We can summarize the ranking of topology-imbalance sensitivity: $\\mathrm { G C N } > \\mathrm { P P N P } > \\mathrm { G A T }$ . "
724
+ ],
725
+ "image_footnote": [],
726
+ "bbox": [
727
+ 178,
728
+ 244,
729
+ 820,
730
+ 372
731
+ ],
732
+ "page_idx": 7
733
+ },
734
+ {
735
+ "type": "text",
736
+ "text": "3.4 ReNode for Large-scale Graphs ",
737
+ "text_level": 1,
738
+ "bbox": [
739
+ 176,
740
+ 438,
741
+ 433,
742
+ 452
743
+ ],
744
+ "page_idx": 7
745
+ },
746
+ {
747
+ "type": "text",
748
+ "text": "Settings We conduct experiments on the two large-scale datasets: Reddit and MAG-Scholar, to verify the effectiveness of our ReNode method in the inductive setting. We conduct experiments with different labeling sizes (20/50/100 training nodes per class) and imbalance settings (TINL-only, TINL and QINL). The backbone GNN model is PPRGo [2] 5. For QINL, we take the uniform selection to sample training nodes to be consistent with PPRGo. The training loss $L _ { L }$ from section 2.4 is adopted. Both baseline and our methods are not combined with any quantity-imbalance method. ",
749
+ "bbox": [
750
+ 174,
751
+ 463,
752
+ 825,
753
+ 546
754
+ ],
755
+ "page_idx": 7
756
+ },
757
+ {
758
+ "type": "text",
759
+ "text": "Results In Figure 4, we present the experiment results with different labeling sizes and imbalance settings, we can find that our method can effectively promote the performance on the large-scale graphs comparing to the popular PPRGo model across different settings, which demonstrates the applicability of our method for extremely-large graphs. We also notice that our method can bring greater improvement when the labeling size is large. We explain the reason lies in that when the labeling size is large, the positions located by the conflicts among nodes will be more accurate, thus bringing more reasonable weight adjustments. On the other hand, when the labeling ratio is extremely small (especially for the enormous MAG-Scholar graph) and the influence conflict between the labeled nodes is negligible, our method exhibits the cold start problem. ",
760
+ "bbox": [
761
+ 174,
762
+ 561,
763
+ 825,
764
+ 686
765
+ ],
766
+ "page_idx": 7
767
+ },
768
+ {
769
+ "type": "text",
770
+ "text": "4 Discussions ",
771
+ "text_level": 1,
772
+ "bbox": [
773
+ 174,
774
+ 705,
775
+ 300,
776
+ 723
777
+ ],
778
+ "page_idx": 7
779
+ },
780
+ {
781
+ "type": "text",
782
+ "text": "4.1 Evaluating GNNs from the Aspect of Topology-Imbalance Sensitivity ",
783
+ "text_level": 1,
784
+ "bbox": [
785
+ 174,
786
+ 737,
787
+ 689,
788
+ 752
789
+ ],
790
+ "page_idx": 7
791
+ },
792
+ {
793
+ "type": "text",
794
+ "text": "In Figure 5, we evaluate the GNN’s capability for handling topology-imbalance and find that different GNNs present significant difference in the topology-imbalance sensitivity across multiple datasets. The GCN model is susceptible to the topology-imbalance level of the graph and its performance decays greatly when the topology-imbalance increases. On the opposite, the GAT model is less sensitive to the topology-imbalance level and can achieve the best results when the topology-imbalance level is high. The PPNP model can achieve ideal performance when the topology-imbalance level is low, and its performance does not drop as sharply as GCN when the topology-imbalance level is high. We analyze the reason lies in that: (1) the aggregation operation of GCN is equivalent to directly averaging neighbor features [45] that lacks the noise filtering mechanism, so it is more sensitive to the topology-imbalance level of the graph; (2) the GAT model can dynamically adjust the aggregation weight from different neighbors, which increases its robustness to the high topology-imbalance situation but hinders the model performance when the graph topology-imbalance level is low and there is less need to filter neighbor information; (3) the infinite convolution mechanism of the PPNP model makes it possible to aggregate the information from distant nodes to enhance its robustness to the graph topology imbalance. ",
795
+ "bbox": [
796
+ 174,
797
+ 762,
798
+ 825,
799
+ 875
800
+ ],
801
+ "page_idx": 7
802
+ },
803
+ {
804
+ "type": "text",
805
+ "text": "",
806
+ "bbox": [
807
+ 174,
808
+ 92,
809
+ 825,
810
+ 188
811
+ ],
812
+ "page_idx": 8
813
+ },
814
+ {
815
+ "type": "text",
816
+ "text": "Shchur et al. [34] notice that the performance ranking of GNNs varies with the training set selection. Hence, existing node classification studies [32, 14] usually repeat experiments multiple times with different training sets to reduce this randomness. The results from Figure 5 inspire us that the topology imbalance can partly explain the randomness of GNN performance caused by the training set selection and we can adopt the topology-imbalance sensitivity as a new aspect in evaluating the performance of different GNN architectures. ",
817
+ "bbox": [
818
+ 174,
819
+ 194,
820
+ 825,
821
+ 277
822
+ ],
823
+ "page_idx": 8
824
+ },
825
+ {
826
+ "type": "text",
827
+ "text": "4.2 Limitations of Method ",
828
+ "text_level": 1,
829
+ "bbox": [
830
+ 174,
831
+ 295,
832
+ 369,
833
+ 309
834
+ ],
835
+ "page_idx": 8
836
+ },
837
+ {
838
+ "type": "text",
839
+ "text": "Although our ReNode method has proven effective in multiple scenarios, we also notice some limitations of it because of the complexity of node imbalance learning. First, the ReNode method is devised for homogeneously-connected graphs (linked nodes are expected to be similar, such as the various datasets in experiments), and it needs a further update for heterogeneously-connected graphs (such as protein networks). Besides, the ReNode method improves less when the graph connectivity is poor (Section 3.2) or the labeling ratio is extremely low (Section 3.3) because in these cases, the conflict level among nodes is low thus the nodes topological positions are insufficiently reflected. ",
840
+ "bbox": [
841
+ 174,
842
+ 320,
843
+ 825,
844
+ 417
845
+ ],
846
+ "page_idx": 8
847
+ },
848
+ {
849
+ "type": "text",
850
+ "text": "5 Related Work ",
851
+ "text_level": 1,
852
+ "bbox": [
853
+ 174,
854
+ 438,
855
+ 321,
856
+ 454
857
+ ],
858
+ "page_idx": 8
859
+ },
860
+ {
861
+ "type": "text",
862
+ "text": "Imbalanced classification problems are widespread in real scenarios and have attracted extensive attention from both academia and industry. Most existing studies on this topic focus on the classimbalanced quantity distribution [15], where the model’s inference ability for the majority classes will be significantly better than that of minority classes [12]. The existing methods for solving the quantity-imbalance issue can be roughly divided into methods for the data selection phase and the model training phase. Active learning [31, 10, 42] and Re-sampling [6, 16, 25] are two classical examples designed to construct a quantity-balanced training set . On the other hand, Re-weighting is a simple but effective solution for the model training phase, which adjusts the weights of training samples in different classes based on the labeling sizes [17, 30, 8, 5]. However, directly applying these methods into the graph scene lacks the consideration for the graph-specific topology-imbalance issue. Unlike the re-weight methods which conduct class-lever re-weighting, our ReNode method is a more fine-grained one and assign weights to each node individually. ",
863
+ "bbox": [
864
+ 174,
865
+ 469,
866
+ 825,
867
+ 636
868
+ ],
869
+ "page_idx": 8
870
+ },
871
+ {
872
+ "type": "text",
873
+ "text": "There have been quantity-imbalance studies (Tomek links [38], NearMiss [23], One-Sided Selection [20]) trying to exclude the negative influence of labeling samples close to class boundaries by measuring the similarity of sample features. However, in the graph scene, the prior knowledge contained in node connections is more reliable than directly calculating the feature similarity. Besides, the number of labeled nodes is quite small in the semi-supervised setting. Thus it is not robust to locate their positions by computing similarity among a small number of nodes and we propose to leverage the influence conflict across the whole graph to locate node position to boundaries. ",
874
+ "bbox": [
875
+ 174,
876
+ 642,
877
+ 825,
878
+ 739
879
+ ],
880
+ "page_idx": 8
881
+ },
882
+ {
883
+ "type": "text",
884
+ "text": "Graph data structure owns a wide range of applications, such as social media [13], stock exchange [21], shopping [34], medicine [44], transportation [28] and so on. Similar to other data structures, graph node representation learning also suffer from the quantity-imbalance issue [35]. Apart from the universal quantity-balance approaches introduced in Section 5 which can be transferred to the graph scene, there are some graph-specific quantity-imbalance methods recently proposed. DR-GCN [35] propose two types of regularization to tackle quantity imbalance: class-conditioned adversarial training and unlabeled nodes latent distribution constraint. RA-GCN [11] propose to automatically learn to weight the training samples in different classes in an adversarial training manner. AdaGCN Shi et al. [36] propose to leverage the boosting algorithm to handle the quantity-imbalance issue for the node classification task. GraphSMOTE [49] combines the synthetic node generation and the edge generation to up-sample nodes for the minority classes. However, these studies only pay attention to the quantity imbalance and overlook the topology imbalance. ",
885
+ "bbox": [
886
+ 174,
887
+ 746,
888
+ 825,
889
+ 911
890
+ ],
891
+ "page_idx": 8
892
+ },
893
+ {
894
+ "type": "text",
895
+ "text": "Different from these studies [48, 29, 26] that try to locate the absolute positions for all the nodes by measuring their distance from the selected anchor nodes, our Totoro metric is devised to locate the relative positions to the class boundary for the labeling nodes by considering the influence conflict and can get rid of the dependence on the anchor nodes. Besides, our relative positions can more accurately reflect node class information because we distinguish the information from different classes while existing studies [48, 29] treat all the anchor nodes the same and ignore the class difference. ",
896
+ "bbox": [
897
+ 174,
898
+ 90,
899
+ 825,
900
+ 174
901
+ ],
902
+ "page_idx": 9
903
+ },
904
+ {
905
+ "type": "text",
906
+ "text": "6 Conclusion and Future Work ",
907
+ "text_level": 1,
908
+ "bbox": [
909
+ 176,
910
+ 194,
911
+ 449,
912
+ 212
913
+ ],
914
+ "page_idx": 9
915
+ },
916
+ {
917
+ "type": "text",
918
+ "text": "In this work, we recognize the topology-imbalance node representation learning (TINL) as a graphspecific imbalance learning problem that has not been studied so far. We find that the topologyimbalance issue widely exists in graphs and severely hinders the learning of node classification. We unify TINL with the quantity-imbalance node representation learning (QINL) by considering the shift of the node influence boundaries from true class boundaries. To measure the degree of topology imbalance, we devise a conflict detection–based metric Totoro to locate node position, and further propose the ReNode method to adaptively adjust the training weights of labeled nodes based on their topological positions. Extensive empirical results have verified the effectiveness of our method in various settings: TINL-only, both TINL and QINL, and large-scale graph. Besides, we also propose the topology-imbalance sensitivity as a new metric to evaluate GNNs. ",
919
+ "bbox": [
920
+ 174,
921
+ 227,
922
+ 825,
923
+ 366
924
+ ],
925
+ "page_idx": 9
926
+ },
927
+ {
928
+ "type": "text",
929
+ "text": "Considering the importance of the topology-imbalance issue and the limitations of our approach, advanced methods with stronger theoretical or experimental support are expected in future work. Moreover, since topology imbalance is widespread in graph-related tasks other than node classification, how to measure and solve the topology-imbalance issues in broader graph scopes remains a meaningful challenge for future study. ",
930
+ "bbox": [
931
+ 174,
932
+ 371,
933
+ 825,
934
+ 440
935
+ ],
936
+ "page_idx": 9
937
+ },
938
+ {
939
+ "type": "text",
940
+ "text": "7 Acknowledgement ",
941
+ "text_level": 1,
942
+ "bbox": [
943
+ 176,
944
+ 462,
945
+ 359,
946
+ 478
947
+ ],
948
+ "page_idx": 9
949
+ },
950
+ {
951
+ "type": "text",
952
+ "text": "We appreciate all the thoughtful and insightful suggestions from reviews. This work was supported in part by a Tencent Research Grant and National Natural Science Foundation of China (No. 61673028). Xu Sun is the corresponding author of this paper. ",
953
+ "bbox": [
954
+ 174,
955
+ 493,
956
+ 826,
957
+ 535
958
+ ],
959
+ "page_idx": 9
960
+ },
961
+ {
962
+ "type": "text",
963
+ "text": "References ",
964
+ "text_level": 1,
965
+ "bbox": [
966
+ 174,
967
+ 564,
968
+ 266,
969
+ 580
970
+ ],
971
+ "page_idx": 9
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "[1] Reid Andersen, Fan R. K. Chung, and Kevin J. Lang. Local Graph Partitioning using PageRank Vectors. In 47th Annual IEEE Symposium on Foundations of Computer Science (FOCS 2006), 21-24 October 2006, Berkeley, California, USA, Proceedings, pages 475–486. IEEE Computer Society, 2006. \n[2] Aleksandar Bojchevski, Johannes Klicpera, Bryan Perozzi, Amol Kapoor, Martin Blais, Benedek Rózemberczki, Michal Lukasik, and Stephan Günnemann. Scaling Graph Neural Networks with Approximate PageRank. In the 26th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, KDD 2020, pages 2464–2473. ACM, 2020. \n[3] Eliav Buchnik and Edith Cohen. Bootstrapped Graph Diffusions: Exposing the Power of Nonlinearity. Proc. ACM Meas. Anal. Comput. Syst., 2(1):10:1–10:19, 2018. \n[4] Mateusz Buda, Atsuto Maki, and Maciej A. Mazurowski. A Systematic Study of the Class Imbalance Problem in Convolutional Neural Networks. Neural Networks, 106:249–259, 2018. \n[5] Kaidi Cao, Colin Wei, Adrien Gaidon, Nikos Aréchiga, and Tengyu Ma. Learning Imbalanced Datasets with Label-Distribution-Aware Margin Loss. In Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, pages 1565–1576, 2019. \n[6] Nitesh V Chawla, Kevin W Bowyer, Lawrence O Hall, and W Philip Kegelmeyer. SMOTE: Synthetic Minority Over-sampling Technique. Journal of artificial intelligence research, 16: 321–357, 2002. ",
976
+ "bbox": [
977
+ 178,
978
+ 588,
979
+ 826,
980
+ 911
981
+ ],
982
+ "page_idx": 9
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "[7] Wei-Lin Chiang, Xuanqing Liu, Si Si, Yang Li, Samy Bengio, and Cho-Jui Hsieh. Cluster-GCN: An Efficient Algorithm for Training Deep and Large Graph Convolutional Networks. In the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, KDD 2019, Anchorage, AK, USA, August 4-8, 2019, pages 257–266. ACM, 2019. ",
987
+ "bbox": [
988
+ 183,
989
+ 90,
990
+ 826,
991
+ 147
992
+ ],
993
+ "page_idx": 10
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "[8] Yin Cui, Menglin Jia, Tsung-Yi Lin, Yang Song, and Serge J. Belongie. Class-Balanced Loss Based on Effective Number of Samples. In IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, pages 9268–9277. Computer Vision Foundation / IEEE, 2019. ",
998
+ "bbox": [
999
+ 181,
1000
+ 156,
1001
+ 826,
1002
+ 213
1003
+ ],
1004
+ "page_idx": 10
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "[9] 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 29: Annual Conference on Neural Information Processing Systems 2016, December 5-10, 2016, Barcelona, Spain, pages 3837–3845, 2016. ",
1009
+ "bbox": [
1010
+ 179,
1011
+ 223,
1012
+ 825,
1013
+ 280
1014
+ ],
1015
+ "page_idx": 10
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "[10] Seyda Ertekin, Jian Huang, and C Lee Giles. Active Learning for Class Imbalance Problem. In the 30th Annual International ACM SIGIR Conference on Research and Development in Information Retrieval, SIGIR 2007, pages 823–824, 2007. ",
1020
+ "bbox": [
1021
+ 174,
1022
+ 289,
1023
+ 823,
1024
+ 333
1025
+ ],
1026
+ "page_idx": 10
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "[11] Mahsa Ghorbani, Anees Kazi, Mahdieh Soleymani Baghshah, Hamid R. Rabiee, and Nassir Navab. RA-GCN: Graph Convolutional Network for Disease Prediction Problems with Imbalanced Data. arXiv preprint: 2103.00221, 2021. ",
1031
+ "bbox": [
1032
+ 173,
1033
+ 342,
1034
+ 823,
1035
+ 385
1036
+ ],
1037
+ "page_idx": 10
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "[12] Haixiang Guo, Yijing Li, Jennifer Shang, Gu Mingyun, Huang Yuanyue, and Gong Bing. Learning from Class-Imbalanced Data: Review of Methods and Applications. Expert Syst. Appl., 73:220–239, 2017. ",
1042
+ "bbox": [
1043
+ 174,
1044
+ 393,
1045
+ 826,
1046
+ 436
1047
+ ],
1048
+ "page_idx": 10
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "[13] William L. Hamilton, Zhitao Ying, and Jure Leskovec. Inductive Representation Learning on Large Graphs. In Advances in Neural Information Processing Systems 30: Annual Conference on Neural Information Processing Systems 2017, December 4-9, 2017, Long Beach, CA, USA, pages 1024–1034, 2017. ",
1053
+ "bbox": [
1054
+ 174,
1055
+ 446,
1056
+ 826,
1057
+ 503
1058
+ ],
1059
+ "page_idx": 10
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "[14] Kaveh Hassani and Amir Hosein Khasahmadi. Contrastive Multi-View Representation Learning on Graphs. In the 37th International Conference on Machine Learning, ICML 2020, 13-18 July 2020, Virtual Event, volume 119 of Proceedings of Machine Learning Research, pages 4116–4126. PMLR, 2020. ",
1064
+ "bbox": [
1065
+ 174,
1066
+ 512,
1067
+ 826,
1068
+ 569
1069
+ ],
1070
+ "page_idx": 10
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "[15] Haibo He and Edwardo A. Garcia. Learning from imbalanced data. IEEE Trans. Knowl. Data Eng., 21(9):1263–1284, 2009. ",
1075
+ "bbox": [
1076
+ 169,
1077
+ 579,
1078
+ 825,
1079
+ 608
1080
+ ],
1081
+ "page_idx": 10
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "[16] Haibo He, Yang Bai, Edwardo A. Garcia, and Shutao Li. ADASYN: Adaptive synthetic sampling approach for imbalanced learning. In the International Joint Conference on Neural Networks, IJCNN 2008, part of the IEEE World Congress on Computational Intelligence, WCCI 2008, Hong Kong, China, June 1-6, 2008, pages 1322–1328. IEEE, 2008. ",
1086
+ "bbox": [
1087
+ 174,
1088
+ 617,
1089
+ 826,
1090
+ 674
1091
+ ],
1092
+ "page_idx": 10
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "[17] Chen Huang, Yining Li, Chen Change Loy, and Xiaoou Tang. Learning Deep Representation for Imbalanced Classification. In the 29th IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, pages 5375–5384, 2016. ",
1097
+ "bbox": [
1098
+ 174,
1099
+ 684,
1100
+ 825,
1101
+ 727
1102
+ ],
1103
+ "page_idx": 10
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "[18] Thomas N Kipf and Max Welling. Semi-supervised Classification with Graph Convolutional Networks. In the 5th International Conference on Learning Representations, ICLR 2017, Toulon, France, April 24-26, 2017, Conference Track Proceedings. OpenReview.net, 2017. ",
1108
+ "bbox": [
1109
+ 174,
1110
+ 736,
1111
+ 826,
1112
+ 780
1113
+ ],
1114
+ "page_idx": 10
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "[19] Johannes Klicpera, Aleksandar Bojchevski, and Stephan Günnemann. Predict then Propagate: Graph Neural Networks meet Personalized PageRank. In the 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019. ",
1119
+ "bbox": [
1120
+ 174,
1121
+ 789,
1122
+ 826,
1123
+ 844
1124
+ ],
1125
+ "page_idx": 10
1126
+ },
1127
+ {
1128
+ "type": "text",
1129
+ "text": "[20] Miroslav Kubat, Stan Matwin, et al. Addressing the Curse of Imbalanced Training Sets: Onesided Selection. In the 14th International Conference on Machine Learning (ICML 1997), Nashville, Tennessee, USA, July 8-12, 1997, volume 97, pages 179–186. Morgan Kaufmann, 1997. ",
1130
+ "bbox": [
1131
+ 174,
1132
+ 856,
1133
+ 826,
1134
+ 911
1135
+ ],
1136
+ "page_idx": 10
1137
+ },
1138
+ {
1139
+ "type": "text",
1140
+ "text": "[21] Wei Li, Ruihan Bao, Keiko Harimoto, Deli Chen, Jingjing Xu, and Qi Su. Modeling the Stock Relation with Graph Network for Overnight Stock Movement Prediction. In the 29th International Joint Conference on Artificial Intelligence, IJCAI 2020, pages 4541–4547. ijcai.org, 2020. ",
1141
+ "bbox": [
1142
+ 173,
1143
+ 90,
1144
+ 826,
1145
+ 146
1146
+ ],
1147
+ "page_idx": 11
1148
+ },
1149
+ {
1150
+ "type": "text",
1151
+ "text": "[22] Tsung-Yi Lin, Priya Goyal, Ross B. Girshick, Kaiming He, and Piotr Dollár. Focal Loss for Dense Object Detection. In IEEE International Conference on Computer Vision, ICCV 2017, Venice, Italy, October 22-29, 2017, pages 2999–3007. IEEE Computer Society, 2017. ",
1152
+ "bbox": [
1153
+ 173,
1154
+ 155,
1155
+ 821,
1156
+ 198
1157
+ ],
1158
+ "page_idx": 11
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "[23] Inderjeet Mani and I Zhang. kNN Approach to Unbalanced Data Distributions: A Case Study Involving Information Extraction. In Workshop on Learning from Imbalanced Datasets, volume 126, 2003. ",
1163
+ "bbox": [
1164
+ 174,
1165
+ 205,
1166
+ 823,
1167
+ 247
1168
+ ],
1169
+ "page_idx": 11
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "[24] Julian McAuley, Christopher Targett, Qinfeng Shi, and Anton Van Den Hengel. Image-based Recommendations on Styles and Substitutes. In the 38th International ACM SIGIR Conference on Research and Development in Information Retrieval, Santiago, Chile, August 9-13, 2015, pages 43–52. ACM, 2015. ",
1174
+ "bbox": [
1175
+ 173,
1176
+ 256,
1177
+ 826,
1178
+ 311
1179
+ ],
1180
+ "page_idx": 11
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "[25] Iman Nekooeimehr and Susana K Lai-Yuen. Adaptive Semi-unsupervised Weighted Oversampling (A-SUWO) for Imbalanced Datasets. Expert Systems with Applications, 46:405–416, 2016. ",
1185
+ "bbox": [
1186
+ 173,
1187
+ 319,
1188
+ 823,
1189
+ 362
1190
+ ],
1191
+ "page_idx": 11
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "[26] Sunil Nishad, Shubhangi Agarwal, Arnab Bhattacharya, and Sayan Ranu. GraphReach: PositionAware Graph Neural Networks using Reachability Estimations. In the 30th International Joint Conference on Artificial Intelligence IJCAI, 2020. ",
1196
+ "bbox": [
1197
+ 171,
1198
+ 369,
1199
+ 823,
1200
+ 414
1201
+ ],
1202
+ "page_idx": 11
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "[27] Lawrence Page, Sergey Brin, Rajeev Motwani, and Terry Winograd. The PageRank Citation Ranking: Bringing Order to the Web. Technical report, Stanford InfoLab, 1999. ",
1207
+ "bbox": [
1208
+ 171,
1209
+ 420,
1210
+ 823,
1211
+ 450
1212
+ ],
1213
+ "page_idx": 11
1214
+ },
1215
+ {
1216
+ "type": "text",
1217
+ "text": "[28] Nikolay G Prokoptsev, AE Alekseenko, and Yaroslav Aleksandrovich Kholodov. Traffic Flow Speed Prediction on Transportation Graph with Convolutional Neural Networks. Computer research and modeling, 10(3):359–367, 2018. ",
1218
+ "bbox": [
1219
+ 174,
1220
+ 457,
1221
+ 821,
1222
+ 500
1223
+ ],
1224
+ "page_idx": 11
1225
+ },
1226
+ {
1227
+ "type": "text",
1228
+ "text": "[29] Zhenyue Qin, Saeed Anwar, Dongwoo Kim, Yang Liu, Pan Ji, and Tom Gedeon. PositionSensing Graph Neural Networks: Proactively Learning Nodes Relative Positions. arXiv preprint: 2105.11346, 2021. ",
1229
+ "bbox": [
1230
+ 174,
1231
+ 507,
1232
+ 825,
1233
+ 550
1234
+ ],
1235
+ "page_idx": 11
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "[30] Mengye Ren, Wenyuan Zeng, Bin Yang, and Raquel Urtasun. Learning to Reweight Examples for Robust Deep Learning. In International Conference on Machine Learning, pages 4334–4343. PMLR, 2018. ",
1240
+ "bbox": [
1241
+ 173,
1242
+ 558,
1243
+ 825,
1244
+ 601
1245
+ ],
1246
+ "page_idx": 11
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "text": "[31] Pengzhen Ren, Yun Xiao, Xiaojun Chang, Po-Yao Huang, Zhihui Li, Xiaojiang Chen, and Xin Wang. A Survey of Deep Active Learning. arXiv preprint: 2009.00236, 2020. ",
1251
+ "bbox": [
1252
+ 173,
1253
+ 608,
1254
+ 821,
1255
+ 637
1256
+ ],
1257
+ "page_idx": 11
1258
+ },
1259
+ {
1260
+ "type": "text",
1261
+ "text": "[32] Yu Rong, Wenbing Huang, Tingyang Xu, and Junzhou Huang. The Truly Deep Graph Convolutional Networks for Node Classification. arXiv preprint: 1907.10903, 2019. ",
1262
+ "bbox": [
1263
+ 173,
1264
+ 645,
1265
+ 821,
1266
+ 674
1267
+ ],
1268
+ "page_idx": 11
1269
+ },
1270
+ {
1271
+ "type": "text",
1272
+ "text": "[33] Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina EliassiRad. Collective Classification in Network Data. AI magazine, 29(3):93–93, 2008. ",
1273
+ "bbox": [
1274
+ 174,
1275
+ 681,
1276
+ 823,
1277
+ 710
1278
+ ],
1279
+ "page_idx": 11
1280
+ },
1281
+ {
1282
+ "type": "text",
1283
+ "text": "[34] Oleksandr Shchur, Maximilian Mumme, Aleksandar Bojchevski, and Stephan Günnemann. Pitfalls of Graph Neural Network Evaluation. arXiv preprint: 1811.05868, 2018. ",
1284
+ "bbox": [
1285
+ 173,
1286
+ 718,
1287
+ 825,
1288
+ 747
1289
+ ],
1290
+ "page_idx": 11
1291
+ },
1292
+ {
1293
+ "type": "text",
1294
+ "text": "[35] Min Shi, Yufei Tang, Xingquan Zhu, David A. Wilson, and Jianxun Liu. Multi-Class Imbalanced Graph Convolutional Network Learning. In the 29th International Joint Conference on Artificial Intelligence, IJCAI 2020, pages 2879–2885. ijcai.org, 2020. ",
1295
+ "bbox": [
1296
+ 173,
1297
+ 755,
1298
+ 823,
1299
+ 797
1300
+ ],
1301
+ "page_idx": 11
1302
+ },
1303
+ {
1304
+ "type": "text",
1305
+ "text": "[36] Shuhao Shi, Kai Qiao, Shuai Yang, L Wang, J Chen, and Bin Yan. AdaGCN: Adaptive Boosting Algorithm for Graph Convolutional Networks on Imbalanced Node Classification. arXiv preprint: 2105.11625, 2021. ",
1306
+ "bbox": [
1307
+ 173,
1308
+ 804,
1309
+ 823,
1310
+ 848
1311
+ ],
1312
+ "page_idx": 11
1313
+ },
1314
+ {
1315
+ "type": "text",
1316
+ "text": "[37] Marina Sokol, Konstantin Avrachenkov, Paulo Gonçalves, and Alexey Mishenin. Generalized Optimization Framework for Graph-based Semi-supervised Learning. In the 12th SIAM International Conference on Data Mining, Anaheim, California, USA, April 26-28, 2012, pages 966–974. SIAM / Omnipress, 2012. ",
1317
+ "bbox": [
1318
+ 174,
1319
+ 856,
1320
+ 826,
1321
+ 911
1322
+ ],
1323
+ "page_idx": 11
1324
+ },
1325
+ {
1326
+ "type": "text",
1327
+ "text": "[38] Ivan Tomek et al. Two Modifications of CNN. IEEE Transactions on Systems, Man, and Cybernetics, 1976. ",
1328
+ "bbox": [
1329
+ 171,
1330
+ 90,
1331
+ 825,
1332
+ 119
1333
+ ],
1334
+ "page_idx": 12
1335
+ },
1336
+ {
1337
+ "type": "text",
1338
+ "text": "[39] Laurens Van der Maaten and Geoffrey Hinton. Visualizing Data using t-SNE. Journal of machine learning research, 9(11), 2008. ",
1339
+ "bbox": [
1340
+ 173,
1341
+ 127,
1342
+ 825,
1343
+ 157
1344
+ ],
1345
+ "page_idx": 12
1346
+ },
1347
+ {
1348
+ "type": "text",
1349
+ "text": "[40] Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and ´ Yoshua Bengio. Graph Attention Networks. In 6th International Conference on Learning Representations, ICLR 2018, Vancouver, BC, Canada, April 30 - May 3, 2018, Conference Track Proceedings. OpenReview.net, 2018. ",
1350
+ "bbox": [
1351
+ 174,
1352
+ 165,
1353
+ 821,
1354
+ 223
1355
+ ],
1356
+ "page_idx": 12
1357
+ },
1358
+ {
1359
+ "type": "text",
1360
+ "text": "[41] Hongwei Wang and Jure Leskovec. Unifying Graph Convolutional Neural Networks and Label Propagation. arXiv preprint: 2002.06755, 2020. ",
1361
+ "bbox": [
1362
+ 169,
1363
+ 231,
1364
+ 825,
1365
+ 261
1366
+ ],
1367
+ "page_idx": 12
1368
+ },
1369
+ {
1370
+ "type": "text",
1371
+ "text": "[42] Xinyue Wang, Bo Liu, Siyu Cao, Liping Jing, and Jian Yu. Important Sampling based Active Learning for Imbalance Classification. Science China Information Sciences, 63(8):1–14, 2020. ",
1372
+ "bbox": [
1373
+ 173,
1374
+ 268,
1375
+ 823,
1376
+ 297
1377
+ ],
1378
+ "page_idx": 12
1379
+ },
1380
+ {
1381
+ "type": "text",
1382
+ "text": "[43] Felix Wu, Amauri Souza, Tianyi Zhang, Christopher Fifty, Tao Yu, and Kilian Weinberger. Simplifying Graph Convolutional Networks. In International Conference on Machine Learning, pages 6861–6871. PMLR, 2019. ",
1383
+ "bbox": [
1384
+ 174,
1385
+ 306,
1386
+ 825,
1387
+ 349
1388
+ ],
1389
+ "page_idx": 12
1390
+ },
1391
+ {
1392
+ "type": "text",
1393
+ "text": "[44] Zhenqin Wu, Bharath Ramsundar, Evan N Feinberg, Joseph Gomes, Caleb Geniesse, Aneesh S Pappu, Karl Leswing, and Vijay Pande. MoleculeNet: a Benchmark for Molecular Machine Learning. Chemical science, 2018. ",
1394
+ "bbox": [
1395
+ 173,
1396
+ 358,
1397
+ 825,
1398
+ 401
1399
+ ],
1400
+ "page_idx": 12
1401
+ },
1402
+ {
1403
+ "type": "text",
1404
+ "text": "[45] Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How Powerful are Graph Neural Networks? In the 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019. ",
1405
+ "bbox": [
1406
+ 171,
1407
+ 409,
1408
+ 823,
1409
+ 452
1410
+ ],
1411
+ "page_idx": 12
1412
+ },
1413
+ {
1414
+ "type": "text",
1415
+ "text": "[46] Yuzhe Yang and Zhi Xu. Rethinking the Value of Labels for Improving Class-Imbalanced Learning. In Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 6-12, 2020, virtual, 2020. ",
1416
+ "bbox": [
1417
+ 173,
1418
+ 459,
1419
+ 826,
1420
+ 516
1421
+ ],
1422
+ "page_idx": 12
1423
+ },
1424
+ {
1425
+ "type": "text",
1426
+ "text": "[47] Zhilin Yang, William W Cohen, and Ruslan Salakhutdinov. Revisiting Semi-supervised Learning with Graph Embeddings. In the 33nd International Conference on Machine Learning, ICML 2016, volume 48 of JMLR Workshop and Conference Proceedings, pages 40–48. JMLR.org, 2016. ",
1427
+ "bbox": [
1428
+ 173,
1429
+ 525,
1430
+ 825,
1431
+ 582
1432
+ ],
1433
+ "page_idx": 12
1434
+ },
1435
+ {
1436
+ "type": "text",
1437
+ "text": "[48] Jiaxuan You, Rex Ying, and Jure Leskovec. Position-aware Graph Neural Networks. In the 36th International Conference on Machine Learning, ICML 2019, volume 97 of Proceedings of Machine Learning Research, pages 7134–7143. PMLR, 2019. ",
1438
+ "bbox": [
1439
+ 173,
1440
+ 590,
1441
+ 825,
1442
+ 633
1443
+ ],
1444
+ "page_idx": 12
1445
+ },
1446
+ {
1447
+ "type": "text",
1448
+ "text": "[49] Tianxiang Zhao, Xiang Zhang, and Suhang Wang. GraphSMOTE: Imbalanced Node Classification on Graphs with Graph Neural Networks. In WSDM ’21, The Fourteenth ACM International Conference on Web Search and Data Mining, Virtual Event, Israel, March 8-12, 2021, pages 833–841. ACM, 2021. ",
1449
+ "bbox": [
1450
+ 173,
1451
+ 642,
1452
+ 826,
1453
+ 699
1454
+ ],
1455
+ "page_idx": 12
1456
+ },
1457
+ {
1458
+ "type": "text",
1459
+ "text": "[50] Dengyong Zhou and Christopher J. C. Burges. Spectral Clustering and Transductive Learning with Multiple Views. In the 24th Annual International Conference on Machine Learning, ICML 2007, volume 227, pages 1159–1166. ACM, 2007. ",
1460
+ "bbox": [
1461
+ 171,
1462
+ 707,
1463
+ 821,
1464
+ 751
1465
+ ],
1466
+ "page_idx": 12
1467
+ },
1468
+ {
1469
+ "type": "text",
1470
+ "text": "[51] Jie Zhou, Ganqu Cui, Zhengyan Zhang, Cheng Yang, Zhiyuan Liu, and Maosong Sun. Graph Neural Networks: A Review of Methods and Applications. AI Open, 1, 2020. ",
1471
+ "bbox": [
1472
+ 171,
1473
+ 758,
1474
+ 823,
1475
+ 789
1476
+ ],
1477
+ "page_idx": 12
1478
+ }
1479
+ ]
parse/train/w3x8K0M6sAz/w3x8K0M6sAz_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/w3x8K0M6sAz/w3x8K0M6sAz_model.json ADDED
The diff for this file is too large to render. See raw diff