ZHANGYUXUAN-zR commited on
Commit
7f9fbcb
·
verified ·
1 Parent(s): 16b9f3a

Add files using upload-large-folder tool

Browse files
parse/train/74RmfBweB60/74RmfBweB60.md ADDED
@@ -0,0 +1,362 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Fast Policy Extragradient Methods for Competitive Games with Entropy Regularization
2
+
3
+ Shicong Cen Carnegie Mellon University shicongc@andrew.cmu.edu
4
+
5
+ Yuting Wei University of Pennsylvania ytwei@wharton.upenn.edu
6
+
7
+ Yuejie Chi Carnegie Mellon University yuejiechi@cmu.edu
8
+
9
+ # Abstract
10
+
11
+ This paper investigates the problem of computing the equilibrium of competitive games, which is often modeled as a constrained saddle-point optimization problem with probability simplex constraints. Despite recent efforts in understanding the last-iterate convergence of extragradient methods in the unconstrained setting, the theoretical underpinnings of these methods in the constrained settings, especially those using multiplicative updates, remain highly inadequate, even when the objective function is bilinear. Motivated by the algorithmic role of entropy regularization in single-agent reinforcement learning and game theory, we develop provably efficient extragradient methods to find the quantal response equilibrium (QRE)—which are solutions to zero-sum two-player matrix games with entropy regularization—at a linear rate. The proposed algorithms can be implemented in a decentralized manner, where each player executes symmetric and multiplicative updates iteratively using its own payoff without observing the opponent’s actions directly. In addition, by controlling the knob of entropy regularization, the proposed algorithms can locate an approximate Nash equilibrium of the unregularized matrix game at a sublinear rate without assuming the Nash equilibrium to be unique. Our methods also lead to efficient policy extragradient algorithms for solving entropy-regularized zero-sum Markov games at a linear rate. All of our convergence rates are nearly dimension-free, which are independent of the size of the state and action spaces up to logarithm factors, highlighting the positive role of entropy regularization for accelerating convergence.
12
+
13
+ # 1 Introduction
14
+
15
+ Finding the equilibrium of competitive games, which can be viewed as constrained saddle-point optimization problems with probability simplex constraints, lies at the heart of modern machine learning and decision making paradigms such as Generative Adversarial Networks (GANs) (Goodfellow et al., 2014), competitive reinforcement learning (RL) (Littman, 1994), game theory (Shapley, 1953), adversarial training (Mertikopoulos et al., 2018b), to name a few.
16
+
17
+ In this paper, we study one of the most basic forms of competitive games, namely two-player zero-sum games, in both the matrix setting and the Markov setting. Our goal is to find the equilibrium policies of both players in an independent and decentralized manner (Daskalakis et al., 2020; Wei et al., 2021a) with guaranteed last-iterate convergence. Namely, each player will execute symmetric and independent updates iteratively using its own payoff without observing the opponent’s actions directly, and the final policies of the iterative process should be a close approximation to the equilibrium up to any prescribed precision. This kind of algorithms is more advantageous and versatile especially in federated environments, as it requires neither prior coordination between the players like twotimescale algorithms, nor a central controller to collect and disseminate the policies of all the players, which are often unavailable due to privacy constraints.
18
+
19
+ # 1.1 Last-iterate convergence in competitive games
20
+
21
+ In recent years, there have been significant progresses in understanding the last-iterate convergence of simple iterative algorithms for unconstrained saddle-point optimization, where one is interested in bounding the sub-optimality of the last iterate of the algorithm, rather than say, the ergodic iterate — which is the average of all the iterations — that are commonly studied in the earlier literature. This shift of focus is motivated, for example, by the infeasibility of averaging large machine learning models in training GANs (Goodfellow et al., 2014). While vanilla Gradient Descent / Ascent (GDA) may diverge or cycle even for bilinear matrix games (Daskalakis et al., 2018), quite remarkably, small modifications lead to guaranteed last-iterate convergence to the equilibrium in a non-asymptotic fashion. A flurry of algorithms is proposed, including Optimistic Gradient Descent Ascent (OGDA) (Rakhlin and Sridharan, 2013; Daskalakis and Panageas, 2018b; Wei et al., 2021b), predictive updates (Yadav et al., 2017), implicit updates (Liang and Stokes, 2019), and more. Several unified analyses of these algorithms have been carried out (see, e.g. Mokhtari et al. (2020a); Liang and Stokes (2019) and references therein), where these methods in principle all make clever extrapolation of the local curvature in a predictive manner to accelerate convergence. With slight abuse of terminology, in this paper, we refer to this ensemble of algorithms as extragradient methods (Korpelevich, 1976; Tseng, 1995; Mertikopoulos et al., 2018a; Harker and Pang, 1990).
22
+
23
+ However, saddle-point optimization in the constrained setting, which includes competitive games as a special case, remains largely under-explored even for bilinear matrix games. While it is possible to reformulate constrained bilinear games to unconstrained ones using softmax parameterization of the probability simplex, this approach falls short of preserving the bilinear structure and convexconcave properties in the original problem, which are crucial to the convergence of gradient methods. Therefore, there is a strong necessity of understanding and developing improved extragradient methods in the constrained setting. Daskalakis and Panageas (2018a) proposed the optimistic variant of the multiplicative weight updates (MWU) method (Arora et al., 2012) – which is extremely natural and popular for optimizing over probability simplexes – called Optimistic Multiplicative Weight Updates (OMWU), and established the asymptotic last-iterate convergence of OMWU for matrix games. Very recently, Wei et al. (2021b) established non-asymptotic last-iterate convergences of OMWU. However, these last-iterate convergence results require the Nash equilibrium to be unique, and cannot be applied to problems with multiple Nash equilibria.
24
+
25
+ # 1.2 Our contributions
26
+
27
+ Motivated by the algorithmic role of entropy regularization in single-agent RL (Neu et al., 2017; Geist et al., 2019; Cen et al., 2020) as well as its wide use in game theory to account for imperfect and noisy information (McKelvey and Palfrey, 1995; Savas et al., 2019), we initiate the design and analysis of extragradient algorithms using multiplicative updates for finding the quantal response equilibrium (QRE), which are solutions to competitive games with entropy regularization (McKelvey and Palfrey, 1995). While finding QRE is of interest in its own right, by controlling the knob of entropy regularization, the QRE provides a close approximation to the Nash equilibrium (NE), and in turn acts as a smoothing scheme for finding the NE. Our contributions are summarized below.
28
+
29
+ • Near dimension-free last-iterate convergence to QRE of entropy-regularized matrix games. We propose two policy extragradient algorithms to solve entropy-regularized matrix games, namely the Predictive Update (PU) and OMWU methods, where both players execute symmetric and multiplicative updates without knowing the entire payoff matrix nor the opponent’s actions. Encouragingly, we show that the last iterate of the proposed algorithms converges to the unique QRE at a linear rate that is almost independent of the size of the action spaces. Roughly speaking, to find an $\epsilon$ -optimal QRE in terms of Kullback-Leibler (KL) divergence, it takes no more than $\begin{array} { r } { \widetilde O \left( \frac { 1 } { \eta \tau } \log \left( \frac { 1 } { \epsilon } \right) \right) } \end{array}$ iterations, where ${ \widetilde { O } } ( \cdot )$ hides logarithmic dependencies. Here, $\tau$ is the regularization parameter, and $\eta$ is the learning rate of both players. Maximizing the learning rate, the iteration complexity is bounded by $\widetilde { O } \left( ( 1 + \| A \| _ { \infty } / \tau ) \log ( 1 / \epsilon ) \right)$ , where $\left\| A \right\| _ { \infty } = \operatorname* { m a x } _ { i , j } \left| A _ { i , j } \right|$ is the $\ell _ { \infty }$ norm of the payoff matrix $A$ .
30
+
31
+ • Last-iterate convergence to $\epsilon$ -NE of unregularized matrix games without uniqueness assumption. The QRE provides an accurate approximation to the NE by setting the entropy regularization $\tau$ sufficiently small, therefore our result directly translates to finding a NE with last-iterate convergence guarantee. Roughly speaking, to find an $\epsilon$ -NE (Zhang et al., 2020, Definition 2.1), it takes no more than $\begin{array} { r } { \widetilde { O } \left( 1 + \frac { \| A \| _ { \infty } } { \epsilon } \right) } \end{array}$ iterations with optimized learning rates, which is again independent of the size of the action spaces up to logarithmic factors. Unlike prior literature (Daskalakis and Panageas, 2018a; Wei et al., 2021b), our last-iterate convergence guarantee does not require the NE to be unique.
32
+
33
+ Table 1: Comparisons of last-iterate convergence of the proposed entropy-regularized PU and OMWU methods with prior results for finding $\epsilon$ -QRE or $\mathrm { \epsilon - N E }$ of competitive matrix games. We note that the convergence rates of unregularized OMWU established in Wei et al. (2021b) are problemdependent, and scale at least polynomially on the size of the action spaces. Desirable features in the last two columns are highlighted in blue.
34
+
35
+ <table><tr><td rowspan=1 colspan=1>Equilibriumtype</td><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Convergence rate</td><td rowspan=1 colspan=1>Dimension-free</td><td rowspan=1 colspan=1>Requireunique NE</td></tr><tr><td rowspan=1 colspan=1>E-QRE</td><td rowspan=1 colspan=1>PU&amp;OMWU(this work)</td><td rowspan=1 colspan=1>linear</td><td rowspan=1 colspan=1>yes</td><td rowspan=1 colspan=1>n/a</td></tr><tr><td rowspan=3 colspan=1>e-NE</td><td rowspan=1 colspan=1>OMWU(Daskalakis and Panageas, 2018a)</td><td rowspan=1 colspan=1>asymptotic</td><td rowspan=1 colspan=1>no</td><td rowspan=1 colspan=1>yes</td></tr><tr><td rowspan=1 colspan=1>OMWU(Wei et al., 2021b)</td><td rowspan=1 colspan=1>sublinear + linear</td><td rowspan=1 colspan=1>no</td><td rowspan=1 colspan=1>yes</td></tr><tr><td rowspan=1 colspan=1>PU&amp;OMWU(this work)</td><td rowspan=1 colspan=1>sublinear</td><td rowspan=1 colspan=1>yes</td><td rowspan=1 colspan=1>no</td></tr></table>
36
+
37
+ • Extensions to two-player zero-sum Markov games. By connecting value iteration with matrix games, we propose a policy extragradient method for solving infinite-horizon discounted entropyregularized zero-sum Markov games, which finds an $\epsilon$ -optimal minimax soft Q-function—in terms of $\ell _ { \infty }$ error—in at most $\begin{array} { r } { \widetilde O \left( \frac { 1 } { \tau ( 1 - \gamma ) ^ { 2 } } \log ^ { 2 } \left( \frac { 1 } { \epsilon } \right) \right) } \end{array}$ iterations, where $\gamma \in ( 0 , 1 )$ is the discount factor.
38
+
39
+ To the best of our knowledge, our paper is the first that develops policy extragradient algorithms for solving entropy-regularized competitive games with multiplicative updates and dimension-free linear last-iterate convergence, and demonstrates entropy regularization as a smoothing technique to find $\mathrm { \epsilon - N E }$ without the uniqueness assumption. Table 1 provides detailed comparisons of the proposed methods with prior arts for solving matrix games. Our results highlight the positive role of entropy regularization for accelerating convergence and safeguarding against imperfect information in competitive games. We defer the complete proof of our results to Cen et al. (2021).
40
+
41
+ # 1.3 Related works
42
+
43
+ Our work lies at the intersection of saddle-point optimization, game theory, and reinforcement learning. In what follows, we discuss a few topics that are closely related to ours.
44
+
45
+ Unregularized matrix game. Freund and Schapire (1999) showed that many standard methods such as GDA and MWU have a converging average duality gap at the rate of $O ( 1 / \sqrt { T } )$ , which is improved to $O ( 1 / T )$ by considering optimistic variants of these methods, such as OGDA and OMWU (Rakhlin and Sridharan, 2013; Daskalakis et al., 2011; Syrgkanis et al., 2015). However, the last-iterate convergence of these methods are less understood until recently (Daskalakis and Panageas, 2018a; Wei et al., 2021b). In particular, under the assumption that the NE is unique for the unregularized matrix game, Daskalakis and Panageas (2018a) showed the asymptotic convergence of the last iterate of OMWU to the unique equilibrium, and Wei et al. (2021b) showed the last iterate of OMWU achieves a linear rate of convergence after an initial phase of sublinear convergence, however the rates therein can be highly pessimistic in terms of the problem dimension, while our rate for entropy-regularized OMWU is dimension-free up to logarithmic factors.
46
+
47
+ Saddle-point optimization. Considerable progress has been made towards understanding OGDA and extragradient (EG) methods in the unconstrained convex-concave saddle-point optimization with general objective functions (Mokhtari et al., 2020a,b; Nemirovski, 2004; Liang and Stokes, 2019). However, the last-iterate convergence of constrained convex-concave saddle-point optimization still lacks theoretical understanding in general and most works fall short of characterizing a finite-time convergence result. In particular, Mertikopoulos et al. (2018a) demonstrated the asymptotic lastiterate convergence of EG, and Hsieh et al. (2019) investigated similar questions for single-call EG algorithms. Lei et al. (2021) showed that OMWU converges to the equilibrium locally without an explicit rate. Wei et al. (2021b) showed that the last-iterate of OGDA converges linearly for strongly-convex strongly-concave constrained saddle-point optimization with an explicit rate.
48
+
49
+ Entropy regularization in RL and games. In single-agent RL, the role of entropy regularization as an algorithmic mechanism to encourage exploration and accelerate convergence has been investigated extensively (Neu et al., 2017; Geist et al., 2019; Mei et al., 2020; Cen et al., 2020; Lan, 2021; Zhan et al., 2021). Turning to the game setting, entropy regularization is used to account for imperfect information in the seminal work of McKelvey and Palfrey (1995) that introduced the QRE, and a few representative works on entropy and more general regularizations in games include Savas et al. (2019); Hofbauer and Sandholm (2002); Mertikopoulos and Sandholm (2016).
50
+
51
+ Zero-sum Markov games. There have been a significant recent interest in developing provably efficient self-play algorithms for Markov games, including model-based algorithms (Perolat et al., 2015; Zhang et al., 2020), value-based algorithms (Bai and Jin, 2020; Xie et al., 2020), and policybased algorithms (Daskalakis et al., 2020; Wei et al., 2021a; Zhao et al., 2021). The iteration complexities in prior works (Perolat et al., 2015; Daskalakis et al., 2020; Wei et al., 2021a; Zhao et al., 2021) depend on various notions of concentrability coefficient and therefore can scale quite pessimistically with the problem dimension. Our approach can be regarded as a policy-based algorithm to approximate value iteration, which can be implemented in a decentralized manner with symmetric and multiplicative updates from both players, and the iteration complexity is almost independent of the size of the state-action space.
52
+
53
+ Notation. We denote by $\Delta ( \mathcal { A } )$ the probability simplex over the set $\mathcal { A }$ . We overload the functions such as $\log ( \cdot )$ and $\exp ( \cdot )$ to take vector inputs with the understanding that the function is applied in an entrywise manner. For instance, given any vector $z = [ z _ { i } ] _ { 1 \leq i \leq n } \in \mathbb { R } ^ { n }$ , the notation $\exp ( z )$ denotes $\exp ( z ) : = [ \exp ( z _ { i } ) ] _ { 1 \leq i \leq n }$ ; other functions are defined analogously. Given two probability distributions $\mu$ and $\mu ^ { \prime }$ over $\mathcal { A }$ , the KL divergence from $\mu ^ { \prime }$ to $\mu$ is defined by $\begin{array} { r } { \mathsf { K L } ( \mu \parallel \mu ^ { \prime } ) : = \sum _ { a \in \mathcal { A } } \mu ( a ) \log \frac { \mu ( a ) } { \mu ^ { \prime } ( a ) } } \end{array}$ . Given a matrix $A$ , $\| A \| _ { \infty }$ is used to denote entrywise maximum norm, namely, $\left\| A \right\| _ { \infty } = \operatorname* { m a x } _ { i , j } \left| A _ { i , j } \right|$ . The all-one vector is denoted as 1.
54
+
55
+ # 2 Zero-sum matrix games with entropy regularization
56
+
57
+ We first consider a two-player zero-sum game with bilinear objective and probability simplex constraints, and demonstrate the positive role of entropy regularization in solving this problem. Throughout this paper, let $\mathcal { A } = \{ 1 , \dotsc , m \}$ and $\boldsymbol { B } = \{ 1 , \ldots , \bar { n } \}$ be the action spaces of each player.
58
+
59
+ # 2.1 Background and problem formulation
60
+
61
+ Zero-sum two-player matrix game. The focal point of this subsection is a constrained two-player zero-sum matrix game, which can be formulated as the following min-max problem (or saddle point optimization problem):
62
+
63
+ $$
64
+ \operatorname* { m a x } _ { \mu \in \Delta ( \mathcal { A } ) } \operatorname* { m i n } _ { \nu \in \Delta ( \mathcal { B } ) } f ( \mu , \nu ) : = \mu ^ { \top } A \nu ,
65
+ $$
66
+
67
+ where $\textbf { \textit { A } } \in \mathbb { R } ^ { m \times n }$ denotes the payoff matrix, $\mu ~ \in ~ \Delta ( { \mathcal { A } } )$ and $\nu ~ \in ~ \Delta ( B )$ stand for the mixed/randomized policies of each player, defined respectively as distributions over the probability simplex $\Delta ( \mathcal { A } )$ and $\Delta ( B )$ . A pair of policies $( \mu ^ { \star } , \nu ^ { \star } )$ is said to be a Nash equilibrium (NE) of (1) if $f ( \mu ^ { \star } , \nu ) \geq f ( \mu ^ { \star } , \nu ^ { \star } ) \geq f ( \mu , \nu ^ { \star } )$ for all $( \mu , \nu ) \in \Delta ( \mathcal { A } ) \times \Delta ( \mathcal { B } )$ .
68
+
69
+ Entropy-regularized zero-sum two-player matrix game. There is no shortage of scenarios where the payoff matrix $A$ might not be known perfectly. In an attempt to accommodate imperfect knowledge of $A$ , McKelvey and Palfrey (1995) proposed a seminal extension to the Nash equilibrium called the quantal response equilibrium $( Q R E )$ when the payoffs are perturbed by Gumbel-distributed noise. Formally, this amounts to solving the following matrix game with entropy regularization (Mertikopoulos and Sandholm, 2016):
70
+
71
+ $$
72
+ \operatorname* { m a x } _ { \mu \in \Delta ( \mathcal { A } ) } \operatorname* { m i n } _ { \nu \in \Delta ( \mathcal { B } ) } f _ { \tau } ( \mu , \nu ) : = \mu ^ { \top } A \nu + \tau \mathcal { H } ( \mu ) - \tau \mathcal { H } ( \nu ) ,
73
+ $$
74
+
75
+ where $\begin{array} { r } { \mathcal { H } ( \pi ) = - \sum _ { i } \pi _ { i } \log ( \pi _ { i } ) } \end{array}$ denotes the Shannon entropy of a distribution $\pi$ , and $\tau \geq 0$ is the regularization parameter. As is well known, the optimal solution $( \mu _ { \tau } ^ { \star } , \nu _ { \tau } ^ { \star } )$ to (2), dubbed as the QRE,
76
+
77
+ is unique whenever $\tau > 0$ (due to the presence of strong concavity/convexity), which satisfies the following fixed point equations:
78
+
79
+ $$
80
+ \begin{array} { r } { \biggr \{ \mu _ { \tau } ^ { \star } ( a ) = \frac { \exp ( [ A \nu _ { \tau } ^ { \star } ] a / \tau ) } { \sum _ { a = 1 } ^ { m } \exp ( [ A \nu _ { \tau } ^ { \star } ] a / \tau ) } \propto \exp ( [ A \nu _ { \tau } ^ { \star } ] a / \tau ) , \qquad \mathrm { f o r ~ a l l } \ a \in \mathcal { A } , } \\ { \nu _ { \tau } ^ { \star } ( b ) = \frac { \exp ( - [ A ^ { \top } \mu _ { \tau } ^ { \star } ] b / \tau ) } { \sum _ { b = 1 } ^ { n } \exp ( - [ A ^ { \top } \mu _ { \tau } ^ { \star } ] b / \tau ) } \propto \exp ( - [ A ^ { \top } \mu _ { \tau } ^ { \star } ] b / \tau ) , \quad \mathrm { f o r ~ a l l } \ b \in \mathcal { B } . } \end{array}
81
+ $$
82
+
83
+ Goal. We aim to efficiently compute the QRE of the entropy-regularized matrix game in a decentralized manner, and investigate how an efficient solver of QRE can be leveraged to find a NE of the unregularized matrix game (1). Namely, we only assume access to “first-order information” as opposed to full knowledge of the payoff matrix $A$ or the actions of the opponent. The information received by each player is formally described in the following sampling oracle.
84
+
85
+ Definition 1 (Sampling oracle for matrix games). For any policy pair $( \mu , \nu )$ and payoff matrix $A$ the sampling oracle returns the exact values of $\mu ^ { \top } A$ and $A \nu$ .
86
+
87
+ Additional notation. For notational convenience, we let $\zeta$ represent the concatenation of $\mu \in \mathbb { R } ^ { | \mathcal { A } | }$ and $\nu \in \mathbb { R } ^ { | B | }$ , namely, $\zeta = ( \mu , \nu )$ . The solution to (2), which is specified in (3), is denoted by $\zeta _ { \tau } ^ { \star } = ( \mu _ { \tau } ^ { \star } , \nu _ { \tau } ^ { \star } )$ . For any $\zeta = ( \mu , \nu )$ and $\zeta ^ { \prime } = ( \mu ^ { \prime } , \nu ^ { \prime } )$ , we shall often abuse the notation and let $\mathsf { K L } \big ( \zeta \| \zeta ^ { \prime } \big ) = \mathsf { K L } \big ( \mu \| \mu ^ { \prime } \big ) + \mathsf { K L } \big ( \nu \| \nu ^ { \prime } \big )$ . The duality gap of the entropy-regularized matrix game (2) at $\zeta = ( \mu , \nu )$ is defined as $\begin{array} { r } { \mathsf { D u a l G a p } _ { \tau } ( \zeta ) = \operatorname* { m a x } _ { \mu ^ { \prime } \in \Delta ( A ) } f _ { \tau } ( \mu ^ { \prime } , \nu ) - \operatorname* { m i n } _ { \nu ^ { \prime } \in \Delta ( B ) } f _ { \tau } ( \mu , \nu ^ { \prime } ) } \end{array}$ which is clearly nonnegative and $\mathsf { D u a l G a p } _ { \tau } ( \boldsymbol { \zeta } _ { \tau } ^ { \star } ) = 0$ . Similarly, let the optimality gap of the entropyregularized matrix game (2) at $\zeta = ( \mu , \nu )$ be $\mathsf { O p t G a p } ( \zeta ) = \left| f _ { \tau } ( \mu , \nu ) - f _ { \tau } ( \mu _ { \tau } ^ { \star } , \nu _ { \tau } ^ { \star } ) \right|$ .
88
+
89
+ # 2.2 Proposed extragradient methods: PU and OMWU
90
+
91
+ To begin, assume we are given a pair of policies $z _ { 1 } \in \Delta ( \mathcal { A } )$ , $z _ { 2 } \in \Delta ( B )$ employed by each player respectively. If we proceed with fictitious play, i.e. player 1 (resp. player 2) aims to optimize its own policy by assuming the opponent’s policy is fixed as $z _ { 2 }$ (resp. $z _ { 1 }$ ), the saddle-point optimization problem (2) is then decoupled into two independent min/max optimization problems:
92
+
93
+ $$
94
+ \operatorname* { m a x } _ { \mu \in \Delta ( A ) } \mu ^ { \top } A z _ { 2 } + \tau \mathcal { H } ( \mu ) - \tau \mathcal { H } ( z _ { 2 } ) \qquad \mathrm { a n d } \qquad \operatorname* { m i n } _ { \nu \in \Delta ( B ) } z _ { 1 } ^ { \top } A \nu + \tau \mathcal { H } ( z _ { 1 } ) - \tau \mathcal { H } ( \nu ) ,
95
+ $$
96
+
97
+ which are naturally solved via mirror descent / ascent with KL divergence. Specifically, one step of mirror descent / ascent takes the form
98
+
99
+ $$
100
+ \begin{array} { r } { \left\{ \begin{array} { l l } { \mu ^ { ( t + 1 ) } ( a ) \propto \mu ^ { ( t ) } ( a ) ^ { 1 - \eta \tau } \exp ( \eta [ A z _ { 2 } ] _ { a } ) , } & { \mathrm { f o r ~ a l l ~ } a \in \mathcal { A } , } \\ { \nu ^ { ( t + 1 ) } ( b ) \propto \nu ^ { ( t ) } ( b ) ^ { 1 - \eta \tau } \exp ( - \eta [ A ^ { \top } z _ { 1 } ] _ { b } ) , } & { \mathrm { f o r ~ a l l ~ } b \in \mathcal { B } , } \end{array} \right. } \end{array}
101
+ $$
102
+
103
+ where $\eta$ is the learning rate. The above update rule forms the basis of our algorithm design.
104
+
105
+ Motivation: a form of implicit updates with linear convergence. It turns out, if we could select the policy pair $( z _ { 1 } , z _ { 2 } ) = \hat { \zeta } ^ { ( t + 1 ) } : \stackrel { \bullet } { = } ( \mu ^ { ( t + 1 ) } , \nu ^ { ( t + 1 ) } )$ as the ones to be taken in the future, and call the resulting update rule as the Implicit Update (IU) method:
106
+
107
+ $$
108
+ \begin{array} { r } { \left\{ \mu ^ { ( t + 1 ) } ( a ) \propto \mu ^ { ( t ) } ( a ) ^ { 1 - \eta \tau } \exp ( \eta [ A \nu ^ { ( t + 1 ) } ] _ { a } ) , \right. \left. \mathrm { f o r ~ a l l } \ : a \in \mathcal { A } , \right. } \\ { \nu ^ { ( t + 1 ) } ( b ) \propto \nu ^ { ( t ) } ( b ) ^ { 1 - \eta \tau } \exp ( - \eta [ A ^ { \top } \mu ^ { ( t + 1 ) } ] _ { b } ) , \left. \mathrm { f o r ~ a l l } \ : b \in \mathcal { B } . \right. } \end{array}
109
+ $$
110
+
111
+ Though unrealistic — since it uses the future updates — it leads to a one-step convergence to the QRE when $\eta = 1 / \tau$ (see the optimality condition in (3)). Encouragingly, we have the following linear convergence guarantee of IU when adopting a general learning rate.
112
+
113
+ Proposition 1 (Linear convergence of IU). Assume $0 < \eta \leq 1 / \tau$ , then for all $t \geq 0$ , the iterates $\zeta ^ { ( t ) } : = ( \mu ^ { ( t ) } , \nu ^ { ( t ) } )$ of the $I U$ method in (5) satisfy $\mathsf { K L } \big ( \zeta _ { \tau } ^ { \star } \parallel \zeta ^ { ( t ) } \big ) \leq ( 1 - \eta \tau ) ^ { t } \mathsf { K L } \big ( \zeta _ { \tau } ^ { \star } \parallel \zeta ^ { ( 0 ) } \big )$ .
114
+
115
+ In words, the IU method achieves an appealing linear rate of convergence that is independent of the problem dimension. Motivated by this observation, we seek to design algorithms where the policies $( z _ { 1 } , z _ { 2 } )$ employed in (4) serve as good predictions of $( \mu ^ { ( t + 1 ) } , \nu ^ { ( t + \bar { 1 ) } } )$ , such that the resulting algorithms are both practical and retain the appealing convergence rate of IU.
116
+
117
+ Proposed algorithms. We propose two extragradient algorithms for solving the entropy-regularized matrix game, namely the Predictive Update $( P U )$ method and the Optimistic Multiplicative Weights
118
+
119
+ # Algorithm 1: The PU method
120
+
121
+ # Algorithm 2: The OMWU method
122
+
123
+ 1 initialization: $\mu ^ { ( 0 ) }$ , $\nu ^ { ( 0 ) }$
124
+
125
+ 2 for $t = 0 , 1 , 2 , \cdots$ do
126
+
127
+ 2 for $t = 0 , 1 , 2 , \cdots$ do
128
+
129
+ 3 Update $\bar { \mu }$ and $\bar { \nu }$ according to
130
+
131
+ 3
132
+
133
+ Update $\bar { \mu }$ and $\bar { \nu }$ according to
134
+
135
+ $$
136
+ \begin{array} { r } { \left\{ \bar { \mu } ^ { ( t + 1 ) } ( a ) \propto { \mu } ^ { ( t ) } ( a ) ^ { 1 - \eta \tau } \exp ( \eta [ A \nu ^ { ( t ) } ] _ { a } ) , \right. \qquad } \\ { \left. \bar { \nu } ^ { ( t + 1 ) } ( b ) \propto \nu ^ { ( t ) } ( b ) ^ { 1 - \eta \tau } \exp ( - \eta [ A ^ { \top } { \mu } ^ { ( t ) } ] _ { b } ) . \right. } \end{array}
137
+ $$
138
+
139
+ $$
140
+ \begin{array} { r } { \left\{ \bar { \mu } ^ { ( t + 1 ) } ( a ) \propto { \mu } ^ { ( t ) } ( a ) ^ { 1 - \eta \tau } \exp ( \eta [ A \bar { \nu } ^ { ( t ) } ] _ { a } ) , \right. \mathrm { ~ } } \\ { \left. \bar { \nu } ^ { ( t + 1 ) } ( b ) \propto \nu ^ { ( t ) } ( b ) ^ { 1 - \eta \tau } \exp ( - \eta [ A ^ { \top } \bar { \mu } ^ { ( t ) } ] _ { b } ) . \right. } \end{array}
141
+ $$
142
+
143
+ 4 Update $\mu$ and $\nu$ according to
144
+
145
+ Update $\mu$ and $\nu$ according to
146
+
147
+ $$
148
+ \begin{array} { r } { \left\{ \begin{array} { l l } { \mu ^ { ( t + 1 ) } ( a ) \propto \mu ^ { ( t ) } ( a ) ^ { 1 - \eta \tau } \exp ( \eta [ A \bar { \nu } ^ { ( t + 1 ) } ] _ { a } ) , } \\ { \nu ^ { ( t + 1 ) } ( b ) \propto \nu ^ { ( t ) } ( b ) ^ { 1 - \eta \tau } \exp ( - \eta [ A ^ { \top } \bar { \mu } ^ { ( t + 1 ) } ] _ { b } ) . } \end{array} \right. } \end{array}
149
+ $$
150
+
151
+ $$
152
+ \begin{array} { r } { \left\{ \begin{array} { l l } { \mu ^ { ( t + 1 ) } ( a ) \propto \mu ^ { ( t ) } ( a ) ^ { 1 - \eta \tau } \exp ( \eta [ A \bar { \nu } ^ { ( t + 1 ) } ] _ { a } ) , } \\ { \nu ^ { ( t + 1 ) } ( b ) \propto \nu ^ { ( t ) } ( b ) ^ { 1 - \eta \tau } \exp ( - \eta [ A ^ { \top } \bar { \mu } ^ { ( t + 1 ) } ] _ { b } ) . } \end{array} \right. } \end{array}
153
+ $$
154
+
155
+ Update (OMWU) method, the latter adapted from Rakhlin and Sridharan (2013); Daskalakis et al. (2011). Detailed procedures can be found in Algorithm 1 and Algorithm 2, respectively. On a high level, both algorithms maintain two intertwined sequences $\{ ( \mu ^ { ( \bar { t } ) } , \nu ^ { ( t ) } ) \} _ { t \geq 0 }$ and $\{ ( \bar { \mu } ^ { ( \dot { t } ) } , \bar { \nu } ^ { ( t ) } ) \} _ { t \geq 0 }$ , and in each iteration $t = 0 , 1 , \ldots$ , proceed in two steps:
156
+
157
+ • The midpoint $( \bar { \mu } ^ { ( t + 1 ) } , \bar { \nu } ^ { ( t + 1 ) } )$ serves as a prediction of $( \mu ^ { ( t + 1 ) } , \nu ^ { ( t + 1 ) } )$ by running one step of mirror descent / ascent (cf. (4)) from either $( z _ { 1 } , z _ { 2 } ) = ( \mu ^ { ( t ) } , \nu ^ { ( t ) } )$ (for PU) or $( z _ { 1 } , z _ { 2 } ) = ( \bar { \mu } ^ { ( t ) } , \bar { \nu } ^ { ( t ) } )$ (for OMWU).
158
+
159
+ • The update of $( \boldsymbol { \mu } ^ { ( t + 1 ) } , \boldsymbol { \nu } ^ { ( t + 1 ) } )$ then mimics the implicit update (5) using the prediction $( \bar { \mu } ^ { ( t + 1 ) } , \bar { \nu } ^ { ( t + 1 ) } )$ obtained above.
160
+
161
+ When the proposed algorithms converge, both $( \mu ^ { ( t ) } , \nu ^ { ( t ) } )$ and $( \bar { \mu } ^ { ( t ) } , \bar { \nu } ^ { ( t ) } )$ converge to the same point. The two players are completely symmetric and adopt the same learning rate, and require only first-order information provided by the sampling oracle. While the two algorithms resemble each other in many aspects, a key difference lies in the query and use of the sampling oracle: in each iteration, OMWU makes a single call to the sampling oracle for gradient evaluation, while PU calls the sampling oracle twice. It is worth noting that, when $\tau = 0$ (i.e., no entropy regularization is enforced), the OMWU method in Algorithm 2 reduces to the method analyzed in Rakhlin and Sridharan (2013); Daskalakis and Panageas (2018a); Wei et al. (2021b) without entropy regularization.
162
+
163
+ Remark 1. It is worth highlighting that the proposed algorithms are different from Mertikopoulos et al. (2018a), as the extragradient is only applied to the bilinear term but not the entropy regularization term. This seemingly small, but important, difference leads to a more concise closed-form update rule and a cleaner analysis, as shall be seen momentarily.
164
+
165
+ # 2.3 Performance guarantees
166
+
167
+ We are now positioned to present our main theorem concerning the last-iterate convergence of PU and OMWU for solving (2).
168
+
169
+ Theorem 1 (Last-iterate convergence of PU and OMWU). Suppose that the learning rates $\eta = \eta _ { \mathsf { P U } }$ of $P U$ in Algorithm $I$ and $\eta = \eta$ OMWU of OMWU in Algorithm 2 satisfy
170
+
171
+ $$
172
+ 0 < \eta _ { \mathsf { P U } } \leq \frac { 1 } { \tau + 2 \left\| A \right\| _ { \infty } } , a n d 0 < \eta _ { \mathsf { O M W U } } \leq \operatorname* { m i n } \left\{ \frac { 1 } { 2 \tau + 2 \left\| A \right\| _ { \infty } } , \frac { 1 } { 4 \left\| A \right\| _ { \infty } } \right\} .
173
+ $$
174
+
175
+ Then for any $t \geq 0$ , the iterates $\zeta ^ { ( t ) } = ( \mu ^ { ( t ) } , \nu ^ { ( t ) } )$ and $\bar { \zeta } ^ { ( t ) } = ( \bar { \mu } ^ { ( t ) } , \bar { \nu } ^ { ( t ) } )$ of $P U$ and OMWU achieve
176
+
177
+ # • Linear convergence of policies in KL divergence and entrywise log-ratios:
178
+
179
+ $$
180
+ \begin{array} { r l } & { \operatorname* { m a x } \left\{ \mathsf { K L } \big ( \zeta _ { \tau } ^ { \star } \| \zeta ^ { ( t ) } \big ) , \frac { 1 } { 2 } \mathsf { K L } \big ( \zeta _ { \tau } ^ { \star } \| \bar { \zeta } ^ { ( t + 1 ) } \big ) \right\} \leq ( 1 - \eta \tau ) ^ { t } \mathsf { K L } \big ( \zeta _ { \tau } ^ { \star } \| \zeta ^ { ( 0 ) } \big ) , } \\ & { \left\| \log \frac { \zeta ^ { ( t ) } } { \zeta _ { \tau } ^ { \star } } \right\| _ { \infty } \leq 2 ( 1 - \eta \tau ) ^ { t } \left\| \log \frac { \zeta ^ { ( 0 ) } } { \zeta _ { \tau } ^ { \star } } \right\| _ { \infty } + \frac { 8 \| A \| _ { \infty } } { \tau } ( 1 - \eta \tau ) ^ { t / 2 } \mathsf { K L } \big ( \zeta _ { \tau } ^ { \star } \| \zeta ^ { ( 0 ) } \big ) ^ { 1 / 2 } . } \end{array}
181
+ $$
182
+
183
+ # • Linear convergence of values in optimality and duality gaps:
184
+
185
+ $$
186
+ \begin{array} { r l } & { \mathsf { O p t G a p } _ { \tau } ( \bar { \zeta } ^ { ( t ) } ) \leq \eta ^ { - 1 } \cdot \frac { 1 } { 1 - ( \tau + \| A \| _ { \infty } ) \eta } \cdot \frac { ( 1 - \eta \tau ) ^ { t } } { 1 - ( 1 - \eta \tau ) ^ { t } } \mathsf { K L } \big ( \zeta _ { \tau } ^ { \star } \| \zeta ^ { ( 0 ) } \big ) , } \\ & { \mathsf { D u a l G a p } _ { \tau } ( \bar { \zeta } ^ { ( t ) } ) \leq \left( \eta ^ { - 1 } + 2 \tau ^ { - 1 } \| A \| _ { \infty } ^ { 2 } \right) ( 1 - \eta \tau ) ^ { t - 1 } \mathsf { K L } \big ( \zeta _ { \tau } ^ { \star } \| \zeta ^ { ( 0 ) } \big ) . } \end{array}
187
+ $$
188
+
189
+ Remark 2. Setting $\mu ^ { ( 0 ) }$ and $\nu ^ { ( 0 ) }$ to be uniform policies leads to a universal bound
190
+
191
+ $$
192
+ \begin{array} { r } { \mathsf { K L } \big ( \zeta _ { \tau } ^ { \star } \| \zeta ^ { ( 0 ) } \big ) = \log | \mathcal { A } | + \log | \mathcal { B } | - \mathcal { H } ( \mu _ { \tau } ^ { \star } ) - \mathcal { H } ( \nu _ { \tau } ^ { \star } ) \leq \log | \mathcal { A } | + \log | \mathcal { B } | . } \end{array}
193
+ $$
194
+
195
+ Remark 3. Similar results continue to hold even when the two players use different regularization parameters $\tau _ { \mu } , \tau _ { \nu } > 0$ in (2), as long as the regularization parameter $\tau$ is replaced by max $\{ \tau _ { \mu } , \tau _ { \nu } \}$ in the upper bounds of the learning rate, and the contraction parameter is replaced by $1 - \operatorname* { m i n } \{ \tau _ { \mu } , \tau _ { \nu } \} \eta$ .
196
+
197
+ Theorem 1 characterizes the convergence of the last-iterates $\zeta ^ { ( t ) }$ and $\bar { \zeta } ^ { ( t ) }$ of PU and OMWU as long as the learning rate lies within the specified ranges. While PU doubles the number of calls to the sampling oracle, it also allows roughly as large as twice the learning rate compared with OMWU (cf. (6)). Compared with the vast literature analyzing the average-iterate performance of variants of extragradient methods, our results contribute towards characterizing the last-iterate convergence of multiplicative update methods in the presence of entropy regularization and simplex constraints, which to the best of our knowledge, are the first of its kind. Several remarks are in order.
198
+
199
+ Linear convergence to QRE. To achieve an $\epsilon$ -accurate estimate of the QRE in terms of the KL divergence, the bound (7a) tells that it is sufficient to take
200
+
201
+ $$
202
+ \frac { 1 } { \eta \tau } \log \left( \frac { \log | \cal { A } | + \log | \cal { B } | } { \epsilon } \right)
203
+ $$
204
+
205
+ iterations using either PU or OMWU. Notably, this iteration complexity does not depend on any hidden constants and only depends double logarithmically on the cardinality of action spaces, which is almost dimension-free. Maximizing the learning rate, the iteration complexity is bounded by $( 1 + \| A \| _ { \infty } / \tau ) \log ( 1 / \epsilon )$ (modulo log factors), which only depends on the ratio $\| A \| _ { \infty } / \tau$ .
206
+
207
+ Entrywise error of the policy log-ratios. Both PU and OMWU enjoy strong entrywise guarantees in the sense we can guarantee the convergence of the $\ell _ { \infty }$ norm of the log-ratios between the learned policy pair and the QRE at the same dimension-free linear rate (cf. (7b)), which suggests the policy pair converges in a somewhat uniform manner across the entire action space.
208
+
209
+ Linear convergence of optimality and duality gaps. Our theorem also establishes the last-iterate convergence of the game values in terms of the optimality gap (cf. (7c)) and the duality gap (cf. (7d)) for both PU and OMWU. In particular, as will be seen, bounding the optimality gap of matrix games turns out to be the key enabler for generalizing our algorithms to Markov games, and bounding the duality gap allows to directly translate our results to finding a NE of unregularized matrix games.
210
+
211
+ Last-iterate convergence to approximate NE. The entropy-regularized matrix game can be thought as a smooth surrogate of the unregularized matrix game (1); in particular, it is possible to find an $\epsilon$ -NE by setting $\tau$ sufficiently small in (2). According to (Zhang et al., 2020, Definition 2.1), a policy pair $\bar { \zeta } = ( \mu , \bar { \nu } )$ is an $\epsilon$ -NE if it satisfies $\begin{array} { r } { \mathsf { D u a l G a p } ( \zeta ) : = \operatorname* { m a x } _ { \mu ^ { \prime } \in \Delta ( A ) } f ( \mu ^ { \prime } , \nu ) - \operatorname* { m i n } _ { \nu ^ { \prime } \in \Delta ( B ) } f ( \mu , \nu ^ { \prime } ) \leq \epsilon } \end{array}$ .
212
+
213
+ Observe that setting $\begin{array} { r } { \tau = \frac { \epsilon / 4 } { \log | \mathcal { A } | + \log | \mathcal { B } | } } \end{array}$ guarantees that $| f _ { \tau } ( \mu , \nu ) - f ( \mu , \nu ) | < \epsilon / 4$ uniformly over $( \mu , \nu ) \in \Delta ( \mathcal { A } ) \times \Delta ( \mathcal { B } )$ in view of the boundedness of the Shannon entropy $\mathcal { H } ( \cdot )$ . Theorem 7 (cf. (7d)) also ensures that our proposed algorithms find an approximate QRE $\bar { \zeta } ^ { ( T ) }$ such that $\mathsf { D u a l G a p } _ { \tau } \bigl ( \bar { \zeta } ^ { ( T ) } \bigr ) \leq$ $\epsilon / 2$ after taking $\begin{array} { r } { T = \widetilde { O } \left( \frac { 1 } { \eta \epsilon } \right) } \end{array}$ iterations, which is no more than $\begin{array} { r } { \widetilde { O } \left( 1 + \frac { \| A \| _ { \infty } } { \epsilon } \right) } \end{array}$ iterations with optimized learning rates. It follows immediately that
214
+
215
+ [ $\mathtt { \mathtt { M a l G a p } } ( \bar { \zeta } ^ { ( T ) } ) \le \mathtt { D u a l G a p } _ { \tau } ( \bar { \zeta } ^ { ( T ) } ) + \operatorname* { m a x } _ { \mu ^ { \prime } , \nu ^ { \prime } } \Big | f _ { \tau } ( \mu ^ { \prime } , \bar { \nu } ^ { ( T ) } ) - f _ { \tau } \big ( \bar { \mu } ^ { ( T ) } , \nu ^ { \prime } \big ) - \big ( f ( \mu ^ { \prime } , \bar { \nu } ^ { ( T ) } ) - f ( \bar { \mu } ^ { ( T ) } , \nu ^ { \prime } ) \big ) \Big | \le \epsilon ,$ and therefore $\bar { \zeta } ^ { ( T ) }$ is an $\mathrm { \epsilon - N E }$ . Intriguingly, unlike prior work (Daskalakis and Panageas, 2018a; Wei et al., 2021b) that analyzed the last-iterate convergence of OMWU in the unregularized setting $\mathit { \Pi } _ { \mathcal { T } } = 0 \mathit { \Pi } _ { \mathcal { c } }$ ), our last-iterate convergence does not require the NE of (1) to be unique.
216
+
217
+ Rationality. Another attractive feature of the algorithms developed above is being rational (as introduced in Bowling and Veloso (2001)) in the sense that the algorithm returns the best-response policy of one player when the opponent takes any fixed stationary policy. More specially, in terms of matrix games, when player 2 sticks to a stationary policy $\nu$ , the update of player 1 reduces to $\mu ^ { ( t + 1 ) } ( a ) \bar { \propto } \mu ^ { ( t ) } ( a ) ^ { 1 - \bar { \eta tau } } \exp ( \eta [ A \nu ] _ { a } )$ . In this case, Theorem 1 can be established in exactly the same fashion by restricting attention only to the updates of $\mu ^ { ( t ) }$ .
218
+
219
+ ![](images/4e4a6167f1bf0473e8d7a714c8b874f38c7ea875b79a1295462ea5a711766939.jpg)
220
+ Figure 1: Performance illustration of the PU and OMWU methods for solving entropy-regularized matrix games with $| \mathcal { A } | = | \mathcal { B } | = 1 0 0$ , where the entries of the payoff matrix $A$ is generated independently from the uniform distribution on $[ - 1 , 1 ]$ . The learning rates are fixed as $\eta = 0 . 1$ . The left panel plots various error metrics of convergence w.r.t. the iteration count with $\tau = 0 . 0 1$ , while the right panel plots these error metrics at 1000-th iteration with different choices of $\tau$ .
221
+
222
+ No-regret learning of OMWU. Besides convergence to equilibria, in game-theoretical settings, it is often desirable to design and implement no-regret algorithms, which are capable of providing black-box guarantees over arbitrary sequences played by the opponent (Cesa-Bianchi and Lugosi, 2006; Rakhlin and Sridharan, 2013). Fortunately, it turns out that entropy regularization not only accelerates the convergence, but also enables no-regret learning somewhat “for free”: it encourages exploration by putting a positive mass on every action, therefore guards against adversaries. By using a properly chosen learning rate schedule, the proposed OMWU (Algorithm 2) can be further established as a no-regret algorithm; the details can be found in (Cen et al., 2021).
223
+
224
+ # 3 Zero-sum Markov games with entropy regularization
225
+
226
+ Leveraging the success of PU and OMWU in solving the entropy-regularized matrix games, this section extends our current analysis to solve the zero-sum two-player Markov game with entropy regularization, which is again formulated as finding the equilibrium of a saddle-point optimization problem. We start by introducing its basic setup, which will be followed by the proposed policy extragradient method with its theoretical guarantees.
227
+
228
+ # 3.1 Background and problem formulation
229
+
230
+ We consider a discounted Markov Game (MG) which is defined as $\mathcal { M } = \{ { S , A , B , P , r , \gamma } \}$ , with discrete state space $s$ , action spaces of two players $\mathcal { A }$ and $\boldsymbol { B }$ , transition probability $P$ , reward function $r : \mathcal { S } \times \mathcal { A } \times \mathcal { B } [ 0 , 1 ]$ and discount factor $\gamma \in [ 0 , 1 )$ . A policy $\mu : { \mathcal { S } } \Delta ( { \mathcal { A } } )$ (resp. $\nu : S \to \Delta ( B ) )$ defines how player 1 (resp. player 2) reacts to a given state $s$ , where the probability of taking action $a \in { \mathcal { A } }$ (resp. $b \in B ,$ ) is $\mu ( a | s )$ (resp. $\nu ( b | s ) )$ . The transition probability kernel $P : \mathcal { S } \times \mathcal { A } \times \mathcal { B } \Delta ( \mathcal { S } )$ defines the dynamics of the Markov game, where $P ( s ^ { \prime } | s , a , b )$ specifies the probability of transiting to state $s ^ { \prime }$ from state $s$ when the players take actions $a$ and $b$ respectively.
231
+
232
+ Motivated by entropy regularization in Markov decision processes (MDP) (Geist et al., 2019), we consider an entropy-regularized variant of MG, where the value function is defined as
233
+
234
+ $$
235
+ V _ { \tau } ^ { \mu , \nu } ( s ) : = \mathbb { E } \left[ \sum _ { t = 0 } ^ { \infty } \gamma ^ { t } \left( r ( s _ { t } , a _ { t } , b _ { t } ) - \tau \log \mu ( a _ { t } | s _ { t } ) + \tau \log \nu ( b _ { t } | s _ { t } ) \right) ~ \middle | s _ { 0 } = s \right] ,
236
+ $$
237
+
238
+ where the quantity $\tau \geq 0$ denotes the regularization parameter, and the expectation is evaluated over the randomness of the transition kernel as well as the policies. The regularized Q-function $Q _ { \tau } ^ { \mu , \nu }$ of a
239
+
240
+ policy pair $( \mu , \nu )$ is related to $V _ { \tau } ^ { \mu , \nu }$ as
241
+
242
+ $$
243
+ \begin{array} { r } { Q _ { \tau } ^ { \mu , \nu } ( s , a , b ) = r ( s , a , b ) + \gamma \mathbb { E } _ { s ^ { \prime } \sim P ( \cdot \mid s , a , b ) } \bigl [ V _ { \tau } ^ { \mu , \nu } \bigl ( s ^ { \prime } \bigr ) \bigr ] . } \end{array}
244
+ $$
245
+
246
+ We will call $V _ { \tau } ^ { \mu , \nu }$ and $Q _ { \tau } ^ { \mu , \nu }$ the soft value function and soft $Q$ -function, respectively. A policy pair $( \mu _ { \tau } ^ { \star } , \nu _ { \tau } ^ { \star } )$ is said to be the quantal response equilibrium (QRE) of the entropy-regularized MG, if its value attains the minimax value of the entropy-regularized MG over all states $s \in S$ , i.e.
247
+
248
+ $$
249
+ V _ { \tau } ^ { \star } ( s ) = \operatorname* { m a x } _ { \mu } \operatorname* { m i n } _ { \nu } V _ { \tau } ^ { \mu , \nu } ( s ) = \operatorname* { m i n } _ { \nu } \operatorname* { m a x } _ { \mu } V _ { \tau } ^ { \mu , \nu } ( s ) : = V _ { \tau } ^ { \mu _ { \tau } ^ { \star } , \nu _ { \tau } ^ { \star } } ( s ) ,
250
+ $$
251
+
252
+ where ${ \cal V } _ { \tau } ^ { \star }$ is called the optimal minimax soft value function, and similarly $Q _ { \tau } ^ { \star } : = Q _ { \tau } ^ { \mu _ { \tau } ^ { \star } , \nu _ { \tau } ^ { \star } }$ is called the optimal minimax soft Q-function.
253
+
254
+ Goal. Our goal is to find the QRE of the entropy-regularized MG in a decentralized manner where the players only observe its own reward without accessing the opponent’s actions. By setting the regularization parameter sufficiently small $\tau$ , this also allows us to find an approximate NE of the unregularized MG.
255
+
256
+ # 3.2 From value iteration to policy extragradient methods
257
+
258
+ Entropy-regularized value iteration. It is known that classical dynamic programming approaches such as value iteration can be extended to solve MG (Perolat et al., 2015), where each iteration amounts to solving a series of matrix games for each state. Similar to the single-agent case (Cen et al., 2020), we can extend these approaches to solve the entropy-regularized MG. Setting the stage, let us introduce the per-state $\mathbf { Q }$ -value matrix $Q ( s ) : = Q ( s , \cdot , \cdot ) \bar { \in \mathbb { R } ^ { | \mathcal { A } | \times | \mathcal { B } | } }$ for every $s \in S$ , where the element indexed by the action pair $( a , b )$ is $Q ( s , a , b )$ . Similarly, we define the per-state policies $\mu ( s ) : = \mu ( \cdot | s ) \in \Delta ( { \dot { A } } )$ and $\nu ( s ) : = \nu ( \cdot | s ) \in \Delta ( B )$ for both players.
259
+
260
+ In parallel to the original Bellman operator, we denote the soft Bellman operator $\mathcal { T } _ { \tau }$ as
261
+
262
+ $$
263
+ \mathcal { T } _ { \tau } ( Q ) ( s , a , b ) : = r ( s , a , b ) + \gamma \mathbb { E } _ { s ^ { \prime } \sim P ( \cdot \vert s , a , b ) } \left[ \operatorname* { m a x } _ { \mu ( s ^ { \prime } ) \in \Delta ( A ) } \operatorname* { m i n } _ { \nu ( s ^ { \prime } ) \in \Delta ( B ) } f _ { \tau } \left( Q ( s ^ { \prime } ) ; \mu ( s ^ { \prime } ) , \nu ( s ^ { \prime } ) \right) \right] ,
264
+ $$
265
+
266
+ where for each per-state Q-value matrix $Q ( s )$ , we introduce an entropy-regularized matrix game in the form of
267
+
268
+ $$
269
+ \displaystyle \operatorname* { m a x } _ { \mu \in \Delta ( A ) } \operatorname* { m i n } _ { \nu \in \Delta ( B ) } f _ { \tau } \big ( Q ( s ) ; \mu ( s ) , \nu ( s ) \big ) : = \mu ( s ) ^ { \top } Q ( s ) \nu ( s ) - \tau \mathcal { H } ( \mu ( s ) ) + \tau \mathcal { H } ( \nu ( s ) ) .
270
+ $$
271
+
272
+ The entropy-regularized value iteration then proceeds as
273
+
274
+ $$
275
+ Q ^ { ( t + 1 ) } = T _ { \tau } ( Q ^ { ( t ) } ) ,
276
+ $$
277
+
278
+ where $Q ^ { ( 0 ) }$ is an initialization. By definition, the optimal minimax soft Q-function obeys ${ \cal T } _ { \tau } ( Q _ { \tau } ^ { \star } ) =$ $Q _ { \tau } ^ { \star }$ and therefore corresponds to the fix point of the soft Bellman operator. Given the above entropyregularized value iteration, the following lemma states its iterates contract linearly to the optimal minimax soft Q-function at a rate of the discount factor $\gamma$ .
279
+
280
+ Proposition 2. The entropy-regularized value iteration (10) converges at a linear rate, i.e. $\parallel Q ^ { ( t ) } -$
281
+ $Q _ { \tau } ^ { \star } \| _ { \infty } \leq \gamma ^ { t } \| Q ^ { ( 0 ) } - Q _ { \tau } ^ { \star } \| _ { \infty }$ .
282
+
283
+ Approximate value iteration via policy extragradient methods. Proposition 2 suggests that the optimal minimax soft Q-function of the entropy-regularized MG can be found by solving a series of entropy-regularized matrix games induced by $\bar { \{ Q ^ { ( t ) } \} } _ { t \geq 0 }$ in (10), a task that can be accomplished by adopting the fast extragradient methods developed earlier. To proceed, we first define the following sampling oracle, which makes it rigorous that the proposed algorithm does not require access to the Q-function of the entire MG, but only its own single-agent Q-function when playing against the opponent’s policy.
284
+
285
+ Definition 2 (Sampling oracle for Markov games). Given any policy pair $\mu ( s ) , \nu ( s )$ and $Q$ -value matrix $Q ( s )$ for any $s \in S$ , the sampling oracle returns
286
+
287
+ $$
288
+ [ Q ( s ) \nu ( s ) ] _ { a } = \mathbb { E } _ { b \sim \nu ( s ) } \left[ Q ( s , a , b ) \right] , \qquad a n d \qquad [ Q ( s ) ^ { \top } \mu ( s ) ] _ { b } = \mathbb { E } _ { a \sim \mu ( s ) } \left[ Q ( s , a , b ) \right]
289
+ $$
290
+
291
+ for any $a \in { \mathcal { A } }$ and $b \in B$ .
292
+
293
+ # Algorithm 3: Policy Extragradient Method for Entropy-regularized Markov Game
294
+
295
+ 1 initialization: $Q ^ { ( 0 ) } = 0$ .
296
+ 2 for $t = 0 , 1 , 2 , \cdots , T _ { \mathrm { m a i n } } \mathrm { { \bf d o } }$
297
+ 3 Let $Q ^ { ( t ) }$ denote $\begin{array} { r } { Q ^ { ( t ) } ( s , a , b ) = r ( s , a , b ) + \gamma \mathbb { E } _ { s ^ { \prime } \sim P ( \cdot | s , a , b ) } V ^ { ( t ) } ( s ^ { \prime } ) . } \end{array}$ (11)
298
+ 4 Invoke PU (Algorithm 1) or OMWU (Algorithm 2) for $T _ { \mathrm { s u b } }$ iterations to solve the following entropy-regularized matrix game for every state $s$ , where the initialization is set as uniform distributions: $\operatorname* { m a x } _ { \mu ( s ) \in \Delta ( A ) } \operatorname* { m i n } _ { \nu ( s ) \in \Delta ( B ) } f _ { \tau } \big ( Q ^ { ( t ) } ( s ) ; \mu ( s ) , \nu ( s ) \big ) .$ Return the last iterate $\bar { \mu } ^ { ( t , T _ { \mathrm { s u b } } ) } ( s ) , \bar { \nu } ^ { ( t , T _ { \mathrm { s u b } } ) } ( s )$ .
299
+ 5 Set $V ^ { ( t + 1 ) } ( s ) = f _ { \tau } \left( Q ^ { ( t ) } ( s ) ; \bar { \mu } ^ { ( t , \bar { T } _ { \mathrm { s u b } } ) } ( s ) , \bar { \nu } ^ { ( t , \bar { T } _ { \mathrm { s u b } } ) } ( s ) \right)$ .
300
+
301
+ Encouragingly, by judiciously setting the number of iterations in both the outer loop (for updating the Q-value matrices) and the inner loop (for updating the QRE of the corresponding Q-value matrix), we are guaranteed to find the QRE of the entropy-regularized MG in a small number of iterations without solving the iteration-varying matrix games exactly, as dictated by the following theorem.
302
+
303
+ Theorem 2. Assume $| { \mathcal { A } } | \geq | { \mathcal { B } } |$ and $\tau \leq 1$ . Setting $\begin{array} { r } { \eta = \frac { 1 - \gamma } { 2 ( 1 + \tau ( \log | \mathcal { A } | + 1 - \gamma ) ) } } \end{array}$ , the total iterations (namely, the product $T _ { \mathrm { m a i n } } \cdot T _ { \mathrm { s u b , } }$ ) required for Algorithm 3 to achieve $\left\| Q ^ { ( { \vec { T } _ { \operatorname* { m i n } } } ) } - Q _ { \tau } ^ { \star } \right\| _ { \infty } \leq \epsilon$ is at most $\begin{array} { r } { O \left( \frac { ( \log | \cal { A } | + 1 / \tau ) } { ( 1 - \gamma ) ^ { 2 } } \left( \log \frac { \log | \cal { A } | } { ( 1 - \gamma ) \epsilon } \right) ^ { 2 } \right) } \end{array}$ .
304
+
305
+ Theorem 2 ensures that within $\begin{array} { r } { \widetilde O \left( \frac { 1 } { \tau ( 1 - \gamma ) ^ { 2 } } \log ^ { 2 } \left( \frac { 1 } { \epsilon } \right) \right) } \end{array}$ iterations, Algorithm 3 finds a pair of policies whose value is close to the optimal minimax soft Q-function $Q _ { \tau } ^ { \star }$ in an entrywise manner to a prescribed accuracy $\epsilon$ . Remarkably, the iteration complexity is independent of the dimensions of the state space and the action space (up to log factors).
306
+
307
+ Remark 4 (Duality gap and solving the unregularized MG). Solving the entropy-regularized MG provides a viable strategy to find an $\epsilon$ -approximate NE of the unregularized MG, where the optimality of a policy pair is typically gauged by the duality gap. Fortunately, this can be achieved similar to the case of matrix games, and we refer interested readers to Cen et al. (2021) for details.
308
+
309
+ # 4 Conclusions
310
+
311
+ This paper develops provably efficient policy extragradient methods (PU and OMWU) for entropyregularized matrix games and Markov games, whose last iterates are guaranteed to converge linearly to the quantal response equilibrium at a linear rate. Encouragingly, the rate of convergence is independent of the dimension of the problem, i.e. the sizes of the space space and the action space. In addition, the last iterates of the proposed algorithms can also be used to locate Nash equilibria for the unregularized competitive games without assuming the uniqueness of the Nash equilibria by judiciously tuning the amount of regularization. This work opens up interesting opportunities for further investigations of policy extragradient methods for solving competitive games. For example, can we develop a two-time-scale policy extragradient algorithms for Markov games where the Qfunction is updated simultaneously with the policy but potentially at a different time scale, using samples, such as in an actor-critic algorithm (Konda and Tsitsiklis, 2000)?
312
+
313
+ # Acknowledgments and Disclosure of Funding
314
+
315
+ S. Cen and Y. Chi are supported in part by the grants ONR N00014-18-1-2142 and N00014-19-1- 2404, ARO W911NF-18-1-0303, NSF CCF-1901199, CCF-2007911 and CCF-2106778. Y. Wei is supported in part by the NSF grants CCF-2007911, DMS-2147546/2015447 and CCF-2106778.
316
+
317
+ References
318
+ Arora, S., Hazan, E., and Kale, S. (2012). The multiplicative weights update method: a meta-algorithm and applications. Theory of Computing, 8(1):121–164.
319
+ Bai, Y. and Jin, C. (2020). Provable self-play algorithms for competitive reinforcement learning. In International Conference on Machine Learning, pages 551–560. PMLR.
320
+ Bowling, M. and Veloso, M. (2001). Rational and convergent learning in stochastic games. In Proceedings of the 17th international joint conference on Artificial intelligence-Volume 2, pages 1021–1026.
321
+ Cen, S., Cheng, C., Chen, Y., Wei, Y., and Chi, Y. (2020). Fast global convergence of natural policy gradient methods with entropy regularization. arXiv preprint arXiv:2007.06558.
322
+ Cen, S., Wei, Y., and Chi, Y. (2021). Fast policy extragradient methods for competitive games with entropy regularization. arXiv preprint arXiv:2105.15186.
323
+ Cesa-Bianchi, N. and Lugosi, G. (2006). Prediction, learning, and games. Cambridge university press.
324
+ Daskalakis, C., Deckelbaum, A., and Kim, A. (2011). Near-optimal no-regret algorithms for zero-sum games. In Proceedings of the twenty-second annual ACM-SIAM symposium on Discrete Algorithms, pages 235–254. SIAM.
325
+ Daskalakis, C., Foster, D. J., and Golowich, N. (2020). Independent policy gradient methods for competitive reinforcement learning. In Advances in Neural Information Processing Systems, volume 33, pages 5527–5540.
326
+ Daskalakis, C., Ilyas, A., Syrgkanis, V., and Zeng, H. (2018). Training GANs with optimism. In International Conference on Learning Representations (ICLR 2018).
327
+ Daskalakis, C. and Panageas, I. (2018a). Last-iterate convergence: Zero-sum games and constrained min-max optimization. arXiv preprint arXiv:1807.04252.
328
+ Daskalakis, C. and Panageas, I. (2018b). The limit points of (optimistic) gradient descent in minmax optimization. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 9256–9266.
329
+ Freund, Y. and Schapire, R. E. (1999). Adaptive game playing using multiplicative weights. Games and Economic Behavior, 29(1-2):79–103.
330
+ Geist, M., Scherrer, B., and Pietquin, O. (2019). A theory of regularized Markov decision processes. In International Conference on Machine Learning, pages 2160–2169.
331
+ Goodfellow, I. J., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., and Bengio, Y. (2014). Generative adversarial networks. arXiv preprint arXiv:1406.2661.
332
+ Harker, P. T. and Pang, J.-S. (1990). Finite-dimensional variational inequality and nonlinear complementarity problems: a survey of theory, algorithms and applications. Mathematical programming, 48(1):161–220.
333
+ Hofbauer, J. and Sandholm, W. H. (2002). On the global convergence of stochastic fictitious play. Econometrica, 70(6):2265–2294.
334
+ Hsieh, Y.-G., Iutzeler, F., Malick, J., and Mertikopoulos, P. (2019). On the convergence of single-call stochastic extra-gradient methods. arXiv preprint arXiv:1908.08465.
335
+ Konda, V. R. and Tsitsiklis, J. N. (2000). Actor-critic algorithms. In Advances in neural information processing systems, pages 1008–1014. Citeseer.
336
+ Korpelevich, G. M. (1976). The extragradient method for finding saddle points and other problems. Matecon, 12:747–756.
337
+ Lan, G. (2021). Policy mirror descent for reinforcement learning: Linear convergence, new sampling complexity, and generalized problem classes. arXiv preprint arXiv:2102.00135.
338
+ Lei, Q., Nagarajan, S. G., Panageas, I., and Wang, X. (2021). Last iterate convergence in no-regret learning: constrained min-max optimization for convex-concave landscapes. In International Conference on Artificial Intelligence and Statistics, pages 1441–1449. PMLR.
339
+ Liang, T. and Stokes, J. (2019). Interaction matters: A note on non-asymptotic local convergence of generative adversarial networks. In The 22nd International Conference on Artificial Intelligence and Statistics, pages 907–915. PMLR.
340
+ Littman, M. L. (1994). Markov games as a framework for multi-agent reinforcement learning. In Machine Learning Proceedings, pages 157–163. Elsevier.
341
+ McKelvey, R. D. and Palfrey, T. R. (1995). Quantal response equilibria for normal form games. Games and economic behavior, 10(1):6–38.
342
+ Mei, J., Xiao, C., Szepesvari, C., and Schuurmans, D. (2020). On the global convergence rates of softmax policy gradient methods. arXiv preprint arXiv:2005.06392.
343
+ Mertikopoulos, P., Lecouat, B., Zenati, H., Foo, C.-S., Chandrasekhar, V., and Piliouras, G. (2018a). Optimistic mirror descent in saddle-point problems: Going the extra (gradient) mile. In International Conference on Learning Representations.
344
+ Mertikopoulos, P., Papadimitriou, C., and Piliouras, G. (2018b). Cycles in adversarial regularized learning. In Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 2703–2717. SIAM.
345
+ Mertikopoulos, P. and Sandholm, W. H. (2016). Learning in games via reinforcement and regularization. Mathematics of Operations Research, 41(4):1297–1324.
346
+ Mokhtari, A., Ozdaglar, A., and Pattathil, S. (2020a). A unified analysis of extra-gradient and optimistic gradient methods for saddle point problems: Proximal point approach. In International Conference on Artificial Intelligence and Statistics, pages 1497–1507. PMLR.
347
+ Mokhtari, A., Ozdaglar, A. E., and Pattathil, S. (2020b). Convergence rate of $O ( 1 / k )$ for optimistic gradient and extragradient methods in smooth convex-concave saddle point problems. SIAM Journal on Optimization, 30(4):3230–3251.
348
+ Nemirovski, A. (2004). Prox-method with rate of convergence $O ( 1 / t )$ for variational inequalities with Lipschitz continuous monotone operators and smooth convex-concave saddle point problems. SIAM Journal on Optimization, 15(1):229–251.
349
+ Neu, G., Jonsson, A., and Gómez, V. (2017). A unified view of entropy-regularized Markov decision processes. arXiv preprint arXiv:1705.07798.
350
+ Perolat, J., Scherrer, B., Piot, B., and Pietquin, O. (2015). Approximate dynamic programming for two-player zero-sum Markov games. In International Conference on Machine Learning, pages 1321–1329. PMLR.
351
+ Rakhlin, A. and Sridharan, K. (2013). Optimization, learning, and games with predictable sequences. arXiv preprint arXiv:1311.1869.
352
+ Savas, Y., Ahmadi, M., Tanaka, T., and Topcu, U. (2019). Entropy-regularized stochastic games. In 2019 IEEE 58th Conference on Decision and Control (CDC), pages 5955–5962. IEEE.
353
+ Shapley, L. S. (1953). Stochastic games. Proceedings of the National Academy of Sciences, 39(10):1095–1100.
354
+ Syrgkanis, V., Agarwal, A., Luo, H., and Schapire, R. E. (2015). Fast convergence of regularized learning in games. In Proceedings of the 28th International Conference on Neural Information Processing Systems-Volume 2, pages 2989–2997.
355
+ Tseng, P. (1995). On linear convergence of iterative methods for the variational inequality problem. Journal of Computational and Applied Mathematics, 60(1-2):237–252.
356
+ Wei, C.-Y., Lee, C.-W., Zhang, M., and Luo, H. (2021a). Last-iterate convergence of decentralized optimistic gradient descent/ascent in infinite-horizon competitive Markov games. arXiv preprint arXiv:2102.04540.
357
+ Wei, C.-Y., Lee, C.-W., Zhang, M., and Luo, H. (2021b). Linear last-iterate convergence in constrained saddle-point optimization. In International Conference on Learning Representations (ICLR).
358
+ Xie, Q., Chen, Y., Wang, Z., and Yang, Z. (2020). Learning zero-sum simultaneous-move Markov games using function approximation and correlated equilibrium. In Conference on Learning Theory, pages 3674–3682. PMLR.
359
+ Yadav, A., Shah, S., Xu, Z., Jacobs, D., and Goldstein, T. (2017). Stabilizing adversarial nets with prediction methods. arXiv preprint arXiv:1705.07364.
360
+ Zhan, W., Cen, S., Huang, B., Chen, Y., Lee, J. D., and Chi, Y. (2021). Policy mirror descent for regularized reinforcement learning: A generalized framework with linear convergence. arXiv preprint arXiv:2105.11066.
361
+ Zhang, K., Kakade, S., Basar, T., and Yang, L. (2020). Model-based multi-agent RL in zero-sum Markov games with near-optimal sample complexity. Advances in Neural Information Processing Systems, 33.
362
+ Zhao, Y., Tian, Y., Lee, J. D., and Du, S. S. (2021). Provably efficient policy gradient methods for two-player zero-sum Markov games. arXiv preprint arXiv:2102.08903.
parse/train/74RmfBweB60/74RmfBweB60_content_list.json ADDED
@@ -0,0 +1,1593 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Fast Policy Extragradient Methods for Competitive Games with Entropy Regularization ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 189,
8
+ 122,
9
+ 808,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Shicong Cen Carnegie Mellon University shicongc@andrew.cmu.edu ",
17
+ "bbox": [
18
+ 187,
19
+ 227,
20
+ 385,
21
+ 268
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Yuting Wei University of Pennsylvania ytwei@wharton.upenn.edu ",
28
+ "bbox": [
29
+ 406,
30
+ 226,
31
+ 604,
32
+ 268
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Yuejie Chi Carnegie Mellon University yuejiechi@cmu.edu ",
39
+ "bbox": [
40
+ 625,
41
+ 226,
42
+ 810,
43
+ 268
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Abstract ",
50
+ "text_level": 1,
51
+ "bbox": [
52
+ 462,
53
+ 304,
54
+ 535,
55
+ 320
56
+ ],
57
+ "page_idx": 0
58
+ },
59
+ {
60
+ "type": "text",
61
+ "text": "This paper investigates the problem of computing the equilibrium of competitive games, which is often modeled as a constrained saddle-point optimization problem with probability simplex constraints. Despite recent efforts in understanding the last-iterate convergence of extragradient methods in the unconstrained setting, the theoretical underpinnings of these methods in the constrained settings, especially those using multiplicative updates, remain highly inadequate, even when the objective function is bilinear. Motivated by the algorithmic role of entropy regularization in single-agent reinforcement learning and game theory, we develop provably efficient extragradient methods to find the quantal response equilibrium (QRE)—which are solutions to zero-sum two-player matrix games with entropy regularization—at a linear rate. The proposed algorithms can be implemented in a decentralized manner, where each player executes symmetric and multiplicative updates iteratively using its own payoff without observing the opponent’s actions directly. In addition, by controlling the knob of entropy regularization, the proposed algorithms can locate an approximate Nash equilibrium of the unregularized matrix game at a sublinear rate without assuming the Nash equilibrium to be unique. Our methods also lead to efficient policy extragradient algorithms for solving entropy-regularized zero-sum Markov games at a linear rate. All of our convergence rates are nearly dimension-free, which are independent of the size of the state and action spaces up to logarithm factors, highlighting the positive role of entropy regularization for accelerating convergence. ",
62
+ "bbox": [
63
+ 233,
64
+ 338,
65
+ 766,
66
+ 627
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "1 Introduction ",
73
+ "text_level": 1,
74
+ "bbox": [
75
+ 174,
76
+ 660,
77
+ 310,
78
+ 676
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Finding the equilibrium of competitive games, which can be viewed as constrained saddle-point optimization problems with probability simplex constraints, lies at the heart of modern machine learning and decision making paradigms such as Generative Adversarial Networks (GANs) (Goodfellow et al., 2014), competitive reinforcement learning (RL) (Littman, 1994), game theory (Shapley, 1953), adversarial training (Mertikopoulos et al., 2018b), to name a few. ",
85
+ "bbox": [
86
+ 174,
87
+ 688,
88
+ 825,
89
+ 757
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "In this paper, we study one of the most basic forms of competitive games, namely two-player zero-sum games, in both the matrix setting and the Markov setting. Our goal is to find the equilibrium policies of both players in an independent and decentralized manner (Daskalakis et al., 2020; Wei et al., 2021a) with guaranteed last-iterate convergence. Namely, each player will execute symmetric and independent updates iteratively using its own payoff without observing the opponent’s actions directly, and the final policies of the iterative process should be a close approximation to the equilibrium up to any prescribed precision. This kind of algorithms is more advantageous and versatile especially in federated environments, as it requires neither prior coordination between the players like twotimescale algorithms, nor a central controller to collect and disseminate the policies of all the players, which are often unavailable due to privacy constraints. ",
96
+ "bbox": [
97
+ 174,
98
+ 763,
99
+ 825,
100
+ 902
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "1.1 Last-iterate convergence in competitive games ",
107
+ "text_level": 1,
108
+ "bbox": [
109
+ 178,
110
+ 92,
111
+ 531,
112
+ 106
113
+ ],
114
+ "page_idx": 1
115
+ },
116
+ {
117
+ "type": "text",
118
+ "text": "In recent years, there have been significant progresses in understanding the last-iterate convergence of simple iterative algorithms for unconstrained saddle-point optimization, where one is interested in bounding the sub-optimality of the last iterate of the algorithm, rather than say, the ergodic iterate — which is the average of all the iterations — that are commonly studied in the earlier literature. This shift of focus is motivated, for example, by the infeasibility of averaging large machine learning models in training GANs (Goodfellow et al., 2014). While vanilla Gradient Descent / Ascent (GDA) may diverge or cycle even for bilinear matrix games (Daskalakis et al., 2018), quite remarkably, small modifications lead to guaranteed last-iterate convergence to the equilibrium in a non-asymptotic fashion. A flurry of algorithms is proposed, including Optimistic Gradient Descent Ascent (OGDA) (Rakhlin and Sridharan, 2013; Daskalakis and Panageas, 2018b; Wei et al., 2021b), predictive updates (Yadav et al., 2017), implicit updates (Liang and Stokes, 2019), and more. Several unified analyses of these algorithms have been carried out (see, e.g. Mokhtari et al. (2020a); Liang and Stokes (2019) and references therein), where these methods in principle all make clever extrapolation of the local curvature in a predictive manner to accelerate convergence. With slight abuse of terminology, in this paper, we refer to this ensemble of algorithms as extragradient methods (Korpelevich, 1976; Tseng, 1995; Mertikopoulos et al., 2018a; Harker and Pang, 1990). ",
119
+ "bbox": [
120
+ 173,
121
+ 113,
122
+ 826,
123
+ 334
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "However, saddle-point optimization in the constrained setting, which includes competitive games as a special case, remains largely under-explored even for bilinear matrix games. While it is possible to reformulate constrained bilinear games to unconstrained ones using softmax parameterization of the probability simplex, this approach falls short of preserving the bilinear structure and convexconcave properties in the original problem, which are crucial to the convergence of gradient methods. Therefore, there is a strong necessity of understanding and developing improved extragradient methods in the constrained setting. Daskalakis and Panageas (2018a) proposed the optimistic variant of the multiplicative weight updates (MWU) method (Arora et al., 2012) – which is extremely natural and popular for optimizing over probability simplexes – called Optimistic Multiplicative Weight Updates (OMWU), and established the asymptotic last-iterate convergence of OMWU for matrix games. Very recently, Wei et al. (2021b) established non-asymptotic last-iterate convergences of OMWU. However, these last-iterate convergence results require the Nash equilibrium to be unique, and cannot be applied to problems with multiple Nash equilibria. ",
130
+ "bbox": [
131
+ 173,
132
+ 340,
133
+ 826,
134
+ 520
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "1.2 Our contributions ",
141
+ "text_level": 1,
142
+ "bbox": [
143
+ 176,
144
+ 536,
145
+ 338,
146
+ 550
147
+ ],
148
+ "page_idx": 1
149
+ },
150
+ {
151
+ "type": "text",
152
+ "text": "Motivated by the algorithmic role of entropy regularization in single-agent RL (Neu et al., 2017; Geist et al., 2019; Cen et al., 2020) as well as its wide use in game theory to account for imperfect and noisy information (McKelvey and Palfrey, 1995; Savas et al., 2019), we initiate the design and analysis of extragradient algorithms using multiplicative updates for finding the quantal response equilibrium (QRE), which are solutions to competitive games with entropy regularization (McKelvey and Palfrey, 1995). While finding QRE is of interest in its own right, by controlling the knob of entropy regularization, the QRE provides a close approximation to the Nash equilibrium (NE), and in turn acts as a smoothing scheme for finding the NE. Our contributions are summarized below. ",
153
+ "bbox": [
154
+ 174,
155
+ 558,
156
+ 825,
157
+ 669
158
+ ],
159
+ "page_idx": 1
160
+ },
161
+ {
162
+ "type": "text",
163
+ "text": "• Near dimension-free last-iterate convergence to QRE of entropy-regularized matrix games. We propose two policy extragradient algorithms to solve entropy-regularized matrix games, namely the Predictive Update (PU) and OMWU methods, where both players execute symmetric and multiplicative updates without knowing the entire payoff matrix nor the opponent’s actions. Encouragingly, we show that the last iterate of the proposed algorithms converges to the unique QRE at a linear rate that is almost independent of the size of the action spaces. Roughly speaking, to find an $\\epsilon$ -optimal QRE in terms of Kullback-Leibler (KL) divergence, it takes no more than $\\begin{array} { r } { \\widetilde O \\left( \\frac { 1 } { \\eta \\tau } \\log \\left( \\frac { 1 } { \\epsilon } \\right) \\right) } \\end{array}$ iterations, where ${ \\widetilde { O } } ( \\cdot )$ hides logarithmic dependencies. Here, $\\tau$ is the regularization parameter, and $\\eta$ is the learning rate of both players. Maximizing the learning rate, the iteration complexity is bounded by $\\widetilde { O } \\left( ( 1 + \\| A \\| _ { \\infty } / \\tau ) \\log ( 1 / \\epsilon ) \\right)$ , where $\\left\\| A \\right\\| _ { \\infty } = \\operatorname* { m a x } _ { i , j } \\left| A _ { i , j } \\right|$ is the $\\ell _ { \\infty }$ norm of the payoff matrix $A$ . ",
164
+ "bbox": [
165
+ 173,
166
+ 675,
167
+ 825,
168
+ 830
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "• Last-iterate convergence to $\\epsilon$ -NE of unregularized matrix games without uniqueness assumption. The QRE provides an accurate approximation to the NE by setting the entropy regularization $\\tau$ sufficiently small, therefore our result directly translates to finding a NE with last-iterate convergence guarantee. Roughly speaking, to find an $\\epsilon$ -NE (Zhang et al., 2020, Definition 2.1), it takes no more than $\\begin{array} { r } { \\widetilde { O } \\left( 1 + \\frac { \\| A \\| _ { \\infty } } { \\epsilon } \\right) } \\end{array}$ iterations with optimized learning rates, which is again independent of the size of the action spaces up to logarithmic factors. Unlike prior literature (Daskalakis and Panageas, 2018a; Wei et al., 2021b), our last-iterate convergence guarantee does not require the NE to be unique. ",
175
+ "bbox": [
176
+ 174,
177
+ 835,
178
+ 825,
179
+ 915
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "table",
185
+ "img_path": "images/7cd63fa4d3a31b21549b1c3cba203d1cfde83dc305268984dcc577e9d1c629f3.jpg",
186
+ "table_caption": [
187
+ "Table 1: Comparisons of last-iterate convergence of the proposed entropy-regularized PU and OMWU methods with prior results for finding $\\epsilon$ -QRE or $\\mathrm { \\epsilon - N E }$ of competitive matrix games. We note that the convergence rates of unregularized OMWU established in Wei et al. (2021b) are problemdependent, and scale at least polynomially on the size of the action spaces. Desirable features in the last two columns are highlighted in blue. "
188
+ ],
189
+ "table_footnote": [],
190
+ "table_body": "<table><tr><td rowspan=1 colspan=1>Equilibriumtype</td><td rowspan=1 colspan=1>Method</td><td rowspan=1 colspan=1>Convergence rate</td><td rowspan=1 colspan=1>Dimension-free</td><td rowspan=1 colspan=1>Requireunique NE</td></tr><tr><td rowspan=1 colspan=1>E-QRE</td><td rowspan=1 colspan=1>PU&amp;OMWU(this work)</td><td rowspan=1 colspan=1>linear</td><td rowspan=1 colspan=1>yes</td><td rowspan=1 colspan=1>n/a</td></tr><tr><td rowspan=3 colspan=1>e-NE</td><td rowspan=1 colspan=1>OMWU(Daskalakis and Panageas, 2018a)</td><td rowspan=1 colspan=1>asymptotic</td><td rowspan=1 colspan=1>no</td><td rowspan=1 colspan=1>yes</td></tr><tr><td rowspan=1 colspan=1>OMWU(Wei et al., 2021b)</td><td rowspan=1 colspan=1>sublinear + linear</td><td rowspan=1 colspan=1>no</td><td rowspan=1 colspan=1>yes</td></tr><tr><td rowspan=1 colspan=1>PU&amp;OMWU(this work)</td><td rowspan=1 colspan=1>sublinear</td><td rowspan=1 colspan=1>yes</td><td rowspan=1 colspan=1>no</td></tr></table>",
191
+ "bbox": [
192
+ 176,
193
+ 90,
194
+ 825,
195
+ 241
196
+ ],
197
+ "page_idx": 2
198
+ },
199
+ {
200
+ "type": "text",
201
+ "text": "",
202
+ "bbox": [
203
+ 173,
204
+ 357,
205
+ 823,
206
+ 386
207
+ ],
208
+ "page_idx": 2
209
+ },
210
+ {
211
+ "type": "text",
212
+ "text": "• Extensions to two-player zero-sum Markov games. By connecting value iteration with matrix games, we propose a policy extragradient method for solving infinite-horizon discounted entropyregularized zero-sum Markov games, which finds an $\\epsilon$ -optimal minimax soft Q-function—in terms of $\\ell _ { \\infty }$ error—in at most $\\begin{array} { r } { \\widetilde O \\left( \\frac { 1 } { \\tau ( 1 - \\gamma ) ^ { 2 } } \\log ^ { 2 } \\left( \\frac { 1 } { \\epsilon } \\right) \\right) } \\end{array}$ iterations, where $\\gamma \\in ( 0 , 1 )$ is the discount factor. ",
213
+ "bbox": [
214
+ 174,
215
+ 392,
216
+ 825,
217
+ 457
218
+ ],
219
+ "page_idx": 2
220
+ },
221
+ {
222
+ "type": "text",
223
+ "text": "To the best of our knowledge, our paper is the first that develops policy extragradient algorithms for solving entropy-regularized competitive games with multiplicative updates and dimension-free linear last-iterate convergence, and demonstrates entropy regularization as a smoothing technique to find $\\mathrm { \\epsilon - N E }$ without the uniqueness assumption. Table 1 provides detailed comparisons of the proposed methods with prior arts for solving matrix games. Our results highlight the positive role of entropy regularization for accelerating convergence and safeguarding against imperfect information in competitive games. We defer the complete proof of our results to Cen et al. (2021). ",
224
+ "bbox": [
225
+ 174,
226
+ 463,
227
+ 825,
228
+ 560
229
+ ],
230
+ "page_idx": 2
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "1.3 Related works ",
235
+ "text_level": 1,
236
+ "bbox": [
237
+ 174,
238
+ 582,
239
+ 313,
240
+ 595
241
+ ],
242
+ "page_idx": 2
243
+ },
244
+ {
245
+ "type": "text",
246
+ "text": "Our work lies at the intersection of saddle-point optimization, game theory, and reinforcement learning. In what follows, we discuss a few topics that are closely related to ours. ",
247
+ "bbox": [
248
+ 174,
249
+ 606,
250
+ 823,
251
+ 633
252
+ ],
253
+ "page_idx": 2
254
+ },
255
+ {
256
+ "type": "text",
257
+ "text": "Unregularized matrix game. Freund and Schapire (1999) showed that many standard methods such as GDA and MWU have a converging average duality gap at the rate of $O ( 1 / \\sqrt { T } )$ , which is improved to $O ( 1 / T )$ by considering optimistic variants of these methods, such as OGDA and OMWU (Rakhlin and Sridharan, 2013; Daskalakis et al., 2011; Syrgkanis et al., 2015). However, the last-iterate convergence of these methods are less understood until recently (Daskalakis and Panageas, 2018a; Wei et al., 2021b). In particular, under the assumption that the NE is unique for the unregularized matrix game, Daskalakis and Panageas (2018a) showed the asymptotic convergence of the last iterate of OMWU to the unique equilibrium, and Wei et al. (2021b) showed the last iterate of OMWU achieves a linear rate of convergence after an initial phase of sublinear convergence, however the rates therein can be highly pessimistic in terms of the problem dimension, while our rate for entropy-regularized OMWU is dimension-free up to logarithmic factors. ",
258
+ "bbox": [
259
+ 174,
260
+ 640,
261
+ 825,
262
+ 794
263
+ ],
264
+ "page_idx": 2
265
+ },
266
+ {
267
+ "type": "text",
268
+ "text": "Saddle-point optimization. Considerable progress has been made towards understanding OGDA and extragradient (EG) methods in the unconstrained convex-concave saddle-point optimization with general objective functions (Mokhtari et al., 2020a,b; Nemirovski, 2004; Liang and Stokes, 2019). However, the last-iterate convergence of constrained convex-concave saddle-point optimization still lacks theoretical understanding in general and most works fall short of characterizing a finite-time convergence result. In particular, Mertikopoulos et al. (2018a) demonstrated the asymptotic lastiterate convergence of EG, and Hsieh et al. (2019) investigated similar questions for single-call EG algorithms. Lei et al. (2021) showed that OMWU converges to the equilibrium locally without an explicit rate. Wei et al. (2021b) showed that the last-iterate of OGDA converges linearly for strongly-convex strongly-concave constrained saddle-point optimization with an explicit rate. ",
269
+ "bbox": [
270
+ 174,
271
+ 800,
272
+ 825,
273
+ 911
274
+ ],
275
+ "page_idx": 2
276
+ },
277
+ {
278
+ "type": "text",
279
+ "text": "",
280
+ "bbox": [
281
+ 171,
282
+ 90,
283
+ 823,
284
+ 119
285
+ ],
286
+ "page_idx": 3
287
+ },
288
+ {
289
+ "type": "text",
290
+ "text": "Entropy regularization in RL and games. In single-agent RL, the role of entropy regularization as an algorithmic mechanism to encourage exploration and accelerate convergence has been investigated extensively (Neu et al., 2017; Geist et al., 2019; Mei et al., 2020; Cen et al., 2020; Lan, 2021; Zhan et al., 2021). Turning to the game setting, entropy regularization is used to account for imperfect information in the seminal work of McKelvey and Palfrey (1995) that introduced the QRE, and a few representative works on entropy and more general regularizations in games include Savas et al. (2019); Hofbauer and Sandholm (2002); Mertikopoulos and Sandholm (2016). ",
291
+ "bbox": [
292
+ 173,
293
+ 126,
294
+ 825,
295
+ 223
296
+ ],
297
+ "page_idx": 3
298
+ },
299
+ {
300
+ "type": "text",
301
+ "text": "Zero-sum Markov games. There have been a significant recent interest in developing provably efficient self-play algorithms for Markov games, including model-based algorithms (Perolat et al., 2015; Zhang et al., 2020), value-based algorithms (Bai and Jin, 2020; Xie et al., 2020), and policybased algorithms (Daskalakis et al., 2020; Wei et al., 2021a; Zhao et al., 2021). The iteration complexities in prior works (Perolat et al., 2015; Daskalakis et al., 2020; Wei et al., 2021a; Zhao et al., 2021) depend on various notions of concentrability coefficient and therefore can scale quite pessimistically with the problem dimension. Our approach can be regarded as a policy-based algorithm to approximate value iteration, which can be implemented in a decentralized manner with symmetric and multiplicative updates from both players, and the iteration complexity is almost independent of the size of the state-action space. ",
302
+ "bbox": [
303
+ 173,
304
+ 228,
305
+ 825,
306
+ 367
307
+ ],
308
+ "page_idx": 3
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "Notation. We denote by $\\Delta ( \\mathcal { A } )$ the probability simplex over the set $\\mathcal { A }$ . We overload the functions such as $\\log ( \\cdot )$ and $\\exp ( \\cdot )$ to take vector inputs with the understanding that the function is applied in an entrywise manner. For instance, given any vector $z = [ z _ { i } ] _ { 1 \\leq i \\leq n } \\in \\mathbb { R } ^ { n }$ , the notation $\\exp ( z )$ denotes $\\exp ( z ) : = [ \\exp ( z _ { i } ) ] _ { 1 \\leq i \\leq n }$ ; other functions are defined analogously. Given two probability distributions $\\mu$ and $\\mu ^ { \\prime }$ over $\\mathcal { A }$ , the KL divergence from $\\mu ^ { \\prime }$ to $\\mu$ is defined by $\\begin{array} { r } { \\mathsf { K L } ( \\mu \\parallel \\mu ^ { \\prime } ) : = \\sum _ { a \\in \\mathcal { A } } \\mu ( a ) \\log \\frac { \\mu ( a ) } { \\mu ^ { \\prime } ( a ) } } \\end{array}$ . Given a matrix $A$ , $\\| A \\| _ { \\infty }$ is used to denote entrywise maximum norm, namely, $\\left\\| A \\right\\| _ { \\infty } = \\operatorname* { m a x } _ { i , j } \\left| A _ { i , j } \\right|$ . The all-one vector is denoted as 1. ",
313
+ "bbox": [
314
+ 173,
315
+ 372,
316
+ 826,
317
+ 479
318
+ ],
319
+ "page_idx": 3
320
+ },
321
+ {
322
+ "type": "text",
323
+ "text": "2 Zero-sum matrix games with entropy regularization ",
324
+ "text_level": 1,
325
+ "bbox": [
326
+ 174,
327
+ 497,
328
+ 638,
329
+ 515
330
+ ],
331
+ "page_idx": 3
332
+ },
333
+ {
334
+ "type": "text",
335
+ "text": "We first consider a two-player zero-sum game with bilinear objective and probability simplex constraints, and demonstrate the positive role of entropy regularization in solving this problem. Throughout this paper, let $\\mathcal { A } = \\{ 1 , \\dotsc , m \\}$ and $\\boldsymbol { B } = \\{ 1 , \\ldots , \\bar { n } \\}$ be the action spaces of each player. ",
336
+ "bbox": [
337
+ 174,
338
+ 530,
339
+ 826,
340
+ 573
341
+ ],
342
+ "page_idx": 3
343
+ },
344
+ {
345
+ "type": "text",
346
+ "text": "2.1 Background and problem formulation ",
347
+ "text_level": 1,
348
+ "bbox": [
349
+ 176,
350
+ 585,
351
+ 478,
352
+ 599
353
+ ],
354
+ "page_idx": 3
355
+ },
356
+ {
357
+ "type": "text",
358
+ "text": "Zero-sum two-player matrix game. The focal point of this subsection is a constrained two-player zero-sum matrix game, which can be formulated as the following min-max problem (or saddle point optimization problem): ",
359
+ "bbox": [
360
+ 174,
361
+ 606,
362
+ 825,
363
+ 648
364
+ ],
365
+ "page_idx": 3
366
+ },
367
+ {
368
+ "type": "equation",
369
+ "img_path": "images/a84cc1579eae155c735ed137faef7ebb0f81235573bb5194136ab35bb171c683.jpg",
370
+ "text": "$$\n\\operatorname* { m a x } _ { \\mu \\in \\Delta ( \\mathcal { A } ) } \\operatorname* { m i n } _ { \\nu \\in \\Delta ( \\mathcal { B } ) } f ( \\mu , \\nu ) : = \\mu ^ { \\top } A \\nu ,\n$$",
371
+ "text_format": "latex",
372
+ "bbox": [
373
+ 385,
374
+ 656,
375
+ 609,
376
+ 684
377
+ ],
378
+ "page_idx": 3
379
+ },
380
+ {
381
+ "type": "text",
382
+ "text": "where $\\textbf { \\textit { A } } \\in \\mathbb { R } ^ { m \\times n }$ denotes the payoff matrix, $\\mu ~ \\in ~ \\Delta ( { \\mathcal { A } } )$ and $\\nu ~ \\in ~ \\Delta ( B )$ stand for the mixed/randomized policies of each player, defined respectively as distributions over the probability simplex $\\Delta ( \\mathcal { A } )$ and $\\Delta ( B )$ . A pair of policies $( \\mu ^ { \\star } , \\nu ^ { \\star } )$ is said to be a Nash equilibrium (NE) of (1) if $f ( \\mu ^ { \\star } , \\nu ) \\geq f ( \\mu ^ { \\star } , \\nu ^ { \\star } ) \\geq f ( \\mu , \\nu ^ { \\star } )$ for all $( \\mu , \\nu ) \\in \\Delta ( \\mathcal { A } ) \\times \\Delta ( \\mathcal { B } )$ . ",
383
+ "bbox": [
384
+ 173,
385
+ 693,
386
+ 825,
387
+ 751
388
+ ],
389
+ "page_idx": 3
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "Entropy-regularized zero-sum two-player matrix game. There is no shortage of scenarios where the payoff matrix $A$ might not be known perfectly. In an attempt to accommodate imperfect knowledge of $A$ , McKelvey and Palfrey (1995) proposed a seminal extension to the Nash equilibrium called the quantal response equilibrium $( Q R E )$ when the payoffs are perturbed by Gumbel-distributed noise. Formally, this amounts to solving the following matrix game with entropy regularization (Mertikopoulos and Sandholm, 2016): ",
394
+ "bbox": [
395
+ 173,
396
+ 756,
397
+ 825,
398
+ 839
399
+ ],
400
+ "page_idx": 3
401
+ },
402
+ {
403
+ "type": "equation",
404
+ "img_path": "images/b4d50912a83264c73c0021a71bd120be521f76f0af08da4df50bf194bda49736.jpg",
405
+ "text": "$$\n\\operatorname* { m a x } _ { \\mu \\in \\Delta ( \\mathcal { A } ) } \\operatorname* { m i n } _ { \\nu \\in \\Delta ( \\mathcal { B } ) } f _ { \\tau } ( \\mu , \\nu ) : = \\mu ^ { \\top } A \\nu + \\tau \\mathcal { H } ( \\mu ) - \\tau \\mathcal { H } ( \\nu ) ,\n$$",
406
+ "text_format": "latex",
407
+ "bbox": [
408
+ 318,
409
+ 847,
410
+ 678,
411
+ 875
412
+ ],
413
+ "page_idx": 3
414
+ },
415
+ {
416
+ "type": "text",
417
+ "text": "where $\\begin{array} { r } { \\mathcal { H } ( \\pi ) = - \\sum _ { i } \\pi _ { i } \\log ( \\pi _ { i } ) } \\end{array}$ denotes the Shannon entropy of a distribution $\\pi$ , and $\\tau \\geq 0$ is the regularization parameter. As is well known, the optimal solution $( \\mu _ { \\tau } ^ { \\star } , \\nu _ { \\tau } ^ { \\star } )$ to (2), dubbed as the QRE, ",
418
+ "bbox": [
419
+ 173,
420
+ 882,
421
+ 823,
422
+ 912
423
+ ],
424
+ "page_idx": 3
425
+ },
426
+ {
427
+ "type": "text",
428
+ "text": "is unique whenever $\\tau > 0$ (due to the presence of strong concavity/convexity), which satisfies the following fixed point equations: ",
429
+ "bbox": [
430
+ 169,
431
+ 90,
432
+ 825,
433
+ 119
434
+ ],
435
+ "page_idx": 4
436
+ },
437
+ {
438
+ "type": "equation",
439
+ "img_path": "images/71555ba46498e3920949431f5517f0cfdf53213e02f54c9ada168880b5c7fd49.jpg",
440
+ "text": "$$\n\\begin{array} { r } { \\biggr \\{ \\mu _ { \\tau } ^ { \\star } ( a ) = \\frac { \\exp ( [ A \\nu _ { \\tau } ^ { \\star } ] a / \\tau ) } { \\sum _ { a = 1 } ^ { m } \\exp ( [ A \\nu _ { \\tau } ^ { \\star } ] a / \\tau ) } \\propto \\exp ( [ A \\nu _ { \\tau } ^ { \\star } ] a / \\tau ) , \\qquad \\mathrm { f o r ~ a l l } \\ a \\in \\mathcal { A } , } \\\\ { \\nu _ { \\tau } ^ { \\star } ( b ) = \\frac { \\exp ( - [ A ^ { \\top } \\mu _ { \\tau } ^ { \\star } ] b / \\tau ) } { \\sum _ { b = 1 } ^ { n } \\exp ( - [ A ^ { \\top } \\mu _ { \\tau } ^ { \\star } ] b / \\tau ) } \\propto \\exp ( - [ A ^ { \\top } \\mu _ { \\tau } ^ { \\star } ] b / \\tau ) , \\quad \\mathrm { f o r ~ a l l } \\ b \\in \\mathcal { B } . } \\end{array}\n$$",
441
+ "text_format": "latex",
442
+ "bbox": [
443
+ 259,
444
+ 123,
445
+ 736,
446
+ 178
447
+ ],
448
+ "page_idx": 4
449
+ },
450
+ {
451
+ "type": "text",
452
+ "text": "Goal. We aim to efficiently compute the QRE of the entropy-regularized matrix game in a decentralized manner, and investigate how an efficient solver of QRE can be leveraged to find a NE of the unregularized matrix game (1). Namely, we only assume access to “first-order information” as opposed to full knowledge of the payoff matrix $A$ or the actions of the opponent. The information received by each player is formally described in the following sampling oracle. ",
453
+ "bbox": [
454
+ 173,
455
+ 186,
456
+ 826,
457
+ 257
458
+ ],
459
+ "page_idx": 4
460
+ },
461
+ {
462
+ "type": "text",
463
+ "text": "Definition 1 (Sampling oracle for matrix games). For any policy pair $( \\mu , \\nu )$ and payoff matrix $A$ the sampling oracle returns the exact values of $\\mu ^ { \\top } A$ and $A \\nu$ . ",
464
+ "bbox": [
465
+ 173,
466
+ 260,
467
+ 823,
468
+ 290
469
+ ],
470
+ "page_idx": 4
471
+ },
472
+ {
473
+ "type": "text",
474
+ "text": "Additional notation. For notational convenience, we let $\\zeta$ represent the concatenation of $\\mu \\in \\mathbb { R } ^ { | \\mathcal { A } | }$ and $\\nu \\in \\mathbb { R } ^ { | B | }$ , namely, $\\zeta = ( \\mu , \\nu )$ . The solution to (2), which is specified in (3), is denoted by $\\zeta _ { \\tau } ^ { \\star } = ( \\mu _ { \\tau } ^ { \\star } , \\nu _ { \\tau } ^ { \\star } )$ . For any $\\zeta = ( \\mu , \\nu )$ and $\\zeta ^ { \\prime } = ( \\mu ^ { \\prime } , \\nu ^ { \\prime } )$ , we shall often abuse the notation and let $\\mathsf { K L } \\big ( \\zeta \\| \\zeta ^ { \\prime } \\big ) = \\mathsf { K L } \\big ( \\mu \\| \\mu ^ { \\prime } \\big ) + \\mathsf { K L } \\big ( \\nu \\| \\nu ^ { \\prime } \\big )$ . The duality gap of the entropy-regularized matrix game (2) at $\\zeta = ( \\mu , \\nu )$ is defined as $\\begin{array} { r } { \\mathsf { D u a l G a p } _ { \\tau } ( \\zeta ) = \\operatorname* { m a x } _ { \\mu ^ { \\prime } \\in \\Delta ( A ) } f _ { \\tau } ( \\mu ^ { \\prime } , \\nu ) - \\operatorname* { m i n } _ { \\nu ^ { \\prime } \\in \\Delta ( B ) } f _ { \\tau } ( \\mu , \\nu ^ { \\prime } ) } \\end{array}$ which is clearly nonnegative and $\\mathsf { D u a l G a p } _ { \\tau } ( \\boldsymbol { \\zeta } _ { \\tau } ^ { \\star } ) = 0$ . Similarly, let the optimality gap of the entropyregularized matrix game (2) at $\\zeta = ( \\mu , \\nu )$ be $\\mathsf { O p t G a p } ( \\zeta ) = \\left| f _ { \\tau } ( \\mu , \\nu ) - f _ { \\tau } ( \\mu _ { \\tau } ^ { \\star } , \\nu _ { \\tau } ^ { \\star } ) \\right|$ . ",
475
+ "bbox": [
476
+ 173,
477
+ 299,
478
+ 826,
479
+ 406
480
+ ],
481
+ "page_idx": 4
482
+ },
483
+ {
484
+ "type": "text",
485
+ "text": "2.2 Proposed extragradient methods: PU and OMWU ",
486
+ "text_level": 1,
487
+ "bbox": [
488
+ 173,
489
+ 415,
490
+ 563,
491
+ 430
492
+ ],
493
+ "page_idx": 4
494
+ },
495
+ {
496
+ "type": "text",
497
+ "text": "To begin, assume we are given a pair of policies $z _ { 1 } \\in \\Delta ( \\mathcal { A } )$ , $z _ { 2 } \\in \\Delta ( B )$ employed by each player respectively. If we proceed with fictitious play, i.e. player 1 (resp. player 2) aims to optimize its own policy by assuming the opponent’s policy is fixed as $z _ { 2 }$ (resp. $z _ { 1 }$ ), the saddle-point optimization problem (2) is then decoupled into two independent min/max optimization problems: ",
498
+ "bbox": [
499
+ 173,
500
+ 435,
501
+ 826,
502
+ 492
503
+ ],
504
+ "page_idx": 4
505
+ },
506
+ {
507
+ "type": "equation",
508
+ "img_path": "images/3ae3b2a7eb130747659835faa8d01046b129d51408a7d9c08d0dd4aa00a0a848.jpg",
509
+ "text": "$$\n\\operatorname* { m a x } _ { \\mu \\in \\Delta ( A ) } \\mu ^ { \\top } A z _ { 2 } + \\tau \\mathcal { H } ( \\mu ) - \\tau \\mathcal { H } ( z _ { 2 } ) \\qquad \\mathrm { a n d } \\qquad \\operatorname* { m i n } _ { \\nu \\in \\Delta ( B ) } z _ { 1 } ^ { \\top } A \\nu + \\tau \\mathcal { H } ( z _ { 1 } ) - \\tau \\mathcal { H } ( \\nu ) ,\n$$",
510
+ "text_format": "latex",
511
+ "bbox": [
512
+ 212,
513
+ 496,
514
+ 781,
515
+ 523
516
+ ],
517
+ "page_idx": 4
518
+ },
519
+ {
520
+ "type": "text",
521
+ "text": "which are naturally solved via mirror descent / ascent with KL divergence. Specifically, one step of mirror descent / ascent takes the form ",
522
+ "bbox": [
523
+ 176,
524
+ 527,
525
+ 825,
526
+ 556
527
+ ],
528
+ "page_idx": 4
529
+ },
530
+ {
531
+ "type": "equation",
532
+ "img_path": "images/a1e0157530e8a4c8bc9d0803138f0eba224ba8f93f9a46dce23f9f9876f0d1d5.jpg",
533
+ "text": "$$\n\\begin{array} { r } { \\left\\{ \\begin{array} { l l } { \\mu ^ { ( t + 1 ) } ( a ) \\propto \\mu ^ { ( t ) } ( a ) ^ { 1 - \\eta \\tau } \\exp ( \\eta [ A z _ { 2 } ] _ { a } ) , } & { \\mathrm { f o r ~ a l l ~ } a \\in \\mathcal { A } , } \\\\ { \\nu ^ { ( t + 1 ) } ( b ) \\propto \\nu ^ { ( t ) } ( b ) ^ { 1 - \\eta \\tau } \\exp ( - \\eta [ A ^ { \\top } z _ { 1 } ] _ { b } ) , } & { \\mathrm { f o r ~ a l l ~ } b \\in \\mathcal { B } , } \\end{array} \\right. } \\end{array}\n$$",
534
+ "text_format": "latex",
535
+ "bbox": [
536
+ 295,
537
+ 558,
538
+ 700,
539
+ 609
540
+ ],
541
+ "page_idx": 4
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "where $\\eta$ is the learning rate. The above update rule forms the basis of our algorithm design. ",
546
+ "bbox": [
547
+ 171,
548
+ 612,
549
+ 772,
550
+ 627
551
+ ],
552
+ "page_idx": 4
553
+ },
554
+ {
555
+ "type": "text",
556
+ "text": "Motivation: a form of implicit updates with linear convergence. It turns out, if we could select the policy pair $( z _ { 1 } , z _ { 2 } ) = \\hat { \\zeta } ^ { ( t + 1 ) } : \\stackrel { \\bullet } { = } ( \\mu ^ { ( t + 1 ) } , \\nu ^ { ( t + 1 ) } )$ as the ones to be taken in the future, and call the resulting update rule as the Implicit Update (IU) method: ",
557
+ "bbox": [
558
+ 174,
559
+ 632,
560
+ 825,
561
+ 675
562
+ ],
563
+ "page_idx": 4
564
+ },
565
+ {
566
+ "type": "equation",
567
+ "img_path": "images/57dd0f2231a644892d0d759e737298493ccd260916dd0c48818739b8fbeb7aef.jpg",
568
+ "text": "$$\n\\begin{array} { r } { \\left\\{ \\mu ^ { ( t + 1 ) } ( a ) \\propto \\mu ^ { ( t ) } ( a ) ^ { 1 - \\eta \\tau } \\exp ( \\eta [ A \\nu ^ { ( t + 1 ) } ] _ { a } ) , \\right. \\left. \\mathrm { f o r ~ a l l } \\ : a \\in \\mathcal { A } , \\right. } \\\\ { \\nu ^ { ( t + 1 ) } ( b ) \\propto \\nu ^ { ( t ) } ( b ) ^ { 1 - \\eta \\tau } \\exp ( - \\eta [ A ^ { \\top } \\mu ^ { ( t + 1 ) } ] _ { b } ) , \\left. \\mathrm { f o r ~ a l l } \\ : b \\in \\mathcal { B } . \\right. } \\end{array}\n$$",
569
+ "text_format": "latex",
570
+ "bbox": [
571
+ 351,
572
+ 679,
573
+ 784,
574
+ 729
575
+ ],
576
+ "page_idx": 4
577
+ },
578
+ {
579
+ "type": "text",
580
+ "text": "Though unrealistic — since it uses the future updates — it leads to a one-step convergence to the QRE when $\\eta = 1 / \\tau$ (see the optimality condition in (3)). Encouragingly, we have the following linear convergence guarantee of IU when adopting a general learning rate. ",
581
+ "bbox": [
582
+ 176,
583
+ 733,
584
+ 823,
585
+ 776
586
+ ],
587
+ "page_idx": 4
588
+ },
589
+ {
590
+ "type": "text",
591
+ "text": "Proposition 1 (Linear convergence of IU). Assume $0 < \\eta \\leq 1 / \\tau$ , then for all $t \\geq 0$ , the iterates $\\zeta ^ { ( t ) } : = ( \\mu ^ { ( t ) } , \\nu ^ { ( t ) } )$ of the $I U$ method in (5) satisfy $\\mathsf { K L } \\big ( \\zeta _ { \\tau } ^ { \\star } \\parallel \\zeta ^ { ( t ) } \\big ) \\leq ( 1 - \\eta \\tau ) ^ { t } \\mathsf { K L } \\big ( \\zeta _ { \\tau } ^ { \\star } \\parallel \\zeta ^ { ( 0 ) } \\big )$ . ",
592
+ "bbox": [
593
+ 174,
594
+ 779,
595
+ 821,
596
+ 811
597
+ ],
598
+ "page_idx": 4
599
+ },
600
+ {
601
+ "type": "text",
602
+ "text": "In words, the IU method achieves an appealing linear rate of convergence that is independent of the problem dimension. Motivated by this observation, we seek to design algorithms where the policies $( z _ { 1 } , z _ { 2 } )$ employed in (4) serve as good predictions of $( \\mu ^ { ( t + 1 ) } , \\nu ^ { ( t + \\bar { 1 ) } } )$ , such that the resulting algorithms are both practical and retain the appealing convergence rate of IU. ",
603
+ "bbox": [
604
+ 173,
605
+ 819,
606
+ 825,
607
+ 877
608
+ ],
609
+ "page_idx": 4
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "Proposed algorithms. We propose two extragradient algorithms for solving the entropy-regularized matrix game, namely the Predictive Update $( P U )$ method and the Optimistic Multiplicative Weights ",
614
+ "bbox": [
615
+ 173,
616
+ 882,
617
+ 823,
618
+ 912
619
+ ],
620
+ "page_idx": 4
621
+ },
622
+ {
623
+ "type": "text",
624
+ "text": "Algorithm 1: The PU method ",
625
+ "text_level": 1,
626
+ "bbox": [
627
+ 174,
628
+ 94,
629
+ 374,
630
+ 109
631
+ ],
632
+ "page_idx": 5
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "Algorithm 2: The OMWU method ",
637
+ "text_level": 1,
638
+ "bbox": [
639
+ 500,
640
+ 94,
641
+ 732,
642
+ 109
643
+ ],
644
+ "page_idx": 5
645
+ },
646
+ {
647
+ "type": "text",
648
+ "text": "1 initialization: $\\mu ^ { ( 0 ) }$ , $\\nu ^ { ( 0 ) }$ ",
649
+ "bbox": [
650
+ 163,
651
+ 113,
652
+ 339,
653
+ 128
654
+ ],
655
+ "page_idx": 5
656
+ },
657
+ {
658
+ "type": "text",
659
+ "text": "2 for $t = 0 , 1 , 2 , \\cdots$ do ",
660
+ "bbox": [
661
+ 160,
662
+ 128,
663
+ 323,
664
+ 142
665
+ ],
666
+ "page_idx": 5
667
+ },
668
+ {
669
+ "type": "text",
670
+ "text": "2 for $t = 0 , 1 , 2 , \\cdots$ do ",
671
+ "bbox": [
672
+ 485,
673
+ 130,
674
+ 645,
675
+ 142
676
+ ],
677
+ "page_idx": 5
678
+ },
679
+ {
680
+ "type": "text",
681
+ "text": "3 Update $\\bar { \\mu }$ and $\\bar { \\nu }$ according to ",
682
+ "bbox": [
683
+ 160,
684
+ 143,
685
+ 388,
686
+ 156
687
+ ],
688
+ "page_idx": 5
689
+ },
690
+ {
691
+ "type": "text",
692
+ "text": "3 ",
693
+ "bbox": [
694
+ 485,
695
+ 145,
696
+ 495,
697
+ 155
698
+ ],
699
+ "page_idx": 5
700
+ },
701
+ {
702
+ "type": "text",
703
+ "text": "Update $\\bar { \\mu }$ and $\\bar { \\nu }$ according to ",
704
+ "bbox": [
705
+ 517,
706
+ 143,
707
+ 714,
708
+ 156
709
+ ],
710
+ "page_idx": 5
711
+ },
712
+ {
713
+ "type": "equation",
714
+ "img_path": "images/2682d9ed9998363f783340595232da07def6ae1b62593530707c1b063a745524.jpg",
715
+ "text": "$$\n\\begin{array} { r } { \\left\\{ \\bar { \\mu } ^ { ( t + 1 ) } ( a ) \\propto { \\mu } ^ { ( t ) } ( a ) ^ { 1 - \\eta \\tau } \\exp ( \\eta [ A \\nu ^ { ( t ) } ] _ { a } ) , \\right. \\qquad } \\\\ { \\left. \\bar { \\nu } ^ { ( t + 1 ) } ( b ) \\propto \\nu ^ { ( t ) } ( b ) ^ { 1 - \\eta \\tau } \\exp ( - \\eta [ A ^ { \\top } { \\mu } ^ { ( t ) } ] _ { b } ) . \\right. } \\end{array}\n$$",
716
+ "text_format": "latex",
717
+ "bbox": [
718
+ 205,
719
+ 165,
720
+ 482,
721
+ 203
722
+ ],
723
+ "page_idx": 5
724
+ },
725
+ {
726
+ "type": "equation",
727
+ "img_path": "images/07b2e5847f06f569d996bfff2cef68ba4e7e99ebccd9cf274448fbddd63318e4.jpg",
728
+ "text": "$$\n\\begin{array} { r } { \\left\\{ \\bar { \\mu } ^ { ( t + 1 ) } ( a ) \\propto { \\mu } ^ { ( t ) } ( a ) ^ { 1 - \\eta \\tau } \\exp ( \\eta [ A \\bar { \\nu } ^ { ( t ) } ] _ { a } ) , \\right. \\mathrm { ~ } } \\\\ { \\left. \\bar { \\nu } ^ { ( t + 1 ) } ( b ) \\propto \\nu ^ { ( t ) } ( b ) ^ { 1 - \\eta \\tau } \\exp ( - \\eta [ A ^ { \\top } \\bar { \\mu } ^ { ( t ) } ] _ { b } ) . \\right. } \\end{array}\n$$",
729
+ "text_format": "latex",
730
+ "bbox": [
731
+ 531,
732
+ 164,
733
+ 808,
734
+ 203
735
+ ],
736
+ "page_idx": 5
737
+ },
738
+ {
739
+ "type": "text",
740
+ "text": "4 Update $\\mu$ and $\\nu$ according to ",
741
+ "bbox": [
742
+ 160,
743
+ 210,
744
+ 390,
745
+ 224
746
+ ],
747
+ "page_idx": 5
748
+ },
749
+ {
750
+ "type": "text",
751
+ "text": "Update $\\mu$ and $\\nu$ according to ",
752
+ "bbox": [
753
+ 524,
754
+ 210,
755
+ 714,
756
+ 224
757
+ ],
758
+ "page_idx": 5
759
+ },
760
+ {
761
+ "type": "equation",
762
+ "img_path": "images/213e7eea9f5e11eb13db31a851e4ce7321f6ff73c1f9234656441c96d93ddf5f.jpg",
763
+ "text": "$$\n\\begin{array} { r } { \\left\\{ \\begin{array} { l l } { \\mu ^ { ( t + 1 ) } ( a ) \\propto \\mu ^ { ( t ) } ( a ) ^ { 1 - \\eta \\tau } \\exp ( \\eta [ A \\bar { \\nu } ^ { ( t + 1 ) } ] _ { a } ) , } \\\\ { \\nu ^ { ( t + 1 ) } ( b ) \\propto \\nu ^ { ( t ) } ( b ) ^ { 1 - \\eta \\tau } \\exp ( - \\eta [ A ^ { \\top } \\bar { \\mu } ^ { ( t + 1 ) } ] _ { b } ) . } \\end{array} \\right. } \\end{array}\n$$",
764
+ "text_format": "latex",
765
+ "bbox": [
766
+ 205,
767
+ 232,
768
+ 496,
769
+ 271
770
+ ],
771
+ "page_idx": 5
772
+ },
773
+ {
774
+ "type": "equation",
775
+ "img_path": "images/46d9ad77b55d1cc670745026c47b3d350c5530aabb855c6c7b775b9a5c3422f4.jpg",
776
+ "text": "$$\n\\begin{array} { r } { \\left\\{ \\begin{array} { l l } { \\mu ^ { ( t + 1 ) } ( a ) \\propto \\mu ^ { ( t ) } ( a ) ^ { 1 - \\eta \\tau } \\exp ( \\eta [ A \\bar { \\nu } ^ { ( t + 1 ) } ] _ { a } ) , } \\\\ { \\nu ^ { ( t + 1 ) } ( b ) \\propto \\nu ^ { ( t ) } ( b ) ^ { 1 - \\eta \\tau } \\exp ( - \\eta [ A ^ { \\top } \\bar { \\mu } ^ { ( t + 1 ) } ] _ { b } ) . } \\end{array} \\right. } \\end{array}\n$$",
777
+ "text_format": "latex",
778
+ "bbox": [
779
+ 531,
780
+ 232,
781
+ 823,
782
+ 271
783
+ ],
784
+ "page_idx": 5
785
+ },
786
+ {
787
+ "type": "text",
788
+ "text": "Update (OMWU) method, the latter adapted from Rakhlin and Sridharan (2013); Daskalakis et al. (2011). Detailed procedures can be found in Algorithm 1 and Algorithm 2, respectively. On a high level, both algorithms maintain two intertwined sequences $\\{ ( \\mu ^ { ( \\bar { t } ) } , \\nu ^ { ( t ) } ) \\} _ { t \\geq 0 }$ and $\\{ ( \\bar { \\mu } ^ { ( \\dot { t } ) } , \\bar { \\nu } ^ { ( t ) } ) \\} _ { t \\geq 0 }$ , and in each iteration $t = 0 , 1 , \\ldots$ , proceed in two steps: ",
789
+ "bbox": [
790
+ 173,
791
+ 318,
792
+ 826,
793
+ 377
794
+ ],
795
+ "page_idx": 5
796
+ },
797
+ {
798
+ "type": "text",
799
+ "text": "• The midpoint $( \\bar { \\mu } ^ { ( t + 1 ) } , \\bar { \\nu } ^ { ( t + 1 ) } )$ serves as a prediction of $( \\mu ^ { ( t + 1 ) } , \\nu ^ { ( t + 1 ) } )$ by running one step of mirror descent / ascent (cf. (4)) from either $( z _ { 1 } , z _ { 2 } ) = ( \\mu ^ { ( t ) } , \\nu ^ { ( t ) } )$ (for PU) or $( z _ { 1 } , z _ { 2 } ) = ( \\bar { \\mu } ^ { ( t ) } , \\bar { \\nu } ^ { ( t ) } )$ (for OMWU). ",
800
+ "bbox": [
801
+ 173,
802
+ 382,
803
+ 826,
804
+ 428
805
+ ],
806
+ "page_idx": 5
807
+ },
808
+ {
809
+ "type": "text",
810
+ "text": "• The update of $( \\boldsymbol { \\mu } ^ { ( t + 1 ) } , \\boldsymbol { \\nu } ^ { ( t + 1 ) } )$ then mimics the implicit update (5) using the prediction $( \\bar { \\mu } ^ { ( t + 1 ) } , \\bar { \\nu } ^ { ( t + 1 ) } )$ obtained above. ",
811
+ "bbox": [
812
+ 173,
813
+ 431,
814
+ 821,
815
+ 463
816
+ ],
817
+ "page_idx": 5
818
+ },
819
+ {
820
+ "type": "text",
821
+ "text": "When the proposed algorithms converge, both $( \\mu ^ { ( t ) } , \\nu ^ { ( t ) } )$ and $( \\bar { \\mu } ^ { ( t ) } , \\bar { \\nu } ^ { ( t ) } )$ converge to the same point. The two players are completely symmetric and adopt the same learning rate, and require only first-order information provided by the sampling oracle. While the two algorithms resemble each other in many aspects, a key difference lies in the query and use of the sampling oracle: in each iteration, OMWU makes a single call to the sampling oracle for gradient evaluation, while PU calls the sampling oracle twice. It is worth noting that, when $\\tau = 0$ (i.e., no entropy regularization is enforced), the OMWU method in Algorithm 2 reduces to the method analyzed in Rakhlin and Sridharan (2013); Daskalakis and Panageas (2018a); Wei et al. (2021b) without entropy regularization. ",
822
+ "bbox": [
823
+ 173,
824
+ 469,
825
+ 825,
826
+ 583
827
+ ],
828
+ "page_idx": 5
829
+ },
830
+ {
831
+ "type": "text",
832
+ "text": "Remark 1. It is worth highlighting that the proposed algorithms are different from Mertikopoulos et al. (2018a), as the extragradient is only applied to the bilinear term but not the entropy regularization term. This seemingly small, but important, difference leads to a more concise closed-form update rule and a cleaner analysis, as shall be seen momentarily. ",
833
+ "bbox": [
834
+ 174,
835
+ 588,
836
+ 825,
837
+ 643
838
+ ],
839
+ "page_idx": 5
840
+ },
841
+ {
842
+ "type": "text",
843
+ "text": "2.3 Performance guarantees ",
844
+ "text_level": 1,
845
+ "bbox": [
846
+ 174,
847
+ 664,
848
+ 383,
849
+ 679
850
+ ],
851
+ "page_idx": 5
852
+ },
853
+ {
854
+ "type": "text",
855
+ "text": "We are now positioned to present our main theorem concerning the last-iterate convergence of PU and OMWU for solving (2). ",
856
+ "bbox": [
857
+ 173,
858
+ 685,
859
+ 823,
860
+ 714
861
+ ],
862
+ "page_idx": 5
863
+ },
864
+ {
865
+ "type": "text",
866
+ "text": "Theorem 1 (Last-iterate convergence of PU and OMWU). Suppose that the learning rates $\\eta = \\eta _ { \\mathsf { P U } }$ of $P U$ in Algorithm $I$ and $\\eta = \\eta$ OMWU of OMWU in Algorithm 2 satisfy ",
867
+ "bbox": [
868
+ 173,
869
+ 718,
870
+ 823,
871
+ 748
872
+ ],
873
+ "page_idx": 5
874
+ },
875
+ {
876
+ "type": "equation",
877
+ "img_path": "images/1da1f00199904a4b6c97f5e9c76f9a3df834798c6291155ebe93e90d726b2886.jpg",
878
+ "text": "$$\n0 < \\eta _ { \\mathsf { P U } } \\leq \\frac { 1 } { \\tau + 2 \\left\\| A \\right\\| _ { \\infty } } , a n d 0 < \\eta _ { \\mathsf { O M W U } } \\leq \\operatorname* { m i n } \\left\\{ \\frac { 1 } { 2 \\tau + 2 \\left\\| A \\right\\| _ { \\infty } } , \\frac { 1 } { 4 \\left\\| A \\right\\| _ { \\infty } } \\right\\} .\n$$",
879
+ "text_format": "latex",
880
+ "bbox": [
881
+ 220,
882
+ 756,
883
+ 776,
884
+ 791
885
+ ],
886
+ "page_idx": 5
887
+ },
888
+ {
889
+ "type": "text",
890
+ "text": "Then for any $t \\geq 0$ , the iterates $\\zeta ^ { ( t ) } = ( \\mu ^ { ( t ) } , \\nu ^ { ( t ) } )$ and $\\bar { \\zeta } ^ { ( t ) } = ( \\bar { \\mu } ^ { ( t ) } , \\bar { \\nu } ^ { ( t ) } )$ of $P U$ and OMWU achieve ",
891
+ "bbox": [
892
+ 173,
893
+ 799,
894
+ 825,
895
+ 818
896
+ ],
897
+ "page_idx": 5
898
+ },
899
+ {
900
+ "type": "text",
901
+ "text": "• Linear convergence of policies in KL divergence and entrywise log-ratios: ",
902
+ "text_level": 1,
903
+ "bbox": [
904
+ 174,
905
+ 821,
906
+ 702,
907
+ 838
908
+ ],
909
+ "page_idx": 5
910
+ },
911
+ {
912
+ "type": "equation",
913
+ "img_path": "images/9c9ca3a937c7498ac455080e8128e2e20c04105f9efdeb52eea00b6054ed9608.jpg",
914
+ "text": "$$\n\\begin{array} { r l } & { \\operatorname* { m a x } \\left\\{ \\mathsf { K L } \\big ( \\zeta _ { \\tau } ^ { \\star } \\| \\zeta ^ { ( t ) } \\big ) , \\frac { 1 } { 2 } \\mathsf { K L } \\big ( \\zeta _ { \\tau } ^ { \\star } \\| \\bar { \\zeta } ^ { ( t + 1 ) } \\big ) \\right\\} \\leq ( 1 - \\eta \\tau ) ^ { t } \\mathsf { K L } \\big ( \\zeta _ { \\tau } ^ { \\star } \\| \\zeta ^ { ( 0 ) } \\big ) , } \\\\ & { \\left\\| \\log \\frac { \\zeta ^ { ( t ) } } { \\zeta _ { \\tau } ^ { \\star } } \\right\\| _ { \\infty } \\leq 2 ( 1 - \\eta \\tau ) ^ { t } \\left\\| \\log \\frac { \\zeta ^ { ( 0 ) } } { \\zeta _ { \\tau } ^ { \\star } } \\right\\| _ { \\infty } + \\frac { 8 \\| A \\| _ { \\infty } } { \\tau } ( 1 - \\eta \\tau ) ^ { t / 2 } \\mathsf { K L } \\big ( \\zeta _ { \\tau } ^ { \\star } \\| \\zeta ^ { ( 0 ) } \\big ) ^ { 1 / 2 } . } \\end{array}\n$$",
915
+ "text_format": "latex",
916
+ "bbox": [
917
+ 212,
918
+ 843,
919
+ 758,
920
+ 912
921
+ ],
922
+ "page_idx": 5
923
+ },
924
+ {
925
+ "type": "text",
926
+ "text": "• Linear convergence of values in optimality and duality gaps: ",
927
+ "text_level": 1,
928
+ "bbox": [
929
+ 173,
930
+ 90,
931
+ 607,
932
+ 107
933
+ ],
934
+ "page_idx": 6
935
+ },
936
+ {
937
+ "type": "equation",
938
+ "img_path": "images/3702b093fedebbe58ca32ee1f3510f7779f94f8298da5387a3f661e7ff847f92.jpg",
939
+ "text": "$$\n\\begin{array} { r l } & { \\mathsf { O p t G a p } _ { \\tau } ( \\bar { \\zeta } ^ { ( t ) } ) \\leq \\eta ^ { - 1 } \\cdot \\frac { 1 } { 1 - ( \\tau + \\| A \\| _ { \\infty } ) \\eta } \\cdot \\frac { ( 1 - \\eta \\tau ) ^ { t } } { 1 - ( 1 - \\eta \\tau ) ^ { t } } \\mathsf { K L } \\big ( \\zeta _ { \\tau } ^ { \\star } \\| \\zeta ^ { ( 0 ) } \\big ) , } \\\\ & { \\mathsf { D u a l G a p } _ { \\tau } ( \\bar { \\zeta } ^ { ( t ) } ) \\leq \\left( \\eta ^ { - 1 } + 2 \\tau ^ { - 1 } \\| A \\| _ { \\infty } ^ { 2 } \\right) ( 1 - \\eta \\tau ) ^ { t - 1 } \\mathsf { K L } \\big ( \\zeta _ { \\tau } ^ { \\star } \\| \\zeta ^ { ( 0 ) } \\big ) . } \\end{array}\n$$",
940
+ "text_format": "latex",
941
+ "bbox": [
942
+ 251,
943
+ 109,
944
+ 745,
945
+ 174
946
+ ],
947
+ "page_idx": 6
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "Remark 2. Setting $\\mu ^ { ( 0 ) }$ and $\\nu ^ { ( 0 ) }$ to be uniform policies leads to a universal bound ",
952
+ "bbox": [
953
+ 168,
954
+ 176,
955
+ 717,
956
+ 193
957
+ ],
958
+ "page_idx": 6
959
+ },
960
+ {
961
+ "type": "equation",
962
+ "img_path": "images/9dc3554546cd0d7e8714d2a8742b8e7b54e42d716313e7ff2b236bd90a374b64.jpg",
963
+ "text": "$$\n\\begin{array} { r } { \\mathsf { K L } \\big ( \\zeta _ { \\tau } ^ { \\star } \\| \\zeta ^ { ( 0 ) } \\big ) = \\log | \\mathcal { A } | + \\log | \\mathcal { B } | - \\mathcal { H } ( \\mu _ { \\tau } ^ { \\star } ) - \\mathcal { H } ( \\nu _ { \\tau } ^ { \\star } ) \\leq \\log | \\mathcal { A } | + \\log | \\mathcal { B } | . } \\end{array}\n$$",
964
+ "text_format": "latex",
965
+ "bbox": [
966
+ 253,
967
+ 196,
968
+ 741,
969
+ 217
970
+ ],
971
+ "page_idx": 6
972
+ },
973
+ {
974
+ "type": "text",
975
+ "text": "Remark 3. Similar results continue to hold even when the two players use different regularization parameters $\\tau _ { \\mu } , \\tau _ { \\nu } > 0$ in (2), as long as the regularization parameter $\\tau$ is replaced by max $\\{ \\tau _ { \\mu } , \\tau _ { \\nu } \\}$ in the upper bounds of the learning rate, and the contraction parameter is replaced by $1 - \\operatorname* { m i n } \\{ \\tau _ { \\mu } , \\tau _ { \\nu } \\} \\eta$ . ",
976
+ "bbox": [
977
+ 173,
978
+ 219,
979
+ 825,
980
+ 263
981
+ ],
982
+ "page_idx": 6
983
+ },
984
+ {
985
+ "type": "text",
986
+ "text": "Theorem 1 characterizes the convergence of the last-iterates $\\zeta ^ { ( t ) }$ and $\\bar { \\zeta } ^ { ( t ) }$ of PU and OMWU as long as the learning rate lies within the specified ranges. While PU doubles the number of calls to the sampling oracle, it also allows roughly as large as twice the learning rate compared with OMWU (cf. (6)). Compared with the vast literature analyzing the average-iterate performance of variants of extragradient methods, our results contribute towards characterizing the last-iterate convergence of multiplicative update methods in the presence of entropy regularization and simplex constraints, which to the best of our knowledge, are the first of its kind. Several remarks are in order. ",
987
+ "bbox": [
988
+ 173,
989
+ 272,
990
+ 825,
991
+ 372
992
+ ],
993
+ "page_idx": 6
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "Linear convergence to QRE. To achieve an $\\epsilon$ -accurate estimate of the QRE in terms of the KL divergence, the bound (7a) tells that it is sufficient to take ",
998
+ "bbox": [
999
+ 173,
1000
+ 377,
1001
+ 823,
1002
+ 406
1003
+ ],
1004
+ "page_idx": 6
1005
+ },
1006
+ {
1007
+ "type": "equation",
1008
+ "img_path": "images/be090bb26a96971777947c1ec6bf114494d258ce86d67ce09fbd7459d4b4d822.jpg",
1009
+ "text": "$$\n\\frac { 1 } { \\eta \\tau } \\log \\left( \\frac { \\log | \\cal { A } | + \\log | \\cal { B } | } { \\epsilon } \\right)\n$$",
1010
+ "text_format": "latex",
1011
+ "bbox": [
1012
+ 403,
1013
+ 410,
1014
+ 593,
1015
+ 445
1016
+ ],
1017
+ "page_idx": 6
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "iterations using either PU or OMWU. Notably, this iteration complexity does not depend on any hidden constants and only depends double logarithmically on the cardinality of action spaces, which is almost dimension-free. Maximizing the learning rate, the iteration complexity is bounded by $( 1 + \\| A \\| _ { \\infty } / \\tau ) \\log ( 1 / \\epsilon )$ (modulo log factors), which only depends on the ratio $\\| A \\| _ { \\infty } / \\tau$ . ",
1022
+ "bbox": [
1023
+ 173,
1024
+ 448,
1025
+ 825,
1026
+ 505
1027
+ ],
1028
+ "page_idx": 6
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "Entrywise error of the policy log-ratios. Both PU and OMWU enjoy strong entrywise guarantees in the sense we can guarantee the convergence of the $\\ell _ { \\infty }$ norm of the log-ratios between the learned policy pair and the QRE at the same dimension-free linear rate (cf. (7b)), which suggests the policy pair converges in a somewhat uniform manner across the entire action space. ",
1033
+ "bbox": [
1034
+ 173,
1035
+ 510,
1036
+ 825,
1037
+ 565
1038
+ ],
1039
+ "page_idx": 6
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "Linear convergence of optimality and duality gaps. Our theorem also establishes the last-iterate convergence of the game values in terms of the optimality gap (cf. (7c)) and the duality gap (cf. (7d)) for both PU and OMWU. In particular, as will be seen, bounding the optimality gap of matrix games turns out to be the key enabler for generalizing our algorithms to Markov games, and bounding the duality gap allows to directly translate our results to finding a NE of unregularized matrix games. ",
1044
+ "bbox": [
1045
+ 173,
1046
+ 571,
1047
+ 825,
1048
+ 642
1049
+ ],
1050
+ "page_idx": 6
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "Last-iterate convergence to approximate NE. The entropy-regularized matrix game can be thought as a smooth surrogate of the unregularized matrix game (1); in particular, it is possible to find an $\\epsilon$ -NE by setting $\\tau$ sufficiently small in (2). According to (Zhang et al., 2020, Definition 2.1), a policy pair $\\bar { \\zeta } = ( \\mu , \\bar { \\nu } )$ is an $\\epsilon$ -NE if it satisfies $\\begin{array} { r } { \\mathsf { D u a l G a p } ( \\zeta ) : = \\operatorname* { m a x } _ { \\mu ^ { \\prime } \\in \\Delta ( A ) } f ( \\mu ^ { \\prime } , \\nu ) - \\operatorname* { m i n } _ { \\nu ^ { \\prime } \\in \\Delta ( B ) } f ( \\mu , \\nu ^ { \\prime } ) \\leq \\epsilon } \\end{array}$ . ",
1055
+ "bbox": [
1056
+ 173,
1057
+ 647,
1058
+ 826,
1059
+ 705
1060
+ ],
1061
+ "page_idx": 6
1062
+ },
1063
+ {
1064
+ "type": "text",
1065
+ "text": "Observe that setting $\\begin{array} { r } { \\tau = \\frac { \\epsilon / 4 } { \\log | \\mathcal { A } | + \\log | \\mathcal { B } | } } \\end{array}$ guarantees that $| f _ { \\tau } ( \\mu , \\nu ) - f ( \\mu , \\nu ) | < \\epsilon / 4$ uniformly over $( \\mu , \\nu ) \\in \\Delta ( \\mathcal { A } ) \\times \\Delta ( \\mathcal { B } )$ in view of the boundedness of the Shannon entropy $\\mathcal { H } ( \\cdot )$ . Theorem 7 (cf. (7d)) also ensures that our proposed algorithms find an approximate QRE $\\bar { \\zeta } ^ { ( T ) }$ such that $\\mathsf { D u a l G a p } _ { \\tau } \\bigl ( \\bar { \\zeta } ^ { ( T ) } \\bigr ) \\leq$ $\\epsilon / 2$ after taking $\\begin{array} { r } { T = \\widetilde { O } \\left( \\frac { 1 } { \\eta \\epsilon } \\right) } \\end{array}$ iterations, which is no more than $\\begin{array} { r } { \\widetilde { O } \\left( 1 + \\frac { \\| A \\| _ { \\infty } } { \\epsilon } \\right) } \\end{array}$ iterations with optimized learning rates. It follows immediately that ",
1066
+ "bbox": [
1067
+ 173,
1068
+ 712,
1069
+ 826,
1070
+ 799
1071
+ ],
1072
+ "page_idx": 6
1073
+ },
1074
+ {
1075
+ "type": "text",
1076
+ "text": "[ $\\mathtt { \\mathtt { M a l G a p } } ( \\bar { \\zeta } ^ { ( T ) } ) \\le \\mathtt { D u a l G a p } _ { \\tau } ( \\bar { \\zeta } ^ { ( T ) } ) + \\operatorname* { m a x } _ { \\mu ^ { \\prime } , \\nu ^ { \\prime } } \\Big | f _ { \\tau } ( \\mu ^ { \\prime } , \\bar { \\nu } ^ { ( T ) } ) - f _ { \\tau } \\big ( \\bar { \\mu } ^ { ( T ) } , \\nu ^ { \\prime } \\big ) - \\big ( f ( \\mu ^ { \\prime } , \\bar { \\nu } ^ { ( T ) } ) - f ( \\bar { \\mu } ^ { ( T ) } , \\nu ^ { \\prime } ) \\big ) \\Big | \\le \\epsilon ,$ and therefore $\\bar { \\zeta } ^ { ( T ) }$ is an $\\mathrm { \\epsilon - N E }$ . Intriguingly, unlike prior work (Daskalakis and Panageas, 2018a; Wei et al., 2021b) that analyzed the last-iterate convergence of OMWU in the unregularized setting $\\mathit { \\Pi } _ { \\mathcal { T } } = 0 \\mathit { \\Pi } _ { \\mathcal { c } }$ ), our last-iterate convergence does not require the NE of (1) to be unique. ",
1077
+ "bbox": [
1078
+ 173,
1079
+ 801,
1080
+ 831,
1081
+ 877
1082
+ ],
1083
+ "page_idx": 6
1084
+ },
1085
+ {
1086
+ "type": "text",
1087
+ "text": "Rationality. Another attractive feature of the algorithms developed above is being rational (as introduced in Bowling and Veloso (2001)) in the sense that the algorithm returns the best-response policy of one player when the opponent takes any fixed stationary policy. More specially, in terms of matrix games, when player 2 sticks to a stationary policy $\\nu$ , the update of player 1 reduces to $\\mu ^ { ( t + 1 ) } ( a ) \\bar { \\propto } \\mu ^ { ( t ) } ( a ) ^ { 1 - \\bar { \\eta tau } } \\exp ( \\eta [ A \\nu ] _ { a } )$ . In this case, Theorem 1 can be established in exactly the same fashion by restricting attention only to the updates of $\\mu ^ { ( t ) }$ . ",
1088
+ "bbox": [
1089
+ 171,
1090
+ 882,
1091
+ 823,
1092
+ 912
1093
+ ],
1094
+ "page_idx": 6
1095
+ },
1096
+ {
1097
+ "type": "image",
1098
+ "img_path": "images/4e4a6167f1bf0473e8d7a714c8b874f38c7ea875b79a1295462ea5a711766939.jpg",
1099
+ "image_caption": [
1100
+ "Figure 1: Performance illustration of the PU and OMWU methods for solving entropy-regularized matrix games with $| \\mathcal { A } | = | \\mathcal { B } | = 1 0 0$ , where the entries of the payoff matrix $A$ is generated independently from the uniform distribution on $[ - 1 , 1 ]$ . The learning rates are fixed as $\\eta = 0 . 1$ . The left panel plots various error metrics of convergence w.r.t. the iteration count with $\\tau = 0 . 0 1$ , while the right panel plots these error metrics at 1000-th iteration with different choices of $\\tau$ . "
1101
+ ],
1102
+ "image_footnote": [],
1103
+ "bbox": [
1104
+ 205,
1105
+ 95,
1106
+ 792,
1107
+ 272
1108
+ ],
1109
+ "page_idx": 7
1110
+ },
1111
+ {
1112
+ "type": "text",
1113
+ "text": "",
1114
+ "bbox": [
1115
+ 173,
1116
+ 375,
1117
+ 825,
1118
+ 438
1119
+ ],
1120
+ "page_idx": 7
1121
+ },
1122
+ {
1123
+ "type": "text",
1124
+ "text": "No-regret learning of OMWU. Besides convergence to equilibria, in game-theoretical settings, it is often desirable to design and implement no-regret algorithms, which are capable of providing black-box guarantees over arbitrary sequences played by the opponent (Cesa-Bianchi and Lugosi, 2006; Rakhlin and Sridharan, 2013). Fortunately, it turns out that entropy regularization not only accelerates the convergence, but also enables no-regret learning somewhat “for free”: it encourages exploration by putting a positive mass on every action, therefore guards against adversaries. By using a properly chosen learning rate schedule, the proposed OMWU (Algorithm 2) can be further established as a no-regret algorithm; the details can be found in (Cen et al., 2021). ",
1125
+ "bbox": [
1126
+ 173,
1127
+ 443,
1128
+ 826,
1129
+ 554
1130
+ ],
1131
+ "page_idx": 7
1132
+ },
1133
+ {
1134
+ "type": "text",
1135
+ "text": "3 Zero-sum Markov games with entropy regularization ",
1136
+ "text_level": 1,
1137
+ "bbox": [
1138
+ 176,
1139
+ 569,
1140
+ 650,
1141
+ 585
1142
+ ],
1143
+ "page_idx": 7
1144
+ },
1145
+ {
1146
+ "type": "text",
1147
+ "text": "Leveraging the success of PU and OMWU in solving the entropy-regularized matrix games, this section extends our current analysis to solve the zero-sum two-player Markov game with entropy regularization, which is again formulated as finding the equilibrium of a saddle-point optimization problem. We start by introducing its basic setup, which will be followed by the proposed policy extragradient method with its theoretical guarantees. ",
1148
+ "bbox": [
1149
+ 174,
1150
+ 594,
1151
+ 825,
1152
+ 665
1153
+ ],
1154
+ "page_idx": 7
1155
+ },
1156
+ {
1157
+ "type": "text",
1158
+ "text": "3.1 Background and problem formulation ",
1159
+ "text_level": 1,
1160
+ "bbox": [
1161
+ 176,
1162
+ 676,
1163
+ 478,
1164
+ 691
1165
+ ],
1166
+ "page_idx": 7
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "text": "We consider a discounted Markov Game (MG) which is defined as $\\mathcal { M } = \\{ { S , A , B , P , r , \\gamma } \\}$ , with discrete state space $s$ , action spaces of two players $\\mathcal { A }$ and $\\boldsymbol { B }$ , transition probability $P$ , reward function $r : \\mathcal { S } \\times \\mathcal { A } \\times \\mathcal { B } [ 0 , 1 ]$ and discount factor $\\gamma \\in [ 0 , 1 )$ . A policy $\\mu : { \\mathcal { S } } \\Delta ( { \\mathcal { A } } )$ (resp. $\\nu : S \\to \\Delta ( B ) )$ defines how player 1 (resp. player 2) reacts to a given state $s$ , where the probability of taking action $a \\in { \\mathcal { A } }$ (resp. $b \\in B ,$ ) is $\\mu ( a | s )$ (resp. $\\nu ( b | s ) )$ . The transition probability kernel $P : \\mathcal { S } \\times \\mathcal { A } \\times \\mathcal { B } \\Delta ( \\mathcal { S } )$ defines the dynamics of the Markov game, where $P ( s ^ { \\prime } | s , a , b )$ specifies the probability of transiting to state $s ^ { \\prime }$ from state $s$ when the players take actions $a$ and $b$ respectively. ",
1171
+ "bbox": [
1172
+ 173,
1173
+ 696,
1174
+ 825,
1175
+ 795
1176
+ ],
1177
+ "page_idx": 7
1178
+ },
1179
+ {
1180
+ "type": "text",
1181
+ "text": "Motivated by entropy regularization in Markov decision processes (MDP) (Geist et al., 2019), we consider an entropy-regularized variant of MG, where the value function is defined as ",
1182
+ "bbox": [
1183
+ 173,
1184
+ 800,
1185
+ 825,
1186
+ 829
1187
+ ],
1188
+ "page_idx": 7
1189
+ },
1190
+ {
1191
+ "type": "equation",
1192
+ "img_path": "images/cd4673555690bc9e7c2c134b940cbf6ce609f112d808752990bda7448b1a8d47.jpg",
1193
+ "text": "$$\nV _ { \\tau } ^ { \\mu , \\nu } ( s ) : = \\mathbb { E } \\left[ \\sum _ { t = 0 } ^ { \\infty } \\gamma ^ { t } \\left( r ( s _ { t } , a _ { t } , b _ { t } ) - \\tau \\log \\mu ( a _ { t } | s _ { t } ) + \\tau \\log \\nu ( b _ { t } | s _ { t } ) \\right) ~ \\middle | s _ { 0 } = s \\right] ,\n$$",
1194
+ "text_format": "latex",
1195
+ "bbox": [
1196
+ 233,
1197
+ 834,
1198
+ 763,
1199
+ 878
1200
+ ],
1201
+ "page_idx": 7
1202
+ },
1203
+ {
1204
+ "type": "text",
1205
+ "text": "where the quantity $\\tau \\geq 0$ denotes the regularization parameter, and the expectation is evaluated over the randomness of the transition kernel as well as the policies. The regularized Q-function $Q _ { \\tau } ^ { \\mu , \\nu }$ of a ",
1206
+ "bbox": [
1207
+ 173,
1208
+ 882,
1209
+ 823,
1210
+ 911
1211
+ ],
1212
+ "page_idx": 7
1213
+ },
1214
+ {
1215
+ "type": "text",
1216
+ "text": "policy pair $( \\mu , \\nu )$ is related to $V _ { \\tau } ^ { \\mu , \\nu }$ as ",
1217
+ "bbox": [
1218
+ 174,
1219
+ 90,
1220
+ 424,
1221
+ 106
1222
+ ],
1223
+ "page_idx": 8
1224
+ },
1225
+ {
1226
+ "type": "equation",
1227
+ "img_path": "images/f3de3e826aa012c6e58901a8e3b22025d2112634453e74fd01df633f9fe9af64.jpg",
1228
+ "text": "$$\n\\begin{array} { r } { Q _ { \\tau } ^ { \\mu , \\nu } ( s , a , b ) = r ( s , a , b ) + \\gamma \\mathbb { E } _ { s ^ { \\prime } \\sim P ( \\cdot \\mid s , a , b ) } \\bigl [ V _ { \\tau } ^ { \\mu , \\nu } \\bigl ( s ^ { \\prime } \\bigr ) \\bigr ] . } \\end{array}\n$$",
1229
+ "text_format": "latex",
1230
+ "bbox": [
1231
+ 320,
1232
+ 113,
1233
+ 678,
1234
+ 132
1235
+ ],
1236
+ "page_idx": 8
1237
+ },
1238
+ {
1239
+ "type": "text",
1240
+ "text": "We will call $V _ { \\tau } ^ { \\mu , \\nu }$ and $Q _ { \\tau } ^ { \\mu , \\nu }$ the soft value function and soft $Q$ -function, respectively. A policy pair $( \\mu _ { \\tau } ^ { \\star } , \\nu _ { \\tau } ^ { \\star } )$ is said to be the quantal response equilibrium (QRE) of the entropy-regularized MG, if its value attains the minimax value of the entropy-regularized MG over all states $s \\in S$ , i.e. ",
1241
+ "bbox": [
1242
+ 173,
1243
+ 137,
1244
+ 825,
1245
+ 180
1246
+ ],
1247
+ "page_idx": 8
1248
+ },
1249
+ {
1250
+ "type": "equation",
1251
+ "img_path": "images/d2ba603658bc41dc17088723550a675658f813d3ce0cc45bf0c47f8124f2dac5.jpg",
1252
+ "text": "$$\nV _ { \\tau } ^ { \\star } ( s ) = \\operatorname* { m a x } _ { \\mu } \\operatorname* { m i n } _ { \\nu } V _ { \\tau } ^ { \\mu , \\nu } ( s ) = \\operatorname* { m i n } _ { \\nu } \\operatorname* { m a x } _ { \\mu } V _ { \\tau } ^ { \\mu , \\nu } ( s ) : = V _ { \\tau } ^ { \\mu _ { \\tau } ^ { \\star } , \\nu _ { \\tau } ^ { \\star } } ( s ) ,\n$$",
1253
+ "text_format": "latex",
1254
+ "bbox": [
1255
+ 289,
1256
+ 185,
1257
+ 707,
1258
+ 213
1259
+ ],
1260
+ "page_idx": 8
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "text": "where ${ \\cal V } _ { \\tau } ^ { \\star }$ is called the optimal minimax soft value function, and similarly $Q _ { \\tau } ^ { \\star } : = Q _ { \\tau } ^ { \\mu _ { \\tau } ^ { \\star } , \\nu _ { \\tau } ^ { \\star } }$ is called the optimal minimax soft Q-function. ",
1265
+ "bbox": [
1266
+ 173,
1267
+ 224,
1268
+ 823,
1269
+ 253
1270
+ ],
1271
+ "page_idx": 8
1272
+ },
1273
+ {
1274
+ "type": "text",
1275
+ "text": "Goal. Our goal is to find the QRE of the entropy-regularized MG in a decentralized manner where the players only observe its own reward without accessing the opponent’s actions. By setting the regularization parameter sufficiently small $\\tau$ , this also allows us to find an approximate NE of the unregularized MG. ",
1276
+ "bbox": [
1277
+ 173,
1278
+ 260,
1279
+ 825,
1280
+ 315
1281
+ ],
1282
+ "page_idx": 8
1283
+ },
1284
+ {
1285
+ "type": "text",
1286
+ "text": "3.2 From value iteration to policy extragradient methods ",
1287
+ "text_level": 1,
1288
+ "bbox": [
1289
+ 173,
1290
+ 327,
1291
+ 581,
1292
+ 342
1293
+ ],
1294
+ "page_idx": 8
1295
+ },
1296
+ {
1297
+ "type": "text",
1298
+ "text": "Entropy-regularized value iteration. It is known that classical dynamic programming approaches such as value iteration can be extended to solve MG (Perolat et al., 2015), where each iteration amounts to solving a series of matrix games for each state. Similar to the single-agent case (Cen et al., 2020), we can extend these approaches to solve the entropy-regularized MG. Setting the stage, let us introduce the per-state $\\mathbf { Q }$ -value matrix $Q ( s ) : = Q ( s , \\cdot , \\cdot ) \\bar { \\in \\mathbb { R } ^ { | \\mathcal { A } | \\times | \\mathcal { B } | } }$ for every $s \\in S$ , where the element indexed by the action pair $( a , b )$ is $Q ( s , a , b )$ . Similarly, we define the per-state policies $\\mu ( s ) : = \\mu ( \\cdot | s ) \\in \\Delta ( { \\dot { A } } )$ and $\\nu ( s ) : = \\nu ( \\cdot | s ) \\in \\Delta ( B )$ for both players. ",
1299
+ "bbox": [
1300
+ 173,
1301
+ 347,
1302
+ 826,
1303
+ 448
1304
+ ],
1305
+ "page_idx": 8
1306
+ },
1307
+ {
1308
+ "type": "text",
1309
+ "text": "In parallel to the original Bellman operator, we denote the soft Bellman operator $\\mathcal { T } _ { \\tau }$ as ",
1310
+ "bbox": [
1311
+ 176,
1312
+ 452,
1313
+ 740,
1314
+ 468
1315
+ ],
1316
+ "page_idx": 8
1317
+ },
1318
+ {
1319
+ "type": "equation",
1320
+ "img_path": "images/2059d579c93d1602d1e72439a83460122b2d3c51c9a3214e4c20249b2456a9c9.jpg",
1321
+ "text": "$$\n\\mathcal { T } _ { \\tau } ( Q ) ( s , a , b ) : = r ( s , a , b ) + \\gamma \\mathbb { E } _ { s ^ { \\prime } \\sim P ( \\cdot \\vert s , a , b ) } \\left[ \\operatorname* { m a x } _ { \\mu ( s ^ { \\prime } ) \\in \\Delta ( A ) } \\operatorname* { m i n } _ { \\nu ( s ^ { \\prime } ) \\in \\Delta ( B ) } f _ { \\tau } \\left( Q ( s ^ { \\prime } ) ; \\mu ( s ^ { \\prime } ) , \\nu ( s ^ { \\prime } ) \\right) \\right] ,\n$$",
1322
+ "text_format": "latex",
1323
+ "bbox": [
1324
+ 189,
1325
+ 473,
1326
+ 805,
1327
+ 508
1328
+ ],
1329
+ "page_idx": 8
1330
+ },
1331
+ {
1332
+ "type": "text",
1333
+ "text": "where for each per-state Q-value matrix $Q ( s )$ , we introduce an entropy-regularized matrix game in the form of ",
1334
+ "bbox": [
1335
+ 173,
1336
+ 515,
1337
+ 823,
1338
+ 545
1339
+ ],
1340
+ "page_idx": 8
1341
+ },
1342
+ {
1343
+ "type": "equation",
1344
+ "img_path": "images/be159e0ed6417306b53ac4f96ca81f6ad60044ec1cf69fdcd8c0e3698c23ba8a.jpg",
1345
+ "text": "$$\n\\displaystyle \\operatorname* { m a x } _ { \\mu \\in \\Delta ( A ) } \\operatorname* { m i n } _ { \\nu \\in \\Delta ( B ) } f _ { \\tau } \\big ( Q ( s ) ; \\mu ( s ) , \\nu ( s ) \\big ) : = \\mu ( s ) ^ { \\top } Q ( s ) \\nu ( s ) - \\tau \\mathcal { H } ( \\mu ( s ) ) + \\tau \\mathcal { H } ( \\nu ( s ) ) .\n$$",
1346
+ "text_format": "latex",
1347
+ "bbox": [
1348
+ 222,
1349
+ 547,
1350
+ 774,
1351
+ 577
1352
+ ],
1353
+ "page_idx": 8
1354
+ },
1355
+ {
1356
+ "type": "text",
1357
+ "text": "The entropy-regularized value iteration then proceeds as ",
1358
+ "bbox": [
1359
+ 173,
1360
+ 582,
1361
+ 544,
1362
+ 597
1363
+ ],
1364
+ "page_idx": 8
1365
+ },
1366
+ {
1367
+ "type": "equation",
1368
+ "img_path": "images/0dfa08fcfd9718653016b28f0cfebe97143b66b36a3bdfdbe1308aa1e3e265a4.jpg",
1369
+ "text": "$$\nQ ^ { ( t + 1 ) } = T _ { \\tau } ( Q ^ { ( t ) } ) ,\n$$",
1370
+ "text_format": "latex",
1371
+ "bbox": [
1372
+ 431,
1373
+ 603,
1374
+ 565,
1375
+ 623
1376
+ ],
1377
+ "page_idx": 8
1378
+ },
1379
+ {
1380
+ "type": "text",
1381
+ "text": "where $Q ^ { ( 0 ) }$ is an initialization. By definition, the optimal minimax soft Q-function obeys ${ \\cal T } _ { \\tau } ( Q _ { \\tau } ^ { \\star } ) =$ $Q _ { \\tau } ^ { \\star }$ and therefore corresponds to the fix point of the soft Bellman operator. Given the above entropyregularized value iteration, the following lemma states its iterates contract linearly to the optimal minimax soft Q-function at a rate of the discount factor $\\gamma$ . ",
1382
+ "bbox": [
1383
+ 173,
1384
+ 631,
1385
+ 825,
1386
+ 688
1387
+ ],
1388
+ "page_idx": 8
1389
+ },
1390
+ {
1391
+ "type": "text",
1392
+ "text": "Proposition 2. The entropy-regularized value iteration (10) converges at a linear rate, i.e. $\\parallel Q ^ { ( t ) } -$ \n$Q _ { \\tau } ^ { \\star } \\| _ { \\infty } \\leq \\gamma ^ { t } \\| Q ^ { ( 0 ) } - Q _ { \\tau } ^ { \\star } \\| _ { \\infty }$ . ",
1393
+ "bbox": [
1394
+ 174,
1395
+ 691,
1396
+ 823,
1397
+ 723
1398
+ ],
1399
+ "page_idx": 8
1400
+ },
1401
+ {
1402
+ "type": "text",
1403
+ "text": "Approximate value iteration via policy extragradient methods. Proposition 2 suggests that the optimal minimax soft Q-function of the entropy-regularized MG can be found by solving a series of entropy-regularized matrix games induced by $\\bar { \\{ Q ^ { ( t ) } \\} } _ { t \\geq 0 }$ in (10), a task that can be accomplished by adopting the fast extragradient methods developed earlier. To proceed, we first define the following sampling oracle, which makes it rigorous that the proposed algorithm does not require access to the Q-function of the entire MG, but only its own single-agent Q-function when playing against the opponent’s policy. ",
1404
+ "bbox": [
1405
+ 173,
1406
+ 733,
1407
+ 826,
1408
+ 833
1409
+ ],
1410
+ "page_idx": 8
1411
+ },
1412
+ {
1413
+ "type": "text",
1414
+ "text": "Definition 2 (Sampling oracle for Markov games). Given any policy pair $\\mu ( s ) , \\nu ( s )$ and $Q$ -value matrix $Q ( s )$ for any $s \\in S$ , the sampling oracle returns ",
1415
+ "bbox": [
1416
+ 173,
1417
+ 835,
1418
+ 823,
1419
+ 864
1420
+ ],
1421
+ "page_idx": 8
1422
+ },
1423
+ {
1424
+ "type": "equation",
1425
+ "img_path": "images/82747ffa22810c00af6604f8c9488a585bb5fc2f6fc901ae3a034f3572b482f0.jpg",
1426
+ "text": "$$\n[ Q ( s ) \\nu ( s ) ] _ { a } = \\mathbb { E } _ { b \\sim \\nu ( s ) } \\left[ Q ( s , a , b ) \\right] , \\qquad a n d \\qquad [ Q ( s ) ^ { \\top } \\mu ( s ) ] _ { b } = \\mathbb { E } _ { a \\sim \\mu ( s ) } \\left[ Q ( s , a , b ) \\right]\n$$",
1427
+ "text_format": "latex",
1428
+ "bbox": [
1429
+ 212,
1430
+ 871,
1431
+ 785,
1432
+ 892
1433
+ ],
1434
+ "page_idx": 8
1435
+ },
1436
+ {
1437
+ "type": "text",
1438
+ "text": "for any $a \\in { \\mathcal { A } }$ and $b \\in B$ . ",
1439
+ "bbox": [
1440
+ 171,
1441
+ 896,
1442
+ 343,
1443
+ 911
1444
+ ],
1445
+ "page_idx": 8
1446
+ },
1447
+ {
1448
+ "type": "text",
1449
+ "text": "Algorithm 3: Policy Extragradient Method for Entropy-regularized Markov Game ",
1450
+ "text_level": 1,
1451
+ "bbox": [
1452
+ 173,
1453
+ 94,
1454
+ 714,
1455
+ 109
1456
+ ],
1457
+ "page_idx": 9
1458
+ },
1459
+ {
1460
+ "type": "text",
1461
+ "text": "1 initialization: $Q ^ { ( 0 ) } = 0$ . \n2 for $t = 0 , 1 , 2 , \\cdots , T _ { \\mathrm { m a i n } } \\mathrm { { \\bf d o } }$ \n3 Let $Q ^ { ( t ) }$ denote $\\begin{array} { r } { Q ^ { ( t ) } ( s , a , b ) = r ( s , a , b ) + \\gamma \\mathbb { E } _ { s ^ { \\prime } \\sim P ( \\cdot | s , a , b ) } V ^ { ( t ) } ( s ^ { \\prime } ) . } \\end{array}$ (11) \n4 Invoke PU (Algorithm 1) or OMWU (Algorithm 2) for $T _ { \\mathrm { s u b } }$ iterations to solve the following entropy-regularized matrix game for every state $s$ , where the initialization is set as uniform distributions: $\\operatorname* { m a x } _ { \\mu ( s ) \\in \\Delta ( A ) } \\operatorname* { m i n } _ { \\nu ( s ) \\in \\Delta ( B ) } f _ { \\tau } \\big ( Q ^ { ( t ) } ( s ) ; \\mu ( s ) , \\nu ( s ) \\big ) .$ Return the last iterate $\\bar { \\mu } ^ { ( t , T _ { \\mathrm { s u b } } ) } ( s ) , \\bar { \\nu } ^ { ( t , T _ { \\mathrm { s u b } } ) } ( s )$ . \n5 Set $V ^ { ( t + 1 ) } ( s ) = f _ { \\tau } \\left( Q ^ { ( t ) } ( s ) ; \\bar { \\mu } ^ { ( t , \\bar { T } _ { \\mathrm { s u b } } ) } ( s ) , \\bar { \\nu } ^ { ( t , \\bar { T } _ { \\mathrm { s u b } } ) } ( s ) \\right)$ . ",
1462
+ "bbox": [
1463
+ 158,
1464
+ 113,
1465
+ 803,
1466
+ 299
1467
+ ],
1468
+ "page_idx": 9
1469
+ },
1470
+ {
1471
+ "type": "text",
1472
+ "text": "Encouragingly, by judiciously setting the number of iterations in both the outer loop (for updating the Q-value matrices) and the inner loop (for updating the QRE of the corresponding Q-value matrix), we are guaranteed to find the QRE of the entropy-regularized MG in a small number of iterations without solving the iteration-varying matrix games exactly, as dictated by the following theorem. ",
1473
+ "bbox": [
1474
+ 173,
1475
+ 337,
1476
+ 826,
1477
+ 393
1478
+ ],
1479
+ "page_idx": 9
1480
+ },
1481
+ {
1482
+ "type": "text",
1483
+ "text": "Theorem 2. Assume $| { \\mathcal { A } } | \\geq | { \\mathcal { B } } |$ and $\\tau \\leq 1$ . Setting $\\begin{array} { r } { \\eta = \\frac { 1 - \\gamma } { 2 ( 1 + \\tau ( \\log | \\mathcal { A } | + 1 - \\gamma ) ) } } \\end{array}$ , the total iterations (namely, the product $T _ { \\mathrm { m a i n } } \\cdot T _ { \\mathrm { s u b , } }$ ) required for Algorithm 3 to achieve $\\left\\| Q ^ { ( { \\vec { T } _ { \\operatorname* { m i n } } } ) } - Q _ { \\tau } ^ { \\star } \\right\\| _ { \\infty } \\leq \\epsilon$ is at most $\\begin{array} { r } { O \\left( \\frac { ( \\log | \\cal { A } | + 1 / \\tau ) } { ( 1 - \\gamma ) ^ { 2 } } \\left( \\log \\frac { \\log | \\cal { A } | } { ( 1 - \\gamma ) \\epsilon } \\right) ^ { 2 } \\right) } \\end{array}$ . ",
1484
+ "bbox": [
1485
+ 173,
1486
+ 398,
1487
+ 825,
1488
+ 468
1489
+ ],
1490
+ "page_idx": 9
1491
+ },
1492
+ {
1493
+ "type": "text",
1494
+ "text": "Theorem 2 ensures that within $\\begin{array} { r } { \\widetilde O \\left( \\frac { 1 } { \\tau ( 1 - \\gamma ) ^ { 2 } } \\log ^ { 2 } \\left( \\frac { 1 } { \\epsilon } \\right) \\right) } \\end{array}$ iterations, Algorithm 3 finds a pair of policies whose value is close to the optimal minimax soft Q-function $Q _ { \\tau } ^ { \\star }$ in an entrywise manner to a prescribed accuracy $\\epsilon$ . Remarkably, the iteration complexity is independent of the dimensions of the state space and the action space (up to log factors). ",
1495
+ "bbox": [
1496
+ 174,
1497
+ 481,
1498
+ 825,
1499
+ 546
1500
+ ],
1501
+ "page_idx": 9
1502
+ },
1503
+ {
1504
+ "type": "text",
1505
+ "text": "Remark 4 (Duality gap and solving the unregularized MG). Solving the entropy-regularized MG provides a viable strategy to find an $\\epsilon$ -approximate NE of the unregularized MG, where the optimality of a policy pair is typically gauged by the duality gap. Fortunately, this can be achieved similar to the case of matrix games, and we refer interested readers to Cen et al. (2021) for details. ",
1506
+ "bbox": [
1507
+ 174,
1508
+ 551,
1509
+ 825,
1510
+ 608
1511
+ ],
1512
+ "page_idx": 9
1513
+ },
1514
+ {
1515
+ "type": "text",
1516
+ "text": "4 Conclusions ",
1517
+ "text_level": 1,
1518
+ "bbox": [
1519
+ 174,
1520
+ 632,
1521
+ 305,
1522
+ 648
1523
+ ],
1524
+ "page_idx": 9
1525
+ },
1526
+ {
1527
+ "type": "text",
1528
+ "text": "This paper develops provably efficient policy extragradient methods (PU and OMWU) for entropyregularized matrix games and Markov games, whose last iterates are guaranteed to converge linearly to the quantal response equilibrium at a linear rate. Encouragingly, the rate of convergence is independent of the dimension of the problem, i.e. the sizes of the space space and the action space. In addition, the last iterates of the proposed algorithms can also be used to locate Nash equilibria for the unregularized competitive games without assuming the uniqueness of the Nash equilibria by judiciously tuning the amount of regularization. This work opens up interesting opportunities for further investigations of policy extragradient methods for solving competitive games. For example, can we develop a two-time-scale policy extragradient algorithms for Markov games where the Qfunction is updated simultaneously with the policy but potentially at a different time scale, using samples, such as in an actor-critic algorithm (Konda and Tsitsiklis, 2000)? ",
1529
+ "bbox": [
1530
+ 174,
1531
+ 660,
1532
+ 826,
1533
+ 813
1534
+ ],
1535
+ "page_idx": 9
1536
+ },
1537
+ {
1538
+ "type": "text",
1539
+ "text": "Acknowledgments and Disclosure of Funding ",
1540
+ "text_level": 1,
1541
+ "bbox": [
1542
+ 174,
1543
+ 835,
1544
+ 553,
1545
+ 853
1546
+ ],
1547
+ "page_idx": 9
1548
+ },
1549
+ {
1550
+ "type": "text",
1551
+ "text": "S. Cen and Y. Chi are supported in part by the grants ONR N00014-18-1-2142 and N00014-19-1- 2404, ARO W911NF-18-1-0303, NSF CCF-1901199, CCF-2007911 and CCF-2106778. Y. Wei is supported in part by the NSF grants CCF-2007911, DMS-2147546/2015447 and CCF-2106778. ",
1552
+ "bbox": [
1553
+ 176,
1554
+ 869,
1555
+ 826,
1556
+ 911
1557
+ ],
1558
+ "page_idx": 9
1559
+ },
1560
+ {
1561
+ "type": "text",
1562
+ "text": "References \nArora, S., Hazan, E., and Kale, S. (2012). The multiplicative weights update method: a meta-algorithm and applications. Theory of Computing, 8(1):121–164. \nBai, Y. and Jin, C. (2020). Provable self-play algorithms for competitive reinforcement learning. In International Conference on Machine Learning, pages 551–560. PMLR. \nBowling, M. and Veloso, M. (2001). Rational and convergent learning in stochastic games. In Proceedings of the 17th international joint conference on Artificial intelligence-Volume 2, pages 1021–1026. \nCen, S., Cheng, C., Chen, Y., Wei, Y., and Chi, Y. (2020). Fast global convergence of natural policy gradient methods with entropy regularization. arXiv preprint arXiv:2007.06558. \nCen, S., Wei, Y., and Chi, Y. (2021). Fast policy extragradient methods for competitive games with entropy regularization. arXiv preprint arXiv:2105.15186. \nCesa-Bianchi, N. and Lugosi, G. (2006). Prediction, learning, and games. Cambridge university press. \nDaskalakis, C., Deckelbaum, A., and Kim, A. (2011). Near-optimal no-regret algorithms for zero-sum games. In Proceedings of the twenty-second annual ACM-SIAM symposium on Discrete Algorithms, pages 235–254. SIAM. \nDaskalakis, C., Foster, D. J., and Golowich, N. (2020). Independent policy gradient methods for competitive reinforcement learning. In Advances in Neural Information Processing Systems, volume 33, pages 5527–5540. \nDaskalakis, C., Ilyas, A., Syrgkanis, V., and Zeng, H. (2018). Training GANs with optimism. In International Conference on Learning Representations (ICLR 2018). \nDaskalakis, C. and Panageas, I. (2018a). Last-iterate convergence: Zero-sum games and constrained min-max optimization. arXiv preprint arXiv:1807.04252. \nDaskalakis, C. and Panageas, I. (2018b). The limit points of (optimistic) gradient descent in minmax optimization. In Proceedings of the 32nd International Conference on Neural Information Processing Systems, pages 9256–9266. \nFreund, Y. and Schapire, R. E. (1999). Adaptive game playing using multiplicative weights. Games and Economic Behavior, 29(1-2):79–103. \nGeist, M., Scherrer, B., and Pietquin, O. (2019). A theory of regularized Markov decision processes. In International Conference on Machine Learning, pages 2160–2169. \nGoodfellow, I. J., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., and Bengio, Y. (2014). Generative adversarial networks. arXiv preprint arXiv:1406.2661. \nHarker, P. T. and Pang, J.-S. (1990). Finite-dimensional variational inequality and nonlinear complementarity problems: a survey of theory, algorithms and applications. Mathematical programming, 48(1):161–220. \nHofbauer, J. and Sandholm, W. H. (2002). On the global convergence of stochastic fictitious play. Econometrica, 70(6):2265–2294. \nHsieh, Y.-G., Iutzeler, F., Malick, J., and Mertikopoulos, P. (2019). On the convergence of single-call stochastic extra-gradient methods. arXiv preprint arXiv:1908.08465. \nKonda, V. R. and Tsitsiklis, J. N. (2000). Actor-critic algorithms. In Advances in neural information processing systems, pages 1008–1014. Citeseer. \nKorpelevich, G. M. (1976). The extragradient method for finding saddle points and other problems. Matecon, 12:747–756. \nLan, G. (2021). Policy mirror descent for reinforcement learning: Linear convergence, new sampling complexity, and generalized problem classes. arXiv preprint arXiv:2102.00135. \nLei, Q., Nagarajan, S. G., Panageas, I., and Wang, X. (2021). Last iterate convergence in no-regret learning: constrained min-max optimization for convex-concave landscapes. In International Conference on Artificial Intelligence and Statistics, pages 1441–1449. PMLR. \nLiang, T. and Stokes, J. (2019). Interaction matters: A note on non-asymptotic local convergence of generative adversarial networks. In The 22nd International Conference on Artificial Intelligence and Statistics, pages 907–915. PMLR. \nLittman, M. L. (1994). Markov games as a framework for multi-agent reinforcement learning. In Machine Learning Proceedings, pages 157–163. Elsevier. \nMcKelvey, R. D. and Palfrey, T. R. (1995). Quantal response equilibria for normal form games. Games and economic behavior, 10(1):6–38. \nMei, J., Xiao, C., Szepesvari, C., and Schuurmans, D. (2020). On the global convergence rates of softmax policy gradient methods. arXiv preprint arXiv:2005.06392. \nMertikopoulos, P., Lecouat, B., Zenati, H., Foo, C.-S., Chandrasekhar, V., and Piliouras, G. (2018a). Optimistic mirror descent in saddle-point problems: Going the extra (gradient) mile. In International Conference on Learning Representations. \nMertikopoulos, P., Papadimitriou, C., and Piliouras, G. (2018b). Cycles in adversarial regularized learning. In Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 2703–2717. SIAM. \nMertikopoulos, P. and Sandholm, W. H. (2016). Learning in games via reinforcement and regularization. Mathematics of Operations Research, 41(4):1297–1324. \nMokhtari, A., Ozdaglar, A., and Pattathil, S. (2020a). A unified analysis of extra-gradient and optimistic gradient methods for saddle point problems: Proximal point approach. In International Conference on Artificial Intelligence and Statistics, pages 1497–1507. PMLR. \nMokhtari, A., Ozdaglar, A. E., and Pattathil, S. (2020b). Convergence rate of $O ( 1 / k )$ for optimistic gradient and extragradient methods in smooth convex-concave saddle point problems. SIAM Journal on Optimization, 30(4):3230–3251. \nNemirovski, A. (2004). Prox-method with rate of convergence $O ( 1 / t )$ for variational inequalities with Lipschitz continuous monotone operators and smooth convex-concave saddle point problems. SIAM Journal on Optimization, 15(1):229–251. \nNeu, G., Jonsson, A., and Gómez, V. (2017). A unified view of entropy-regularized Markov decision processes. arXiv preprint arXiv:1705.07798. \nPerolat, J., Scherrer, B., Piot, B., and Pietquin, O. (2015). Approximate dynamic programming for two-player zero-sum Markov games. In International Conference on Machine Learning, pages 1321–1329. PMLR. \nRakhlin, A. and Sridharan, K. (2013). Optimization, learning, and games with predictable sequences. arXiv preprint arXiv:1311.1869. \nSavas, Y., Ahmadi, M., Tanaka, T., and Topcu, U. (2019). Entropy-regularized stochastic games. In 2019 IEEE 58th Conference on Decision and Control (CDC), pages 5955–5962. IEEE. \nShapley, L. S. (1953). Stochastic games. Proceedings of the National Academy of Sciences, 39(10):1095–1100. \nSyrgkanis, V., Agarwal, A., Luo, H., and Schapire, R. E. (2015). Fast convergence of regularized learning in games. In Proceedings of the 28th International Conference on Neural Information Processing Systems-Volume 2, pages 2989–2997. \nTseng, P. (1995). On linear convergence of iterative methods for the variational inequality problem. Journal of Computational and Applied Mathematics, 60(1-2):237–252. \nWei, C.-Y., Lee, C.-W., Zhang, M., and Luo, H. (2021a). Last-iterate convergence of decentralized optimistic gradient descent/ascent in infinite-horizon competitive Markov games. arXiv preprint arXiv:2102.04540. \nWei, C.-Y., Lee, C.-W., Zhang, M., and Luo, H. (2021b). Linear last-iterate convergence in constrained saddle-point optimization. In International Conference on Learning Representations (ICLR). \nXie, Q., Chen, Y., Wang, Z., and Yang, Z. (2020). Learning zero-sum simultaneous-move Markov games using function approximation and correlated equilibrium. In Conference on Learning Theory, pages 3674–3682. PMLR. \nYadav, A., Shah, S., Xu, Z., Jacobs, D., and Goldstein, T. (2017). Stabilizing adversarial nets with prediction methods. arXiv preprint arXiv:1705.07364. \nZhan, W., Cen, S., Huang, B., Chen, Y., Lee, J. D., and Chi, Y. (2021). Policy mirror descent for regularized reinforcement learning: A generalized framework with linear convergence. arXiv preprint arXiv:2105.11066. \nZhang, K., Kakade, S., Basar, T., and Yang, L. (2020). Model-based multi-agent RL in zero-sum Markov games with near-optimal sample complexity. Advances in Neural Information Processing Systems, 33. \nZhao, Y., Tian, Y., Lee, J. D., and Du, S. S. (2021). Provably efficient policy gradient methods for two-player zero-sum Markov games. arXiv preprint arXiv:2102.08903. ",
1563
+ "bbox": [
1564
+ 169,
1565
+ 78,
1566
+ 828,
1567
+ 916
1568
+ ],
1569
+ "page_idx": 10
1570
+ },
1571
+ {
1572
+ "type": "text",
1573
+ "text": "",
1574
+ "bbox": [
1575
+ 169,
1576
+ 56,
1577
+ 828,
1578
+ 919
1579
+ ],
1580
+ "page_idx": 11
1581
+ },
1582
+ {
1583
+ "type": "text",
1584
+ "text": "",
1585
+ "bbox": [
1586
+ 171,
1587
+ 89,
1588
+ 828,
1589
+ 402
1590
+ ],
1591
+ "page_idx": 12
1592
+ }
1593
+ ]
parse/train/74RmfBweB60/74RmfBweB60_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/74RmfBweB60/74RmfBweB60_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hke-WTVtwr/Hke-WTVtwr.md ADDED
@@ -0,0 +1,387 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ENCODING WORD ORDER IN COMPLEX EMBEDDINGS
2
+
3
+ Benyou Wang ∗ University of Padua wang@dei.unipd.it
4
+
5
+ Donghao Zhao ∗ Tianjin University zhaodh@tju.edu.cn
6
+
7
+ Christina Lioma University of Copenhagen chrh@di.ku.dk
8
+
9
+ Qiuchi Li University of Padua qiuchili@dei.unipd.it
10
+
11
+ Peng Zhang † Tianjin University pzhang@tju.edu.cn
12
+
13
+ Jakob Grue Simonsen University of Copenhagen simonsen@di.ku.dk
14
+
15
+ # ABSTRACT
16
+
17
+ Sequential word order is important when processing text. Currently, neural networks (NNs) address this by modeling word position using position embeddings. The problem is that position embeddings capture the position of individual words, but not the ordered relationship (e.g., adjacency or precedence) between individual word positions. We present a novel and principled solution for modeling both the global absolute positions of words and their order relationships. Our solution generalizes word embeddings, previously defined as independent vectors, to continuous word functions over a variable (position). The benefit of continuous functions over variable positions is that word representations shift smoothly with increasing positions. Hence, word representations in different positions can correlate with each other in a continuous function. The general solution of these functions is extended to complex-valued domain due to richer representations. We extend CNN, RNN and Transformer NNs to complex-valued versions to incorporate our complex embedding (we make all code available). Experiments 1 on text classification, machine translation and language modeling show gains over both classical word embeddings and position-enriched word embeddings. To our knowledge, this is the first work in NLP to link imaginary numbers in complexvalued representations to concrete meanings (i.e., word order).
18
+
19
+ # 1 INTRODUCTION
20
+
21
+ When processing text, the sequential structure of language is important, but can be computationally costly to model with neural networks (NNs) (Socher et al., 2011) due to the difficulty in parallelization. This has been alleviated by modeling word sequence not on the NN architecture level, but by adding position embeddings on the feature level. This has been done by the convolutional sequence model (ConvSeq) (Gehring et al., 2017) and the Transformer model (Vaswani et al., 2017) that replaces recurrent and convolution operations with purely attention mechanisms. More generally, vanilla position embeddings (Gehring et al., 2017) assume that individual word positions are independent and do not consider relations between neighbouring word positions. We posit that both the global absolute positions of words and their inner sequential and adjacent relationships are crucial in language. This is supported by recent empirical findings by Shaw et al. (2018) and Dai et al. (2019) who show the importance of modeling distance between sequential elements, and explicitly use extra relative position encodings to capture the relative-distance relationship of words.
22
+
23
+ We present a novel and principled approach to model both the global absolute positions of words and their inner sequential and adjacent relationships as follows: we extend each word embedding, previously defined as an independent vector, as a continuous function over an independent variable i.e., position. The benefit of continuous functions over variable positions is that word representations shift smoothly with increasing positions. Hence, word representations in different positions can correlate with each other in a continuous function. Fig. 1 illustrates this type of word representation with a three-dimensional complex-valued embedding, where the amplitudes $\{ r _ { 1 } , r _ { 2 } , r _ { 3 } \}$ denote semantic aspects corresponding to classical word vectors, and periods $\{ p _ { 1 } , p _ { 2 } , p _ { 3 } \}$ denote how sensitive the word is to positional information. We further discuss the necessary properties of these functions to model sequential information and obtain a general solution in the form of a complexvalued embedding. Interestingly, there is a direct connection between a specific case of our general embedding and the well-known positional encoding in Vaswani et al. (2017) (see App. A).
24
+
25
+ ![](images/ee1df64c33d8fcbca82c0506d4ba4959600580db8fbc24d9ca169bde95813e90.jpg)
26
+ Figure 1: 3-dimensional complex embedding for a single word in different positions. The three wave functions (setting the initial phases as zero) show the real part of the embedding; the imaginary part has a $\frac { \pi } { 2 }$ phase difference and shows the same curves with its real-valued counterpart. The $\mathbf { X }$ -axis denotes the absolute position of a word and the y-axis denotes the value of each element in its word vector. Colours mark different dimensions of the embedding. The three cross points between the functions and each vertical line (corresponding to a specific position pos) represent the embedding for this word in the pos-th position.
27
+
28
+ We contribute (i) a novel paradigm that extends word vectors as continuous functions over changing variables like word position, and (ii) a general word embedding that models word order in a mathematically-sound manner. We integrate our complex word embeddings in state-of-the-art (SOTA) NN architectures (CNN, RNN, Transformer and experimentally find that it yields gains over both classical word embeddings and position-enriched word embeddings in text classification, machine translation and language modeling. Note that this is the first work in NLP to link imaginary numbers in complex-valued representation to concrete meanings (i.e., word order).
29
+
30
+ # 2 MODELLING WORD ORDER IN EMBEDDING SPACE
31
+
32
+ A Word Embedding (WE) generally defines a map $f _ { w e } : \mathbb { N } \mathbb { R } ^ { D }$ from a discrete word index to a $D$ -dimensional real-valued vector and $\mathbb { N } = \{ 0 , 1 , 2 , \ldots \}$ . Similarly, a Position Embedding (PE) (Gehring et al., 2017; Vaswani et al., 2017) defines another map $f _ { p e } : \mathbb { N } \mathbb { R } ^ { D }$ from a discrete position index to a vector. The final embedding for word $w _ { j }$ $\mathbf { \Phi } _ { w _ { j } } \in \mathbb { W }$ with index $j$ in a given vocabulary W) in the pos-th position in a sentence is usually constructed by the sum
33
+
34
+ $$
35
+ f ( j , p o s ) = f _ { w e } ( j ) + f _ { p e } ( p o s ) ,
36
+ $$
37
+
38
+ and $f ( j , p o s ) \in \mathbb { R } ^ { D }$ . Since both the word embedding map $f _ { w }$ and the position embedding map $f _ { p }$ only take integer values as word indexes or position indexes, embedding vectors for individual words or positions are trained independently. The independent training for each word vector is reasonable, since a word index is based on the order of a given arbitrary vocabulary and does not capture any specific sequential relationship with its neighboring words. However, the position index captures an ordered relationship, for instance adjacency or precedence, leading to the problem that position embeddings in individual positions (Gehring et al., 2017) are independent of each other; the ordered relationship between positions is not modelled. We refer to this as the position independence problem. This problem becomes more crucial when position embeddings are used in position-insensitive NNs, e.g., FastText (Mikolov et al., 2013b), ConvSeq (Gehring et al., 2017) and Transformer (Vaswani et al., 2017), because it is hard for such position-insensitive NNs with vanilla position embeddings (Gehring et al., 2017) to infer that $w _ { j _ { 1 } }$ in the pos-th position is close to $w _ { j _ { 2 } }$ in the $p o s + 1$ -th position, or that $w _ { j _ { 1 } }$ precedes $w _ { j _ { 2 } }$ ; instead, it is only inferred that $w _ { j _ { 1 } }$ and $w _ { j _ { 2 } }$ are in different positions, while the relative distance between them is almost unknown. Thus vanilla position embeddings (Gehring et al., 2017) cannot fully capture the sequential aspect of language.
39
+
40
+ Next, we first introduce the necessary properties to model word order in embeddings, and then give a unique solution to meet such properties.
41
+
42
+ # 2.1 EXTENDING VECTORS TO FUNCTIONS
43
+
44
+ In the general definition in Eq. 1, each dimension of the position embedding is obtained based on the discrete position indexes $\{ 0 , 1 , 2 , . . . , \mathrm { p o s } , . . . \}$ . This makes it difficult to model the ordered relationship between the positions. One solution to this problem is to build continuous functions over a variable (i.e., position index) to represent a specific word in an individual dimension. Formally, we define a general embedding as
45
+
46
+ $$
47
+ f ( j , \mathrm { p o s } ) = \pmb { g } _ { j } ( \mathrm { p o s } ) \in \mathbb { R } ^ { D } ,
48
+ $$
49
+
50
+ where ${ \pmb g } _ { \mathcal { I } }$ is short for $\pmb { g } _ { w e } ( j ) \in ( \mathcal { F } ) ^ { D }$ , indicating $D$ functions over position index pos, and $g _ { w e } ( \cdot ) :$ : $\mathbb { N } \to ( \mathcal { F } ) ^ { D }$ is a mapping from a word index to $D$ functions. By expanding the $D$ dimension of ${ \pmb g } _ { \mathcal { I } }$ , a word $w _ { j }$ in the pos-th position can be represented as a $D$ -dimensional vector as shown in
51
+
52
+ $$
53
+ [ g _ { j , 1 } ( \mathbf { p o s } ) , g _ { j , 2 } ( \mathbf { p o s } ) , . . . , g _ { j , D } ( \mathbf { p o s } ) ] \in \mathbb { R } ^ { D } ,
54
+ $$
55
+
56
+ in which $\forall g _ { j , d } ( \cdot ) \in \mathcal { F } : \mathbb { N } \to \mathbb { R } , d \in \{ 1 , 2 , . . . , D \}$ is a function over the position index pos. To move the word $w _ { j }$ from the current position $p o s$ to another one $p o s ^ { \prime }$ , it needs only replace the variable pos to $p o s ^ { \prime }$ without changing ${ \pmb g } _ { \mathcal { I } }$ .
57
+
58
+ Functions for words, especially continuous functions, are expected to capture smooth transformation from a position to its adjacent position therefore modeling word order. The position-independent position embedding (Gehring et al., 2017) can be considered as a special case of our definition when it only takes independent values for individual positions in the embedding function.
59
+
60
+ # 2.2 PROPERTIES FOR THE FUNCTIONS TO CAPTURE WORD ORDER
61
+
62
+ Relative distance is hard to compute because position indices are not visible in NNs after vector embedding (discrete position indices are necessarily embedded as vectors like words to be backpropagated with the gradient). Hence, we claim that the modeling of relative distance in NNs should be position-free: absolute position indices cannot be directly accessed in intermediate layers. Instead of processing position-free operations in NNs to capture relative distance between words, prior work (Shaw et al., 2018; Dai et al., 2019) first calculates the relative distance between words, and then feeds the relative distance as an additional feature or as embeddings/weights to NNs, instead of directly feeding with the raw position indices.
63
+
64
+ Assume that words are embedded into $\mathbb { R } ^ { D }$ , and let, for $1 \leq d \leq D$ , the function $g _ { j , d } : \mathbb { N } \mathbb { R }$ be the embedding function giving the $d$ -th coordinate of the representation of word $w _ { j }$ (i.e., $g _ { j , d } ( \mathfrak { p o s } )$ is the $d$ -th coordinate of the embedding of $w _ { j }$ if it occurs at position pos. In the following, we simply write $g$ instead of $g _ { j , d }$ when there is no risk of confusion. Ideally, one would like there to exist a function Tran $\operatorname { s f o r m } _ { n } : \mathbb { R } \mathbb { R }$ that transforms the embedding of any word at some position pos to the embedding of a word at position $\boldsymbol { \mathrm { p o s } } + n$ such that Transform $^ { 1 } n$ is only dependent on the embedded value itself, but independent of the position pos, that is $\forall \mathbf { p o s } : g ( \mathbf { p o s } + n ) { \overline { { = \mathrm { T r a n s f o r m } _ { n } ( g ( \mathbf { p o s } ) ) } } }$ .
65
+
66
+ Prior work in NLP (Li et al., 2019), Information Retrieval (Van Rijsbergen, 2004) and Machine Learning (Trabelsi et al., 2017) has shown the usefulness of complex numbers as richer representations. Complex word embeddings (Wang et al., 2019; Li et al., 2019; Li et al., 2018) have been used to model language. To investigate the potential of complex-valued representation, we extend the target domains of $g ( \cdot )$ from $\mathbb { R } ^ { D }$ to $\mathbb { C } ^ { D }$ without losing generality, since real-valued numbers are specific complex numbers with their imaginary part being zero. This property regarding “position-free offset transformation” in complex-valued domains is formally defined in Property 1 below.
67
+
68
+ Property 1. Position-free offset transformation: An embedding function $g : \mathbb { N } \to \mathbb { C }$ is said to be a position-free offset transformation if there exists a function Transform : $\mathbb { N } \times \mathbb { C } \to \mathbb { C }$ (called the witness) such that for all $n \geq 1$ , the function Transfor $\mathfrak { m } _ { n } ( \cdot ) = \mathrm { T r a n s f o r m } ( n , \cdot )$ satisfies $\forall \mathsf { p o s } \in$ $\mathbb { N } : g ( \mathrm { p o s } + n ) = \mathrm { T r a n s f o r m } _ { n } ( g ( \mathrm { p o s } ) )$ . A position-free offset transformation $g$ is said to be linearly witnessed if there is a function $w : \mathbb { N } \mathbb { C }$ such that $g$ has a witness Transform satisfying, for all $n$ , Transform $\operatorname { \mathrm { 1 } } ( n , \operatorname { p o s } ) = \operatorname { T r a n s f o r m } _ { n } ( \operatorname { p o s } ) = w ( n )$ (i.e., each Transform $_ n$ is a linear function).
69
+
70
+ Additionally, a boundedness property is necessary to ensure that the position embedding can deal with text of any length (pos could be large in a long document).
71
+
72
+ Property 2. Boundedness: The function over the variable position should be bounded, i.e. $\exists \delta \in$
73
+ $\overline { { \mathbb { R } ^ { + } , \forall \mathrm { p o s } \in \mathbb { N } } } , | g ( \mathrm { p o s } ) | \leq \delta$ .
74
+
75
+ Formally, we prove the following claim that there is a unique solution that meets Properties 1 and 2 under the condition that the embedding function is linearly witnessed. We use linear functions because they are well-understood and simple with a single floating-point operation in NNs.
76
+
77
+ Claim 1. A function $g : \mathbb { N } \mathbb { C }$ is a bounded and linearly witnessed position-free offset transformation iff it is on the form $g ( p o s ) = z _ { 2 } z _ { 1 } ^ { p o s }$ for $z _ { 1 } , z _ { 2 } \in \mathbb { C }$ with $| z _ { 1 } | \le 1$ .
78
+
79
+ Proof. Assume that $g$ is a bounded and linearly witnessed position-free offset transformation. Then, by linear witnessing, we have for all pos, $n _ { 1 } , n _ { 2 } \in \mathbb { N }$ :
80
+
81
+ $$
82
+ \begin{array} { r } { w ( n _ { 1 } ) w ( n _ { 2 } ) g ( \mathrm { p o s } ) = w ( n _ { 2 } ) g ( \mathrm { p o s } + n _ { 1 } ) = g ( \mathrm { p o s } + n _ { 1 } + n _ { 2 } ) \qquad } \\ { = \mathrm { T r a n s f o r m } _ { n _ { 1 } + n _ { 2 } } ( g ( \mathrm { p o s } ) ) = w ( n _ { 1 } + n _ { 2 } ) g ( \mathrm { p o s } ) } \end{array}
83
+ $$
84
+
85
+ whence $w ( n _ { 1 } + n _ { 2 } ) = w ( n _ { 1 } ) w ( n _ { 2 } )$ . Write $w ( 1 ) = z _ { 1 }$ and $g ( 0 ) = z _ { 2 }$ . As $n _ { 1 } , n _ { 2 } \in \mathbb { N }$ were arbitrary, Furthermore, observe that for we have $w ( n ) = ( w ( 1 ) ) ^ { n } = z _ { 1 } ^ { n }$ $\mathsf { p o s } \geq 1$ for all , we have $n \in \mathbb N$ . But then $g ( \mathrm { p o s } ) = g ( 1 + \mathrm { p o s } - 1 ) = w ( \mathrm { p o s } ) g ( 0 ) = z _ { 1 } ^ { \mathrm { p o s } } z _ { 2 } =$ $g ( \mathrm { p o s } + n ) = w ( n ) g ( \mathrm { p o s } ) = z _ { 1 } ^ { n } g ( \mathrm { p o s } )$ . $z _ { 2 } z _ { 1 } ^ { \mathrm { p o s } }$ . For $\mathrm { p o s } = 0$ , $g ( 0 ) = z _ { 2 } = z _ { 2 } z _ { 1 } ^ { 0 }$ , whence $g ( \mathrm { p o s } ) = z _ { 2 } z _ { 1 } ^ { \mathrm { p o s } }$ 1 2 , as desired. Observe that if $| z _ { 1 } | > 1$ $g ( { \mathfrak { p o s } } )$ unbouwith hence w. Then, $| z _ { 1 } | \le 1$ hat , w $g$ is once $g ( \mathsf { p o s } ) \stackrel { - } { = } z _ { 2 } z _ { 1 } ^ { \mathsf { p o s } }$ $| z _ { 1 } | \le 1$ $| g ( \mathrm { p o s } ) | \stackrel { \cdot } { \leq } | z _ { 2 } z _ { 1 } ^ { \mathrm { p o s } } | \leq | z _ { 2 } | | \dot { z } _ { 1 } ^ { \mathrm { p o s } } | \leq | z _ { 2 } |$ $g$ is bounded. Define, for each $n \in \mathbb N$ , $w ( n ) = z _ { 1 } ^ { n }$ and Transf ${ \mathrm { y r m } } _ { n } ( { \mathrm { p o s } } ) = w ( n ) { \mathrm { p o s } }$ . Then, for all pos, $n \in \mathbb { N }$ ,
86
+
87
+ $$
88
+ g ( \mathsf { p o s } + n ) = z _ { 2 } z _ { 1 } ^ { \mathsf { p o s } + n } = z _ { 2 } z _ { 1 } ^ { \mathsf { p o s } } z _ { 1 } ^ { n } = g ( \mathsf { p o s } ) z _ { 1 } ^ { n } = \mathrm { T r a n s f o r m } _ { n } ( g ( \mathsf { p o s } ) )
89
+ $$
90
+
91
+ showing that $g$ is a linearly witnessed position-free offset transformation.
92
+
93
+ For any $z \in \mathbb { C }$ , we may write $z = r e ^ { i \theta } = r ( \cos \theta + i \sin \theta )$ . Thus, for the general form of the embedding $g$ from Theorem 1, we have:
94
+
95
+ $$
96
+ g ( \mathsf { p o s } ) = z _ { 2 } z _ { 1 } ^ { \mathsf { p o s } } = r _ { 2 } e ^ { i \theta _ { 2 } } ( r _ { 1 } e ^ { i \theta _ { 1 } } ) ^ { \mathsf { p o s } } = r _ { 2 } r _ { 1 } ^ { \mathsf { p o s } } e ^ { i ( \theta _ { 2 } + \theta _ { 1 } \mathsf { p o s } ) } ~ \mathrm { s u b j e c t } ~ \mathsf { t o } ~ | r _ { 1 } | \leq 1
97
+ $$
98
+
99
+ In implementations, the above definition of $g$ will lead to an optimization problem due to the constraint $| r _ { 1 } | \le 1$ . A natural and simple way to avoid this is to fix $r _ { 1 } = 1$ ; note that $| e ^ { i x } | \equiv 1$ , thus automatically satisfying the constraint, in contrast to a real-valued embedding where one would need to explicitly devise functions satisfying the constraint. Finally, Eq. 4 can be written in the simplified form: $g ( \mathrm { p o s } ) = r e ^ { i ( \omega \mathrm { p o s } + \theta ) }$ . Thus, one can think of $g$ as embedding positions counterclockwise on a complex circle of radius $r$ with a fixed period $\dot { \boldsymbol { r } }$ is the amplitude term, $\theta$ is the initial phase term, $\frac { \omega } { 2 \pi }$ is the frequency, and $\frac { 2 \pi } { \omega }$ is the period term).
100
+
101
+ # 2.3 COMPLEX-VALUED WORD EMBEDDING
102
+
103
+ We now define our complex-valued word embedding $g$ as a map taking a word index $j$ and position word index pos to $\mathbb { C } ^ { D }$ . For a word $w _ { j }$ in position pos, our general complex-valued embedding is defined as $f ( j , \mathrm { p o s } ) = { { g } _ { j } } ( \mathrm { p o s } ) = { { r } _ { j } } { { e } ^ { i ( \omega _ { j } \mathrm { p o s } + { { \theta } _ { j } } ) } }$ . Therefore, $f ( j , { \mathfrak { p o s } } )$ is defined as:
104
+
105
+ $$
106
+ [ r _ { j , 1 } e ^ { i ( \omega _ { j , 1 } \mathrm { p o s } + \theta _ { j , 1 } ) } , . . . , r _ { j , 2 } e ^ { i ( \omega _ { j , 2 } \mathrm { p o s } + \theta _ { j , 2 } ) } , \cdot \cdot \cdot , r _ { j , D } e ^ { i ( \omega _ { j , D } \mathrm { p o s } + \theta _ { j , D } ) } ]
107
+ $$
108
+
109
+ Note that each coordinate $d$ $1 \leq d \leq D )$ has a separate amplitude $\boldsymbol { r } _ { j , d }$ , period $\begin{array} { r } { p _ { j , d } = \frac { 2 \pi } { \omega _ { j , d } } } \end{array}$ , and initial phase $\theta _ { j , d }$ . In Fig. 1 each dimension is represented as a wave which is parameterized by an amplitude, a period/frequency, and an initial phase. The trainable parameters of the embedding are the amplitudes vector $\boldsymbol { r } _ { j } = [ r _ { j , 1 } , . . . , r _ { j , D } ]$ , the period/frequency related weights $\omega _ { j } = [ \omega _ { j , 1 } , . . . , \omega _ { j , D } ] ,$ , and the initial phase vector $\pmb { \theta } _ { j } = [ \theta _ { j , 1 } , . . . , \theta _ { j , D } ]$ . Note that the mean values of $f ( j , \cdot )$ over all positions are linearly dependent on the amplitude. Observe that the period/frequency determines to what degree the word is sensitive to the position. With an extremely long period (i.e., $\omega _ { j }$ very small), the complex-valued embedding is approximately constant for all possible values of pos, and hence approximates a standard word embedding. Conversely, if the period is short, the embedding will be highly sensitive to the position argument.
110
+
111
+ In our embedding, the mean vectors of $f ( j , \cdot )$ taken over all positions are linearly correlated to the amplitude embedding $\pmb { r } _ { j } = [ r _ { j , 1 } , . . . , r _ { j , K } ]$ with a coefficient $\frac { 2 } { \pi }$ . The amplitude $\boldsymbol { r } _ { j , d }$ of our embedding depends only on the word $w _ { j }$ (and coordinate $d$ ), not on the position of the word, whence one can think of the vector $g _ { p e } ( j , \mathrm { p o s } ) = [ e ^ { i ( \omega _ { j , 1 } \mathrm { p o s } + \theta _ { j , 1 } ) } , \cdot \cdot \cdot , e ^ { i ( \omega _ { j , D } \mathrm { p o s } + \theta _ { j , D } ) } ]$ as a “purely” positional embedding. Consequently, our complex embedding can be considered an element-wise multiplication between the word embedding $\bar { g _ { w e } ( j ) } = [ r _ { j , 1 } , . . . , \bar { r _ { j , K } } ]$ and position embedding $g _ { p e }$ .
112
+
113
+ Table 1: Dataset Statistics. CV means 10-fold cross validation. The last 2 datasets come with train/dev/test splits.
114
+
115
+ <table><tr><td>Dataset</td><td>train</td><td>test</td><td>vocab.</td><td>task</td><td>Classes</td></tr><tr><td>CR (Hu &amp; Liu,2014)</td><td>4K</td><td>CV</td><td>6K</td><td>product reviews</td><td>2</td></tr><tr><td>MPQA (Wiebe et al., 2005)</td><td>11k</td><td>CV</td><td>6K</td><td>opinion polarity</td><td>2</td></tr><tr><td>SUBJ (Pang &amp; Lee,2005)</td><td>10k</td><td>CV</td><td>21k</td><td>subjectivity</td><td>2</td></tr><tr><td>MR (Pang &amp; Lee,2005)</td><td>11.9k</td><td>CV</td><td>20k</td><td>moviereviews</td><td>2</td></tr><tr><td>SST (Socher et al.,2013)</td><td>67k</td><td>2.2k</td><td>18k</td><td>movie reviews</td><td>2</td></tr><tr><td>TREC (Li&amp; Roth,2002)</td><td>5.4k</td><td>0.5k</td><td>10k</td><td>Question</td><td>6</td></tr></table>
116
+
117
+ $$
118
+ f ( j , \mathrm { p o s } ) = g _ { w e } ( j ) \odot g _ { p e } ( j , \mathrm { p o s } )
119
+ $$
120
+
121
+ Prior work (Gehring et al., 2017; Vaswani et al., 2017) uses mean-weight addition between word embeddings $f _ { w e }$ and position embeddings $f _ { p e }$ (all words share the weights). In our work, word embeddings and position embeddings are decoupled to some extent by element-wise multiplication and therefore the frequency/period terms (related to $\omega _ { j , d } )$ ) can adaptively adjust the importance between semantic and position information for each word and each dimension. In particular, with higher frequency (i.e., large $\omega _ { j , d } )$ , the final embedding will change dramatically with the changing positions, while it can be fixed for any positions with an extremely-small frequency (i.e., small $\omega _ { j , d } )$ . Interestingly, the well-known position embedding in Transformer (Vaswani et al., 2017) can be seen as a degraded version of one of our specific complex word embeddings (see the Appendix A).
122
+
123
+ # 3 EXPERIMENTAL EVALUATION
124
+
125
+ We evaluate our embeddings in text classification, machine translation and language modeling.
126
+
127
+ # 3.1 TEXT CLASSIFICATION
128
+
129
+ Experimental Setup. We use six popular text classification datasets: CR, MPQA, SUBJ, MR, SST, and TREC (see Tab. 1). We use accuracy as evaluation measure based on fixed train/dev/test splits or cross validation, as per prior work. We use Fasttext (Joulin et al., 2016), CNN (Kim, 2014), LSTM and Transformer (Vaswani et al., 2017) as NN baselines2. We use each of them: (1) without positional information; (2) with Vanilla Position Embeddings (PE) (randomly initialized and updated during training using the sum between word and position vectors (Gehring et al., 2017); (3) with Trigonometric Position Embeddings (TPE) (defining position embeddings as trigonometric functions as per Eq. 7); (4) with Complex-vanilla word embeddings (where the amplitude embedding is initialized by the pre-trained word vectors, and the phrase embedding is randomly initialized in a range from $- \pi$ to $\pi$ without considering word order (Wang et al., 2019)); and (5) with our order-aware complex-valued word embeddings, Complex-order (which encode position in the phase parts, train the periods, and where the amplitude embedding is also initialized by pretrained word vectors). For more details on the complex-valued extensions of NNs, see App. B and App. C.
130
+
131
+ Our embedding generally has $3 \times D \times | \mathbb { W } |$ parameters with D-dimensional word vectors and $| \mathbb { W } |$ words, while previous work (Mikolov et al., 2013b; Pennington et al., 2014) usually employs only $D \times | \mathbb { W } |$ parameters for embedding lookup tables. To increase efficiency and facilitate fair comparison with previous work we set initial phases $\pmb { \theta } _ { j } = [ \theta _ { j , 1 } , . . . , \theta _ { j , D } ]$ to a shared constant value (such as zero). Furthermore, the period vectors $\omega _ { j , d }$ depend on word index $j$ with length $\lvert \mathbb { W } \rvert$ and the coordinate index $d$ with length $D$ . To decrease the number of parameters, one can either use a word-sharing scheme (i.e., $\omega _ { j , d } = \omega _ { \cdot , d } )$ ), or a dimension-sharing scheme $( \omega _ { j , d } = \omega _ { j , \cdot } )$ , leading to $| \mathbb { W } | * D + | \bar { \mathbb { W } } |$ and $| \mathbb { W } | * D + D$ parameters in total for the embedding layer.
132
+
133
+ Table 2: Text classification accuracy without position embeddings, with random position embeddings (PE), with trigonometric position embeddings (TPE), with complex-valued NNs without position embeddings (complex-vanilla), and with our complex-order embeddings. Superscripts $\ S$ , †, ‡ and ∗ mean a significant improvement over a baseline without position embeddings §, $\mathrm { P } \bar { \mathrm { E } } ^ { \dagger }$ , $\mathrm { \Delta T P E ^ { \ddagger } }$ and Complex-vanilla ∗ using Wilcoxon’s signed-rank test $\mathrm { p } { < } 0 . 0 5$ .
134
+
135
+ <table><tr><td>Method</td><td>MR</td><td>SUBJ</td><td>CR</td><td>MPQA</td><td>SST</td><td>TREC</td></tr><tr><td>Fasttext</td><td>0.765</td><td>0.916</td><td>0.789</td><td>0.874</td><td>0.788</td><td>0.874</td></tr><tr><td>Fasttext-PE</td><td>0.774</td><td>0.922</td><td>0.789</td><td>0.882</td><td>0.791</td><td>0.874</td></tr><tr><td>Fasttext-TPE</td><td>0.776</td><td>0.921</td><td>0.796</td><td>0.884</td><td>0.792</td><td>0.88</td></tr><tr><td>Fasttext-Complex-vanilla</td><td>0.773</td><td>0.918</td><td>0.79</td><td>0.867</td><td>0.803</td><td>0.872</td></tr><tr><td>Fasttext-Complex-order</td><td>0.7878+t*</td><td>0.9298†t*</td><td>0.800$+*</td><td>0.8898†t*</td><td>0.809S十**</td><td>0.8928+**</td></tr><tr><td>LSTM</td><td>0.775</td><td>0.896</td><td>0.813</td><td>0.887</td><td>0.807</td><td>0.858</td></tr><tr><td>LSTM-PE</td><td>0.778</td><td>0.915</td><td>0.822</td><td>0.889</td><td>0.811</td><td>0.858</td></tr><tr><td>LSTM-TPE</td><td>0.776</td><td>0.912</td><td>0.814</td><td>0.888</td><td>0.813</td><td>0.865</td></tr><tr><td>LSTM-Complex-vanilla</td><td>0.765</td><td>0.907</td><td>0.810</td><td>0.823</td><td>0.784</td><td>0.784</td></tr><tr><td>LSTM-Complex-order</td><td>0.7908+t*</td><td>0.9268+*</td><td>0.828S+*</td><td>0.8978†**</td><td>0.8198†**</td><td>0.869$+**</td></tr><tr><td>CNN</td><td>0.809</td><td>0.928</td><td>0.830</td><td>0.894</td><td>0.856</td><td>0.898</td></tr><tr><td>CNN-PE</td><td>0.816</td><td>0.938</td><td>0.831</td><td>0.897</td><td>0.856</td><td>0.890</td></tr><tr><td>CNN-TPE</td><td>0.815</td><td>0.938</td><td>0.836</td><td>0.896</td><td>0.838</td><td>0.918</td></tr><tr><td>CNN-Complex-vanilla</td><td>0.811</td><td>0.937</td><td>0.825</td><td>0.878</td><td>0.823</td><td>0.900</td></tr><tr><td>CNN-Complex-order</td><td>0.8258+t*</td><td>0.9518十**</td><td>0.852$十**</td><td>0.9068†**</td><td>0.8648+*</td><td>0.9398+**</td></tr><tr><td>Transformer w/o position embedding</td><td>0.669</td><td>0.847</td><td>0.735</td><td>0.716</td><td>0.736</td><td>0.802</td></tr><tr><td>Transformer-PE</td><td>0.737</td><td>0.859</td><td>0.751</td><td>0.722</td><td>0.753</td><td>0.820</td></tr><tr><td>Transformer-TPE (Vaswani et al., 2017)</td><td>0.731</td><td>0.863</td><td>0.762</td><td>0.723</td><td>0.761</td><td>0.834</td></tr><tr><td>Transformer-Complex-vanilla</td><td>0.715</td><td>0.848</td><td>0.753</td><td>0.786</td><td>0.742</td><td>0.856</td></tr><tr><td>Transformer-Complex-order</td><td>0.7468+*</td><td>0.895$+*</td><td>0.806$+**</td><td>0.863$+**</td><td>0.813$†*</td><td>0.8968†**</td></tr></table>
136
+
137
+ Table 3: Text classification accuracy. $\star$ means that scores are reported from other papers.
138
+
139
+ <table><tr><td>Method</td><td>MR</td><td>SUBJ</td><td>CR</td><td>MPQA</td><td>SST</td><td>TREC</td></tr><tr><td>Word2vec Bow (Conneau et al.,2017) *</td><td>0.777</td><td>0.909</td><td>0.798</td><td>0.883</td><td>0.797</td><td>0.836</td></tr><tr><td>Sent2Vec (Pagliardini et al., 2017) *</td><td>0.763</td><td>0.912</td><td>0.791</td><td>0.872</td><td>0.802</td><td>0.858</td></tr><tr><td>QuickThoughts (Logeswaran &amp; Lee,2018)*</td><td>0.824</td><td>0.948</td><td>0.860</td><td>0.902</td><td>1</td><td>0.928</td></tr><tr><td>InferSent (Conneau et al., 2017) *</td><td>0.811</td><td>0.924</td><td>0.863</td><td>0.902</td><td>0.846</td><td>0.882</td></tr><tr><td>QPDN (Wang et al., 2019) *</td><td>0.801</td><td>0.927</td><td>0.810</td><td>0.870</td><td>0.839</td><td>0.882</td></tr></table>
140
+
141
+ We search the hyper parameters from a parameter pool, with batch size in $\{ 3 2 , 6 4 , 1 2 8 \}$ , learning rate in $\{ 0 . 0 0 1 , 0 . 0 0 0 1 , 0 . 0 0 0 0 1 \}$ , L2-regularization rate in $\{ 0 , 0 . 0 0 1 , 0 . 0 0 0 1 \}$ , and number of hidden layer units in $\{ 1 2 0 , 1 2 8 \}$ . We use pre-trained 300-dimensional vectors from word2vec (Mikolov et al., 2013a) in all models except for Transformers. The models with trainable trigonometric position embedding produce nearly identical results compared to the non-trainable version, therefore we report the result of fixed position embeddings as per Vaswani et al. (2017). We adopt narrow convolution and max pooling in CNN, with number of filters in $\{ 6 4 , 1 2 8 \}$ , and size of filters in $\{ 3 , 4 , 5 \}$ . In all Transformer models, we only use the encoder layer to extract feature information, where the layer is 1, dimension of word and inner hidden are 256 and 512 respectively, and head number is 8.
142
+
143
+ Results. The results are shown in Tab. 2. Our complex-order embeddings outperform all other variations at all times. This gain in effectiveness comes at a negligible (or non-existent) cost in efficiency (it varies per NN architecture – see Fig. 2). CNNs are the best performing NN as expected following Bai et al. (2018). Tranformer NNs benefit the most from our complex-order embeddings, most likely because they are our weakest baseline. To contextualise these results, Tab. 3 shows classification accuracy of five typical approaches on the same datasets (as reported in the original papers). Our complex-order embeddings outperform all methods, except for the CR dataset, where InferSent is marginally better. Overall, our approach is on a par with the SOTA in embeddings.
144
+
145
+ We perform an ablation test (Tab. 4) on Transformer because it is the most common NN to be used with position embeddings. The two period-sharing schemas (dimension-sharing and word-sharing)
146
+
147
+ ![](images/3e281f61b64e81bd85bc32ab1d241a5dd6a5878639505a4ffd1356dda400c6a3.jpg)
148
+ Figure 2: Computation time (seconds) per epoch in Tensorflow on TITAN X GPU.
149
+
150
+ Table 4: Ablation test for Transformer, showing the effect of (i) the definition of embedding layer $( f _ { d } ( j , \mathsf { p o s } ) )$ , and (ii) whether the real-part and imaginary transition share the weights, i.e., $\Re ( W ^ { Q / K / V } ) = \Im ( W ^ { Q / K / V } )$ .
151
+
152
+ <table><tr><td>Method</td><td colspan="2">Setting</td><td rowspan="2">Params</td><td rowspan="2">Accuracy</td><td rowspan="2">△</td></tr><tr><td></td><td>fa(j,pos)</td><td> share in WQ/K/V</td></tr><tr><td>Transformer-complex-order</td><td>rjde(wjdpos)</td><td>×</td><td>8.33M</td><td>0.813</td><td>=</td></tr><tr><td>adding initial phases</td><td>rj,dei(wj,dpos+0j,d)</td><td>×</td><td>11.89M</td><td>0.785</td><td>-0.028</td></tr><tr><td>dimension-sharing period schema</td><td>Tj,dewj,.pos</td><td>×</td><td>5.82M</td><td>0.797</td><td>-0.016</td></tr><tr><td>word-sharing period schema</td><td>Tj,deiw.,pos</td><td>×</td><td>5.81M</td><td>0.805</td><td>-0.008</td></tr><tr><td>dimension-sharing amplitude schema</td><td>rj,eiwj,.pos</td><td>×</td><td>5.82M</td><td>0.798</td><td>-0.015</td></tr><tr><td>word-sharing amplitude schema</td><td>r.deiw..apos</td><td>×</td><td>5.81M</td><td>0.804</td><td>-0.009</td></tr><tr><td>w/t encoding positions (complex-vanilla)</td><td>Tjdewjd</td><td>×</td><td>9.38M</td><td>0.764</td><td>-0.049</td></tr><tr><td>dimension-sharing period schema</td><td>Tj,dewj,.pos</td><td>√</td><td>4.77M</td><td>0.794</td><td>-0.019</td></tr><tr><td>word-sharing period schema</td><td>rj,dew.,apos</td><td>√</td><td>4.76M</td><td>0.797</td><td>-0.016</td></tr><tr><td>dimension-sharing amplitude schema</td><td>rj,eiwj,.pos</td><td>√</td><td>4.77M</td><td>0.792</td><td>-0.021</td></tr><tr><td>word-sharing amplitude schema</td><td>r.,deiw.,apos</td><td>√</td><td>4.76M</td><td>0.801</td><td>-0.012</td></tr><tr><td>w/t encoding positions (complex-vanilla)</td><td>rjdeiwjd</td><td>√</td><td>8.33M</td><td>0.743</td><td>-0.07</td></tr><tr><td>vanilla Transformer (Vaswani et al., 2017)</td><td>WEj,d+PEd</td><td>-</td><td>4.1M</td><td>0.761</td><td>-0.052</td></tr></table>
153
+
154
+ slightly drop performance, because fewer parameters limit the representative power. Adding initial phases also hurts performance, although we observed that the loss could decrease faster in early epochs compared to the setting without offset. The negative effect of initial phases may be due to periodicity, and $\omega$ cannot be directly regularized with L2-norm penalties. The sharing schemes slightly decrease the performance with less parameters. More details of the learned periods/frequencies (e.g. the distributions of periods/frequencies and case studies) are shown in App. D.
155
+
156
+ Note that the word-sharing schema outperform the Vanilla Transformer, (both have a comparable number of parameters). If we choose $\Re ( \mathrm { \dot { W } } ^ { Q / K / V } ) = \Im ( W ^ { Q / K / V } )$ , the additional parameters in the embedding layers will affect much less the whole parameter scale in the multiple-layer Transformer, since a embedding layer is only used in the first layer instead of the following Transformer layers.
157
+
158
+ # 3.2 MACHINE TRANSLATION
159
+
160
+ Experimental Setup. We use the standard WMT 2016 English-German dataset (Sennrich et al., 2016), whose training set consists of 29,000 sentence pairs. We use four baselines: basic Attentional encoder-decoder (AED) (Bahdanau et al., 2014); AED with Byte-pair encoding (BPE) subword segmentation for open-vocabulary translation (Sennrich et al., 2016); AED with extra linguistic features (morphological, part-of-speech, and syntactic dependency labels) (Sennrich & Haddow, 2016); and a 6-layer Transformer. Our approach (Transformer Complex-order) uses a batch size of 64, a head of 8, 6 layers, the rate of dropout is 0.1, and the dimension of the word embedding is 512. The embedding layer does not use initial phases, i.e., following $f ( j , p o s ) = r _ { j } e ^ { i ( \omega _ { j } p o s ) }$ . We evaluate MT performance with the Bilingual Evaluation Understudy (BLEU) measure.
161
+
162
+ Table 6: Language modeling results. $\star$ marks scores reported from other papers.
163
+
164
+ <table><tr><td>Method</td><td>BLEU</td></tr><tr><td>AED (Bahdanau et al., 2014) *</td><td>26.8</td></tr><tr><td rowspan="4">AED+Linguistic (Sennrich &amp; Haddow,2016) ★ AED+BPE(Sennrich et al.,2016) * Transformer (Ma et al.,2019) *</td><td>28.4</td></tr><tr><td>34.2</td></tr><tr><td></td></tr><tr><td>34.5</td></tr><tr><td>Transformer complex vanilla Transformer Complex-order</td><td>34.7 35.8</td></tr></table>
165
+
166
+ Table 5: Machine translation results. $\star$ marks scores reported from other papers.
167
+
168
+ <table><tr><td>Method BPC</td></tr><tr><td>BN-LSTM(Cooijmans et al., 2016) * 1.36 LN HM-LSTM(Chung et al., 2016) * 1.29</td></tr><tr><td>RHN (Zilly et al., 2017) * 1.27 Large mLSTM(Krause et al.,2016) * 1.27</td></tr><tr><td>Transformer XL 6L (Dai et al., 2019) 1.29 Transformercomplex vanilla 1.30 Transformer XL Complex-order 6L 1.26</td></tr></table>
169
+
170
+ Results Tab. 5 shows the MT results. Our approach outperforms all baselines. Two things are worth noting: (1) Both the vanilla Transformer and our Transformer Complex-order outperform the three Attentional encoder-decoder baselines which are based on an LSTM encoder and decoder, even when AED uses additional features. (2) Our Transformer Complex-Order outperforms the Vanilla Transformer and complex-vanilla Transformer by 1.3 and 1.1 in absolute BLEU score respectively.
171
+
172
+ # 3.3 LANGUAGE MODELING
173
+
174
+ Experimental Setup. We use the text8 (Mahoney, 2011) dataset, consisting of English Wikipedia articles. The text is lowercased from a to z, and space. The dataset contains 100M characters (90M for training, 5M for dev, and 5M for testing, as per Mikolov et al. (2012)). We use as baselines BN-LSTM, LN HM-LSTM RHN and Large mLSTM, which are typical recurrent NNs for language modeling in this dataset. We evaluate performance with the Bits Per Character (BPC) measure, (the lower, the better). We run the coder in Dai et al. (2019) with 6 layers for Transformer XL 6L; our model, named Transformer XL complex-order, directly replaces the word embedding with our proposed embedding under the same setting. We choose 6 layers due to limitations in computing resources. For Transformer XL Complex-order, all other parameter settings are as for Transformer XL (Dai et al., 2019). Our complex-order model does not use initial phases.
175
+
176
+ Results. We see in Tab. 6 that our method outperforms all baselines. The first four baselines (BNLSTM, LN HM-LSTM, RHN and Large mLSTM) are based on recurrent NNs and rely on different regulation methods to become applicable in multiple-layer recurrent architectures. Transformerbased architectures can easily be stacked with multiple layers due to their advantages in parallelization, however the vanilla Transformer does not outperform the multiple-layer recurrent baselines, most likely due to its limitation of 6 layers. Our Transformer XL Complex-order outperforms its vanilla counterpart under the 6-layer setting (and also strong recurrent network baselines), demonstrating that our embedding also generalizes well in tasks with long-term dependency. With limited resources, slightly increasing the parameters in the feature layer like our proposed embedding could be more beneficial than stacking more layers with linearly increasing parameters.
177
+
178
+ # 4 RELATED WORK
179
+
180
+ Complex-valued NNs are not new (Georgiou & Koutsougeras, 1992; Kim & Adalı, 2003; Hirose, 2003). Complex-valued weights have been used in NNs, motivated by biology (Reichert & Serre, 2013), and also as signal processing in speech recognition (Shi et al., 2006). More recently, Arjovsky et al. (2016) shifted RNNs into the complex domain and Wolter & Yao (2018) proposed a novel complex gated recurrent cell. Trabelsi et al. (2017) also developped a complex-valued NN for computer vision and audio processing.
181
+
182
+ Complex numbers have also been applied to text processing like (Van Rijsbergen, 2004; Melucci, 2015; Blacoe et al., 2013). Trouillon et al. (2016) adopt complex embedding for entities in Knowledge Graph Completion to represent antisymmetric relations with Hermitian dot product. Li et al. (2019); Wang et al. (2019) extend word embeddings to complex-valued fashion in quantum probability driven NNs, seeing the overview in Wang et al. (2019). However, the physical meaning of both the complex-valued entity and word embeddings is unknown, since a complex number was considered as two real numbers in a black-box learning paradigm. Our work first links the phase in complex numbers to word position to define concrete physical meaning in document representations.
183
+
184
+ # 5 CONCLUSIONS
185
+
186
+ We extended word vectors to word functions with a variable i.e. position, to model the smooth shift among sequential word positions and therefore implicitly capture relative distances between words. These functions are well-defined to model the relative distances, therefore we derive a general solution in complex-valued fashion. Interestingly, the position embedding in Vaswani et al. (2017) can be considered a simplified version of our approach. We extend CNN, RNN and Transformer NNs to complex-valued versions to incorporate our complex embedding. Experiments on text classification, machine translation and language modeling show that our embeddings are more effective than vanilla position embeddings (Vaswani et al., 2017).
187
+
188
+ # ACKNOWLEDGMENTS
189
+
190
+ We thank Massimo Melucci and Emanuele Di Buccio for their helpful comments, Xindian Ma for his detailed experimental suggestions.
191
+
192
+ This work is supported by the Quantum Access and Retrieval Theory (QUARTZ) project, which has received funding from the European Union‘s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No. 721321. Peng Zhang and Donghao Zhang are supported in part by Natural Science Foundation of China (grant No. 61772363, U1636203)
193
+
194
+ # REFERENCES
195
+
196
+ Martin Arjovsky, Amar Shah, and Yoshua Bengio. Unitary evolution recurrent neural networks. In International Conference on International Conference on Machine Learning, 2016.
197
+
198
+ Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014.
199
+
200
+ Shaojie Bai, J. Zico Kolter, and Vladlen Koltun. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. CoRR, abs/1803.01271, 2018. URL http: //arxiv.org/abs/1803.01271.
201
+
202
+ Daniel Beck, Gholamreza Haffari, and Trevor Cohn. Graph-to-sequence learning using gated graph neural networks. arXiv preprint arXiv:1806.09835, 2018.
203
+
204
+ William Blacoe, Elham Kashefi, and Mirella Lapata. A quantum-theoretic approach to distributional semantics. In NAACL, pp. 847–857, 2013.
205
+
206
+ Junyoung Chung, Sungjin Ahn, and Yoshua Bengio. Hierarchical multiscale recurrent neural networks. arXiv preprint arXiv:1609.01704, 2016.
207
+
208
+ Alexis Conneau, Douwe Kiela, Holger Schwenk, Loic Barrault, and Antoine Bordes. Supervised learning of universal sentence representations from natural language inference data. arXiv preprint arXiv:1705.02364, 2017.
209
+
210
+ Tim Cooijmans, Nicolas Ballas, Cesar Laurent, C¸ a ´ glar G ˘ ulc¸ehre, and Aaron Courville. Recurrent ¨ batch normalization. arXiv preprint arXiv:1603.09025, 2016.
211
+
212
+ Zihang Dai, Zhilin Yang, Yiming Yang, William W Cohen, Jaime Carbonell, Quoc V Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. arXiv preprint arXiv:1901.02860, 2019.
213
+
214
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
215
+
216
+ Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N Dauphin. Convolutional sequence to sequence learning. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1243–1252. JMLR. org, 2017.
217
+
218
+ George M Georgiou and Cris Koutsougeras. Complex domain backpropagation. IEEE transactions on Circuits and systems II: analog and digital signal processing, 39(5):330–334, 1992.
219
+
220
+ Akira Hirose. Complex-valued neural networks: theories and applications, volume 5. World Scientific, 2003.
221
+
222
+ Minqing Hu and Bing Liu. Mining and Summarizing Customer Reviews. pp. 10, 2014.
223
+
224
+ Armand Joulin, Edouard Grave, Piotr Bojanowski, and Tomas Mikolov. Bag of tricks for efficient text classification. arXiv preprint arXiv:1607.01759, 2016.
225
+
226
+ Taehwan Kim and Tulay Adalı. Approximation by fully complex multilayer perceptrons. ¨ Neural computation, 15(7):1641–1666, 2003.
227
+
228
+ Yoon Kim. Convolutional neural networks for sentence classification. arXiv preprint arXiv:1408.5882, 2014.
229
+
230
+ Ben Krause, Liang Lu, Iain Murray, and Steve Renals. Multiplicative lstm for sequence modelling. arXiv preprint arXiv:1609.07959, 2016.
231
+
232
+ Qiuchi Li, Sagar Uprety, Benyou Wang, and Dawei Song. Quantum-inspired complex word embedding. In Proceedings of The Third Workshop on Representation Learning for NLP, pp. 50–57, 2018.
233
+
234
+ Qiuchi Li, Benyou Wang, and Massimo Melucci. Cnm: An interpretable complex-valued network for matching. In NAACL-HLT (1), pp. 4139–4148, 2019.
235
+
236
+ Xin Li and Dan Roth. Learning Question Classifiers. In COLING. Association for Computational Linguistics, 2002.
237
+
238
+ Lajanugen Logeswaran and Honglak Lee. An efficient framework for learning sentence representations. arXiv preprint arXiv:1803.02893, 2018.
239
+
240
+ Xindian Ma, Peng Zhang, Shuai Zhang, Nan Duan, Yuexian Hou, Dawei Song, and Ming Zhou. A tensorized transformer for language modeling. arXiv preprint arXiv:1906.09777, 2019.
241
+
242
+ Matt Mahoney. Large text compression benchmark. URL: http://www. mattmahoney. net/text/text. html, 2011.
243
+
244
+ Massimo Melucci. Introduction to information retrieval and quantum mechanics, volume 35. Springer, 2015.
245
+
246
+ T. Mikolov, I. Sutskever, K. Chen, G. Corrado, and J. Dean. Distributed representations ofwords and phrases and their compositionality. Advances in Neural Information Processing Systems, 26: 3111–3119, 2013a.
247
+
248
+ Toma´s Mikolov, Ilya Sutskever, Anoop Deoras, Hai-Son Le, Stefan Kombrink, and Jan Cer- ˇ nocky. Subword language modeling with neural networks. preprint (http://www. fit. vutbr. cz/imikolov/rnnlm/char. pdf), 8, 2012.
249
+
250
+ Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013b.
251
+
252
+ Matteo Pagliardini, Prakhar Gupta, and Martin Jaggi. Unsupervised learning of sentence embeddings using compositional n-gram features. arXiv preprint arXiv:1703.02507, 2017.
253
+
254
+ Bo Pang and Lillian Lee. Seeing stars: exploiting class relationships for sentiment categorization with respect to rating scales. pp. 115–124. Association for Computational Linguistics, 2005. doi: 10.3115/1219840.1219855. URL http://portal.acm.org/citation. cfm?doid $\underline { { \underline { { \mathbf { \Pi } } } } } =$ 1219840.1219855.
255
+
256
+ Jeffrey Pennington, Richard Socher, and Christopher D Manning. Glove: Global vectors for word representation. In EMNLP, volume 14, pp. 1532–1543, 2014.
257
+
258
+ David P Reichert and Thomas Serre. Neuronal synchrony in complex-valued deep networks. arXiv preprint arXiv:1312.6115, 2013.
259
+
260
+ Sunil Kumar Sahu, Fenia Christopoulou, Makoto Miwa, and Sophia Ananiadou. Inter-sentence relation extraction with document-level graph convolutional neural network. arXiv preprint arXiv:1906.04684, 2019.
261
+
262
+ Rico Sennrich and Barry Haddow. Linguistic input features improve neural machine translation. arXiv preprint arXiv:1606.02892, 2016.
263
+
264
+ Rico Sennrich, Barry Haddow, and Alexandra Birch. Edinburgh neural machine translation systems for wmt 16. arXiv preprint arXiv:1606.02891, 2016.
265
+
266
+ Peter Shaw, Jakob Uszkoreit, and Ashish Vaswani. Self-attention with relative position representations. arXiv preprint arXiv:1803.02155, 2018.
267
+
268
+ Guangji Shi, Maryam Modir Shanechi, and Parham Aarabi. On the importance of phase in human speech recognition. IEEE transactions on audio, speech, and language processing, 14(5):1867– 1874, 2006.
269
+
270
+ Richard Socher, Cliff C Lin, Chris Manning, and Andrew Y Ng. Parsing natural scenes and natural language with recursive neural networks. In Proceedings of the 28th international conference on machine learning (ICML-11), pp. 129–136, 2011.
271
+
272
+ Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew $\mathrm { N g }$ , and Christopher Potts. Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank. EMNLP, pp. 1631–1642, 2013.
273
+
274
+ Chiheb Trabelsi, Olexa Bilaniuk, Ying Zhang, Dmitriy Serdyuk, Sandeep Subramanian, Joao Fe- ˜ lipe Santos, Soroush Mehri, Negar Rostamzadeh, Yoshua Bengio, and Christopher J Pal. Deep complex networks. arXiv preprint arXiv:1705.09792, 2017.
275
+
276
+ Theo Trouillon, Johannes Welbl, Sebastian Riedel, ´ Eric Gaussier, and Guillaume Bouchard. Com- ´ plex embeddings for simple link prediction. In International Conference on Machine Learning, pp. 2071–2080, 2016.
277
+
278
+ Cornelis Joost Van Rijsbergen. The geometry of information retrieval. Cambridge University Press, 2004.
279
+
280
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pp. 5998–6008, 2017.
281
+
282
+ Benyou Wang, Emanuele Di Buccio, and Massimo Melucci. Representing words in vector space and beyond. In Quantum-Like Models for Information Retrieval and Decision-Making, pp. 83–113. Springer, 2019.
283
+
284
+ Benyou Wang, Qiuchi Li, Massimo Melucci, and Dawei Song. Semantic hilbert space for text representation learning. In The World Wide Web Conference on, pp. 3293–3299, 2019.
285
+
286
+ Janyce Wiebe, Theresa Wilson, and Claire Cardie. Annotating Expressions of Opinions and Emotions in Language. Language Resources and Evaluation, 39(2-3):165–210, May 2005. ISSN 1574-020X, 1572-8412. doi: 10.1007/s10579-005-7880-9. URL http://link.springer. com/10.1007/s10579-005-7880-9.
287
+
288
+ Moritz Wolter and Angela Yao. Gated complex recurrent neural networks. arXiv preprint arXiv:1806.08267, 2018.
289
+
290
+ Julian Georg Zilly, Rupesh Kumar Srivastava, Jan Koutn´ık, and Jurgen Schmidhuber. Recurrent ¨ highway networks. In Proceedings of the 34th International Conference on Machine LearningVolume 70, pp. 4189–4198. JMLR. org, 2017.
291
+
292
+ # A LINKING TO THE POSITION EMBEDDINGS IN (VASWANI ET AL., 2017)
293
+
294
+ Vaswani et al. (2017) proposed a new initialization for position embedding, resulting in comparable performance with previous one (Gehring et al., 2017) even without fine-tuning. The position embedding is empirically selected as
295
+
296
+ $$
297
+ \begin{array} { r } { P E _ { 2 k } ( \cdot , p o s ) = \sin ( p o s / 1 0 0 0 0 ^ { 2 k / d _ { m o d e l } } ) } \\ { P E _ { 2 k + 1 } ( \cdot , p o s ) = \cos ( p o s / 1 0 0 0 0 ^ { 2 k / d _ { m o d e l } } ) } \end{array}
298
+ $$
299
+
300
+ Where pos is the position index, $2 k$ and $2 k + 1$ is the dimension index and $d _ { m o d e l }$ is the dimension size of embedding. The reason for choosing this position embedding was not well-explained and its general extension is unknown, leading to some difficulties to improve it.
301
+
302
+ We claim that the proposed position embedding in (Vaswani et al., 2017) is a degraded version of one of our specific complex word embedding in word-sharing schema (i.e., $\omega _ { j , d } = \omega _ { \cdot , d } )$ ), in which $p _ { j , k } =$ $2 \pi \times 1 0 0 0 0 ^ { 2 k / d _ { m o d e l } }$ and the initial phases are set as zero. In our complex-valued position embedding, let $f _ { p e , k } ( \cdot , p o s ) = e ^ { i \times 1 0 0 0 ^ { 2 k / d _ { m o d e l } } } = \cos ( 1 0 0 0 0 ^ { 2 k / d _ { m o d e l } } p o s ) + i \sin ( 1 0 0 0 0 ^ { 2 k / d _ { m o d e l } } p o s )$ . Note that there exists a bi-jection between $P E ( \cdot , p o s )$ and $f _ { p e , k } ( \cdot , p o s )$ :
303
+
304
+ $$
305
+ \begin{array} { r } { P E _ { 2 k } ( \cdot , p o s ) = \Im ( f _ { p e , k } ( \cdot , p o s ) ) , } \\ { P E _ { 2 k + 1 } ( \cdot , p o s ) = \Re ( f _ { p e , k } ( \cdot , p o s ) ) } \end{array}
306
+ $$
307
+
308
+ where $\mathfrak { R }$ and $\mathfrak { F }$ are the operations to take the real and imaginary part of a complex-valued number. Its inverse transformation is
309
+
310
+ $$
311
+ f _ { p e , k } ( \cdot , p o s ) = P E _ { 2 k + 1 } ( \cdot , p o s ) + i P E _ { 2 k } ( \cdot , p o s )
312
+ $$
313
+
314
+ In our overall embedding, each dimension $f _ { k } ( j , p o s ) = f _ { w e , k } ( j ) \odot f _ { p e , k } ( \cdot , p o s )$ in our approaches, while it is $E _ { k } ( j , p o s ) \stackrel { \_ } { = } W E _ { k } ( j ) + P E _ { k } ( \cdot , \bar { p o s } )$ in (Gehring et al., 2017; Vaswani et al., 2017). Hence the position embedding in (Vaswani et al., 2017) is equivalent, albeit not identical, to our complex-valued position embedding with $p _ { j , k } = 2 \pi \times 1 0 0 0 0 ^ { 2 k / d _ { m o d e l } }$ . It is therefore a particular case of our complex-valued position embedding, the word-sharing schema in which all words share the same period at a certain dimension, i.e, $p _ { j , k } = p _ { \cdot , k }$ is irrelevant to the choice of $j$ .
315
+
316
+ # B INTEGRATING COMPLEX-VALUED EMBEDDING TO GENERAL NEURAL NETWORKS
317
+
318
+ Neural networks are typically given real numbers as inputs and return real numbers as outputs. To accommodate complex numbers as in- and output, we devise a complex-valued version of various neural network layers i.e. complex-valued FastText with dense layer, CNN, and RNN. Unlike existing complex-valued neural networks (Trabelsi et al., 2017; Wolter & Yao, 2018), our feature layers are also converted into complex-valued layers.
319
+
320
+ Complex-valued FastText FastTest (Joulin et al., 2016) is a simple and efficient neural network architecture using a dense layer over the sum of all word embeddings for general text classification. For a linear dense layer, i.e., $\boldsymbol z = \mathrm { d e n s e } ( \boldsymbol x + i \boldsymbol y )$ , where $\pmb { x } + i \pmb { y }$ and $_ z$ denote the complex-valued in- and output, respectively. Let $\pmb { W } = \pmb { A } + i \pmb { B }$ and $b = c + i d$ be complex-valued linear weights and bias, respectively. Then, the complex-valued dense layer is given by:
321
+
322
+ $$
323
+ z = \sigma \left( A x - B y + c \right) + i \sigma ( B x + A y + d )
324
+ $$
325
+
326
+ where $\sigma$ is a real-valued activation function such as the sigmoid function. By rewriting (10) in matrix form (Trabelsi et al., 2017), we obtain:
327
+
328
+ $$
329
+ { \biggl [ } \Re ( z ) { \biggr ] } = { \biggl [ } { \sigma } ( A x - B y + c ) { \biggr ] }
330
+ $$
331
+
332
+ where, for $z = x + i y , \Re ( z ) = x$ and $\Im ( z ) = y$ . To save parameters and fairly compare with our real-valued baselines, the weights for real-part and imaginary-part input can be shared, i.e., $\pmb { A } = \pmb { B } , c = d$ .
333
+
334
+ Complex-valued CNN For the complex-valued version of the convolution operation Trabelsi et al. (2017), we similarly define a complex-valued convolution with separate real and imaginary kernels $\pmb { A }$ and $\textbf { { B } }$ , to compute convolutions on the real and imaginary parts of the input in Eq. 10. A complex-valued CNN network is constructed by stacking the operations based on a complex-valued convolution kernel, adding a complex dense layer in (10), and taking their norm as the final prediction in the last layer.
335
+
336
+ Complex-valued RNN The basic complex RNN formulation is:
337
+
338
+ $$
339
+ h _ { t } ^ { C } = f \left( W ^ { h } h _ { t - 1 } + W ^ { z } z _ { t } + b \right)
340
+ $$
341
+
342
+ where ${ \boldsymbol { z } } _ { t }$ and $\boldsymbol { h } _ { t }$ represent the complex-valued input and complex-value hidden state vectors at time $t , b$ is a complex-valued bias, $W ^ { h }$ and $W ^ { z }$ are complex-valued weight transitions for hidden state and input state, and $f \left( z \right) = \sigma \left( \Re \left( z \right) \right) + i \sigma \left( \Im \left( z \right) \right)$ is the activation function. The multiplication $W ^ { h } h _ { t - 1 }$ and $W ^ { z } z _ { t }$ is computed as defined in (10) above. Similarly, the complex-valued gates are used in LSTM via operations as in (12). In the final layer, a $l 2$ -norm operation is adopted to obtain a real-valued loss for backpropagation.
343
+
344
+ Complex-valued Transformer The main components in the Transformer are self-attention sublayers and position-wise feed-forward (FFN) sublayers. A self-attention sublayer employs $h$ attention heads and the concatenation of all heads is used as the output followed by a parameterized linear transformation. For a sequence embedded as complex-valued vector $i n p u t = \{ \bar { \pmb { w } } _ { 1 } , \pmb { w } _ { 2 } , . . . , \pmb { w } _ { n } \}$ , the output of each head is computed as a weighted sum of a linear transformation of the input sequence itself, namely
345
+
346
+ $$
347
+ o u t p u t _ { i } = \sum _ { j } a _ { i , j } { \pmb w } _ { j } { \pmb W } ^ { V } ,
348
+ $$
349
+
350
+ where ${ \pmb w } _ { j }$ is a complex-valued vector and $W ^ { V }$ is a complex linear transformation; therefore outputi is also complex. Hence, output is a sequence of complex-valued vectors with the same shape as input. The weight coefficient, $a _ { i , j }$ , which is defined as in real-valued domain, is calculated as the softmax of the product between complex-valued query vectors and key vectors: $a _ { i , j } = \mathrm { s o f t m a x } \frac { e _ { i , j } } { \sum _ { i = 1 } ^ { n } e _ { i , j } }$ and
351
+
352
+ $$
353
+ { e } _ { i , j } = \sqrt { \frac { \Re ( z ) ^ { 2 } + \Im ( z ) ^ { 2 } } { n } } , z = \left( { w } _ { i } { W } ^ { Q } \right) \left( { w } _ { j } { W } ^ { K } \right) ^ { \dag } ,
354
+ $$
355
+
356
+ $\mathbf { Z }$ is a complex number since ${ \pmb w } _ { i }$ and ${ \pmb w } _ { j }$ are complex-valued vectors and $W ^ { Q } , W ^ { K }$ are complexvalued transformation. To extend another variant of Transformer called Transformer XL, we keep its original relative position embedding and additionally replace its word embedding with our proposed embedding.
357
+
358
+ Correspondingly, the FFN sublayer can easily be extended to a complex-valued version by replacing the real-valued layers with complex-valued ones. We use batch-normalization separately for the real and imaginary parts.
359
+
360
+ # C IMPLEMENTATION OF THE PROPOSED EMBEDDING
361
+
362
+ Words functions are implemented in neural networks by storing the function parameters $\{ r , \omega , \theta \}$ and then construct the values based on the arguments. Based on the definition, the implementation of the proposed embedding can easily be implemented with only modifying the embedding layer. We list the basic code to construct our general embedding as below:
363
+
364
+ i m p o r t t o r c h
365
+ impor t math
366
+ c l a s s ComplexNN ( t o r c h . nn . M o d ul e ) : d e f i n i t ( s e l f , o p t ) : s u p e r ( ComplexNN , s e l f ) . i n i t ( ) s e l f . word emb $=$ t o r c h . nn . E m b e d d i n g ( o p t . n t o k e n , o p t . d m o d e l ) s e l f . f r e q u e n c y e m b $=$ t o r c h . nn . E m b e d d i n g ( o p t . n t o k e n , o p t . d m o d e l ) s e l f . i n i t i a l p h a s e e m b $=$ t o r c h . nn . E m b e d d i n g ( o p t . n t o k e n , o p t . d m o d e l )
367
+
368
+ ![](images/e18d67190d27ad89d72343f0f7e580d4499ce23a054a7022eb0448e518ff1704.jpg)
369
+ Figure 3: The distribution of the $\delta _ { j }$ . Higher values mean that the word representations are more sensitive to the word positions.
370
+
371
+ d e f g e t e m b e d d i n g ( s e l f , x ) :
372
+
373
+ a m p l i t u d e $=$ s e l f . w o r d e m b ( x ) f r e q u e n c y $=$ s e l f . f r e q u e n c y e m b ( x ) s e l f . i n i t i a l p h a s e e m b . w e i g h t $=$ t o r c h . n n . P a r a m e t e r ( s e l f . i n i t i a l p h a s e e m $\%$ ( $^ 2 \ast$ m a t h . p i ) ) s e n t l e $\mathbf { \epsilon } _ { 1 } = \mathbf { X }$ . s i z e $( - 1 )$ p o s s e q $=$ t o r c h . a r a n g e ( 1 , s e n t l e n + 1 , 1 . 0 , d e v i c e $=$ a m p l i t u d e . d e v i c e ) p o s s e q $=$ p o s s e q . u n s q u e e z e ( 0 ) . u n s q u e e z e $( - 1 )$ p o s s e q $=$ p o s s e q . r e p e a t ( [ x . s i z e ( 0 ) , 1 , a m p l i t u d e . s i z e ( − 1 ) ] ) d i m e n s i o n b a i s $=$ s e l f . i n i t i a l p h a s e e m b ( x ) e n c o u t p u t p h a s e $=$ t o r c h . mul ( p o s s e q , f r e q u e n c y ) $^ +$ d i m e n s i o n b a i s e n c o u t p u t r e a l $=$ a m p l i t u d e $^ *$ t o r c h . c o s ( e n c o u t p u t p h a s e ) e n c o u t p u t i m a g e $=$ a m p l i t u d e $^ *$ t o r c h . s i n ( e n c o u t p u t p h a s e ) # r e t u r n t o r c h . c a t ( [ e n c o u t p u t r e a l , e n c o u t p u t i m a g e ] , − 1 ) r e t u r n e n c o u t p u t r e a l , e n c o u t p u t i m a g e d e f f o r w a r d ( s e l f , $\mathbf { X }$ ) : r e t u r n s e l f . g e t e m b e d d i n g ( x )
374
+
375
+ Note that both the frequency vectors $\omega$ and initial-phase vectors $\pmb { \theta }$ can be shared between words or dimensions, to save parameters. The proposed embedding can be also used in real-valued neural networks if one directly concatenates the real-part numbers and imaginary-part numbers as a doublesize real-valued vector; therefore it could easily be extended in any existing networks without any complex-valued components. For instance, it could be a good extension for Transformer based pretrained models like (Devlin et al., 2018) by enriching the feature layer.
376
+
377
+ # D VISUALIZATION OF FREQUENCIES/PERIODS
378
+
379
+ After training, we obtain the frequency vector $\omega$ for each word. For each word, the mean value of the absolute frequency values, i.e., $\begin{array} { r } { \delta _ { j } = \frac { 1 } { | D | } \sum _ { d = 1 } ^ { D } | \omega _ { j , d } | } \end{array}$ is considered as a metric to test the positional sensitivities of the word, since a period value could be negative during training. The density of the $\delta _ { j }$ is shown in Fig. 3.
380
+
381
+ Words with the 50 greatest, and the 50 smallest, frequencies in the SST dataset are shown in Tab. 7. For the words with greatest frequencies, most of them are strong sentiment words like “worst”
382
+
383
+ ,“stupid” and “powerful”; a reason for this may be that such words appear in many positions in many documents during training, and thus they are more sensitive to the positions. Conversely, there are fewer words expressing strong sentiment among words with smaller frequencies, as shown in the second row.
384
+
385
+ Table 7: Words with greatest frequencies and frequencies periods (based on $\delta _ { j }$ ) in SST (a sentiment classification task), all words are converted to lower-case. The strong sentiment words are bold based on manual labeling.
386
+
387
+ <table><tr><td>words</td><td></td></tr><tr><td>greatest frequencies in descending order</td><td>worst solid stupid powerful mess wonderful remarkable suffers intoxicating thoughtful rare captures portrait gem frontal terrific unique wannabe witty lousy pointless contrived none worse refreshingly charming inventive amazing junk incoherent refreshing mediocre unfunny thinks enjoyed heartbreaking delightfully crisp brilliant heart</td></tr><tr><td>smallest frequencies in ascending order</td><td>spirit perfectly nowhere mistake engrossing fashioned excellent unexpected wonderfully means slowly proposal schemes roiling juliette titles fabric superstar ah wow choreographed tastelessness beg fabulous muccino jacobi legendary jae rate example code sensation counter deaths hall eun drug mctiernan storylines cellophane wild motion ups trick comedy entertained mission frightening witnesses snoots liners african groan satisfaction calm saturday estranged holm refuses inquisitive</td></tr></table>
parse/train/Hke-WTVtwr/Hke-WTVtwr_content_list.json ADDED
@@ -0,0 +1,1970 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "ENCODING WORD ORDER IN COMPLEX EMBEDDINGS ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 101,
9
+ 805,
10
+ 121
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Benyou Wang ∗ University of Padua wang@dei.unipd.it ",
17
+ "bbox": [
18
+ 183,
19
+ 145,
20
+ 352,
21
+ 186
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Donghao Zhao ∗ Tianjin University zhaodh@tju.edu.cn ",
28
+ "bbox": [
29
+ 411,
30
+ 145,
31
+ 580,
32
+ 186
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Christina Lioma University of Copenhagen chrh@di.ku.dk ",
39
+ "bbox": [
40
+ 640,
41
+ 145,
42
+ 813,
43
+ 186
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Qiuchi Li University of Padua qiuchili@dei.unipd.it ",
50
+ "bbox": [
51
+ 184,
52
+ 208,
53
+ 390,
54
+ 251
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Peng Zhang † Tianjin University pzhang@tju.edu.cn ",
61
+ "bbox": [
62
+ 423,
63
+ 208,
64
+ 593,
65
+ 251
66
+ ],
67
+ "page_idx": 0
68
+ },
69
+ {
70
+ "type": "text",
71
+ "text": "Jakob Grue Simonsen University of Copenhagen simonsen@di.ku.dk ",
72
+ "bbox": [
73
+ 624,
74
+ 208,
75
+ 799,
76
+ 250
77
+ ],
78
+ "page_idx": 0
79
+ },
80
+ {
81
+ "type": "text",
82
+ "text": "ABSTRACT ",
83
+ "text_level": 1,
84
+ "bbox": [
85
+ 454,
86
+ 286,
87
+ 544,
88
+ 301
89
+ ],
90
+ "page_idx": 0
91
+ },
92
+ {
93
+ "type": "text",
94
+ "text": "Sequential word order is important when processing text. Currently, neural networks (NNs) address this by modeling word position using position embeddings. The problem is that position embeddings capture the position of individual words, but not the ordered relationship (e.g., adjacency or precedence) between individual word positions. We present a novel and principled solution for modeling both the global absolute positions of words and their order relationships. Our solution generalizes word embeddings, previously defined as independent vectors, to continuous word functions over a variable (position). The benefit of continuous functions over variable positions is that word representations shift smoothly with increasing positions. Hence, word representations in different positions can correlate with each other in a continuous function. The general solution of these functions is extended to complex-valued domain due to richer representations. We extend CNN, RNN and Transformer NNs to complex-valued versions to incorporate our complex embedding (we make all code available). Experiments 1 on text classification, machine translation and language modeling show gains over both classical word embeddings and position-enriched word embeddings. To our knowledge, this is the first work in NLP to link imaginary numbers in complexvalued representations to concrete meanings (i.e., word order). ",
95
+ "bbox": [
96
+ 233,
97
+ 319,
98
+ 764,
99
+ 568
100
+ ],
101
+ "page_idx": 0
102
+ },
103
+ {
104
+ "type": "text",
105
+ "text": "1 INTRODUCTION ",
106
+ "text_level": 1,
107
+ "bbox": [
108
+ 176,
109
+ 597,
110
+ 336,
111
+ 612
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "When processing text, the sequential structure of language is important, but can be computationally costly to model with neural networks (NNs) (Socher et al., 2011) due to the difficulty in parallelization. This has been alleviated by modeling word sequence not on the NN architecture level, but by adding position embeddings on the feature level. This has been done by the convolutional sequence model (ConvSeq) (Gehring et al., 2017) and the Transformer model (Vaswani et al., 2017) that replaces recurrent and convolution operations with purely attention mechanisms. More generally, vanilla position embeddings (Gehring et al., 2017) assume that individual word positions are independent and do not consider relations between neighbouring word positions. We posit that both the global absolute positions of words and their inner sequential and adjacent relationships are crucial in language. This is supported by recent empirical findings by Shaw et al. (2018) and Dai et al. (2019) who show the importance of modeling distance between sequential elements, and explicitly use extra relative position encodings to capture the relative-distance relationship of words. ",
118
+ "bbox": [
119
+ 173,
120
+ 628,
121
+ 825,
122
+ 795
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "We present a novel and principled approach to model both the global absolute positions of words and their inner sequential and adjacent relationships as follows: we extend each word embedding, previously defined as an independent vector, as a continuous function over an independent variable i.e., position. The benefit of continuous functions over variable positions is that word representations shift smoothly with increasing positions. Hence, word representations in different positions can correlate with each other in a continuous function. Fig. 1 illustrates this type of word representation with a three-dimensional complex-valued embedding, where the amplitudes $\\{ r _ { 1 } , r _ { 2 } , r _ { 3 } \\}$ denote semantic aspects corresponding to classical word vectors, and periods $\\{ p _ { 1 } , p _ { 2 } , p _ { 3 } \\}$ denote how sensitive the word is to positional information. We further discuss the necessary properties of these functions to model sequential information and obtain a general solution in the form of a complexvalued embedding. Interestingly, there is a direct connection between a specific case of our general embedding and the well-known positional encoding in Vaswani et al. (2017) (see App. A). ",
129
+ "bbox": [
130
+ 176,
131
+ 803,
132
+ 820,
133
+ 872
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "image",
139
+ "img_path": "images/ee1df64c33d8fcbca82c0506d4ba4959600580db8fbc24d9ca169bde95813e90.jpg",
140
+ "image_caption": [
141
+ "Figure 1: 3-dimensional complex embedding for a single word in different positions. The three wave functions (setting the initial phases as zero) show the real part of the embedding; the imaginary part has a $\\frac { \\pi } { 2 }$ phase difference and shows the same curves with its real-valued counterpart. The $\\mathbf { X }$ -axis denotes the absolute position of a word and the y-axis denotes the value of each element in its word vector. Colours mark different dimensions of the embedding. The three cross points between the functions and each vertical line (corresponding to a specific position pos) represent the embedding for this word in the pos-th position. "
142
+ ],
143
+ "image_footnote": [],
144
+ "bbox": [
145
+ 173,
146
+ 116,
147
+ 500,
148
+ 262
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "",
155
+ "bbox": [
156
+ 174,
157
+ 309,
158
+ 825,
159
+ 407
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "We contribute (i) a novel paradigm that extends word vectors as continuous functions over changing variables like word position, and (ii) a general word embedding that models word order in a mathematically-sound manner. We integrate our complex word embeddings in state-of-the-art (SOTA) NN architectures (CNN, RNN, Transformer and experimentally find that it yields gains over both classical word embeddings and position-enriched word embeddings in text classification, machine translation and language modeling. Note that this is the first work in NLP to link imaginary numbers in complex-valued representation to concrete meanings (i.e., word order). ",
166
+ "bbox": [
167
+ 174,
168
+ 414,
169
+ 825,
170
+ 512
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "2 MODELLING WORD ORDER IN EMBEDDING SPACE ",
177
+ "text_level": 1,
178
+ "bbox": [
179
+ 174,
180
+ 535,
181
+ 629,
182
+ 553
183
+ ],
184
+ "page_idx": 1
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "A Word Embedding (WE) generally defines a map $f _ { w e } : \\mathbb { N } \\mathbb { R } ^ { D }$ from a discrete word index to a $D$ -dimensional real-valued vector and $\\mathbb { N } = \\{ 0 , 1 , 2 , \\ldots \\}$ . Similarly, a Position Embedding (PE) (Gehring et al., 2017; Vaswani et al., 2017) defines another map $f _ { p e } : \\mathbb { N } \\mathbb { R } ^ { D }$ from a discrete position index to a vector. The final embedding for word $w _ { j }$ $\\mathbf { \\Phi } _ { w _ { j } } \\in \\mathbb { W }$ with index $j$ in a given vocabulary W) in the pos-th position in a sentence is usually constructed by the sum ",
189
+ "bbox": [
190
+ 174,
191
+ 569,
192
+ 825,
193
+ 640
194
+ ],
195
+ "page_idx": 1
196
+ },
197
+ {
198
+ "type": "equation",
199
+ "img_path": "images/ac76f83825c53b1916373c5c9767b64608d583d08b9aeaa21b04acff6e5b50b1.jpg",
200
+ "text": "$$\nf ( j , p o s ) = f _ { w e } ( j ) + f _ { p e } ( p o s ) ,\n$$",
201
+ "text_format": "latex",
202
+ "bbox": [
203
+ 392,
204
+ 651,
205
+ 604,
206
+ 669
207
+ ],
208
+ "page_idx": 1
209
+ },
210
+ {
211
+ "type": "text",
212
+ "text": "and $f ( j , p o s ) \\in \\mathbb { R } ^ { D }$ . Since both the word embedding map $f _ { w }$ and the position embedding map $f _ { p }$ only take integer values as word indexes or position indexes, embedding vectors for individual words or positions are trained independently. The independent training for each word vector is reasonable, since a word index is based on the order of a given arbitrary vocabulary and does not capture any specific sequential relationship with its neighboring words. However, the position index captures an ordered relationship, for instance adjacency or precedence, leading to the problem that position embeddings in individual positions (Gehring et al., 2017) are independent of each other; the ordered relationship between positions is not modelled. We refer to this as the position independence problem. This problem becomes more crucial when position embeddings are used in position-insensitive NNs, e.g., FastText (Mikolov et al., 2013b), ConvSeq (Gehring et al., 2017) and Transformer (Vaswani et al., 2017), because it is hard for such position-insensitive NNs with vanilla position embeddings (Gehring et al., 2017) to infer that $w _ { j _ { 1 } }$ in the pos-th position is close to $w _ { j _ { 2 } }$ in the $p o s + 1$ -th position, or that $w _ { j _ { 1 } }$ precedes $w _ { j _ { 2 } }$ ; instead, it is only inferred that $w _ { j _ { 1 } }$ and $w _ { j _ { 2 } }$ are in different positions, while the relative distance between them is almost unknown. Thus vanilla position embeddings (Gehring et al., 2017) cannot fully capture the sequential aspect of language. ",
213
+ "bbox": [
214
+ 173,
215
+ 680,
216
+ 825,
217
+ 888
218
+ ],
219
+ "page_idx": 1
220
+ },
221
+ {
222
+ "type": "text",
223
+ "text": "Next, we first introduce the necessary properties to model word order in embeddings, and then give a unique solution to meet such properties. ",
224
+ "bbox": [
225
+ 174,
226
+ 895,
227
+ 821,
228
+ 924
229
+ ],
230
+ "page_idx": 1
231
+ },
232
+ {
233
+ "type": "text",
234
+ "text": "2.1 EXTENDING VECTORS TO FUNCTIONS ",
235
+ "text_level": 1,
236
+ "bbox": [
237
+ 176,
238
+ 103,
239
+ 475,
240
+ 117
241
+ ],
242
+ "page_idx": 2
243
+ },
244
+ {
245
+ "type": "text",
246
+ "text": "In the general definition in Eq. 1, each dimension of the position embedding is obtained based on the discrete position indexes $\\{ 0 , 1 , 2 , . . . , \\mathrm { p o s } , . . . \\}$ . This makes it difficult to model the ordered relationship between the positions. One solution to this problem is to build continuous functions over a variable (i.e., position index) to represent a specific word in an individual dimension. Formally, we define a general embedding as ",
247
+ "bbox": [
248
+ 173,
249
+ 128,
250
+ 825,
251
+ 199
252
+ ],
253
+ "page_idx": 2
254
+ },
255
+ {
256
+ "type": "equation",
257
+ "img_path": "images/e9af78adb2dadc1a549d01b8486ae40b138cd2f0c29508ab1ba281b078d55c6d.jpg",
258
+ "text": "$$\nf ( j , \\mathrm { p o s } ) = \\pmb { g } _ { j } ( \\mathrm { p o s } ) \\in \\mathbb { R } ^ { D } ,\n$$",
259
+ "text_format": "latex",
260
+ "bbox": [
261
+ 406,
262
+ 202,
263
+ 589,
264
+ 220
265
+ ],
266
+ "page_idx": 2
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "where ${ \\pmb g } _ { \\mathcal { I } }$ is short for $\\pmb { g } _ { w e } ( j ) \\in ( \\mathcal { F } ) ^ { D }$ , indicating $D$ functions over position index pos, and $g _ { w e } ( \\cdot ) :$ : $\\mathbb { N } \\to ( \\mathcal { F } ) ^ { D }$ is a mapping from a word index to $D$ functions. By expanding the $D$ dimension of ${ \\pmb g } _ { \\mathcal { I } }$ , a word $w _ { j }$ in the pos-th position can be represented as a $D$ -dimensional vector as shown in ",
271
+ "bbox": [
272
+ 173,
273
+ 223,
274
+ 825,
275
+ 268
276
+ ],
277
+ "page_idx": 2
278
+ },
279
+ {
280
+ "type": "equation",
281
+ "img_path": "images/11c83652acf7a3b0ac5f911a9040fc2e1ef56561033821f7ca3bc19bbd96067f.jpg",
282
+ "text": "$$\n[ g _ { j , 1 } ( \\mathbf { p o s } ) , g _ { j , 2 } ( \\mathbf { p o s } ) , . . . , g _ { j , D } ( \\mathbf { p o s } ) ] \\in \\mathbb { R } ^ { D } ,\n$$",
283
+ "text_format": "latex",
284
+ "bbox": [
285
+ 357,
286
+ 272,
287
+ 637,
288
+ 291
289
+ ],
290
+ "page_idx": 2
291
+ },
292
+ {
293
+ "type": "text",
294
+ "text": "in which $\\forall g _ { j , d } ( \\cdot ) \\in \\mathcal { F } : \\mathbb { N } \\to \\mathbb { R } , d \\in \\{ 1 , 2 , . . . , D \\}$ is a function over the position index pos. To move the word $w _ { j }$ from the current position $p o s$ to another one $p o s ^ { \\prime }$ , it needs only replace the variable pos to $p o s ^ { \\prime }$ without changing ${ \\pmb g } _ { \\mathcal { I } }$ . ",
295
+ "bbox": [
296
+ 174,
297
+ 292,
298
+ 825,
299
+ 335
300
+ ],
301
+ "page_idx": 2
302
+ },
303
+ {
304
+ "type": "text",
305
+ "text": "Functions for words, especially continuous functions, are expected to capture smooth transformation from a position to its adjacent position therefore modeling word order. The position-independent position embedding (Gehring et al., 2017) can be considered as a special case of our definition when it only takes independent values for individual positions in the embedding function. ",
306
+ "bbox": [
307
+ 173,
308
+ 342,
309
+ 825,
310
+ 398
311
+ ],
312
+ "page_idx": 2
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "2.2 PROPERTIES FOR THE FUNCTIONS TO CAPTURE WORD ORDER",
317
+ "text_level": 1,
318
+ "bbox": [
319
+ 176,
320
+ 414,
321
+ 640,
322
+ 429
323
+ ],
324
+ "page_idx": 2
325
+ },
326
+ {
327
+ "type": "text",
328
+ "text": "Relative distance is hard to compute because position indices are not visible in NNs after vector embedding (discrete position indices are necessarily embedded as vectors like words to be backpropagated with the gradient). Hence, we claim that the modeling of relative distance in NNs should be position-free: absolute position indices cannot be directly accessed in intermediate layers. Instead of processing position-free operations in NNs to capture relative distance between words, prior work (Shaw et al., 2018; Dai et al., 2019) first calculates the relative distance between words, and then feeds the relative distance as an additional feature or as embeddings/weights to NNs, instead of directly feeding with the raw position indices. ",
329
+ "bbox": [
330
+ 173,
331
+ 439,
332
+ 825,
333
+ 551
334
+ ],
335
+ "page_idx": 2
336
+ },
337
+ {
338
+ "type": "text",
339
+ "text": "Assume that words are embedded into $\\mathbb { R } ^ { D }$ , and let, for $1 \\leq d \\leq D$ , the function $g _ { j , d } : \\mathbb { N } \\mathbb { R }$ be the embedding function giving the $d$ -th coordinate of the representation of word $w _ { j }$ (i.e., $g _ { j , d } ( \\mathfrak { p o s } )$ is the $d$ -th coordinate of the embedding of $w _ { j }$ if it occurs at position pos. In the following, we simply write $g$ instead of $g _ { j , d }$ when there is no risk of confusion. Ideally, one would like there to exist a function Tran $\\operatorname { s f o r m } _ { n } : \\mathbb { R } \\mathbb { R }$ that transforms the embedding of any word at some position pos to the embedding of a word at position $\\boldsymbol { \\mathrm { p o s } } + n$ such that Transform $^ { 1 } n$ is only dependent on the embedded value itself, but independent of the position pos, that is $\\forall \\mathbf { p o s } : g ( \\mathbf { p o s } + n ) { \\overline { { = \\mathrm { T r a n s f o r m } _ { n } ( g ( \\mathbf { p o s } ) ) } } }$ . ",
340
+ "bbox": [
341
+ 173,
342
+ 556,
343
+ 825,
344
+ 656
345
+ ],
346
+ "page_idx": 2
347
+ },
348
+ {
349
+ "type": "text",
350
+ "text": "Prior work in NLP (Li et al., 2019), Information Retrieval (Van Rijsbergen, 2004) and Machine Learning (Trabelsi et al., 2017) has shown the usefulness of complex numbers as richer representations. Complex word embeddings (Wang et al., 2019; Li et al., 2019; Li et al., 2018) have been used to model language. To investigate the potential of complex-valued representation, we extend the target domains of $g ( \\cdot )$ from $\\mathbb { R } ^ { D }$ to $\\mathbb { C } ^ { D }$ without losing generality, since real-valued numbers are specific complex numbers with their imaginary part being zero. This property regarding “position-free offset transformation” in complex-valued domains is formally defined in Property 1 below. ",
351
+ "bbox": [
352
+ 173,
353
+ 662,
354
+ 825,
355
+ 761
356
+ ],
357
+ "page_idx": 2
358
+ },
359
+ {
360
+ "type": "text",
361
+ "text": "Property 1. Position-free offset transformation: An embedding function $g : \\mathbb { N } \\to \\mathbb { C }$ is said to be a position-free offset transformation if there exists a function Transform : $\\mathbb { N } \\times \\mathbb { C } \\to \\mathbb { C }$ (called the witness) such that for all $n \\geq 1$ , the function Transfor $\\mathfrak { m } _ { n } ( \\cdot ) = \\mathrm { T r a n s f o r m } ( n , \\cdot )$ satisfies $\\forall \\mathsf { p o s } \\in$ $\\mathbb { N } : g ( \\mathrm { p o s } + n ) = \\mathrm { T r a n s f o r m } _ { n } ( g ( \\mathrm { p o s } ) )$ . A position-free offset transformation $g$ is said to be linearly witnessed if there is a function $w : \\mathbb { N } \\mathbb { C }$ such that $g$ has a witness Transform satisfying, for all $n$ , Transform $\\operatorname { \\mathrm { 1 } } ( n , \\operatorname { p o s } ) = \\operatorname { T r a n s f o r m } _ { n } ( \\operatorname { p o s } ) = w ( n )$ (i.e., each Transform $_ n$ is a linear function). ",
362
+ "bbox": [
363
+ 173,
364
+ 767,
365
+ 825,
366
+ 852
367
+ ],
368
+ "page_idx": 2
369
+ },
370
+ {
371
+ "type": "text",
372
+ "text": "Additionally, a boundedness property is necessary to ensure that the position embedding can deal with text of any length (pos could be large in a long document). ",
373
+ "bbox": [
374
+ 174,
375
+ 858,
376
+ 821,
377
+ 886
378
+ ],
379
+ "page_idx": 2
380
+ },
381
+ {
382
+ "type": "text",
383
+ "text": "Property 2. Boundedness: The function over the variable position should be bounded, i.e. $\\exists \\delta \\in$ \n$\\overline { { \\mathbb { R } ^ { + } , \\forall \\mathrm { p o s } \\in \\mathbb { N } } } , | g ( \\mathrm { p o s } ) | \\leq \\delta$ . ",
384
+ "bbox": [
385
+ 176,
386
+ 892,
387
+ 820,
388
+ 925
389
+ ],
390
+ "page_idx": 2
391
+ },
392
+ {
393
+ "type": "text",
394
+ "text": "Formally, we prove the following claim that there is a unique solution that meets Properties 1 and 2 under the condition that the embedding function is linearly witnessed. We use linear functions because they are well-understood and simple with a single floating-point operation in NNs. ",
395
+ "bbox": [
396
+ 174,
397
+ 103,
398
+ 821,
399
+ 146
400
+ ],
401
+ "page_idx": 3
402
+ },
403
+ {
404
+ "type": "text",
405
+ "text": "Claim 1. A function $g : \\mathbb { N } \\mathbb { C }$ is a bounded and linearly witnessed position-free offset transformation iff it is on the form $g ( p o s ) = z _ { 2 } z _ { 1 } ^ { p o s }$ for $z _ { 1 } , z _ { 2 } \\in \\mathbb { C }$ with $| z _ { 1 } | \\le 1$ . ",
406
+ "bbox": [
407
+ 171,
408
+ 150,
409
+ 823,
410
+ 180
411
+ ],
412
+ "page_idx": 3
413
+ },
414
+ {
415
+ "type": "text",
416
+ "text": "Proof. Assume that $g$ is a bounded and linearly witnessed position-free offset transformation. Then, by linear witnessing, we have for all pos, $n _ { 1 } , n _ { 2 } \\in \\mathbb { N }$ : ",
417
+ "bbox": [
418
+ 173,
419
+ 195,
420
+ 823,
421
+ 224
422
+ ],
423
+ "page_idx": 3
424
+ },
425
+ {
426
+ "type": "equation",
427
+ "img_path": "images/02fe029bb38f319e348753ab7e72854b6e995d5a6b9ab63dac2933107e0b98c4.jpg",
428
+ "text": "$$\n\\begin{array} { r } { w ( n _ { 1 } ) w ( n _ { 2 } ) g ( \\mathrm { p o s } ) = w ( n _ { 2 } ) g ( \\mathrm { p o s } + n _ { 1 } ) = g ( \\mathrm { p o s } + n _ { 1 } + n _ { 2 } ) \\qquad } \\\\ { = \\mathrm { T r a n s f o r m } _ { n _ { 1 } + n _ { 2 } } ( g ( \\mathrm { p o s } ) ) = w ( n _ { 1 } + n _ { 2 } ) g ( \\mathrm { p o s } ) } \\end{array}\n$$",
429
+ "text_format": "latex",
430
+ "bbox": [
431
+ 267,
432
+ 229,
433
+ 732,
434
+ 267
435
+ ],
436
+ "page_idx": 3
437
+ },
438
+ {
439
+ "type": "text",
440
+ "text": "whence $w ( n _ { 1 } + n _ { 2 } ) = w ( n _ { 1 } ) w ( n _ { 2 } )$ . Write $w ( 1 ) = z _ { 1 }$ and $g ( 0 ) = z _ { 2 }$ . As $n _ { 1 } , n _ { 2 } \\in \\mathbb { N }$ were arbitrary, Furthermore, observe that for we have $w ( n ) = ( w ( 1 ) ) ^ { n } = z _ { 1 } ^ { n }$ $\\mathsf { p o s } \\geq 1$ for all , we have $n \\in \\mathbb N$ . But then $g ( \\mathrm { p o s } ) = g ( 1 + \\mathrm { p o s } - 1 ) = w ( \\mathrm { p o s } ) g ( 0 ) = z _ { 1 } ^ { \\mathrm { p o s } } z _ { 2 } =$ $g ( \\mathrm { p o s } + n ) = w ( n ) g ( \\mathrm { p o s } ) = z _ { 1 } ^ { n } g ( \\mathrm { p o s } )$ . $z _ { 2 } z _ { 1 } ^ { \\mathrm { p o s } }$ . For $\\mathrm { p o s } = 0$ , $g ( 0 ) = z _ { 2 } = z _ { 2 } z _ { 1 } ^ { 0 }$ , whence $g ( \\mathrm { p o s } ) = z _ { 2 } z _ { 1 } ^ { \\mathrm { p o s } }$ 1 2 , as desired. Observe that if $| z _ { 1 } | > 1$ $g ( { \\mathfrak { p o s } } )$ unbouwith hence w. Then, $| z _ { 1 } | \\le 1$ hat , w $g$ is once $g ( \\mathsf { p o s } ) \\stackrel { - } { = } z _ { 2 } z _ { 1 } ^ { \\mathsf { p o s } }$ $| z _ { 1 } | \\le 1$ $| g ( \\mathrm { p o s } ) | \\stackrel { \\cdot } { \\leq } | z _ { 2 } z _ { 1 } ^ { \\mathrm { p o s } } | \\leq | z _ { 2 } | | \\dot { z } _ { 1 } ^ { \\mathrm { p o s } } | \\leq | z _ { 2 } |$ $g$ is bounded. Define, for each $n \\in \\mathbb N$ , $w ( n ) = z _ { 1 } ^ { n }$ and Transf ${ \\mathrm { y r m } } _ { n } ( { \\mathrm { p o s } } ) = w ( n ) { \\mathrm { p o s } }$ . Then, for all pos, $n \\in \\mathbb { N }$ , ",
441
+ "bbox": [
442
+ 173,
443
+ 271,
444
+ 826,
445
+ 385
446
+ ],
447
+ "page_idx": 3
448
+ },
449
+ {
450
+ "type": "equation",
451
+ "img_path": "images/6d0795a5607bb360d12a9ff9b0f12a4fbbe5da63bed7601073fa004070938f20.jpg",
452
+ "text": "$$\ng ( \\mathsf { p o s } + n ) = z _ { 2 } z _ { 1 } ^ { \\mathsf { p o s } + n } = z _ { 2 } z _ { 1 } ^ { \\mathsf { p o s } } z _ { 1 } ^ { n } = g ( \\mathsf { p o s } ) z _ { 1 } ^ { n } = \\mathrm { T r a n s f o r m } _ { n } ( g ( \\mathsf { p o s } ) )\n$$",
453
+ "text_format": "latex",
454
+ "bbox": [
455
+ 261,
456
+ 391,
457
+ 735,
458
+ 411
459
+ ],
460
+ "page_idx": 3
461
+ },
462
+ {
463
+ "type": "text",
464
+ "text": "showing that $g$ is a linearly witnessed position-free offset transformation. ",
465
+ "bbox": [
466
+ 176,
467
+ 417,
468
+ 653,
469
+ 433
470
+ ],
471
+ "page_idx": 3
472
+ },
473
+ {
474
+ "type": "text",
475
+ "text": "For any $z \\in \\mathbb { C }$ , we may write $z = r e ^ { i \\theta } = r ( \\cos \\theta + i \\sin \\theta )$ . Thus, for the general form of the embedding $g$ from Theorem 1, we have: ",
476
+ "bbox": [
477
+ 173,
478
+ 446,
479
+ 826,
480
+ 477
481
+ ],
482
+ "page_idx": 3
483
+ },
484
+ {
485
+ "type": "equation",
486
+ "img_path": "images/446f31a81a4ea34d6d45ae9ae88f3f4b1bfa136ba94f9eedde5d432bc81f94df.jpg",
487
+ "text": "$$\ng ( \\mathsf { p o s } ) = z _ { 2 } z _ { 1 } ^ { \\mathsf { p o s } } = r _ { 2 } e ^ { i \\theta _ { 2 } } ( r _ { 1 } e ^ { i \\theta _ { 1 } } ) ^ { \\mathsf { p o s } } = r _ { 2 } r _ { 1 } ^ { \\mathsf { p o s } } e ^ { i ( \\theta _ { 2 } + \\theta _ { 1 } \\mathsf { p o s } ) } ~ \\mathrm { s u b j e c t } ~ \\mathsf { t o } ~ | r _ { 1 } | \\leq 1\n$$",
488
+ "text_format": "latex",
489
+ "bbox": [
490
+ 248,
491
+ 483,
492
+ 750,
493
+ 503
494
+ ],
495
+ "page_idx": 3
496
+ },
497
+ {
498
+ "type": "text",
499
+ "text": "In implementations, the above definition of $g$ will lead to an optimization problem due to the constraint $| r _ { 1 } | \\le 1$ . A natural and simple way to avoid this is to fix $r _ { 1 } = 1$ ; note that $| e ^ { i x } | \\equiv 1$ , thus automatically satisfying the constraint, in contrast to a real-valued embedding where one would need to explicitly devise functions satisfying the constraint. Finally, Eq. 4 can be written in the simplified form: $g ( \\mathrm { p o s } ) = r e ^ { i ( \\omega \\mathrm { p o s } + \\theta ) }$ . Thus, one can think of $g$ as embedding positions counterclockwise on a complex circle of radius $r$ with a fixed period $\\dot { \\boldsymbol { r } }$ is the amplitude term, $\\theta$ is the initial phase term, $\\frac { \\omega } { 2 \\pi }$ is the frequency, and $\\frac { 2 \\pi } { \\omega }$ is the period term). ",
500
+ "bbox": [
501
+ 173,
502
+ 510,
503
+ 825,
504
+ 611
505
+ ],
506
+ "page_idx": 3
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "2.3 COMPLEX-VALUED WORD EMBEDDING ",
511
+ "text_level": 1,
512
+ "bbox": [
513
+ 176,
514
+ 626,
515
+ 486,
516
+ 640
517
+ ],
518
+ "page_idx": 3
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "We now define our complex-valued word embedding $g$ as a map taking a word index $j$ and position word index pos to $\\mathbb { C } ^ { D }$ . For a word $w _ { j }$ in position pos, our general complex-valued embedding is defined as $f ( j , \\mathrm { p o s } ) = { { g } _ { j } } ( \\mathrm { p o s } ) = { { r } _ { j } } { { e } ^ { i ( \\omega _ { j } \\mathrm { p o s } + { { \\theta } _ { j } } ) } }$ . Therefore, $f ( j , { \\mathfrak { p o s } } )$ is defined as: ",
523
+ "bbox": [
524
+ 174,
525
+ 651,
526
+ 825,
527
+ 698
528
+ ],
529
+ "page_idx": 3
530
+ },
531
+ {
532
+ "type": "equation",
533
+ "img_path": "images/4200795c7256b106cf6b11d3f6f812f89fa1ca3dcf9833290c41d544ffbced76.jpg",
534
+ "text": "$$\n[ r _ { j , 1 } e ^ { i ( \\omega _ { j , 1 } \\mathrm { p o s } + \\theta _ { j , 1 } ) } , . . . , r _ { j , 2 } e ^ { i ( \\omega _ { j , 2 } \\mathrm { p o s } + \\theta _ { j , 2 } ) } , \\cdot \\cdot \\cdot , r _ { j , D } e ^ { i ( \\omega _ { j , D } \\mathrm { p o s } + \\theta _ { j , D } ) } ]\n$$",
535
+ "text_format": "latex",
536
+ "bbox": [
537
+ 279,
538
+ 704,
539
+ 722,
540
+ 724
541
+ ],
542
+ "page_idx": 3
543
+ },
544
+ {
545
+ "type": "text",
546
+ "text": "Note that each coordinate $d$ $1 \\leq d \\leq D )$ has a separate amplitude $\\boldsymbol { r } _ { j , d }$ , period $\\begin{array} { r } { p _ { j , d } = \\frac { 2 \\pi } { \\omega _ { j , d } } } \\end{array}$ , and initial phase $\\theta _ { j , d }$ . In Fig. 1 each dimension is represented as a wave which is parameterized by an amplitude, a period/frequency, and an initial phase. The trainable parameters of the embedding are the amplitudes vector $\\boldsymbol { r } _ { j } = [ r _ { j , 1 } , . . . , r _ { j , D } ]$ , the period/frequency related weights $\\omega _ { j } = [ \\omega _ { j , 1 } , . . . , \\omega _ { j , D } ] ,$ , and the initial phase vector $\\pmb { \\theta } _ { j } = [ \\theta _ { j , 1 } , . . . , \\theta _ { j , D } ]$ . Note that the mean values of $f ( j , \\cdot )$ over all positions are linearly dependent on the amplitude. Observe that the period/frequency determines to what degree the word is sensitive to the position. With an extremely long period (i.e., $\\omega _ { j }$ very small), the complex-valued embedding is approximately constant for all possible values of pos, and hence approximates a standard word embedding. Conversely, if the period is short, the embedding will be highly sensitive to the position argument. ",
547
+ "bbox": [
548
+ 173,
549
+ 731,
550
+ 825,
551
+ 876
552
+ ],
553
+ "page_idx": 3
554
+ },
555
+ {
556
+ "type": "text",
557
+ "text": "In our embedding, the mean vectors of $f ( j , \\cdot )$ taken over all positions are linearly correlated to the amplitude embedding $\\pmb { r } _ { j } = [ r _ { j , 1 } , . . . , r _ { j , K } ]$ with a coefficient $\\frac { 2 } { \\pi }$ . The amplitude $\\boldsymbol { r } _ { j , d }$ of our embedding depends only on the word $w _ { j }$ (and coordinate $d$ ), not on the position of the word, whence one can think of the vector $g _ { p e } ( j , \\mathrm { p o s } ) = [ e ^ { i ( \\omega _ { j , 1 } \\mathrm { p o s } + \\theta _ { j , 1 } ) } , \\cdot \\cdot \\cdot , e ^ { i ( \\omega _ { j , D } \\mathrm { p o s } + \\theta _ { j , D } ) } ]$ as a “purely” positional embedding. Consequently, our complex embedding can be considered an element-wise multiplication between the word embedding $\\bar { g _ { w e } ( j ) } = [ r _ { j , 1 } , . . . , \\bar { r _ { j , K } } ]$ and position embedding $g _ { p e }$ . ",
558
+ "bbox": [
559
+ 174,
560
+ 881,
561
+ 823,
562
+ 924
563
+ ],
564
+ "page_idx": 3
565
+ },
566
+ {
567
+ "type": "table",
568
+ "img_path": "images/71d6fddbcbb19c028e644b6683e1214f76462e01010b5cc7a01f43777ff7d1e8.jpg",
569
+ "table_caption": [
570
+ "Table 1: Dataset Statistics. CV means 10-fold cross validation. The last 2 datasets come with train/dev/test splits. "
571
+ ],
572
+ "table_footnote": [],
573
+ "table_body": "<table><tr><td>Dataset</td><td>train</td><td>test</td><td>vocab.</td><td>task</td><td>Classes</td></tr><tr><td>CR (Hu &amp; Liu,2014)</td><td>4K</td><td>CV</td><td>6K</td><td>product reviews</td><td>2</td></tr><tr><td>MPQA (Wiebe et al., 2005)</td><td>11k</td><td>CV</td><td>6K</td><td>opinion polarity</td><td>2</td></tr><tr><td>SUBJ (Pang &amp; Lee,2005)</td><td>10k</td><td>CV</td><td>21k</td><td>subjectivity</td><td>2</td></tr><tr><td>MR (Pang &amp; Lee,2005)</td><td>11.9k</td><td>CV</td><td>20k</td><td>moviereviews</td><td>2</td></tr><tr><td>SST (Socher et al.,2013)</td><td>67k</td><td>2.2k</td><td>18k</td><td>movie reviews</td><td>2</td></tr><tr><td>TREC (Li&amp; Roth,2002)</td><td>5.4k</td><td>0.5k</td><td>10k</td><td>Question</td><td>6</td></tr></table>",
574
+ "bbox": [
575
+ 240,
576
+ 101,
577
+ 758,
578
+ 193
579
+ ],
580
+ "page_idx": 4
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "",
585
+ "bbox": [
586
+ 174,
587
+ 251,
588
+ 823,
589
+ 296
590
+ ],
591
+ "page_idx": 4
592
+ },
593
+ {
594
+ "type": "equation",
595
+ "img_path": "images/4313ba26dee6f520c296fda6cc12724c2fafd66f5247b95630e90d1ad1825a8f.jpg",
596
+ "text": "$$\nf ( j , \\mathrm { p o s } ) = g _ { w e } ( j ) \\odot g _ { p e } ( j , \\mathrm { p o s } )\n$$",
597
+ "text_format": "latex",
598
+ "bbox": [
599
+ 387,
600
+ 303,
601
+ 609,
602
+ 320
603
+ ],
604
+ "page_idx": 4
605
+ },
606
+ {
607
+ "type": "text",
608
+ "text": "Prior work (Gehring et al., 2017; Vaswani et al., 2017) uses mean-weight addition between word embeddings $f _ { w e }$ and position embeddings $f _ { p e }$ (all words share the weights). In our work, word embeddings and position embeddings are decoupled to some extent by element-wise multiplication and therefore the frequency/period terms (related to $\\omega _ { j , d } )$ ) can adaptively adjust the importance between semantic and position information for each word and each dimension. In particular, with higher frequency (i.e., large $\\omega _ { j , d } )$ , the final embedding will change dramatically with the changing positions, while it can be fixed for any positions with an extremely-small frequency (i.e., small $\\omega _ { j , d } )$ . Interestingly, the well-known position embedding in Transformer (Vaswani et al., 2017) can be seen as a degraded version of one of our specific complex word embeddings (see the Appendix A). ",
609
+ "bbox": [
610
+ 174,
611
+ 335,
612
+ 825,
613
+ 462
614
+ ],
615
+ "page_idx": 4
616
+ },
617
+ {
618
+ "type": "text",
619
+ "text": "3 EXPERIMENTAL EVALUATION ",
620
+ "text_level": 1,
621
+ "bbox": [
622
+ 178,
623
+ 482,
624
+ 452,
625
+ 498
626
+ ],
627
+ "page_idx": 4
628
+ },
629
+ {
630
+ "type": "text",
631
+ "text": "We evaluate our embeddings in text classification, machine translation and language modeling. ",
632
+ "bbox": [
633
+ 173,
634
+ 513,
635
+ 792,
636
+ 529
637
+ ],
638
+ "page_idx": 4
639
+ },
640
+ {
641
+ "type": "text",
642
+ "text": "3.1 TEXT CLASSIFICATION ",
643
+ "text_level": 1,
644
+ "bbox": [
645
+ 176,
646
+ 546,
647
+ 374,
648
+ 561
649
+ ],
650
+ "page_idx": 4
651
+ },
652
+ {
653
+ "type": "text",
654
+ "text": "Experimental Setup. We use six popular text classification datasets: CR, MPQA, SUBJ, MR, SST, and TREC (see Tab. 1). We use accuracy as evaluation measure based on fixed train/dev/test splits or cross validation, as per prior work. We use Fasttext (Joulin et al., 2016), CNN (Kim, 2014), LSTM and Transformer (Vaswani et al., 2017) as NN baselines2. We use each of them: (1) without positional information; (2) with Vanilla Position Embeddings (PE) (randomly initialized and updated during training using the sum between word and position vectors (Gehring et al., 2017); (3) with Trigonometric Position Embeddings (TPE) (defining position embeddings as trigonometric functions as per Eq. 7); (4) with Complex-vanilla word embeddings (where the amplitude embedding is initialized by the pre-trained word vectors, and the phrase embedding is randomly initialized in a range from $- \\pi$ to $\\pi$ without considering word order (Wang et al., 2019)); and (5) with our order-aware complex-valued word embeddings, Complex-order (which encode position in the phase parts, train the periods, and where the amplitude embedding is also initialized by pretrained word vectors). For more details on the complex-valued extensions of NNs, see App. B and App. C. ",
655
+ "bbox": [
656
+ 173,
657
+ 573,
658
+ 825,
659
+ 753
660
+ ],
661
+ "page_idx": 4
662
+ },
663
+ {
664
+ "type": "text",
665
+ "text": "Our embedding generally has $3 \\times D \\times | \\mathbb { W } |$ parameters with D-dimensional word vectors and $| \\mathbb { W } |$ words, while previous work (Mikolov et al., 2013b; Pennington et al., 2014) usually employs only $D \\times | \\mathbb { W } |$ parameters for embedding lookup tables. To increase efficiency and facilitate fair comparison with previous work we set initial phases $\\pmb { \\theta } _ { j } = [ \\theta _ { j , 1 } , . . . , \\theta _ { j , D } ]$ to a shared constant value (such as zero). Furthermore, the period vectors $\\omega _ { j , d }$ depend on word index $j$ with length $\\lvert \\mathbb { W } \\rvert$ and the coordinate index $d$ with length $D$ . To decrease the number of parameters, one can either use a word-sharing scheme (i.e., $\\omega _ { j , d } = \\omega _ { \\cdot , d } )$ ), or a dimension-sharing scheme $( \\omega _ { j , d } = \\omega _ { j , \\cdot } )$ , leading to $| \\mathbb { W } | * D + | \\bar { \\mathbb { W } } |$ and $| \\mathbb { W } | * D + D$ parameters in total for the embedding layer. ",
666
+ "bbox": [
667
+ 173,
668
+ 760,
669
+ 825,
670
+ 872
671
+ ],
672
+ "page_idx": 4
673
+ },
674
+ {
675
+ "type": "table",
676
+ "img_path": "images/777c66237d8f2c17c53e01b5aeff65834a3b57f5fcc7a6323d0ff3d017987acc.jpg",
677
+ "table_caption": [
678
+ "Table 2: Text classification accuracy without position embeddings, with random position embeddings (PE), with trigonometric position embeddings (TPE), with complex-valued NNs without position embeddings (complex-vanilla), and with our complex-order embeddings. Superscripts $\\ S$ , †, ‡ and ∗ mean a significant improvement over a baseline without position embeddings §, $\\mathrm { P } \\bar { \\mathrm { E } } ^ { \\dagger }$ , $\\mathrm { \\Delta T P E ^ { \\ddagger } }$ and Complex-vanilla ∗ using Wilcoxon’s signed-rank test $\\mathrm { p } { < } 0 . 0 5$ . "
679
+ ],
680
+ "table_footnote": [],
681
+ "table_body": "<table><tr><td>Method</td><td>MR</td><td>SUBJ</td><td>CR</td><td>MPQA</td><td>SST</td><td>TREC</td></tr><tr><td>Fasttext</td><td>0.765</td><td>0.916</td><td>0.789</td><td>0.874</td><td>0.788</td><td>0.874</td></tr><tr><td>Fasttext-PE</td><td>0.774</td><td>0.922</td><td>0.789</td><td>0.882</td><td>0.791</td><td>0.874</td></tr><tr><td>Fasttext-TPE</td><td>0.776</td><td>0.921</td><td>0.796</td><td>0.884</td><td>0.792</td><td>0.88</td></tr><tr><td>Fasttext-Complex-vanilla</td><td>0.773</td><td>0.918</td><td>0.79</td><td>0.867</td><td>0.803</td><td>0.872</td></tr><tr><td>Fasttext-Complex-order</td><td>0.7878+t*</td><td>0.9298†t*</td><td>0.800$+*</td><td>0.8898†t*</td><td>0.809S十**</td><td>0.8928+**</td></tr><tr><td>LSTM</td><td>0.775</td><td>0.896</td><td>0.813</td><td>0.887</td><td>0.807</td><td>0.858</td></tr><tr><td>LSTM-PE</td><td>0.778</td><td>0.915</td><td>0.822</td><td>0.889</td><td>0.811</td><td>0.858</td></tr><tr><td>LSTM-TPE</td><td>0.776</td><td>0.912</td><td>0.814</td><td>0.888</td><td>0.813</td><td>0.865</td></tr><tr><td>LSTM-Complex-vanilla</td><td>0.765</td><td>0.907</td><td>0.810</td><td>0.823</td><td>0.784</td><td>0.784</td></tr><tr><td>LSTM-Complex-order</td><td>0.7908+t*</td><td>0.9268+*</td><td>0.828S+*</td><td>0.8978†**</td><td>0.8198†**</td><td>0.869$+**</td></tr><tr><td>CNN</td><td>0.809</td><td>0.928</td><td>0.830</td><td>0.894</td><td>0.856</td><td>0.898</td></tr><tr><td>CNN-PE</td><td>0.816</td><td>0.938</td><td>0.831</td><td>0.897</td><td>0.856</td><td>0.890</td></tr><tr><td>CNN-TPE</td><td>0.815</td><td>0.938</td><td>0.836</td><td>0.896</td><td>0.838</td><td>0.918</td></tr><tr><td>CNN-Complex-vanilla</td><td>0.811</td><td>0.937</td><td>0.825</td><td>0.878</td><td>0.823</td><td>0.900</td></tr><tr><td>CNN-Complex-order</td><td>0.8258+t*</td><td>0.9518十**</td><td>0.852$十**</td><td>0.9068†**</td><td>0.8648+*</td><td>0.9398+**</td></tr><tr><td>Transformer w/o position embedding</td><td>0.669</td><td>0.847</td><td>0.735</td><td>0.716</td><td>0.736</td><td>0.802</td></tr><tr><td>Transformer-PE</td><td>0.737</td><td>0.859</td><td>0.751</td><td>0.722</td><td>0.753</td><td>0.820</td></tr><tr><td>Transformer-TPE (Vaswani et al., 2017)</td><td>0.731</td><td>0.863</td><td>0.762</td><td>0.723</td><td>0.761</td><td>0.834</td></tr><tr><td>Transformer-Complex-vanilla</td><td>0.715</td><td>0.848</td><td>0.753</td><td>0.786</td><td>0.742</td><td>0.856</td></tr><tr><td>Transformer-Complex-order</td><td>0.7468+*</td><td>0.895$+*</td><td>0.806$+**</td><td>0.863$+**</td><td>0.813$†*</td><td>0.8968†**</td></tr></table>",
682
+ "bbox": [
683
+ 173,
684
+ 181,
685
+ 838,
686
+ 469
687
+ ],
688
+ "page_idx": 5
689
+ },
690
+ {
691
+ "type": "table",
692
+ "img_path": "images/de7f52f5ee6760b22f8a39852d68d9c1d6d44ac42d72ca7c92dbece30230b7bb.jpg",
693
+ "table_caption": [
694
+ "Table 3: Text classification accuracy. $\\star$ means that scores are reported from other papers. "
695
+ ],
696
+ "table_footnote": [],
697
+ "table_body": "<table><tr><td>Method</td><td>MR</td><td>SUBJ</td><td>CR</td><td>MPQA</td><td>SST</td><td>TREC</td></tr><tr><td>Word2vec Bow (Conneau et al.,2017) *</td><td>0.777</td><td>0.909</td><td>0.798</td><td>0.883</td><td>0.797</td><td>0.836</td></tr><tr><td>Sent2Vec (Pagliardini et al., 2017) *</td><td>0.763</td><td>0.912</td><td>0.791</td><td>0.872</td><td>0.802</td><td>0.858</td></tr><tr><td>QuickThoughts (Logeswaran &amp; Lee,2018)*</td><td>0.824</td><td>0.948</td><td>0.860</td><td>0.902</td><td>1</td><td>0.928</td></tr><tr><td>InferSent (Conneau et al., 2017) *</td><td>0.811</td><td>0.924</td><td>0.863</td><td>0.902</td><td>0.846</td><td>0.882</td></tr><tr><td>QPDN (Wang et al., 2019) *</td><td>0.801</td><td>0.927</td><td>0.810</td><td>0.870</td><td>0.839</td><td>0.882</td></tr></table>",
698
+ "bbox": [
699
+ 220,
700
+ 511,
701
+ 789,
702
+ 604
703
+ ],
704
+ "page_idx": 5
705
+ },
706
+ {
707
+ "type": "text",
708
+ "text": "We search the hyper parameters from a parameter pool, with batch size in $\\{ 3 2 , 6 4 , 1 2 8 \\}$ , learning rate in $\\{ 0 . 0 0 1 , 0 . 0 0 0 1 , 0 . 0 0 0 0 1 \\}$ , L2-regularization rate in $\\{ 0 , 0 . 0 0 1 , 0 . 0 0 0 1 \\}$ , and number of hidden layer units in $\\{ 1 2 0 , 1 2 8 \\}$ . We use pre-trained 300-dimensional vectors from word2vec (Mikolov et al., 2013a) in all models except for Transformers. The models with trainable trigonometric position embedding produce nearly identical results compared to the non-trainable version, therefore we report the result of fixed position embeddings as per Vaswani et al. (2017). We adopt narrow convolution and max pooling in CNN, with number of filters in $\\{ 6 4 , 1 2 8 \\}$ , and size of filters in $\\{ 3 , 4 , 5 \\}$ . In all Transformer models, we only use the encoder layer to extract feature information, where the layer is 1, dimension of word and inner hidden are 256 and 512 respectively, and head number is 8. ",
709
+ "bbox": [
710
+ 173,
711
+ 632,
712
+ 825,
713
+ 758
714
+ ],
715
+ "page_idx": 5
716
+ },
717
+ {
718
+ "type": "text",
719
+ "text": "Results. The results are shown in Tab. 2. Our complex-order embeddings outperform all other variations at all times. This gain in effectiveness comes at a negligible (or non-existent) cost in efficiency (it varies per NN architecture – see Fig. 2). CNNs are the best performing NN as expected following Bai et al. (2018). Tranformer NNs benefit the most from our complex-order embeddings, most likely because they are our weakest baseline. To contextualise these results, Tab. 3 shows classification accuracy of five typical approaches on the same datasets (as reported in the original papers). Our complex-order embeddings outperform all methods, except for the CR dataset, where InferSent is marginally better. Overall, our approach is on a par with the SOTA in embeddings. ",
720
+ "bbox": [
721
+ 174,
722
+ 776,
723
+ 825,
724
+ 888
725
+ ],
726
+ "page_idx": 5
727
+ },
728
+ {
729
+ "type": "text",
730
+ "text": "We perform an ablation test (Tab. 4) on Transformer because it is the most common NN to be used with position embeddings. The two period-sharing schemas (dimension-sharing and word-sharing) ",
731
+ "bbox": [
732
+ 174,
733
+ 895,
734
+ 823,
735
+ 924
736
+ ],
737
+ "page_idx": 5
738
+ },
739
+ {
740
+ "type": "image",
741
+ "img_path": "images/3e281f61b64e81bd85bc32ab1d241a5dd6a5878639505a4ffd1356dda400c6a3.jpg",
742
+ "image_caption": [
743
+ "Figure 2: Computation time (seconds) per epoch in Tensorflow on TITAN X GPU. "
744
+ ],
745
+ "image_footnote": [],
746
+ "bbox": [
747
+ 323,
748
+ 101,
749
+ 671,
750
+ 227
751
+ ],
752
+ "page_idx": 6
753
+ },
754
+ {
755
+ "type": "table",
756
+ "img_path": "images/b161fc29c882b041c0e94712ee052872c4b3dde58d2170a08f1847105500aa0e.jpg",
757
+ "table_caption": [
758
+ "Table 4: Ablation test for Transformer, showing the effect of (i) the definition of embedding layer $( f _ { d } ( j , \\mathsf { p o s } ) )$ , and (ii) whether the real-part and imaginary transition share the weights, i.e., $\\Re ( W ^ { Q / K / V } ) = \\Im ( W ^ { Q / K / V } )$ . "
759
+ ],
760
+ "table_footnote": [],
761
+ "table_body": "<table><tr><td>Method</td><td colspan=\"2\">Setting</td><td rowspan=\"2\">Params</td><td rowspan=\"2\">Accuracy</td><td rowspan=\"2\">△</td></tr><tr><td></td><td>fa(j,pos)</td><td> share in WQ/K/V</td></tr><tr><td>Transformer-complex-order</td><td>rjde(wjdpos)</td><td>×</td><td>8.33M</td><td>0.813</td><td>=</td></tr><tr><td>adding initial phases</td><td>rj,dei(wj,dpos+0j,d)</td><td>×</td><td>11.89M</td><td>0.785</td><td>-0.028</td></tr><tr><td>dimension-sharing period schema</td><td>Tj,dewj,.pos</td><td>×</td><td>5.82M</td><td>0.797</td><td>-0.016</td></tr><tr><td>word-sharing period schema</td><td>Tj,deiw.,pos</td><td>×</td><td>5.81M</td><td>0.805</td><td>-0.008</td></tr><tr><td>dimension-sharing amplitude schema</td><td>rj,eiwj,.pos</td><td>×</td><td>5.82M</td><td>0.798</td><td>-0.015</td></tr><tr><td>word-sharing amplitude schema</td><td>r.deiw..apos</td><td>×</td><td>5.81M</td><td>0.804</td><td>-0.009</td></tr><tr><td>w/t encoding positions (complex-vanilla)</td><td>Tjdewjd</td><td>×</td><td>9.38M</td><td>0.764</td><td>-0.049</td></tr><tr><td>dimension-sharing period schema</td><td>Tj,dewj,.pos</td><td>√</td><td>4.77M</td><td>0.794</td><td>-0.019</td></tr><tr><td>word-sharing period schema</td><td>rj,dew.,apos</td><td>√</td><td>4.76M</td><td>0.797</td><td>-0.016</td></tr><tr><td>dimension-sharing amplitude schema</td><td>rj,eiwj,.pos</td><td>√</td><td>4.77M</td><td>0.792</td><td>-0.021</td></tr><tr><td>word-sharing amplitude schema</td><td>r.,deiw.,apos</td><td>√</td><td>4.76M</td><td>0.801</td><td>-0.012</td></tr><tr><td>w/t encoding positions (complex-vanilla)</td><td>rjdeiwjd</td><td>√</td><td>8.33M</td><td>0.743</td><td>-0.07</td></tr><tr><td>vanilla Transformer (Vaswani et al., 2017)</td><td>WEj,d+PEd</td><td>-</td><td>4.1M</td><td>0.761</td><td>-0.052</td></tr></table>",
762
+ "bbox": [
763
+ 173,
764
+ 333,
765
+ 857,
766
+ 555
767
+ ],
768
+ "page_idx": 6
769
+ },
770
+ {
771
+ "type": "text",
772
+ "text": "slightly drop performance, because fewer parameters limit the representative power. Adding initial phases also hurts performance, although we observed that the loss could decrease faster in early epochs compared to the setting without offset. The negative effect of initial phases may be due to periodicity, and $\\omega$ cannot be directly regularized with L2-norm penalties. The sharing schemes slightly decrease the performance with less parameters. More details of the learned periods/frequencies (e.g. the distributions of periods/frequencies and case studies) are shown in App. D. ",
773
+ "bbox": [
774
+ 173,
775
+ 590,
776
+ 825,
777
+ 674
778
+ ],
779
+ "page_idx": 6
780
+ },
781
+ {
782
+ "type": "text",
783
+ "text": "Note that the word-sharing schema outperform the Vanilla Transformer, (both have a comparable number of parameters). If we choose $\\Re ( \\mathrm { \\dot { W } } ^ { Q / K / V } ) = \\Im ( W ^ { Q / K / V } )$ , the additional parameters in the embedding layers will affect much less the whole parameter scale in the multiple-layer Transformer, since a embedding layer is only used in the first layer instead of the following Transformer layers. ",
784
+ "bbox": [
785
+ 174,
786
+ 681,
787
+ 825,
788
+ 738
789
+ ],
790
+ "page_idx": 6
791
+ },
792
+ {
793
+ "type": "text",
794
+ "text": "3.2 MACHINE TRANSLATION ",
795
+ "text_level": 1,
796
+ "bbox": [
797
+ 176,
798
+ 767,
799
+ 388,
800
+ 781
801
+ ],
802
+ "page_idx": 6
803
+ },
804
+ {
805
+ "type": "text",
806
+ "text": "Experimental Setup. We use the standard WMT 2016 English-German dataset (Sennrich et al., 2016), whose training set consists of 29,000 sentence pairs. We use four baselines: basic Attentional encoder-decoder (AED) (Bahdanau et al., 2014); AED with Byte-pair encoding (BPE) subword segmentation for open-vocabulary translation (Sennrich et al., 2016); AED with extra linguistic features (morphological, part-of-speech, and syntactic dependency labels) (Sennrich & Haddow, 2016); and a 6-layer Transformer. Our approach (Transformer Complex-order) uses a batch size of 64, a head of 8, 6 layers, the rate of dropout is 0.1, and the dimension of the word embedding is 512. The embedding layer does not use initial phases, i.e., following $f ( j , p o s ) = r _ { j } e ^ { i ( \\omega _ { j } p o s ) }$ . We evaluate MT performance with the Bilingual Evaluation Understudy (BLEU) measure. ",
807
+ "bbox": [
808
+ 173,
809
+ 796,
810
+ 825,
811
+ 924
812
+ ],
813
+ "page_idx": 6
814
+ },
815
+ {
816
+ "type": "table",
817
+ "img_path": "images/0eb4f7bc17fac9dafe8f29328509ea3a49988b0cc118ca248f9f536791ad15c7.jpg",
818
+ "table_caption": [
819
+ "Table 6: Language modeling results. $\\star$ marks scores reported from other papers. "
820
+ ],
821
+ "table_footnote": [],
822
+ "table_body": "<table><tr><td>Method</td><td>BLEU</td></tr><tr><td>AED (Bahdanau et al., 2014) *</td><td>26.8</td></tr><tr><td rowspan=\"4\">AED+Linguistic (Sennrich &amp; Haddow,2016) ★ AED+BPE(Sennrich et al.,2016) * Transformer (Ma et al.,2019) *</td><td>28.4</td></tr><tr><td>34.2</td></tr><tr><td></td></tr><tr><td>34.5</td></tr><tr><td>Transformer complex vanilla Transformer Complex-order</td><td>34.7 35.8</td></tr></table>",
823
+ "bbox": [
824
+ 178,
825
+ 147,
826
+ 526,
827
+ 252
828
+ ],
829
+ "page_idx": 7
830
+ },
831
+ {
832
+ "type": "table",
833
+ "img_path": "images/f123726c10f6426226fd420db516f924007181387d1d51653b5c3c6bedc2ef2a.jpg",
834
+ "table_caption": [
835
+ "Table 5: Machine translation results. $\\star$ marks scores reported from other papers. "
836
+ ],
837
+ "table_footnote": [],
838
+ "table_body": "<table><tr><td>Method BPC</td></tr><tr><td>BN-LSTM(Cooijmans et al., 2016) * 1.36 LN HM-LSTM(Chung et al., 2016) * 1.29</td></tr><tr><td>RHN (Zilly et al., 2017) * 1.27 Large mLSTM(Krause et al.,2016) * 1.27</td></tr><tr><td>Transformer XL 6L (Dai et al., 2019) 1.29 Transformercomplex vanilla 1.30 Transformer XL Complex-order 6L 1.26</td></tr></table>",
839
+ "bbox": [
840
+ 534,
841
+ 141,
842
+ 825,
843
+ 257
844
+ ],
845
+ "page_idx": 7
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "Results Tab. 5 shows the MT results. Our approach outperforms all baselines. Two things are worth noting: (1) Both the vanilla Transformer and our Transformer Complex-order outperform the three Attentional encoder-decoder baselines which are based on an LSTM encoder and decoder, even when AED uses additional features. (2) Our Transformer Complex-Order outperforms the Vanilla Transformer and complex-vanilla Transformer by 1.3 and 1.1 in absolute BLEU score respectively. ",
850
+ "bbox": [
851
+ 174,
852
+ 272,
853
+ 825,
854
+ 342
855
+ ],
856
+ "page_idx": 7
857
+ },
858
+ {
859
+ "type": "text",
860
+ "text": "3.3 LANGUAGE MODELING ",
861
+ "text_level": 1,
862
+ "bbox": [
863
+ 176,
864
+ 358,
865
+ 379,
866
+ 372
867
+ ],
868
+ "page_idx": 7
869
+ },
870
+ {
871
+ "type": "text",
872
+ "text": "Experimental Setup. We use the text8 (Mahoney, 2011) dataset, consisting of English Wikipedia articles. The text is lowercased from a to z, and space. The dataset contains 100M characters (90M for training, 5M for dev, and 5M for testing, as per Mikolov et al. (2012)). We use as baselines BN-LSTM, LN HM-LSTM RHN and Large mLSTM, which are typical recurrent NNs for language modeling in this dataset. We evaluate performance with the Bits Per Character (BPC) measure, (the lower, the better). We run the coder in Dai et al. (2019) with 6 layers for Transformer XL 6L; our model, named Transformer XL complex-order, directly replaces the word embedding with our proposed embedding under the same setting. We choose 6 layers due to limitations in computing resources. For Transformer XL Complex-order, all other parameter settings are as for Transformer XL (Dai et al., 2019). Our complex-order model does not use initial phases. ",
873
+ "bbox": [
874
+ 173,
875
+ 383,
876
+ 825,
877
+ 523
878
+ ],
879
+ "page_idx": 7
880
+ },
881
+ {
882
+ "type": "text",
883
+ "text": "Results. We see in Tab. 6 that our method outperforms all baselines. The first four baselines (BNLSTM, LN HM-LSTM, RHN and Large mLSTM) are based on recurrent NNs and rely on different regulation methods to become applicable in multiple-layer recurrent architectures. Transformerbased architectures can easily be stacked with multiple layers due to their advantages in parallelization, however the vanilla Transformer does not outperform the multiple-layer recurrent baselines, most likely due to its limitation of 6 layers. Our Transformer XL Complex-order outperforms its vanilla counterpart under the 6-layer setting (and also strong recurrent network baselines), demonstrating that our embedding also generalizes well in tasks with long-term dependency. With limited resources, slightly increasing the parameters in the feature layer like our proposed embedding could be more beneficial than stacking more layers with linearly increasing parameters. ",
884
+ "bbox": [
885
+ 173,
886
+ 537,
887
+ 825,
888
+ 678
889
+ ],
890
+ "page_idx": 7
891
+ },
892
+ {
893
+ "type": "text",
894
+ "text": "4 RELATED WORK ",
895
+ "text_level": 1,
896
+ "bbox": [
897
+ 176,
898
+ 690,
899
+ 344,
900
+ 707
901
+ ],
902
+ "page_idx": 7
903
+ },
904
+ {
905
+ "type": "text",
906
+ "text": "Complex-valued NNs are not new (Georgiou & Koutsougeras, 1992; Kim & Adalı, 2003; Hirose, 2003). Complex-valued weights have been used in NNs, motivated by biology (Reichert & Serre, 2013), and also as signal processing in speech recognition (Shi et al., 2006). More recently, Arjovsky et al. (2016) shifted RNNs into the complex domain and Wolter & Yao (2018) proposed a novel complex gated recurrent cell. Trabelsi et al. (2017) also developped a complex-valued NN for computer vision and audio processing. ",
907
+ "bbox": [
908
+ 173,
909
+ 722,
910
+ 825,
911
+ 805
912
+ ],
913
+ "page_idx": 7
914
+ },
915
+ {
916
+ "type": "text",
917
+ "text": "Complex numbers have also been applied to text processing like (Van Rijsbergen, 2004; Melucci, 2015; Blacoe et al., 2013). Trouillon et al. (2016) adopt complex embedding for entities in Knowledge Graph Completion to represent antisymmetric relations with Hermitian dot product. Li et al. (2019); Wang et al. (2019) extend word embeddings to complex-valued fashion in quantum probability driven NNs, seeing the overview in Wang et al. (2019). However, the physical meaning of both the complex-valued entity and word embeddings is unknown, since a complex number was considered as two real numbers in a black-box learning paradigm. Our work first links the phase in complex numbers to word position to define concrete physical meaning in document representations. ",
918
+ "bbox": [
919
+ 174,
920
+ 811,
921
+ 825,
922
+ 924
923
+ ],
924
+ "page_idx": 7
925
+ },
926
+ {
927
+ "type": "text",
928
+ "text": "5 CONCLUSIONS ",
929
+ "text_level": 1,
930
+ "bbox": [
931
+ 176,
932
+ 102,
933
+ 328,
934
+ 117
935
+ ],
936
+ "page_idx": 8
937
+ },
938
+ {
939
+ "type": "text",
940
+ "text": "We extended word vectors to word functions with a variable i.e. position, to model the smooth shift among sequential word positions and therefore implicitly capture relative distances between words. These functions are well-defined to model the relative distances, therefore we derive a general solution in complex-valued fashion. Interestingly, the position embedding in Vaswani et al. (2017) can be considered a simplified version of our approach. We extend CNN, RNN and Transformer NNs to complex-valued versions to incorporate our complex embedding. Experiments on text classification, machine translation and language modeling show that our embeddings are more effective than vanilla position embeddings (Vaswani et al., 2017). ",
941
+ "bbox": [
942
+ 174,
943
+ 133,
944
+ 825,
945
+ 244
946
+ ],
947
+ "page_idx": 8
948
+ },
949
+ {
950
+ "type": "text",
951
+ "text": "ACKNOWLEDGMENTS ",
952
+ "text_level": 1,
953
+ "bbox": [
954
+ 176,
955
+ 261,
956
+ 326,
957
+ 273
958
+ ],
959
+ "page_idx": 8
960
+ },
961
+ {
962
+ "type": "text",
963
+ "text": "We thank Massimo Melucci and Emanuele Di Buccio for their helpful comments, Xindian Ma for his detailed experimental suggestions. ",
964
+ "bbox": [
965
+ 174,
966
+ 285,
967
+ 821,
968
+ 313
969
+ ],
970
+ "page_idx": 8
971
+ },
972
+ {
973
+ "type": "text",
974
+ "text": "This work is supported by the Quantum Access and Retrieval Theory (QUARTZ) project, which has received funding from the European Union‘s Horizon 2020 research and innovation programme under the Marie Skłodowska-Curie grant agreement No. 721321. Peng Zhang and Donghao Zhang are supported in part by Natural Science Foundation of China (grant No. 61772363, U1636203) ",
975
+ "bbox": [
976
+ 174,
977
+ 320,
978
+ 825,
979
+ 376
980
+ ],
981
+ "page_idx": 8
982
+ },
983
+ {
984
+ "type": "text",
985
+ "text": "REFERENCES ",
986
+ "text_level": 1,
987
+ "bbox": [
988
+ 176,
989
+ 397,
990
+ 285,
991
+ 412
992
+ ],
993
+ "page_idx": 8
994
+ },
995
+ {
996
+ "type": "text",
997
+ "text": "Martin Arjovsky, Amar Shah, and Yoshua Bengio. Unitary evolution recurrent neural networks. In International Conference on International Conference on Machine Learning, 2016. ",
998
+ "bbox": [
999
+ 173,
1000
+ 420,
1001
+ 825,
1002
+ 449
1003
+ ],
1004
+ "page_idx": 8
1005
+ },
1006
+ {
1007
+ "type": "text",
1008
+ "text": "Dzmitry Bahdanau, Kyunghyun Cho, and Yoshua Bengio. Neural machine translation by jointly learning to align and translate. arXiv preprint arXiv:1409.0473, 2014. ",
1009
+ "bbox": [
1010
+ 173,
1011
+ 458,
1012
+ 823,
1013
+ 488
1014
+ ],
1015
+ "page_idx": 8
1016
+ },
1017
+ {
1018
+ "type": "text",
1019
+ "text": "Shaojie Bai, J. Zico Kolter, and Vladlen Koltun. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. CoRR, abs/1803.01271, 2018. URL http: //arxiv.org/abs/1803.01271. ",
1020
+ "bbox": [
1021
+ 174,
1022
+ 496,
1023
+ 821,
1024
+ 539
1025
+ ],
1026
+ "page_idx": 8
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "Daniel Beck, Gholamreza Haffari, and Trevor Cohn. Graph-to-sequence learning using gated graph neural networks. arXiv preprint arXiv:1806.09835, 2018. ",
1031
+ "bbox": [
1032
+ 173,
1033
+ 549,
1034
+ 823,
1035
+ 577
1036
+ ],
1037
+ "page_idx": 8
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "William Blacoe, Elham Kashefi, and Mirella Lapata. A quantum-theoretic approach to distributional semantics. In NAACL, pp. 847–857, 2013. ",
1042
+ "bbox": [
1043
+ 174,
1044
+ 587,
1045
+ 821,
1046
+ 616
1047
+ ],
1048
+ "page_idx": 8
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "Junyoung Chung, Sungjin Ahn, and Yoshua Bengio. Hierarchical multiscale recurrent neural networks. arXiv preprint arXiv:1609.01704, 2016. ",
1053
+ "bbox": [
1054
+ 171,
1055
+ 625,
1056
+ 823,
1057
+ 654
1058
+ ],
1059
+ "page_idx": 8
1060
+ },
1061
+ {
1062
+ "type": "text",
1063
+ "text": "Alexis Conneau, Douwe Kiela, Holger Schwenk, Loic Barrault, and Antoine Bordes. Supervised learning of universal sentence representations from natural language inference data. arXiv preprint arXiv:1705.02364, 2017. ",
1064
+ "bbox": [
1065
+ 173,
1066
+ 662,
1067
+ 823,
1068
+ 705
1069
+ ],
1070
+ "page_idx": 8
1071
+ },
1072
+ {
1073
+ "type": "text",
1074
+ "text": "Tim Cooijmans, Nicolas Ballas, Cesar Laurent, C¸ a ´ glar G ˘ ulc¸ehre, and Aaron Courville. Recurrent ¨ batch normalization. arXiv preprint arXiv:1603.09025, 2016. ",
1075
+ "bbox": [
1076
+ 169,
1077
+ 714,
1078
+ 823,
1079
+ 744
1080
+ ],
1081
+ "page_idx": 8
1082
+ },
1083
+ {
1084
+ "type": "text",
1085
+ "text": "Zihang Dai, Zhilin Yang, Yiming Yang, William W Cohen, Jaime Carbonell, Quoc V Le, and Ruslan Salakhutdinov. Transformer-xl: Attentive language models beyond a fixed-length context. arXiv preprint arXiv:1901.02860, 2019. ",
1086
+ "bbox": [
1087
+ 174,
1088
+ 752,
1089
+ 823,
1090
+ 795
1091
+ ],
1092
+ "page_idx": 8
1093
+ },
1094
+ {
1095
+ "type": "text",
1096
+ "text": "Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018. ",
1097
+ "bbox": [
1098
+ 169,
1099
+ 805,
1100
+ 821,
1101
+ 834
1102
+ ],
1103
+ "page_idx": 8
1104
+ },
1105
+ {
1106
+ "type": "text",
1107
+ "text": "Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N Dauphin. Convolutional sequence to sequence learning. In Proceedings of the 34th International Conference on Machine Learning-Volume 70, pp. 1243–1252. JMLR. org, 2017. ",
1108
+ "bbox": [
1109
+ 173,
1110
+ 843,
1111
+ 821,
1112
+ 886
1113
+ ],
1114
+ "page_idx": 8
1115
+ },
1116
+ {
1117
+ "type": "text",
1118
+ "text": "George M Georgiou and Cris Koutsougeras. Complex domain backpropagation. IEEE transactions on Circuits and systems II: analog and digital signal processing, 39(5):330–334, 1992. ",
1119
+ "bbox": [
1120
+ 173,
1121
+ 895,
1122
+ 821,
1123
+ 924
1124
+ ],
1125
+ "page_idx": 8
1126
+ },
1127
+ {
1128
+ "type": "text",
1129
+ "text": "Akira Hirose. Complex-valued neural networks: theories and applications, volume 5. World Scientific, 2003. ",
1130
+ "bbox": [
1131
+ 174,
1132
+ 103,
1133
+ 823,
1134
+ 132
1135
+ ],
1136
+ "page_idx": 9
1137
+ },
1138
+ {
1139
+ "type": "text",
1140
+ "text": "Minqing Hu and Bing Liu. Mining and Summarizing Customer Reviews. pp. 10, 2014. ",
1141
+ "bbox": [
1142
+ 176,
1143
+ 141,
1144
+ 750,
1145
+ 157
1146
+ ],
1147
+ "page_idx": 9
1148
+ },
1149
+ {
1150
+ "type": "text",
1151
+ "text": "Armand Joulin, Edouard Grave, Piotr Bojanowski, and Tomas Mikolov. Bag of tricks for efficient text classification. arXiv preprint arXiv:1607.01759, 2016. ",
1152
+ "bbox": [
1153
+ 171,
1154
+ 166,
1155
+ 823,
1156
+ 196
1157
+ ],
1158
+ "page_idx": 9
1159
+ },
1160
+ {
1161
+ "type": "text",
1162
+ "text": "Taehwan Kim and Tulay Adalı. Approximation by fully complex multilayer perceptrons. ¨ Neural computation, 15(7):1641–1666, 2003. ",
1163
+ "bbox": [
1164
+ 174,
1165
+ 205,
1166
+ 823,
1167
+ 234
1168
+ ],
1169
+ "page_idx": 9
1170
+ },
1171
+ {
1172
+ "type": "text",
1173
+ "text": "Yoon Kim. Convolutional neural networks for sentence classification. arXiv preprint arXiv:1408.5882, 2014. ",
1174
+ "bbox": [
1175
+ 174,
1176
+ 244,
1177
+ 823,
1178
+ 273
1179
+ ],
1180
+ "page_idx": 9
1181
+ },
1182
+ {
1183
+ "type": "text",
1184
+ "text": "Ben Krause, Liang Lu, Iain Murray, and Steve Renals. Multiplicative lstm for sequence modelling. arXiv preprint arXiv:1609.07959, 2016. ",
1185
+ "bbox": [
1186
+ 174,
1187
+ 282,
1188
+ 820,
1189
+ 313
1190
+ ],
1191
+ "page_idx": 9
1192
+ },
1193
+ {
1194
+ "type": "text",
1195
+ "text": "Qiuchi Li, Sagar Uprety, Benyou Wang, and Dawei Song. Quantum-inspired complex word embedding. In Proceedings of The Third Workshop on Representation Learning for NLP, pp. 50–57, 2018. ",
1196
+ "bbox": [
1197
+ 173,
1198
+ 320,
1199
+ 825,
1200
+ 364
1201
+ ],
1202
+ "page_idx": 9
1203
+ },
1204
+ {
1205
+ "type": "text",
1206
+ "text": "Qiuchi Li, Benyou Wang, and Massimo Melucci. Cnm: An interpretable complex-valued network for matching. In NAACL-HLT (1), pp. 4139–4148, 2019. ",
1207
+ "bbox": [
1208
+ 173,
1209
+ 375,
1210
+ 823,
1211
+ 404
1212
+ ],
1213
+ "page_idx": 9
1214
+ },
1215
+ {
1216
+ "type": "text",
1217
+ "text": "Xin Li and Dan Roth. Learning Question Classifiers. In COLING. Association for Computational Linguistics, 2002. ",
1218
+ "bbox": [
1219
+ 174,
1220
+ 412,
1221
+ 825,
1222
+ 443
1223
+ ],
1224
+ "page_idx": 9
1225
+ },
1226
+ {
1227
+ "type": "text",
1228
+ "text": "Lajanugen Logeswaran and Honglak Lee. An efficient framework for learning sentence representations. arXiv preprint arXiv:1803.02893, 2018. ",
1229
+ "bbox": [
1230
+ 173,
1231
+ 452,
1232
+ 823,
1233
+ 481
1234
+ ],
1235
+ "page_idx": 9
1236
+ },
1237
+ {
1238
+ "type": "text",
1239
+ "text": "Xindian Ma, Peng Zhang, Shuai Zhang, Nan Duan, Yuexian Hou, Dawei Song, and Ming Zhou. A tensorized transformer for language modeling. arXiv preprint arXiv:1906.09777, 2019. ",
1240
+ "bbox": [
1241
+ 171,
1242
+ 491,
1243
+ 825,
1244
+ 520
1245
+ ],
1246
+ "page_idx": 9
1247
+ },
1248
+ {
1249
+ "type": "text",
1250
+ "text": "Matt Mahoney. Large text compression benchmark. URL: http://www. mattmahoney. net/text/text. html, 2011. ",
1251
+ "bbox": [
1252
+ 173,
1253
+ 529,
1254
+ 821,
1255
+ 559
1256
+ ],
1257
+ "page_idx": 9
1258
+ },
1259
+ {
1260
+ "type": "text",
1261
+ "text": "Massimo Melucci. Introduction to information retrieval and quantum mechanics, volume 35. Springer, 2015. ",
1262
+ "bbox": [
1263
+ 174,
1264
+ 568,
1265
+ 821,
1266
+ 598
1267
+ ],
1268
+ "page_idx": 9
1269
+ },
1270
+ {
1271
+ "type": "text",
1272
+ "text": "T. Mikolov, I. Sutskever, K. Chen, G. Corrado, and J. Dean. Distributed representations ofwords and phrases and their compositionality. Advances in Neural Information Processing Systems, 26: 3111–3119, 2013a. ",
1273
+ "bbox": [
1274
+ 173,
1275
+ 607,
1276
+ 825,
1277
+ 650
1278
+ ],
1279
+ "page_idx": 9
1280
+ },
1281
+ {
1282
+ "type": "text",
1283
+ "text": "Toma´s Mikolov, Ilya Sutskever, Anoop Deoras, Hai-Son Le, Stefan Kombrink, and Jan Cer- ˇ nocky. Subword language modeling with neural networks. preprint (http://www. fit. vutbr. cz/imikolov/rnnlm/char. pdf), 8, 2012. ",
1284
+ "bbox": [
1285
+ 174,
1286
+ 660,
1287
+ 825,
1288
+ 703
1289
+ ],
1290
+ "page_idx": 9
1291
+ },
1292
+ {
1293
+ "type": "text",
1294
+ "text": "Tomas Mikolov, Kai Chen, Greg Corrado, and Jeffrey Dean. Efficient estimation of word representations in vector space. arXiv preprint arXiv:1301.3781, 2013b. ",
1295
+ "bbox": [
1296
+ 174,
1297
+ 712,
1298
+ 823,
1299
+ 742
1300
+ ],
1301
+ "page_idx": 9
1302
+ },
1303
+ {
1304
+ "type": "text",
1305
+ "text": "Matteo Pagliardini, Prakhar Gupta, and Martin Jaggi. Unsupervised learning of sentence embeddings using compositional n-gram features. arXiv preprint arXiv:1703.02507, 2017. ",
1306
+ "bbox": [
1307
+ 173,
1308
+ 751,
1309
+ 823,
1310
+ 781
1311
+ ],
1312
+ "page_idx": 9
1313
+ },
1314
+ {
1315
+ "type": "text",
1316
+ "text": "Bo Pang and Lillian Lee. Seeing stars: exploiting class relationships for sentiment categorization with respect to rating scales. pp. 115–124. Association for Computational Linguistics, 2005. doi: 10.3115/1219840.1219855. URL http://portal.acm.org/citation. cfm?doid $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ 1219840.1219855. ",
1317
+ "bbox": [
1318
+ 174,
1319
+ 790,
1320
+ 825,
1321
+ 847
1322
+ ],
1323
+ "page_idx": 9
1324
+ },
1325
+ {
1326
+ "type": "text",
1327
+ "text": "Jeffrey Pennington, Richard Socher, and Christopher D Manning. Glove: Global vectors for word representation. In EMNLP, volume 14, pp. 1532–1543, 2014. ",
1328
+ "bbox": [
1329
+ 174,
1330
+ 856,
1331
+ 821,
1332
+ 886
1333
+ ],
1334
+ "page_idx": 9
1335
+ },
1336
+ {
1337
+ "type": "text",
1338
+ "text": "David P Reichert and Thomas Serre. Neuronal synchrony in complex-valued deep networks. arXiv preprint arXiv:1312.6115, 2013. ",
1339
+ "bbox": [
1340
+ 174,
1341
+ 895,
1342
+ 820,
1343
+ 924
1344
+ ],
1345
+ "page_idx": 9
1346
+ },
1347
+ {
1348
+ "type": "text",
1349
+ "text": "Sunil Kumar Sahu, Fenia Christopoulou, Makoto Miwa, and Sophia Ananiadou. Inter-sentence relation extraction with document-level graph convolutional neural network. arXiv preprint arXiv:1906.04684, 2019. ",
1350
+ "bbox": [
1351
+ 174,
1352
+ 103,
1353
+ 823,
1354
+ 146
1355
+ ],
1356
+ "page_idx": 10
1357
+ },
1358
+ {
1359
+ "type": "text",
1360
+ "text": "Rico Sennrich and Barry Haddow. Linguistic input features improve neural machine translation. arXiv preprint arXiv:1606.02892, 2016. ",
1361
+ "bbox": [
1362
+ 173,
1363
+ 159,
1364
+ 821,
1365
+ 188
1366
+ ],
1367
+ "page_idx": 10
1368
+ },
1369
+ {
1370
+ "type": "text",
1371
+ "text": "Rico Sennrich, Barry Haddow, and Alexandra Birch. Edinburgh neural machine translation systems for wmt 16. arXiv preprint arXiv:1606.02891, 2016. ",
1372
+ "bbox": [
1373
+ 173,
1374
+ 200,
1375
+ 823,
1376
+ 231
1377
+ ],
1378
+ "page_idx": 10
1379
+ },
1380
+ {
1381
+ "type": "text",
1382
+ "text": "Peter Shaw, Jakob Uszkoreit, and Ashish Vaswani. Self-attention with relative position representations. arXiv preprint arXiv:1803.02155, 2018. ",
1383
+ "bbox": [
1384
+ 168,
1385
+ 242,
1386
+ 823,
1387
+ 272
1388
+ ],
1389
+ "page_idx": 10
1390
+ },
1391
+ {
1392
+ "type": "text",
1393
+ "text": "Guangji Shi, Maryam Modir Shanechi, and Parham Aarabi. On the importance of phase in human speech recognition. IEEE transactions on audio, speech, and language processing, 14(5):1867– 1874, 2006. ",
1394
+ "bbox": [
1395
+ 173,
1396
+ 285,
1397
+ 826,
1398
+ 328
1399
+ ],
1400
+ "page_idx": 10
1401
+ },
1402
+ {
1403
+ "type": "text",
1404
+ "text": "Richard Socher, Cliff C Lin, Chris Manning, and Andrew Y Ng. Parsing natural scenes and natural language with recursive neural networks. In Proceedings of the 28th international conference on machine learning (ICML-11), pp. 129–136, 2011. ",
1405
+ "bbox": [
1406
+ 173,
1407
+ 340,
1408
+ 825,
1409
+ 385
1410
+ ],
1411
+ "page_idx": 10
1412
+ },
1413
+ {
1414
+ "type": "text",
1415
+ "text": "Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew $\\mathrm { N g }$ , and Christopher Potts. Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank. EMNLP, pp. 1631–1642, 2013. ",
1416
+ "bbox": [
1417
+ 173,
1418
+ 396,
1419
+ 826,
1420
+ 439
1421
+ ],
1422
+ "page_idx": 10
1423
+ },
1424
+ {
1425
+ "type": "text",
1426
+ "text": "Chiheb Trabelsi, Olexa Bilaniuk, Ying Zhang, Dmitriy Serdyuk, Sandeep Subramanian, Joao Fe- ˜ lipe Santos, Soroush Mehri, Negar Rostamzadeh, Yoshua Bengio, and Christopher J Pal. Deep complex networks. arXiv preprint arXiv:1705.09792, 2017. ",
1427
+ "bbox": [
1428
+ 174,
1429
+ 452,
1430
+ 823,
1431
+ 496
1432
+ ],
1433
+ "page_idx": 10
1434
+ },
1435
+ {
1436
+ "type": "text",
1437
+ "text": "Theo Trouillon, Johannes Welbl, Sebastian Riedel, ´ Eric Gaussier, and Guillaume Bouchard. Com- ´ plex embeddings for simple link prediction. In International Conference on Machine Learning, pp. 2071–2080, 2016. ",
1438
+ "bbox": [
1439
+ 174,
1440
+ 508,
1441
+ 825,
1442
+ 553
1443
+ ],
1444
+ "page_idx": 10
1445
+ },
1446
+ {
1447
+ "type": "text",
1448
+ "text": "Cornelis Joost Van Rijsbergen. The geometry of information retrieval. Cambridge University Press, 2004. ",
1449
+ "bbox": [
1450
+ 171,
1451
+ 565,
1452
+ 825,
1453
+ 595
1454
+ ],
1455
+ "page_idx": 10
1456
+ },
1457
+ {
1458
+ "type": "text",
1459
+ "text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In Advances in Neural Information Processing Systems, pp. 5998–6008, 2017. ",
1460
+ "bbox": [
1461
+ 173,
1462
+ 607,
1463
+ 825,
1464
+ 651
1465
+ ],
1466
+ "page_idx": 10
1467
+ },
1468
+ {
1469
+ "type": "text",
1470
+ "text": "Benyou Wang, Emanuele Di Buccio, and Massimo Melucci. Representing words in vector space and beyond. In Quantum-Like Models for Information Retrieval and Decision-Making, pp. 83–113. Springer, 2019. ",
1471
+ "bbox": [
1472
+ 173,
1473
+ 662,
1474
+ 823,
1475
+ 707
1476
+ ],
1477
+ "page_idx": 10
1478
+ },
1479
+ {
1480
+ "type": "text",
1481
+ "text": "Benyou Wang, Qiuchi Li, Massimo Melucci, and Dawei Song. Semantic hilbert space for text representation learning. In The World Wide Web Conference on, pp. 3293–3299, 2019. ",
1482
+ "bbox": [
1483
+ 171,
1484
+ 719,
1485
+ 823,
1486
+ 748
1487
+ ],
1488
+ "page_idx": 10
1489
+ },
1490
+ {
1491
+ "type": "text",
1492
+ "text": "Janyce Wiebe, Theresa Wilson, and Claire Cardie. Annotating Expressions of Opinions and Emotions in Language. Language Resources and Evaluation, 39(2-3):165–210, May 2005. ISSN 1574-020X, 1572-8412. doi: 10.1007/s10579-005-7880-9. URL http://link.springer. com/10.1007/s10579-005-7880-9. ",
1493
+ "bbox": [
1494
+ 173,
1495
+ 761,
1496
+ 825,
1497
+ 818
1498
+ ],
1499
+ "page_idx": 10
1500
+ },
1501
+ {
1502
+ "type": "text",
1503
+ "text": "Moritz Wolter and Angela Yao. Gated complex recurrent neural networks. arXiv preprint arXiv:1806.08267, 2018. ",
1504
+ "bbox": [
1505
+ 171,
1506
+ 832,
1507
+ 821,
1508
+ 861
1509
+ ],
1510
+ "page_idx": 10
1511
+ },
1512
+ {
1513
+ "type": "text",
1514
+ "text": "Julian Georg Zilly, Rupesh Kumar Srivastava, Jan Koutn´ık, and Jurgen Schmidhuber. Recurrent ¨ highway networks. In Proceedings of the 34th International Conference on Machine LearningVolume 70, pp. 4189–4198. JMLR. org, 2017. ",
1515
+ "bbox": [
1516
+ 173,
1517
+ 873,
1518
+ 825,
1519
+ 916
1520
+ ],
1521
+ "page_idx": 10
1522
+ },
1523
+ {
1524
+ "type": "text",
1525
+ "text": "A LINKING TO THE POSITION EMBEDDINGS IN (VASWANI ET AL., 2017) ",
1526
+ "text_level": 1,
1527
+ "bbox": [
1528
+ 171,
1529
+ 102,
1530
+ 789,
1531
+ 118
1532
+ ],
1533
+ "page_idx": 11
1534
+ },
1535
+ {
1536
+ "type": "text",
1537
+ "text": "Vaswani et al. (2017) proposed a new initialization for position embedding, resulting in comparable performance with previous one (Gehring et al., 2017) even without fine-tuning. The position embedding is empirically selected as ",
1538
+ "bbox": [
1539
+ 173,
1540
+ 132,
1541
+ 823,
1542
+ 175
1543
+ ],
1544
+ "page_idx": 11
1545
+ },
1546
+ {
1547
+ "type": "equation",
1548
+ "img_path": "images/18234793b3ffc63153ac63f3b07e3f300c4f122f0e2692fe53c4e74e604a276b.jpg",
1549
+ "text": "$$\n\\begin{array} { r } { P E _ { 2 k } ( \\cdot , p o s ) = \\sin ( p o s / 1 0 0 0 0 ^ { 2 k / d _ { m o d e l } } ) } \\\\ { P E _ { 2 k + 1 } ( \\cdot , p o s ) = \\cos ( p o s / 1 0 0 0 0 ^ { 2 k / d _ { m o d e l } } ) } \\end{array}\n$$",
1550
+ "text_format": "latex",
1551
+ "bbox": [
1552
+ 349,
1553
+ 180,
1554
+ 647,
1555
+ 223
1556
+ ],
1557
+ "page_idx": 11
1558
+ },
1559
+ {
1560
+ "type": "text",
1561
+ "text": "Where pos is the position index, $2 k$ and $2 k + 1$ is the dimension index and $d _ { m o d e l }$ is the dimension size of embedding. The reason for choosing this position embedding was not well-explained and its general extension is unknown, leading to some difficulties to improve it. ",
1562
+ "bbox": [
1563
+ 176,
1564
+ 227,
1565
+ 823,
1566
+ 270
1567
+ ],
1568
+ "page_idx": 11
1569
+ },
1570
+ {
1571
+ "type": "text",
1572
+ "text": "We claim that the proposed position embedding in (Vaswani et al., 2017) is a degraded version of one of our specific complex word embedding in word-sharing schema (i.e., $\\omega _ { j , d } = \\omega _ { \\cdot , d } )$ ), in which $p _ { j , k } =$ $2 \\pi \\times 1 0 0 0 0 ^ { 2 k / d _ { m o d e l } }$ and the initial phases are set as zero. In our complex-valued position embedding, let $f _ { p e , k } ( \\cdot , p o s ) = e ^ { i \\times 1 0 0 0 ^ { 2 k / d _ { m o d e l } } } = \\cos ( 1 0 0 0 0 ^ { 2 k / d _ { m o d e l } } p o s ) + i \\sin ( 1 0 0 0 0 ^ { 2 k / d _ { m o d e l } } p o s )$ . Note that there exists a bi-jection between $P E ( \\cdot , p o s )$ and $f _ { p e , k } ( \\cdot , p o s )$ : ",
1573
+ "bbox": [
1574
+ 173,
1575
+ 276,
1576
+ 825,
1577
+ 353
1578
+ ],
1579
+ "page_idx": 11
1580
+ },
1581
+ {
1582
+ "type": "equation",
1583
+ "img_path": "images/ce1e7d7d5a8e8bd0be6504b3fdce0e2b05007d59a4113e47e09cdc41334ddb9b.jpg",
1584
+ "text": "$$\n\\begin{array} { r } { P E _ { 2 k } ( \\cdot , p o s ) = \\Im ( f _ { p e , k } ( \\cdot , p o s ) ) , } \\\\ { P E _ { 2 k + 1 } ( \\cdot , p o s ) = \\Re ( f _ { p e , k } ( \\cdot , p o s ) ) } \\end{array}\n$$",
1585
+ "text_format": "latex",
1586
+ "bbox": [
1587
+ 379,
1588
+ 367,
1589
+ 617,
1590
+ 405
1591
+ ],
1592
+ "page_idx": 11
1593
+ },
1594
+ {
1595
+ "type": "text",
1596
+ "text": "where $\\mathfrak { R }$ and $\\mathfrak { F }$ are the operations to take the real and imaginary part of a complex-valued number. Its inverse transformation is ",
1597
+ "bbox": [
1598
+ 174,
1599
+ 406,
1600
+ 821,
1601
+ 434
1602
+ ],
1603
+ "page_idx": 11
1604
+ },
1605
+ {
1606
+ "type": "equation",
1607
+ "img_path": "images/73c83963e37e356ccac9f1beece911eb94ee770c88669cc2d4f3ecc5d7df34db.jpg",
1608
+ "text": "$$\nf _ { p e , k } ( \\cdot , p o s ) = P E _ { 2 k + 1 } ( \\cdot , p o s ) + i P E _ { 2 k } ( \\cdot , p o s )\n$$",
1609
+ "text_format": "latex",
1610
+ "bbox": [
1611
+ 336,
1612
+ 440,
1613
+ 661,
1614
+ 458
1615
+ ],
1616
+ "page_idx": 11
1617
+ },
1618
+ {
1619
+ "type": "text",
1620
+ "text": "In our overall embedding, each dimension $f _ { k } ( j , p o s ) = f _ { w e , k } ( j ) \\odot f _ { p e , k } ( \\cdot , p o s )$ in our approaches, while it is $E _ { k } ( j , p o s ) \\stackrel { \\_ } { = } W E _ { k } ( j ) + P E _ { k } ( \\cdot , \\bar { p o s } )$ in (Gehring et al., 2017; Vaswani et al., 2017). Hence the position embedding in (Vaswani et al., 2017) is equivalent, albeit not identical, to our complex-valued position embedding with $p _ { j , k } = 2 \\pi \\times 1 0 0 0 0 ^ { 2 k / d _ { m o d e l } }$ . It is therefore a particular case of our complex-valued position embedding, the word-sharing schema in which all words share the same period at a certain dimension, i.e, $p _ { j , k } = p _ { \\cdot , k }$ is irrelevant to the choice of $j$ . ",
1621
+ "bbox": [
1622
+ 173,
1623
+ 469,
1624
+ 826,
1625
+ 556
1626
+ ],
1627
+ "page_idx": 11
1628
+ },
1629
+ {
1630
+ "type": "text",
1631
+ "text": "B INTEGRATING COMPLEX-VALUED EMBEDDING TO GENERAL NEURAL NETWORKS ",
1632
+ "text_level": 1,
1633
+ "bbox": [
1634
+ 173,
1635
+ 577,
1636
+ 779,
1637
+ 608
1638
+ ],
1639
+ "page_idx": 11
1640
+ },
1641
+ {
1642
+ "type": "text",
1643
+ "text": "Neural networks are typically given real numbers as inputs and return real numbers as outputs. To accommodate complex numbers as in- and output, we devise a complex-valued version of various neural network layers i.e. complex-valued FastText with dense layer, CNN, and RNN. Unlike existing complex-valued neural networks (Trabelsi et al., 2017; Wolter & Yao, 2018), our feature layers are also converted into complex-valued layers. ",
1644
+ "bbox": [
1645
+ 173,
1646
+ 623,
1647
+ 825,
1648
+ 694
1649
+ ],
1650
+ "page_idx": 11
1651
+ },
1652
+ {
1653
+ "type": "text",
1654
+ "text": "Complex-valued FastText FastTest (Joulin et al., 2016) is a simple and efficient neural network architecture using a dense layer over the sum of all word embeddings for general text classification. For a linear dense layer, i.e., $\\boldsymbol z = \\mathrm { d e n s e } ( \\boldsymbol x + i \\boldsymbol y )$ , where $\\pmb { x } + i \\pmb { y }$ and $_ z$ denote the complex-valued in- and output, respectively. Let $\\pmb { W } = \\pmb { A } + i \\pmb { B }$ and $b = c + i d$ be complex-valued linear weights and bias, respectively. Then, the complex-valued dense layer is given by: ",
1655
+ "bbox": [
1656
+ 173,
1657
+ 708,
1658
+ 825,
1659
+ 780
1660
+ ],
1661
+ "page_idx": 11
1662
+ },
1663
+ {
1664
+ "type": "equation",
1665
+ "img_path": "images/53de9ce9bf8de49eeca107551940bd7611309416116e1ee648f96a3557cb0a0e.jpg",
1666
+ "text": "$$\nz = \\sigma \\left( A x - B y + c \\right) + i \\sigma ( B x + A y + d )\n$$",
1667
+ "text_format": "latex",
1668
+ "bbox": [
1669
+ 344,
1670
+ 785,
1671
+ 653,
1672
+ 803
1673
+ ],
1674
+ "page_idx": 11
1675
+ },
1676
+ {
1677
+ "type": "text",
1678
+ "text": "where $\\sigma$ is a real-valued activation function such as the sigmoid function. By rewriting (10) in matrix form (Trabelsi et al., 2017), we obtain: ",
1679
+ "bbox": [
1680
+ 174,
1681
+ 808,
1682
+ 821,
1683
+ 837
1684
+ ],
1685
+ "page_idx": 11
1686
+ },
1687
+ {
1688
+ "type": "equation",
1689
+ "img_path": "images/01faabd0975590a2a37566da11434014bfbc29f94dde966000f6cc151a5e403b.jpg",
1690
+ "text": "$$\n{ \\biggl [ } \\Re ( z ) { \\biggr ] } = { \\biggl [ } { \\sigma } ( A x - B y + c ) { \\biggr ] }\n$$",
1691
+ "text_format": "latex",
1692
+ "bbox": [
1693
+ 390,
1694
+ 840,
1695
+ 606,
1696
+ 876
1697
+ ],
1698
+ "page_idx": 11
1699
+ },
1700
+ {
1701
+ "type": "text",
1702
+ "text": "where, for $z = x + i y , \\Re ( z ) = x$ and $\\Im ( z ) = y$ . To save parameters and fairly compare with our real-valued baselines, the weights for real-part and imaginary-part input can be shared, i.e., $\\pmb { A } = \\pmb { B } , c = d$ . ",
1703
+ "bbox": [
1704
+ 174,
1705
+ 881,
1706
+ 825,
1707
+ 924
1708
+ ],
1709
+ "page_idx": 11
1710
+ },
1711
+ {
1712
+ "type": "text",
1713
+ "text": "Complex-valued CNN For the complex-valued version of the convolution operation Trabelsi et al. (2017), we similarly define a complex-valued convolution with separate real and imaginary kernels $\\pmb { A }$ and $\\textbf { { B } }$ , to compute convolutions on the real and imaginary parts of the input in Eq. 10. A complex-valued CNN network is constructed by stacking the operations based on a complex-valued convolution kernel, adding a complex dense layer in (10), and taking their norm as the final prediction in the last layer. ",
1714
+ "bbox": [
1715
+ 173,
1716
+ 103,
1717
+ 825,
1718
+ 188
1719
+ ],
1720
+ "page_idx": 12
1721
+ },
1722
+ {
1723
+ "type": "text",
1724
+ "text": "Complex-valued RNN The basic complex RNN formulation is: ",
1725
+ "bbox": [
1726
+ 173,
1727
+ 202,
1728
+ 607,
1729
+ 217
1730
+ ],
1731
+ "page_idx": 12
1732
+ },
1733
+ {
1734
+ "type": "equation",
1735
+ "img_path": "images/56b40debdb8bcfe755f8890fa267df347982b6635b593811567d82720a1931b1.jpg",
1736
+ "text": "$$\nh _ { t } ^ { C } = f \\left( W ^ { h } h _ { t - 1 } + W ^ { z } z _ { t } + b \\right)\n$$",
1737
+ "text_format": "latex",
1738
+ "bbox": [
1739
+ 385,
1740
+ 222,
1741
+ 612,
1742
+ 242
1743
+ ],
1744
+ "page_idx": 12
1745
+ },
1746
+ {
1747
+ "type": "text",
1748
+ "text": "where ${ \\boldsymbol { z } } _ { t }$ and $\\boldsymbol { h } _ { t }$ represent the complex-valued input and complex-value hidden state vectors at time $t , b$ is a complex-valued bias, $W ^ { h }$ and $W ^ { z }$ are complex-valued weight transitions for hidden state and input state, and $f \\left( z \\right) = \\sigma \\left( \\Re \\left( z \\right) \\right) + i \\sigma \\left( \\Im \\left( z \\right) \\right)$ is the activation function. The multiplication $W ^ { h } h _ { t - 1 }$ and $W ^ { z } z _ { t }$ is computed as defined in (10) above. Similarly, the complex-valued gates are used in LSTM via operations as in (12). In the final layer, a $l 2$ -norm operation is adopted to obtain a real-valued loss for backpropagation. ",
1749
+ "bbox": [
1750
+ 173,
1751
+ 247,
1752
+ 825,
1753
+ 332
1754
+ ],
1755
+ "page_idx": 12
1756
+ },
1757
+ {
1758
+ "type": "text",
1759
+ "text": "Complex-valued Transformer The main components in the Transformer are self-attention sublayers and position-wise feed-forward (FFN) sublayers. A self-attention sublayer employs $h$ attention heads and the concatenation of all heads is used as the output followed by a parameterized linear transformation. For a sequence embedded as complex-valued vector $i n p u t = \\{ \\bar { \\pmb { w } } _ { 1 } , \\pmb { w } _ { 2 } , . . . , \\pmb { w } _ { n } \\}$ , the output of each head is computed as a weighted sum of a linear transformation of the input sequence itself, namely ",
1760
+ "bbox": [
1761
+ 173,
1762
+ 345,
1763
+ 825,
1764
+ 429
1765
+ ],
1766
+ "page_idx": 12
1767
+ },
1768
+ {
1769
+ "type": "equation",
1770
+ "img_path": "images/46a7e39cd995f7ff8468017cfdf5c3ec1990a3339a362390a8b9beb91692c702.jpg",
1771
+ "text": "$$\no u t p u t _ { i } = \\sum _ { j } a _ { i , j } { \\pmb w } _ { j } { \\pmb W } ^ { V } ,\n$$",
1772
+ "text_format": "latex",
1773
+ "bbox": [
1774
+ 406,
1775
+ 428,
1776
+ 589,
1777
+ 462
1778
+ ],
1779
+ "page_idx": 12
1780
+ },
1781
+ {
1782
+ "type": "text",
1783
+ "text": "where ${ \\pmb w } _ { j }$ is a complex-valued vector and $W ^ { V }$ is a complex linear transformation; therefore outputi is also complex. Hence, output is a sequence of complex-valued vectors with the same shape as input. The weight coefficient, $a _ { i , j }$ , which is defined as in real-valued domain, is calculated as the softmax of the product between complex-valued query vectors and key vectors: $a _ { i , j } = \\mathrm { s o f t m a x } \\frac { e _ { i , j } } { \\sum _ { i = 1 } ^ { n } e _ { i , j } }$ and ",
1784
+ "bbox": [
1785
+ 173,
1786
+ 465,
1787
+ 825,
1788
+ 542
1789
+ ],
1790
+ "page_idx": 12
1791
+ },
1792
+ {
1793
+ "type": "equation",
1794
+ "img_path": "images/ddd7d4e72917a127a89ebd1ccac157624d13881d396572841bf2b40b7f9bc09e.jpg",
1795
+ "text": "$$\n{ e } _ { i , j } = \\sqrt { \\frac { \\Re ( z ) ^ { 2 } + \\Im ( z ) ^ { 2 } } { n } } , z = \\left( { w } _ { i } { W } ^ { Q } \\right) \\left( { w } _ { j } { W } ^ { K } \\right) ^ { \\dag } ,\n$$",
1796
+ "text_format": "latex",
1797
+ "bbox": [
1798
+ 320,
1799
+ 547,
1800
+ 676,
1801
+ 583
1802
+ ],
1803
+ "page_idx": 12
1804
+ },
1805
+ {
1806
+ "type": "text",
1807
+ "text": "$\\mathbf { Z }$ is a complex number since ${ \\pmb w } _ { i }$ and ${ \\pmb w } _ { j }$ are complex-valued vectors and $W ^ { Q } , W ^ { K }$ are complexvalued transformation. To extend another variant of Transformer called Transformer XL, we keep its original relative position embedding and additionally replace its word embedding with our proposed embedding. ",
1808
+ "bbox": [
1809
+ 173,
1810
+ 589,
1811
+ 825,
1812
+ 647
1813
+ ],
1814
+ "page_idx": 12
1815
+ },
1816
+ {
1817
+ "type": "text",
1818
+ "text": "Correspondingly, the FFN sublayer can easily be extended to a complex-valued version by replacing the real-valued layers with complex-valued ones. We use batch-normalization separately for the real and imaginary parts. ",
1819
+ "bbox": [
1820
+ 174,
1821
+ 652,
1822
+ 823,
1823
+ 695
1824
+ ],
1825
+ "page_idx": 12
1826
+ },
1827
+ {
1828
+ "type": "text",
1829
+ "text": "C IMPLEMENTATION OF THE PROPOSED EMBEDDING ",
1830
+ "text_level": 1,
1831
+ "bbox": [
1832
+ 174,
1833
+ 715,
1834
+ 625,
1835
+ 732
1836
+ ],
1837
+ "page_idx": 12
1838
+ },
1839
+ {
1840
+ "type": "text",
1841
+ "text": "Words functions are implemented in neural networks by storing the function parameters $\\{ r , \\omega , \\theta \\}$ and then construct the values based on the arguments. Based on the definition, the implementation of the proposed embedding can easily be implemented with only modifying the embedding layer. We list the basic code to construct our general embedding as below: ",
1842
+ "bbox": [
1843
+ 174,
1844
+ 747,
1845
+ 825,
1846
+ 803
1847
+ ],
1848
+ "page_idx": 12
1849
+ },
1850
+ {
1851
+ "type": "text",
1852
+ "text": "i m p o r t t o r c h \nimpor t math \nc l a s s ComplexNN ( t o r c h . nn . M o d ul e ) : d e f i n i t ( s e l f , o p t ) : s u p e r ( ComplexNN , s e l f ) . i n i t ( ) s e l f . word emb $=$ t o r c h . nn . E m b e d d i n g ( o p t . n t o k e n , o p t . d m o d e l ) s e l f . f r e q u e n c y e m b $=$ t o r c h . nn . E m b e d d i n g ( o p t . n t o k e n , o p t . d m o d e l ) s e l f . i n i t i a l p h a s e e m b $=$ t o r c h . nn . E m b e d d i n g ( o p t . n t o k e n , o p t . d m o d e l ) ",
1853
+ "bbox": [
1854
+ 174,
1855
+ 810,
1856
+ 852,
1857
+ 912
1858
+ ],
1859
+ "page_idx": 12
1860
+ },
1861
+ {
1862
+ "type": "image",
1863
+ "img_path": "images/e18d67190d27ad89d72343f0f7e580d4499ce23a054a7022eb0448e518ff1704.jpg",
1864
+ "image_caption": [
1865
+ "Figure 3: The distribution of the $\\delta _ { j }$ . Higher values mean that the word representations are more sensitive to the word positions. "
1866
+ ],
1867
+ "image_footnote": [],
1868
+ "bbox": [
1869
+ 320,
1870
+ 123,
1871
+ 655,
1872
+ 310
1873
+ ],
1874
+ "page_idx": 13
1875
+ },
1876
+ {
1877
+ "type": "text",
1878
+ "text": "d e f g e t e m b e d d i n g ( s e l f , x ) : ",
1879
+ "bbox": [
1880
+ 210,
1881
+ 376,
1882
+ 446,
1883
+ 390
1884
+ ],
1885
+ "page_idx": 13
1886
+ },
1887
+ {
1888
+ "type": "text",
1889
+ "text": "a m p l i t u d e $=$ s e l f . w o r d e m b ( x ) f r e q u e n c y $=$ s e l f . f r e q u e n c y e m b ( x ) s e l f . i n i t i a l p h a s e e m b . w e i g h t $=$ t o r c h . n n . P a r a m e t e r ( s e l f . i n i t i a l p h a s e e m $\\%$ ( $^ 2 \\ast$ m a t h . p i ) ) s e n t l e $\\mathbf { \\epsilon } _ { 1 } = \\mathbf { X }$ . s i z e $( - 1 )$ p o s s e q $=$ t o r c h . a r a n g e ( 1 , s e n t l e n + 1 , 1 . 0 , d e v i c e $=$ a m p l i t u d e . d e v i c e ) p o s s e q $=$ p o s s e q . u n s q u e e z e ( 0 ) . u n s q u e e z e $( - 1 )$ p o s s e q $=$ p o s s e q . r e p e a t ( [ x . s i z e ( 0 ) , 1 , a m p l i t u d e . s i z e ( − 1 ) ] ) d i m e n s i o n b a i s $=$ s e l f . i n i t i a l p h a s e e m b ( x ) e n c o u t p u t p h a s e $=$ t o r c h . mul ( p o s s e q , f r e q u e n c y ) $^ +$ d i m e n s i o n b a i s e n c o u t p u t r e a l $=$ a m p l i t u d e $^ *$ t o r c h . c o s ( e n c o u t p u t p h a s e ) e n c o u t p u t i m a g e $=$ a m p l i t u d e $^ *$ t o r c h . s i n ( e n c o u t p u t p h a s e ) # r e t u r n t o r c h . c a t ( [ e n c o u t p u t r e a l , e n c o u t p u t i m a g e ] , − 1 ) r e t u r n e n c o u t p u t r e a l , e n c o u t p u t i m a g e d e f f o r w a r d ( s e l f , $\\mathbf { X }$ ) : r e t u r n s e l f . g e t e m b e d d i n g ( x ) ",
1890
+ "bbox": [
1891
+ 210,
1892
+ 400,
1893
+ 874,
1894
+ 683
1895
+ ],
1896
+ "page_idx": 13
1897
+ },
1898
+ {
1899
+ "type": "text",
1900
+ "text": "Note that both the frequency vectors $\\omega$ and initial-phase vectors $\\pmb { \\theta }$ can be shared between words or dimensions, to save parameters. The proposed embedding can be also used in real-valued neural networks if one directly concatenates the real-part numbers and imaginary-part numbers as a doublesize real-valued vector; therefore it could easily be extended in any existing networks without any complex-valued components. For instance, it could be a good extension for Transformer based pretrained models like (Devlin et al., 2018) by enriching the feature layer. ",
1901
+ "bbox": [
1902
+ 173,
1903
+ 693,
1904
+ 825,
1905
+ 776
1906
+ ],
1907
+ "page_idx": 13
1908
+ },
1909
+ {
1910
+ "type": "text",
1911
+ "text": "D VISUALIZATION OF FREQUENCIES/PERIODS ",
1912
+ "text_level": 1,
1913
+ "bbox": [
1914
+ 173,
1915
+ 796,
1916
+ 571,
1917
+ 813
1918
+ ],
1919
+ "page_idx": 13
1920
+ },
1921
+ {
1922
+ "type": "text",
1923
+ "text": "After training, we obtain the frequency vector $\\omega$ for each word. For each word, the mean value of the absolute frequency values, i.e., $\\begin{array} { r } { \\delta _ { j } = \\frac { 1 } { | D | } \\sum _ { d = 1 } ^ { D } | \\omega _ { j , d } | } \\end{array}$ is considered as a metric to test the positional sensitivities of the word, since a period value could be negative during training. The density of the $\\delta _ { j }$ is shown in Fig. 3. ",
1924
+ "bbox": [
1925
+ 174,
1926
+ 827,
1927
+ 825,
1928
+ 888
1929
+ ],
1930
+ "page_idx": 13
1931
+ },
1932
+ {
1933
+ "type": "text",
1934
+ "text": "Words with the 50 greatest, and the 50 smallest, frequencies in the SST dataset are shown in Tab. 7. For the words with greatest frequencies, most of them are strong sentiment words like “worst” ",
1935
+ "bbox": [
1936
+ 174,
1937
+ 895,
1938
+ 821,
1939
+ 924
1940
+ ],
1941
+ "page_idx": 13
1942
+ },
1943
+ {
1944
+ "type": "text",
1945
+ "text": ",“stupid” and “powerful”; a reason for this may be that such words appear in many positions in many documents during training, and thus they are more sensitive to the positions. Conversely, there are fewer words expressing strong sentiment among words with smaller frequencies, as shown in the second row. ",
1946
+ "bbox": [
1947
+ 174,
1948
+ 103,
1949
+ 826,
1950
+ 159
1951
+ ],
1952
+ "page_idx": 14
1953
+ },
1954
+ {
1955
+ "type": "table",
1956
+ "img_path": "images/2d3112ebe37ae3445f9917a47031f8a67ac78b06bafa42d5c4d1684d7c0f1d0d.jpg",
1957
+ "table_caption": [
1958
+ "Table 7: Words with greatest frequencies and frequencies periods (based on $\\delta _ { j }$ ) in SST (a sentiment classification task), all words are converted to lower-case. The strong sentiment words are bold based on manual labeling. "
1959
+ ],
1960
+ "table_footnote": [],
1961
+ "table_body": "<table><tr><td>words</td><td></td></tr><tr><td>greatest frequencies in descending order</td><td>worst solid stupid powerful mess wonderful remarkable suffers intoxicating thoughtful rare captures portrait gem frontal terrific unique wannabe witty lousy pointless contrived none worse refreshingly charming inventive amazing junk incoherent refreshing mediocre unfunny thinks enjoyed heartbreaking delightfully crisp brilliant heart</td></tr><tr><td>smallest frequencies in ascending order</td><td>spirit perfectly nowhere mistake engrossing fashioned excellent unexpected wonderfully means slowly proposal schemes roiling juliette titles fabric superstar ah wow choreographed tastelessness beg fabulous muccino jacobi legendary jae rate example code sensation counter deaths hall eun drug mctiernan storylines cellophane wild motion ups trick comedy entertained mission frightening witnesses snoots liners african groan satisfaction calm saturday estranged holm refuses inquisitive</td></tr></table>",
1962
+ "bbox": [
1963
+ 173,
1964
+ 171,
1965
+ 913,
1966
+ 314
1967
+ ],
1968
+ "page_idx": 14
1969
+ }
1970
+ ]
parse/train/Hke-WTVtwr/Hke-WTVtwr_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/Hke-WTVtwr/Hke-WTVtwr_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/WigDnV-_Gq/WigDnV-_Gq.md ADDED
@@ -0,0 +1,303 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # BernNet: Learning Arbitrary Graph Spectral Filters via Bernstein Approximation
2
+
3
+ Mingguo He Renmin University of China mingguo@ruc.edu.cn
4
+
5
+ Zhewei Wei∗ Renmin University of China zhewei@ruc.edu.cn
6
+
7
+ Zengfeng Huang Fudan University huangzf@fudan.edu.cn
8
+
9
+ Hongteng $\mathbf { X } \mathbf { u } ^ { * }$ Renmin University of China hongtengxu@ruc.edu.cn
10
+
11
+ # Abstract
12
+
13
+ Many representative graph neural networks, e.g., GPR-GNN and ChebNet, approximate graph convolutions with graph spectral filters. However, existing work either applies predefined filter weights or learns them without necessary constraints, which may lead to oversimplified or ill-posed filters. To overcome these issues, we propose BernNet, a novel graph neural network with theoretical support that provides a simple but effective scheme for designing and learning arbitrary graph spectral filters. In particular, for any filter over the normalized Laplacian spectrum of a graph, our BernNet estimates it by an order- $K$ Bernstein polynomial approximation and designs its spectral property by setting the coefficients of the Bernstein basis. Moreover, we can learn the coefficients (and the corresponding filter weights) based on observed graphs and their associated signals and thus achieve the BernNet specialized for the data. Our experiments demonstrate that BernNet can learn arbitrary spectral filters, including complicated band-rejection and comb filters, and it achieves superior performance in real-world graph modeling tasks. Code is available at https://github.com/ivam-he/BernNet.
14
+
15
+ # 1 Introduction
16
+
17
+ Graph neural networks (GNNs) have received extensive attention from researchers due to their
18
+ excellent performance on various graph learning tasks such as social analysis [24, 17, 29], drug
19
+ discovery [12, 25], traffic forecasting [18, 3, 6], recommendation system [38, 32] and computer
20
+ vision [39, 4]. Recent studies suggest that many popular GNNs operate as polynomial graph spectral
21
+ filters [7, 13, 5, 16, 2, 35]. Specifically, we denote an undirected graph with node set $V$ and edge
22
+ set $E$ as $G = ( V , E )$ , whose adjacency matrix is A. Given a signal $\mathbf { x } = [ x ] \in R ^ { n }$ on the graph, $n = | V |$ weightshe diag, where is the symmetric normalizednother equivalent polynomial normalized adjacency matrix
23
+ $\scriptstyle \sum _ { k = 0 } ^ { K } w _ { k } \mathbf { L } ^ { k } \mathbf { x }$ $w _ { k }$ $\mathbf { L } = \mathbf { I } - \mathbf { D } ^ { - 1 / 2 } \mathbf { A } \mathbf { D } ^ { - 1 / 2 }$ $G$ $\mathbf { D }$ $\scriptstyle \sum _ { k = 0 } ^ { K } c _ { k } \mathbf { P } ^ { k } \mathbf { x }$ $\mathbf { P } = \mathbf { D } ^ { - 1 / 2 } \mathbf { A } \mathbf { D } ^ { - 1 / 2 }$ $c _ { k }$
24
+
25
+ ![](images/190ec5391113ac944665522e1adf4c8cf8fc31bf8e9a0938f191d278b12a49dd.jpg)
26
+ Figure 1: An illustration of the proposed BernNet.
27
+
28
+ We can broadly categorize the GNNs applying the above filtering operation into two classes, depending on whether they design the filter weights or learn them based on observed graphs. Some representative models in these two classes are shown below.
29
+
30
+ • The GNNs driven by designing filters: GCN [13] uses a simplified first-order Chebyshev polynomial, which is proven to be a low-pass filter [1, 31, 34, 41]. APPNP [14] utilizes Personalized PageRank (PPR) to set the filter weights and achieves a low-pass filter as well [15, 41]. GNN-LF/HF [41] designs filter weights from the perspective of graph optimization functions, which can simulate high- and low-pass filters.
31
+
32
+ • The GNNs driven by learning filters: ChebNet [7] approximates the filtering operation with Chebyshev polynomials, and learns a filter via trainable weights of the Chebyshev basis. GPR-GNN [5] learns a polynomial filter by directly performing gradient descent on the filter weights, which can derive high- or low-pass filters. ARMA [2] learns a rational filter via the family of Auto-Regressive Moving Average filters [21].
33
+
34
+ Although the above GNNs achieve some encouraging results in various graph modeling tasks, they still suffer from two major drawbacks. Firstly, most existing methods focus on designing or learning simple filters (e.g., low- and/or high-pass filters), while real-world applications often require much more complex filters such as band-rejection and comb filters. To the best of our knowledge, none of the existing work supports designing arbitrary interpretable spectral filters. The GNNs driven by learning filters can learn arbitrary filters in theory, but they cannot intuitively show what filters they have learned. In other words, their interpretability is poor. For example, GPR-GNN [5] learns the filter weights $w _ { k }$ ’s but only proves a small subset of the learnt weight sequences corresponds to low- or high-pass filters. Secondly, the GNNs often design their filters empirically or learn the filter weights without any necessary constraints. As a result, their filter weights often have poor controllability. For example, GNN-LF/HF [41] designs its filters with a complex and non-intuitive polynomial with difficult-to-tune hyperparameters. The multi-layer GCN/SGC [13, 31] leads to “ill-posed” filters (i.e., those deriving negative spectral responses). Additionally, the filters learned by GPR-GNN [5] or ChebNet [7] have a chance to be ill-posed as well.
35
+
36
+ To overcome the above issues, we propose a novel graph neural network called BernNet, which provides an effective algorithmic framework for designing and learning arbitrary graph spectral filters. As illustrated in Figure 1, for an arbitrary spectral filter $h : [ 0 , 2 ] \mapsto [ 0 , 1 ]$ over the spectrum of the symmetric normalized Laplacian $\mathbf { L }$ , our BernNet approximates $h$ by a $K$ -order Bernstein polynomial approximation, i.e., $\begin{array} { r } { \bar { h } ( \lambda ) = \sum _ { k = 0 } ^ { K } \theta _ { k } b _ { k } ^ { K } ( \lambda ) } \end{array}$ . The non-negative coefficients $\{ \theta _ { k } \} _ { k = 0 } ^ { K }$ of the Bernstein basis $\{ b _ { k } ^ { K } ( \lambda ) \} _ { k = 0 } ^ { K }$ work as the model parameter, which can be interpreted as $h ( 2 k / K )$ , $k = 0 , \ldots , K$ (i.e., the filter values uniformly sampled from [0, 2]). By designing or learning the $\theta _ { k }$ ’s, we can obtain various spectral filters, whose filtering operation can be formulated as $\begin{array} { r l } { ~ } & { { } \sum _ { k = 0 } ^ { K } \theta _ { k } \frac { 1 } { 2 ^ { K } } \binom { K } { k } ( 2 \mathbf { I } - \mathbf { L } ) ^ { K - k } \mathbf { L } ^ { k } \mathbf { x } } \end{array}$ , where $\mathbf { x }$ is the graph signal. We further demonstrate the rationality of our BernNet from the perspective of graph optimization — any valid polynomial filers, i.e., those polynomial functions mapping $[ 0 , 2 ]$ to $[ 0 , 1 ]$ , can always be expressed by our BernNet, and accordingly, the filters learned by our BernNet are always valid. Finally, we conduct experiments to demonstrate that 1) BernNet can learn arbitrary graph spectral filters (e.g., band-rejection, comb, low-band-pass, etc.), and 2) BernNet achieves superior performance on real-world datasets.
37
+
38
+ # 2 BernNet
39
+
40
+ # 2.1 Bernstein approximation of spectral filters
41
+
42
+ Given an arbitrary filter function $h : [ 0 , 2 ] \mapsto [ 0 , 1 ]$ , let $\mathbf { L } = \mathbf { U } \mathbf { A } \mathbf { U } ^ { T }$ denote the eigendecomposition of the symmetric normalized Laplacian matrix $\mathbf { L }$ , where $\mathbf { U }$ is the matrix of eigenvectors and $\Lambda =$ $d i a g [ \lambda _ { 1 } , . . . , \lambda _ { n } ]$ is the diagonal matrix of eigenvalues. We use
43
+
44
+ $$
45
+ h ( { \bf L } ) { \bf x } = { \bf U } h ( { \boldsymbol \Lambda } ) { \bf U } ^ { T } { \bf x } = { \bf U } d i a g [ h ( \lambda _ { 1 } ) , . . . , h ( \lambda _ { n } ) ] { \bf U } ^ { T } { \bf x }
46
+ $$
47
+
48
+ to denote a spectral filter on graph signal $\mathbf { x }$ . The key of our work is approximate $h ( \mathbf { L } )$ (or, equivalently, $h ( \lambda ) )$ . For this purpose, we leverage the Bernstein basis and Bernstein polynomial approximation defined below.
49
+
50
+ Definition 2.1 ( [10]). (Bernstein polynomial approximation) Given an arbitrary continuous function $f ( t )$ on $t \in [ 0 , 1 ]$ , the Bernstein polynomial approximation (of order $K$ ) for $f$ is defined as
51
+
52
+ $$
53
+ p _ { K } ( t ) : = \sum _ { k = 0 } ^ { K } \theta _ { k } \cdot b _ { k } ^ { K } ( t ) = \sum _ { k = 0 } ^ { K } f \left( \frac { k } { K } \right) \cdot \binom { K } { k } ( 1 - t ) ^ { K - k } t ^ { k } .
54
+ $$
55
+
56
+ Here, for $k = 0 , . . . , K$ $\begin{array} { r } { K , b _ { k } ^ { K } ( t ) = \binom { K } { k } ( 1 - t ) ^ { K - k } t ^ { k } } \end{array}$ is the $k$ -th Bernstein base, and $\textstyle \theta _ { k } = f ( { \frac { k } { K } } )$ is the function value at $k / K$ , which works as the coefficient of $b _ { k } ^ { K } ( t )$ .
57
+
58
+ Lemma 2.1 ( [10]). Given an arbitrary continuous function $f ( t )$ on $t \in [ 0 , 1 ] ,$ , let $p _ { K } ( t )$ denote the Bernstein approximation of $f ( t )$ as defined in Equation (2). We have $p _ { K } ( t ) f ( t )$ as $K \infty$ .
59
+
60
+ For the filter function $h : [ 0 , 2 ] \mapsto [ 0 , 1 ]$ , we let $\begin{array} { r } { t = \frac { \lambda } { 2 } } \end{array}$ and $f ( t ) = h ( 2 t )$ , so that the Bernstein polynomial approximation becomes applicable, where $\theta _ { k } = f ( k / K ) = h ( 2 k / K )$ and $b _ { k } ^ { K } ( t ) =$ $\begin{array} { r } { b _ { k } ^ { K } ( \frac { \lambda } { 2 } ) \ = \ \binom { K } { k } ( 1 - \frac { \lambda } { 2 } ) ^ { K - k } ( \frac { \lambda } { 2 } ) ^ { k } } \end{array}$ for $k = 1 , . . . , K$ . Consequently, we can approximate $h ( \lambda )$ by $\begin{array} { r } { p _ { K } ( \lambda / 2 ) = \sum _ { k = 0 } ^ { K } \theta _ { k } { \binom { K } { k } } ( 1 - \frac { \lambda } { 2 } ) ^ { K - k } \left( \frac { \lambda } { 2 } \right) ^ { k } = \sum _ { k = 0 } ^ { K } \theta _ { k } \frac { 1 } { 2 ^ { K } } { \binom { K } { k } } ( 2 - \lambda ) ^ { K - k } \lambda ^ { k } . } \end{array}$ , and Lemma 2.1 ensures that $p _ { K } ( \lambda / 2 ) \to h ( \lambda )$ as $K \infty$ .
61
+
62
+ Replacing $\{ h ( \lambda _ { i } ) \} _ { i = 1 } ^ { n }$ with $\{ p _ { K } ( \lambda _ { i } / 2 ) \} _ { i = 1 } ^ { n }$ , we approximate the spectral filter $h ( \mathbf { L } )$ in Equation (1) as Udiag $[ p _ { K } ( \lambda _ { 1 } / 2 ) , . . . , p _ { K } ( \lambda _ { n } / 2 ) ] \mathbf { U } ^ { T }$ and derive the proposed BernNet. In particular, given a graph signal $\mathbf { x }$ , the convolutional operator of our BernNet is defined as follows:
63
+
64
+ $$
65
+ \mathbf { z } = \underbrace { \mathbf { U } d i a g [ p _ { K } ( \lambda _ { 1 } / 2 ) , . . . , p _ { K } ( \lambda _ { n } / 2 ) ] \mathbf { U } ^ { T } } _ { \mathrm { B e r n N e t } } \mathbf { U } ^ { T } \mathbf { x } = \sum _ { k = 0 } ^ { K } \theta _ { k } { \frac { 1 } { 2 ^ { K } } } { \binom { K } { k } } ( 2 \mathbf { I } - \mathbf { L } ) ^ { K - k } \mathbf { L } ^ { k } \mathbf { x }
66
+ $$
67
+
68
+ where each coefficient $\theta _ { k }$ can be either set to $h ( 2 k / K )$ to approximate a predetermined filter $h$ , or learnt from the graph structure and signal in an end-to-end fashion. As a natural extension of Lemma 2.1, our BernNet owns the following proposition.
69
+
70
+ Proposition 2.1. For an arbitrary continuous filter function $h : [ 0 , 2 ] [ 0 , 1 ] ,$ , by setting $\theta _ { k } =$ $h ( 2 \bar { k } / K ) , k = 0 , \dots , K$ , the $\mathbf { z }$ in Equation (3) satisfies ${ \bf z } h ( { \bf L } ) { \bf x } $ as $K \infty$ .
71
+
72
+ Proof. According to the above derivation, we have $\begin{array} { r } { p _ { K } ( \lambda / 2 ) = \sum _ { k = 0 } ^ { K } \theta _ { k } \binom { K } { k } ( 1 - \frac { \lambda } { 2 } ) ^ { K - k } \left( \frac { \lambda } { 2 } \right) ^ { k } = } \end{array}$ $\begin{array} { r } { \sum _ { k = 0 } ^ { K } \theta _ { k } \frac { 1 } { 2 ^ { K } } \binom { K } { k } ( 2 - \lambda ) ^ { K - k } \lambda ^ { k } } \end{array}$ , and Lemma 2.1 ensures that $p _ { K } ( \lambda / 2 ) \to h ( \lambda )$ as $\theta _ { k } = h ( 2 k / K )$ and $K \infty$ .
73
+
74
+ Consequently, we have
75
+
76
+ $\mathbf { z } = \mathbf { U } d i a g [ p _ { K } ( \lambda _ { 1 } / 2 ) , . . . , p _ { K } ( \lambda _ { n } / 2 ) ] \mathbf { U } ^ { T } \mathbf { x } \to \mathbf { U } d i a g [ h ( \lambda _ { 1 } ) , . . . , h ( \lambda _ { n } ) ] \mathbf { U } ^ { T } \mathbf { x } = h ( \mathbf { L } )$ as $\theta _ { k } = h ( 2 k / K )$ and $K \infty$ .
77
+
78
+ # 2.2 Realizing existing filters with BernNet.
79
+
80
+ As shown in Proposition 2.1, our BernNet can approximate arbitrary continuous spectral filters with sufficient precision. Below we give some representative examples of how our BernNet exactly realizes existing filters that are commonly used in GNNs.
81
+
82
+ Table 1: Realizing commonly used filters with BernNet.
83
+
84
+ <table><tr><td>Filter types</td><td>Filter h(λ)</td><td>0k for k=0,...,K</td><td>Bernstein approximation pk()</td><td>BernNet</td></tr><tr><td>All-pass</td><td>1</td><td>0=1</td><td>1</td><td>I</td></tr><tr><td>Linear low-pass</td><td>1-&gt;/2</td><td>0=1-k/K</td><td>1-λ/2</td><td>1</td></tr><tr><td>Linear high-pass</td><td>入/2</td><td>0=k/K</td><td>入/2</td><td></td></tr><tr><td>Impulse low-pass</td><td>(入)</td><td>0=1and other 0k =0</td><td>(1-X/2)K</td><td></td></tr><tr><td>Impulse high-pass</td><td>8(入)</td><td>0K=1and other 0k =0</td><td>(入/2)K</td><td>美K</td></tr><tr><td>Impulse band-pass</td><td>8(入)</td><td>0K/2 =1and other 0k =0</td><td>(K2)(1-&gt;/2)K/2(/2)K/2</td><td>(K/2)(21-L)K/2LK/2</td></tr></table>
85
+
86
+ • All-pass filter $h ( \lambda ) = 1$ . We set $\theta _ { k } \ = \ 1$ for $k = 0 , \ldots , K$ , and the approximation $p _ { K } ( \frac { \lambda } { 2 } ) = 1$ is exactly the same with $h ( \lambda )$ . Accordingly, our BernNet becomes an identity matrix, which realizes the all-pass filter perfectly.
87
+
88
+ • Linear low-pass filter $h ( \lambda ) = 1 - \lambda / 2$ . We set $\theta _ { k } = 1 - k / K$ for $k = 0 , \ldots , K$ and obtain $p _ { K } ( \frac { \lambda } { 2 } ) = 1 - \lambda / 2$ . The BernNet becomes $\begin{array} { r } { \sum _ { k = 0 } ^ { K } \frac { ( K - k ) } { K } \frac { 1 } { 2 ^ { K } } \binom { K } { k } ( 2 \mathbf { I } - \mathbf { L } ) ^ { K - k } \mathbf { L } ^ { k } = \mathbf { I } - \frac { 1 } { 2 } \mathbf { L } } \end{array}$ which achieves the linear low-pass filter exactly. Note that $\begin{array} { r } { \mathbf { I } - \frac { 1 } { 2 } \mathbf { L } = \frac { 1 } { 2 } ( \mathbf { I } + \mathbf { P } ) } \end{array}$ is also the same as the graph convolutional network (GCN) before renormalization [13].
89
+
90
+ • Linear high-pass filter $h ( \lambda ) = \lambda / 2$ . Similarly, we can set $\theta _ { k } = k / K$ for $k = 0 , \ldots , K$ to get a perfect approximation $\begin{array} { r } { p _ { K } ( \frac { \lambda } { 2 } ) = \frac { \lambda } { 2 } } \end{array}$ , and the BernNet becomes $\scriptstyle { \frac { 1 } { 2 } } \mathbf { L }$ .
91
+
92
+ Note that even for those non-continuous spectral filters, e.g., the impulse low/high/band-pass filters, our BernNet can also provide good approximations (with sufficient large $K$ ).
93
+
94
+ • Impulse low-pass filter $h ( \lambda ) = \delta _ { 0 } ( \lambda )$ .† We set $\theta _ { 0 } = 1$ and $\theta _ { k } \ = \ 0$ for $k \neq 0$ , and $\begin{array} { r } { p _ { K } \bar { ( \frac { \lambda } { 2 } ) } = ( 1 - \frac { \bar { \lambda } } { 2 } ) ^ { K } } \end{array}$ . Accordingly, the BernNet becomes $\begin{array} { r } { \frac { 1 } { 2 ^ { K } } ( 2 \mathbf { I } - \mathbf { L } ) ^ { K } } \end{array}$ , deriving an $K$ -layer linear low-pass filter.
95
+
96
+ • Impulse high-pass filter $h ( \lambda ) = \delta _ { 2 } ( \lambda )$ . We set $\theta _ { K } = 1$ and $\theta _ { k } = 0$ for $k \neq K$ , and $\begin{array} { r } { p _ { K } ( \frac { \lambda } { 2 } ) = ( \frac { \lambda } { 2 } ) ^ { K } } \end{array}$ . The BernNet becomes $\scriptstyle { \frac { 1 } { 2 ^ { K } } } \mathbf { L } ^ { K }$ , i.e., an $K$ -layer linear high-pass filter.
97
+
98
+ • Impulse band-pass filter $h ( \lambda ) = \delta _ { 1 } ( \lambda )$ . Similarly, we set $\theta _ { K / 2 } = 1$ and $\theta _ { k } = 0$ for $k \neq$ $K / 2$ , and $\begin{array} { r } { p _ { K } ( \frac { \lambda } { 2 } ) = \binom { K } { K / 2 } ( 1 - \lambda / 2 ) ^ { K / 2 } ( \lambda / 2 ) ^ { K / 2 } } \end{array}$ . The BernNet becomes $\frac { 1 } { 2 ^ { K } } \binom { K } { K / 2 } ( 2 \mathbf { I } -$ $\mathbf { L } ) ^ { K / 2 } \mathbf { L } ^ { K / 2 }$ , which can be explained as stacking a $K / 2$ -layer linear low-pass filter and a $K / 2$ -layer linear high-pass filter. Obviously, $K$ should be an even number in this case.
99
+
100
+ Table 1 summarizes the design of the BernNet for the filters above. We can find that an appealing advantage of our BernNet is that its coefficients are highly correlated with the spectral property of the target filter. In particular, we can determine to pass or reject the spectral signal with $\textstyle \lambda \approx { \frac { { \bar { 2 } } k } { K } }$ by using a large or small property provid $\theta _ { k }$ because each Bernstein base useful guidance when designi $b _ { k } ^ { K } ( \lambda )$ corresponds to a “bump” located at rs, which enhances the interpretabili $\textstyle { \frac { 2 k } { K } }$ . This of our BernNet.
101
+
102
+ # 2.3 Learning complex filters with BernNet
103
+
104
+ Besides designing the above typical filters, our BernNet can express more complex filters, such as band-pass, band-rejection, comb, low-band-pass filters, etc. Moreover, given the graph signals before and after applying such filters (i.e., the x’s and the corresponding $\mathbf { z }$ ’s), our BernNet can learn their approximations in an end-to-end manner. Specifically, given the pairs $\{ \mathbf { x } , \mathbf { z } \}$ , we learn the coefficients $\{ \theta _ { k } \} _ { k = 0 } ^ { K }$ of the BernNet by gradient descent. More implementation details can be found at the experimental section below. Figure 2 illustrates the four complex filters and the approximations we learned (The low-band pass filter is $h ( \lambda ) = I _ { [ 0 , 0 . 5 ] } ( \lambda ) + \hat { \exp { ( - 1 0 0 ( \lambda - 0 . 5 ) ^ { 2 } ) } } \hat { I } _ { ( 0 . 5 , 1 ) } ( \lambda ) +$ $\exp { ( - 5 0 ( \lambda - 1 . 5 ) ^ { 2 } ) } I _ { [ 1 , 2 ] } ( \lambda )$ , where $I _ { \Omega } ( \lambda ) = 1$ when $\lambda \in \Omega$ , otherwise $I _ { \Omega } ( \lambda ) = 0 )$ . In general, our BernNet can learn a smoothed approximation of these complex filters, and the approximation precision improves with the increase of the order $K$ . Note that although the BernNet cannot pinpoint the exact peaks of the comb filter or drop to 0 for the valleys of comb or low-band-pass filters due to the limitation of $K$ , it still significantly outperforms other GNNs for learning such complex filters.
105
+
106
+ ![](images/79be059be4cf245f9f112beb0e01c5cd45d48d8fea28b73516bb37b15d002002.jpg)
107
+ Figure 2: Illustrations of four complex filters and their approximations learnt by BernNet.
108
+
109
+ # 3 BernNet in the Lens of Graph Optimization
110
+
111
+ In this section, we motivate BernNet from the perspective of graph optimization. In particular, we show that any polynomial filter that attempts to approximate a valid filter has to take the form of BernNet.
112
+
113
+ # 3.1 A generalized graph optimization problem
114
+
115
+ Given a $n$ -dimensional graph signal $\mathbf { x }$ , we consider a generalized graph optimization problem
116
+
117
+ $$
118
+ \operatorname* { m i n } _ { \mathbf { z } } f ( \mathbf { z } ) = ( 1 - \alpha ) \mathbf { z } ^ { T } \boldsymbol { \gamma } ( \mathbf { L } ) \mathbf { z } + \alpha \| \mathbf { z } - \mathbf { x } \| _ { 2 } ^ { 2 }
119
+ $$
120
+
121
+ where $\alpha \in [ 0 , 1 )$ is a trade-off parameter, $\mathbf { z } \in R ^ { n }$ denotes the propagated representation of the input graph signal $\mathbf { x }$ , and $\gamma ( \mathbf { L } )$ denotes an energy function of $\mathbf { L }$ , determining the rate of propagation [28]. Generally, $\gamma ( \cdot )$ operates on the spectral of $\mathbf { L }$ , and we have $\gamma ( { \bf L } ) = { \bf U } { \bar { d } } i a g [ \gamma ( \lambda _ { 1 } ) , \dot { \bf \omega } . \dot { \bf \omega } , \dot { \gamma ( \lambda _ { n } ) } ] { \bf U } ^ { T }$ .
122
+
123
+ We can model the polynomial filtering operation of existing GNNs with the optimal solution of Equation (4). For example, if we set $\begin{array} { r } { \gamma ( \mathbf { L } ) = \mathbf { L } } \end{array}$ , then the optimization function (4) becomes $f ( \mathbf { \bar { z } } ) = ( 1 - \alpha ) \mathbf { z } ^ { T } \mathbf { L } \mathbf { z } + \acute { \alpha } \| \mathbf { z } - \mathbf { x } \| _ { 2 } ^ { 2 }$ , a well-known convex graph optimization function proposed by Zhou et al. [40]. $f ( \mathbf { z } )$ takes the minimum when the derivativ e ∂f(z)z = 2(1 − α)Lz + 2α (z − x) = 0, which solves to
124
+
125
+ $$
126
+ \mathbf { z } ^ { * } = \alpha \left( \mathbf { I } - ( 1 - \alpha ) ( \mathbf { I } - \mathbf { L } ) \right) ^ { - 1 } \mathbf { x } = \sum _ { k = 0 } ^ { \infty } \alpha ( 1 - \alpha ) ^ { k } \left( \mathbf { I } - \mathbf { L } \right) ^ { k } \mathbf { x } = \sum _ { k = 0 } ^ { \infty } \alpha ( 1 - \alpha ) ^ { k } \mathbf { P } ^ { k } \mathbf { x } .
127
+ $$
128
+
129
+ By taking a suffix sum $\begin{array} { r } { \sum _ { k = 0 } ^ { K } \alpha ( 1 - \alpha ) ^ { k } \mathbf { P } ^ { k } \mathbf { x } } \end{array}$ , we obtain the polynomial filtering operation for APPNP [14]. Zhu et al. [41] further show that GCN [13], DAGNN [19], and JKNet [36] can be interpreted by the optimization function (4) with $\gamma ( \mathbf { L } ) = \mathbf { L }$ .
130
+
131
+ The generalized form of Equation (4) allows us to simulate more complex polynomial filtering operation. For example, let $\alpha = 0 . 5$ and $\gamma ( \mathbf { L } ) = e ^ { t \mathbf { L } } - \mathbf { I }$ , a heat kernel with $t$ as the temperature parameter. Then $f ( \mathbf { z } )$ takes the minimum when the derivative $\begin{array} { r } { \frac { \partial f ( \mathbf { z } ) } { \partial \mathbf { z } } = \left( e ^ { t \mathbf { L } } - \mathbf { I } \right) \mathbf { z } + \mathbf { z } - \mathbf { x } = \mathbf { 0 } } \end{array}$ , which solves to
132
+
133
+ $$
134
+ \mathbf { z } ^ { * } = e ^ { - t \mathbf { L } } \mathbf { x } = e ^ { - t ( \mathbf { I } - \mathbf { P } ) } \mathbf { x } = \sum _ { k = 0 } ^ { \infty } e ^ { - t } \frac { t ^ { k } } { k ! } \mathbf { P } ^ { k } \mathbf { x } .
135
+ $$
136
+
137
+ By taking a suffix sum $\textstyle \sum _ { k = 0 } ^ { K } e ^ { - t } { \frac { t ^ { k } } { k ! } } \mathbf { P } ^ { k } \mathbf { x }$ , we obtain the polynomial filtering operation for the heat kernal based GNN such as GDC [15] and GraphHeat [34].
138
+
139
+ # 3.2 Non-negative constraint on polynomial filters
140
+
141
+ A natural question is that, does an arbitrary energy function $\gamma ( \mathbf { L } )$ correspond to a valid or ill-posed spectral filter? Conversely, does any polynomial filtering operation $\scriptstyle \sum _ { k = 0 } ^ { K } w _ { k } \mathbf { L } ^ { k } \mathbf { x }$ correspond to the optimal solution of the optimization function (4) for some energy function $\gamma ( \mathbf { L } )$ ?
142
+
143
+ As it turns out, there is a “minimum requirement” for the energy function $\gamma ( \mathbf { L } )$ ; $\gamma ( \mathbf { L } )$ has to be positive semidefinite. In particular, if $\gamma ( \mathbf { L } )$ is not positive semidefinite, then the optimization function $f ( \mathbf { z } )$ is not convex, and the solution to $\begin{array} { r } { \frac { \partial f ( \mathbf { z } ) } { \partial \mathbf { z } } = 0 } \end{array}$ may corresponds to a saddle point. Furthermore, without the positive semidefinite constraint on $\gamma ( \mathbf { L } )$ , $f ( \mathbf { z } )$ may goes to $- \infty$ as we set $\mathbf { z }$ to be a multiple of the eigenvector corresponding to the negative eigenvalue.
144
+
145
+ Non-negative polynomial filters. Given a positive semidefinite energy function $\gamma ( \mathbf { L } )$ , we now consider how the corresponding polynomial filtering operatio n PKk=0 wkLkx should look like. Recall that we assume $\boldsymbol \gamma ( \mathbf { L } ) = \mathbf { U } d i a g [ \gamma ( \lambda _ { 1 } ) , . . . , \gamma ( \lambda _ { n } ) ] \mathbf { U } ^ { T }$ . By the positive semidefinite constraint, we have $\gamma ( \lambda ) \geq 0$ for $\lambda \in [ 0 , 2 ]$ . Since the objective function $f ( \mathbf { z } )$ is convex, it takes the minimum when $\begin{array} { r } { \frac { \partial f ( \mathbf { z } ) } { \partial \mathbf { z } } = 2 ( 1 - \alpha ) \gamma ( \mathbf { L } ) \mathbf { z } + 2 \alpha \left( \mathbf { z } - \mathbf { x } \right) = \mathbf { 0 } } \end{array}$ . Accordingly, the optimum $z ^ { * }$ can be derived as
146
+
147
+ $$
148
+ \alpha \left( \alpha \mathbf { I } + ( 1 - \alpha ) \gamma ( \mathbf { L } ) \right) ^ { - 1 } \mathbf { x } = \mathbf { U } d i a g \left[ \frac { \alpha } { \alpha + ( 1 - \alpha ) \gamma ( \lambda _ { 1 } ) } , . . . , \frac { \alpha } { \alpha + ( 1 - \alpha ) \gamma ( \lambda _ { n } ) } \right] \mathbf { U } ^ { T } \mathbf { x } .
149
+ $$
150
+
151
+ Let h(λ) = αα+(1−α)γ(λ) denote the exact spectral filter, and $\begin{array} { r } { g ( \lambda ) = \sum _ { k = 0 } ^ { K } w _ { k } \lambda ^ { k } } \end{array}$ denote a polynomial approximation of $h ( \lambda )$ (e.g. the suffix sum of $h ( \lambda )$ ’s taylor expansion). Since $\gamma ( \lambda ) \geq 0$ when the polynomial filter $\lambda \in [ 0 , 2 ]$ , we have $\begin{array} { r } { 0 \leq \dot { h } ( \lambda ) \leq \frac { \alpha } { \alpha + ( 1 - \alpha ) \cdot 0 } = 1 } \end{array}$ $\begin{array} { r } { g ( \lambda ) = \sum _ { k = 0 } ^ { K } w _ { k } \lambda ^ { k } } \end{array}$ 0 also satisfies for $\lambda \in [ 0 , 2 ]$ $0 \leq g ( \lambda ) \leq 1$ . Consequently, it is natural to assume .
152
+
153
+ Constraint 3.1. Assuming the energy function $\gamma ( \mathbf { L } )$ is positive semidefinite, a polynomial filter $\begin{array} { r } { g ( \lambda ) = \sum _ { k = 0 } ^ { K } w _ { k } \lambda ^ { k } } \end{array}$ approximating the optimal solution to Equation (4) has to satisfy
154
+
155
+ $$
156
+ 0 \leq g ( \lambda ) = \sum _ { k = 0 } ^ { K } w _ { k } \lambda ^ { k } \leq 1 , \forall \lambda \in [ 0 , 2 ] .
157
+ $$
158
+
159
+ While Constraint 3.1 seems to be simple and intuitive, some of the existing GNN may not satisfies this constraint. For example, GCN uses $\mathbf { \bar { z } } = \mathbf { P x } = \left( \mathbf { I } - \mathbf { L } \right) \mathbf { x }$ , which corresponds to a polynomial filter $g ( \lambda ) = 1 - \lambda$ that takes negative value when $\lambda > 1$ , violating Constraint 3.1. As shown in [31], the renormalization trick $\tilde { \mathbf { P } } = \left( \mathbf { I } + \mathbf { D } \right) ^ { - 1 / 2 } \left( \mathbf { I } + \mathbf { A } \right) \left( \mathbf { I } + \mathbf { D } \right) ^ { - 1 / 2 }$ shrinks the spectral and thus reliefs the problem. However, $g ( \lambda )$ may still take negative value as the maximum eigenvalue of $\tilde { \mathbf { L } } = \mathbf { I } - \tilde { \mathbf { P } }$ is still larger than 1.
160
+
161
+ # 3.3 Non-negative polynomials and Bernstein basis
162
+
163
+ Constraint 3.1 motivates us to design polynomial filters g(λ) = PKk=0 wkλk such that 0 ≤ g(λ) ≤ 1 when . The part is trivial, as we can always rescale each by a factor of $\scriptstyle \sum _ { k = 0 } ^ { K } | w _ { k } | 2 ^ { k }$ . The $g ( \lambda ) \geq 0$ part, however, requires more elaboration. Note that we can not simply set $w _ { k } \geq 0$ for each $k = 0 \ldots , K$ , since it is shown in [5] that such polynomials only correspond to low-pass filters.
164
+
165
+ As it turns out, the Bernstein basis has the following nice property: a polynomial that is non-negative on a certain interval can always be expressed as a non-negative linear combination of Bernstein basis. Specifically, we have the following lemma.
166
+
167
+ Lemma 3.1 ([23]). Assume a polynomial $\textstyle p ( x ) = \sum _ { k = 0 } ^ { K } \theta _ { k } x ^ { k }$ satisfies $p ( x ) \geq 0$ for $x \in [ 0 , 1 ]$ . Then there exists a sequence of non-negative coefficients $\theta _ { k }$ , ${ \bf \ddot { \boldsymbol { k } } } = 0 , \dots , K$ , such that
168
+
169
+ $$
170
+ p ( x ) = \sum _ { k = 0 } ^ { K } \theta _ { k } b _ { k } ^ { K } ( x ) = \sum _ { k = 0 } ^ { K } \theta _ { k } \binom { K } { k } ( 1 - x ) ^ { K - k } x ^ { k }
171
+ $$
172
+
173
+ Lemma 3.1 suggests that to approximate a valid filter, the polynomial filter $g ( \lambda )$ has to be a nonnegative linear combination of Bernstein basis. Specifically, by setting $x = \lambda / 2$ , the filter $g ( \lambda )$ that satisfies $g ( \lambda ) \geq 0$ for $\lambda \in [ 0 , 2 ]$ can be expressed as
174
+
175
+ $$
176
+ g ( \lambda ) : = p \left( \frac { \lambda } { 2 } \right) = \sum _ { k = 0 } ^ { K } \theta _ { k } \frac { 1 } { 2 ^ { K } } \binom { K } { k } ( 2 - \lambda ) ^ { K - k } \lambda ^ { k } .
177
+ $$
178
+
179
+ Consequently, any valid polynomial filter that approximate the optimal solution of (4) with positive semidefinite energy function $\gamma ( \mathbf { L } )$ has to take the following form: $\begin{array} { r } { \mathbf { z } = \sum _ { k = 0 } ^ { K } \theta _ { k } \frac { 1 } { 2 ^ { K } } \binom { \bar { K } } { k } ( 2 \mathbf { I } - } \end{array}$ $\mathbf { L } ) ^ { K - k } \mathbf { L } ^ { k } \mathbf { x }$ . This observation motivates our BernNet from the perspective of graph optimization — any valid polynomial filers, i.e., the $g : [ 0 , 2 ] \mapsto [ 0 , 1 ]$ , can always be expressed by BernNet, and accordingly, the filters learned by our BernNet are always valid.
180
+
181
+ ![](images/a04bbe15dede6bfda46a24f4347c73fa94999d261b7cfd0556e6ed2a7fcce68c.jpg)
182
+ Figure 3: A input image and the filtering results.
183
+
184
+ Table 2: Average sum of squared error and $R ^ { 2 }$ score in parentheses.
185
+
186
+ <table><tr><td></td><td>Low-pass</td><td>High-pass</td><td>Band-pass</td><td>Band-rejection</td><td>Comb</td></tr><tr><td></td><td>exp(-10x2)</td><td>1-exp(-10x²)</td><td>exp(-10(λ -1)2)</td><td>1 -exp(-10(λ-1)²)</td><td>|sin(πλ)l</td></tr><tr><td>GCN</td><td>3.4799(.9872)</td><td>67.6635(.2364)</td><td>25.8755(.1148)</td><td>21.0747(.9438)</td><td>50.5120(.2977)</td></tr><tr><td>GAT</td><td>2.3574(.9905)</td><td>21.9618(.7529)</td><td>14.4326(.4823)</td><td>12.6384(.9652)</td><td>23.1813(.6957)</td></tr><tr><td>GPR-GNN</td><td>0.4169(.9984)</td><td>0.0943(.9986)</td><td>3.5121(.8551)</td><td>3.7917(.9905)</td><td>4.6549(.9311)</td></tr><tr><td>ARMA</td><td>1.8478(.9932)</td><td>1.8632(.9793)</td><td>7.6922(.7098)</td><td>8.2732(.9782)</td><td>15.1214(.7975)</td></tr><tr><td>ChebNet</td><td>0.8220(.9973)</td><td>0.7867(.9903)</td><td>2.2722(.9104)</td><td>2.5296(.9934)</td><td>4.0735(.9447)</td></tr><tr><td>BernNet</td><td>0.0314(.9999)</td><td>0.0113(.9999)</td><td>0.0411(.9984)</td><td>0.9313(.9973)</td><td>0.9982(.9868)</td></tr></table>
187
+
188
+ # 4 Related Work
189
+
190
+ Graph neural networks (GNNs) can be broadly divided into spectral-based GNNs and spatial-based GNNs [33].
191
+
192
+ Spectral-based GNNs design spectral graph filters in the spectral domain. ChebNet [7] uses Chebyshev polynomial to approximate a filter. GCN [13] simplifies the Chebyshev filter with the first-order approximation. GraphHeat [34] uses heat kernel to design a graph filter. APPNP [14] utilizes Personalized PageRank (PPR) to set the filter weights. GPR-GNN [5] learns the polynomial filters via gradient descent on the polynomial coefficients. ARMA [2] learns a rational filter via the family of Auto-Regressive Moving Average filters [21]. AdaGNN [9] learns simple filters across multiple layers with a single parameter for each feature channel at each layer. As aforementioned, these methods mainly focus on designing low- or high-pass filters or learning filters without any constraints, which may lead to misspecified even ill-posed filters.
193
+
194
+ On the other hand, spatial-based GNNs directly propagate and aggregate graph information in the spatial domain. From this perspective, GCN [13] can be explained as the aggregation of the one-hop neighbor information on the graph. GAT [30] uses the attention mechanism to learn aggregation weights. Recently, Balcilar et al. [1] bridge the gap between spectral-based and spatial-based GNNs and unify GNNs in the same framework. Their work shows that the GNNs can be interpreted as sophisticated data-driven filters. This motivates the design of the proposed BernNet, which can learn arbitrary non-negative spectral filters from real-world graph signals.
195
+
196
+ # 5 Experiments
197
+
198
+ In this section, we conduct experiments to evaluate BernNet’s capability to learn arbitrary filters as well as the performance of BernNet on real datasets. All the experiments are conducted on a machine with an NVIDIA TITAN V GPU (12GB memory), Intel Xeon CPU $( 2 . 2 0 \mathrm { G H z } )$ , and 512GB of RAM.
199
+
200
+ # 5.1 Learning filters from the signal
201
+
202
+ We conduct an empirical analysis on 50 real images with the resolution of $1 0 0 \times 1 0 0$ from the Image Processing Toolbox in Matlab. We conduct independent experiments on these 50 images and report the average of the evaluation index. Following the experimental setting in [1], we regard each image as a 2D regular 4-neighborhood grid graph. The graph structure translates to an 1 $) , 0 0 0 \times 1 0 , 0 0 0$ adjacency matrix while the pixel intensity translates to a 10, 000-dimensional signal vector.
203
+
204
+ Table 3: Dataset statistics.
205
+
206
+ <table><tr><td></td><td>Cora</td><td>CiteSeer</td><td>PubMed</td><td>Computers</td><td>Photo</td><td>Chameleon</td><td>Squirrel</td><td>Actor</td><td>Texas</td><td>Cornell</td></tr><tr><td>Nodes</td><td>2708</td><td>3327</td><td>19717</td><td>13752</td><td>7650</td><td>2277</td><td>5201</td><td>7600</td><td>183</td><td>183</td></tr><tr><td>Edges</td><td>5278</td><td>4552</td><td>44324</td><td>245861</td><td>119081</td><td>31371</td><td>198353</td><td>26659</td><td>279</td><td>277</td></tr><tr><td>Features</td><td>1433</td><td>3703</td><td>500</td><td>767</td><td>745</td><td>2325</td><td>2089</td><td>932</td><td>1703</td><td>1703</td></tr><tr><td>Classes</td><td>7</td><td>6</td><td>5</td><td>10</td><td>8</td><td>5</td><td>5</td><td>5</td><td>5</td><td>5</td></tr></table>
207
+
208
+ For each of the 50 images, we apply 5 different filters (low-pass, high-pass, band-pass, band-rejection and comb) to the spectral domain of its signal. The formula of each filter is shown in Table 2. Recall that applying a low-pass filter $\exp ( - 1 0 \lambda ^ { 2 } )$ to the spectral domain $\mathbf { L } = \mathbf { U } d i a g \left[ \lambda _ { 1 } , \ldots , \lambda _ { n } \right] \mathbf { U } ^ { \top }$ means applying Udiag $\left[ \exp ( - 1 0 \lambda _ { 1 } ^ { 2 } ) , \dots , \exp ( - 1 0 \lambda _ { n } ^ { 2 } ) \right] \mathbf { U } ^ { \top }$ to the graph signal. Figure 3 shows the one of the input image and the corresponding filtering results.
209
+
210
+ In this task, we use the original graph signal as the input and the filtering signal to supervise the training process. The goal is to minimize the square error between output and the filtering signal by learning the correct filter. We evaluate BernNet against five popular GNN models: GCN [13], GAT [30], GPR-GNN [5], ARMA [2] and ChebNet [7]. To ensure fairness, we use two convolutional units and a linear output layer for all models. We train all models with approximately $2 \mathrm { k }$ trainable parameters and tune the hidden units to ensure they have similar parameters. Following [1], we discard any regularization or dropout and simply force the GNN to learn the input-output relation. For all models, we set the maximum number of epochs to 2000 and stop the training if the loss does not drop for 100 consecutive times and use Adam optimization with a 0.01 learning rate without decay. Models do not use the position information of the picture pixels. We use a mask to cover the edge nodes of the picture, so the problem can be regarded as a simple regression problem. For BernNet, we use a two-layer model, with each layer sharing the same set of $\theta _ { k }$ for $k = 0 , \ldots , K$ and set $K = 1 0$ . For GPR-GNN, we use the officially released code (see the supplementary materials for URL and commit numbers) and set the order of polynomial filter $K = 1 0$ . Other baseline models are based on Pytorch Geometric implementation [11]. The more detailed experiments setting can be found in the Appendix.
211
+
212
+ Table 2 shows the average of the sum of squared error (lower the better) and the $R ^ { 2 }$ scores (higher the better). We first observe that GCN and GAT can only handle low-pass filters, which concurs with the theoretical analysis in [1]. GPR-GNN, ARMA and ChebNet can learn different filters from the signals. However, BernNet consistently outperformed these models by a large margin on all tasks in terms of both metrics. We attribute this quality to BernNet’s ability to tune the coefficients $\theta _ { k }$ ’s, which directly correspond to the uniformly sampled filter values.
213
+
214
+ # 5.2 Node classification on real-world datasets
215
+
216
+ We now evaluate the performance of BernNet against the competitors on real-world datasets. Following [5], we include three citation graph Cora, CiteSeer and PubMed [27, 37], and the Amazon co-purchase graph Computers and Photo [20]. As shown in [5] these 5 datasets are homophilic graphs on which the connected nodes tend to share the same label. We also include the Wikipedia graph Chameleon and Squirrel [26], the Actor co-occurrence graph, and webpage graphs Texas and Cornell from WebKB‡ [22]. These 5 datasets are heterophilic datasets on which connected nodes tend to have different labels. We summarize the statistics of these datasets in Table 3.
217
+
218
+ Following [5], we perform full-supervised node classification task with each model, where we randomly split the node set into train/validation/test set with ratio $6 0 \% / 2 0 \% / 2 0 \%$ . For fairness, we generate 10 random splits by random seeds and evaluate all models on the same splits, and report the average metric for each model.
219
+
220
+ We compare BernNet with 6 baseline models: MLP, GCN [13], GAT [30], APPNP [14], ChebNet [7], and GPR-GNN [5]. For GPR-GNN, we use the officially released code (see the supplementary materials for URL and commit numbers) and set the order of polynomial filter $K = 1 0$ . For other models, we use the corresponding Pytorch Geometric library implementations [11]. For BernNet, we
221
+
222
+ ![](images/765778b1d4ff270459c69b13aef9961eb2a095d359a571028f9ab9fa76f0416a.jpg)
223
+ Figure 4: Filters learnt from real-world datasets by BernNet.
224
+
225
+ Table 4: Results on real world benchmark datasets: Mean accuracy $( \% ) \pm 9 5 \%$ confidence interval.
226
+
227
+ <table><tr><td></td><td>GCN</td><td>GAT</td><td>APPNP</td><td>MLP</td><td>ChebNet</td><td>GPR-GNN</td><td>BernNet</td></tr><tr><td>Cora</td><td>87.14±1.01</td><td>88.03±0.79</td><td>88.14±0.73</td><td>76.96±0.95</td><td>86.67±0.82</td><td>88.57±0.69</td><td>88.52±0.95</td></tr><tr><td>CiteSeer</td><td>79.86±0.67</td><td>80.52±0.71</td><td>80.47±0.74</td><td>76.58±0.88</td><td>79.11±0.75</td><td>80.12±0.83</td><td>80.09±0.79</td></tr><tr><td>PubMed</td><td>86.74±0.27</td><td>87.04±0.24</td><td>88.12±0.31</td><td>85.94±0.22</td><td>87.95±0.28</td><td>88.46±0.33</td><td>88.48±0.41</td></tr><tr><td>Computers</td><td>83.32±0.33</td><td>83.32±0.39</td><td>85.32±0.37</td><td>82.85±0.38</td><td>87.54±0.43</td><td>86.85±0.25</td><td>87.64±0.44</td></tr><tr><td>Photo</td><td>88.26±0.73</td><td>90.94±0.68</td><td>88.51±0.31</td><td>84.72±0.34</td><td>93.77±0.32</td><td>93.85±0.28</td><td>93.63±0.35</td></tr><tr><td>Chameleon</td><td>59.61±2.21</td><td>63.13±1.93</td><td>51.84±1.82</td><td>46.85±1.51</td><td>59.28±1.25</td><td>67.28±1.09</td><td>68.29±1.58</td></tr><tr><td>Actor</td><td>33.23±1.16</td><td>33.93±2.47</td><td>39.66±0.55</td><td>40.19±0.56</td><td>37.61±0.89</td><td>39.92±0.67</td><td>41.79±101</td></tr><tr><td>Squirrel</td><td>46.78±0.87</td><td>44.49±0.88</td><td>34.71±0.57</td><td>31.03±1.18</td><td>40.55±0.42</td><td>50.15±1.92</td><td>51.35±0.73</td></tr><tr><td>Texas</td><td>77.38±3.28</td><td>80.82±2.13</td><td>90.98±1.64</td><td>91.45±1.14</td><td>86.22±2.45</td><td>92.95±1.31</td><td>93.12±0.65</td></tr><tr><td>Cornell</td><td>65.90±4.43</td><td>78.21±2.95</td><td>91.81±1.96</td><td>90.82±1.63</td><td>83.93±2.13</td><td>91.37±1.81</td><td>92.13±1.64</td></tr></table>
228
+
229
+ use the following propagation process:
230
+
231
+ $$
232
+ \mathbf { Z } = \sum _ { k = 0 } ^ { K } \theta _ { k } \frac { 1 } { 2 ^ { K } } \binom { K } { k } ( 2 \mathbf { I } - \mathbf { L } ) ^ { K - k } \mathbf { L } ^ { k } f \left( \mathbf { X } \right) ,
233
+ $$
234
+
235
+ where $f ( \mathbf { X } )$ is a 2-layer MLP with 64 hidden units on the feature matrix $\mathbf { X }$ . Note that this propagation process is almost identical to that of APPNP or GPR-GNN. The only difference is that we substitute the Generalized PageRank polynomial with Bernstein polynomial. We set the $K = 1 0$ and use different learning rate and dropout for the linear layer and the propagation layer. For all models, we optimal leaning rate over $\{ 0 . 0 \bar { 0 } 1 , 0 . 0 0 2 , 0 . 0 1 , 0 . 0 5 \}$ and weight decay $\{ 0 . 0 , \dot { 0 } . 0 0 0 5 \}$ . More detailed experimental settings are discussed in Appendix.
236
+
237
+ We use the micro-F1 score with a $9 5 \%$ confidence interval as the evaluation metric. The relevant results are summarized in Table 4. Boldface letters indicate the best result for the given confidence interval. We observe that BernNet provides the best results on seven out of the ten datasets. On the other three datasets, BernNet also achieves competitive results against SOTA methods.
238
+
239
+ More interestingly, this experiment also shows BernNet can learn complex filters from real-world datasets with only the supervision of node labels. Figure 4 plots some of the filters BernNet learnt in the training process. On Actor, BernNet learns an all-pass-alike filter, which concurs with the fact that MLP outperforms all other baselines on this dataset. On Chameleon and Squirrel, BernNet learns two comb-alike filters. Given that BernNet outperforms all competitors by at least $1 \%$ on these two datasets, it may suggest that comb-alike filters are necessary for Chameleon and Squirrel. Figure 5 shows the Coefficients $\theta _ { k }$ learnt from real-world datasets by BernNet. When comparing Figures 4 and 5, we observe that the curves of filters and curves of coefficients are almost the same. This is because BernNet’s coefficients are highly correlated with the spectral property of the target filter, which indicates BernNet Bernnet has strong interpretability.
240
+
241
+ Finally, we present the train time for each method in Table 5. BernNet is slower than other methods due to its quadratic dependence on the degree $K$ . However, compared to the SOTA method GPRGNN, the margin is generally less than 2, which is often acceptable in practice. In theory, both ChebNet [7] and GPR-GNN [5] are linear time complexity related to propagation step $K$ , but BernNet is quadratic time complexity related to $K$ . Delgado et al. [8] show that Bernstein approximation can be evaluated in linear time related to $K$ using the corner cutting algorithm. However, BernNet can not use this algorithm directly, because we need to multiply signal $\mathbf { x }$ . How to convert BernNet to linear complexity will be a problem worth studying in the future.
242
+
243
+ ![](images/b0dcb357edbc74b9b1067c37e462472b96686afdfe6fe7fdb0d4e52b97d5bd83.jpg)
244
+ Figure 5: Coefficients $\theta _ { k }$ learnt from real-world datasets by BernNet.
245
+
246
+ Table 5: Average running time per epoch (ms)/average total running time (s).
247
+
248
+ <table><tr><td></td><td>GCN</td><td>GAT</td><td>APPNP</td><td>MLP</td><td>ChebNet</td><td>GPR-GNN</td><td>BernNet</td></tr><tr><td>Cora</td><td>4.59/1.62</td><td>9.56/2.03</td><td>7.16/2.32</td><td>3.06/0.93</td><td>6.25/1.76</td><td>9.94/2.21</td><td>19.71/5.47</td></tr><tr><td>CiteSeer</td><td>4.63/1.95</td><td>9.93/2.21</td><td>7.79/2.77</td><td>2.95/1.09</td><td>8.28/2.56</td><td>11.16/2.37</td><td>22.36/6.32</td></tr><tr><td>PubMed</td><td>5.12/1.87</td><td>16.16/3.41</td><td>8.21/2.63</td><td>2.91/1.61</td><td>18.04/3.03</td><td>10.45/2.81</td><td>22.02/8.19</td></tr><tr><td>Computers</td><td>5.72/2.52</td><td>30.91/7.85</td><td>9.19/3.48</td><td>3.47/1.31</td><td>20.64/9.64</td><td>16.05/4.38</td><td>28.83/8.69</td></tr><tr><td>Photo</td><td>5.08/2.63</td><td>19.97/5.41</td><td>8.69/4.18</td><td>3.67/1.66</td><td>13.25/7.02</td><td>13.96/3.94</td><td>24.69/7.37</td></tr><tr><td>Chameleon</td><td>4.93/0.99</td><td>13.11/2.66</td><td>7.93/1.62</td><td>3.14/0.63</td><td>10.92/2.25</td><td>10.93/2.41</td><td>22.54/4.75</td></tr><tr><td>Actor</td><td>5.43/1.09</td><td>11.94/2.45</td><td>8.46/1.71</td><td>3.82/0.77</td><td>7.99/1.62</td><td>11.57/2.35</td><td>23.34/5.81</td></tr><tr><td>Squirrel</td><td>5.61/1.13</td><td>22.76/4.91</td><td>8.01/1.61</td><td>3.41/0.69</td><td>38.12/7.78</td><td>9.87/5.56</td><td>25.58/9.23</td></tr><tr><td>Texas</td><td>4.58/0.92</td><td>9.65/1.96</td><td>7.83/1.63</td><td>3.19/0.65</td><td>6.51/1.34</td><td>10.45/2.16</td><td>23.35/4.81</td></tr><tr><td>Cornell</td><td>4.83/0.97</td><td>9.79/1.99</td><td>8.23/1.68</td><td>3.25/0.66</td><td>5.85/1.22</td><td>9.86/2.05</td><td>22.23/5.26</td></tr></table>
249
+
250
+ # 6 Conclusion
251
+
252
+ This paper proposes BernNet, a graph neural network that provides a simple and intuitive mechanism for designing and learning an arbitrary spectral filter via Bernstein polynomial approximation. Compared to previous methods, BernNet can approximate complex filters such as band-rejection and comb filters, and can provide better interpretability. Furthermore, the polynomial filters designed and learned by BernNet are always valid. Experiments show that BernNet outperforms SOTA methods in terms of effectiveness on both synthetic and real-world datasets. For future work, an interesting direction is to improve the efficiency of BernNet.
253
+
254
+ # Broader Impact
255
+
256
+ The proposed BernNet algorithm addresses the challenge of designing and learning arbitrary spectral filters on graphs. We consider this algorithm a general technical and theoretical contribution, without any foreseeable specific impacts. For applications in bioinformatics, computer vision, and natural language processing, applying the BernNet algorithm may improve the performance of existing GNN models. We leave the exploration of other potential impacts to future work.
257
+
258
+ # Acknowledgments and Disclosure of Funding
259
+
260
+ Zhewei Wei was supported in part by National Natural Science Foundation of China (No. 61972401, No. 61932001 and No. 61832017), by Beijing Outstanding Young Scientist Program NO. BJJWZYJH012019100020098, by Alibaba Group through Alibaba Innovative Research Program, and by CCF-Baidu Open the Fund (NO.2021PP15002000). Zengfeng Huang was supported by National Natural Science Foundation of China Grant No. 61802069, and by Shanghai Science and Technology Commission Grant No. 17JC1420200. Hongteng Xu was supported by Tencent AI Lab Rhino-Bird Joint Research Program. This work is supported by China Unicom Innovation Ecological Cooperation Plan and by Intelligent Social Governance Platform, Major Innovation $\&$ Planning Interdisciplinary Platform for the “Double-First Class” Initiative, Renmin University of China. We also wish to acknowledge the support provided and contribution made by Public Policy and Decision-making Research Lab of Renmin University of China.
261
+
262
+ References
263
+ [1] Muhammet Balcilar, Pierre Héroux, Benoit Gaüzère, Sébastien Adam, and Paul Honeine. Analyzing the expressive power of graph neural networks in a spectral perspective. In ICLR, 2021.
264
+ [2] Filippo Maria Bianchi, Daniele Grattarola, Lorenzo Livi, and Cesare Alippi. Graph neural networks with convolutional arma filters. TPAMI, 2021.
265
+ [3] Toon Bogaerts, Antonio D Masegosa, Juan S Angarita-Zapata, Enrique Onieva, and Peter Hellinckx. A graph cnn-lstm neural network for short and long-term traffic forecasting based on trajectory data. Transportation Research Part C: Emerging Technologies, 2020.
266
+ [4] Zhao-Min Chen, Xiu-Shen Wei, Peng Wang, and Yanwen Guo. Multi-label image recognition with graph convolutional networks. In CVPR, 2019.
267
+ [5] Eli Chien, Jianhao Peng, Pan Li, and Olgica Milenkovic. Adaptive universal generalized pagerank graph neural network. In ICLR, 2021.
268
+ [6] Zhiyong Cui, Kristian Henrickson, Ruimin Ke, and Yinhai Wang. Traffic graph convolutional recurrent neural network: A deep learning framework for network-scale traffic learning and forecasting. T-ITS, 21(11):4883–4894, 2019.
269
+ [7] Michaël Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks on graphs with fast localized spectral filtering. In NeurIPS, pages 3844–3852, 2016.
270
+ [8] Jorge Delgado and Juan Manuel Pena. A linear complexity algorithm for the bernstein basis. In GMP, pages 162–167, 2003.
271
+ [9] Yushun Dong, Kaize Ding, Brian Jalaian, Shuiwang Ji, and Jundong Li. Graph neural networks with adaptive frequency response filter. In CIKM, 2021.
272
+ [10] Rida T Farouki. The bernstein polynomial basis: A centennial retrospective. Computer Aided Geometric Design, 29(6):379–419, 2012.
273
+ [11] Matthias Fey and Jan Eric Lenssen. Fast graph representation learning with pytorch geometric. In ICLR, 2019.
274
+ [12] Dejun Jiang, Zhenxing Wu, Chang-Yu Hsieh, Guangyong Chen, Ben Liao, Zhe Wang, Chao Shen, Dongsheng Cao, Jian Wu, and Tingjun Hou. Could graph neural networks learn better molecular representation for drug discovery? a comparison study of descriptor-based and graph-based models. Journal of cheminformatics, 13(1):1–23, 2021.
275
+ [13] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In ICLR, 2017.
276
+ [14] Johannes Klicpera, Aleksandar Bojchevski, and Stephan Günnemann. Predict then propagate: Graph neural networks meet personalized pagerank. In ICLR, 2019.
277
+ [15] Johannes Klicpera, Stefan Weißenberger, and Stephan Günnemann. Diffusion improves graph learning. In NeurIPS, 2019.
278
+ [16] Ron Levie, Federico Monti, Xavier Bresson, and Michael M Bronstein. Cayleynets: Graph convolutional neural networks with complex rational spectral filters. Transactions on Signal Processing, 67(1):97–109, 2018.
279
+ [17] Chang Li and Dan Goldwasser. Encoding social information with graph convolutional networks forpolitical perspective detection in news media. In ACL, 2019.
280
+ [18] Yaguang Li, Rose Yu, Cyrus Shahabi, and Yan Liu. Diffusion convolutional recurrent neural network: Data-driven traffic forecasting. In ICLR, 2018.
281
+ [19] Meng Liu, Hongyang Gao, and Shuiwang Ji. Towards deeper graph neural networks. In KDD, 2020.
282
+ [20] Julian McAuley, Christopher Targett, Qinfeng Shi, and Anton Van Den Hengel. Image-based recommendations on styles and substitutes. In SIGIR, 2015.
283
+ [21] Sunil K Narang, Akshay Gadde, and Antonio Ortega. Signal processing techniques for interpolation in graph structured data. In ICASSP. IEEE, 2013.
284
+ [22] Hongbin Pei, Bingzhe Wei, Kevin Chen-Chuan Chang, Yu Lei, and Bo Yang. Geom-gcn: Geometric graph convolutional networks. In ICLR, 2020.
285
+ [23] Victoria Powers and Bruce Reznick. Polynomials that are positive on an interval. Transactions of the American Mathematical Society, 352(10):4677–4692, 2000.
286
+ [24] Jiezhong Qiu, Jian Tang, Hao Ma, Yuxiao Dong, Kuansan Wang, and Jie Tang. Deepinf: Social influence prediction with deep learning. In KDD, 2018.
287
+ [25] Prakash Chandra Rathi, R Frederick Ludlow, and Marcel L Verdonk. Practical high-quality electrostatic potential surfaces for drug discovery using a graph-convolutional deep neural network. Journal of medicinal chemistry, 63(16):8778–8790, 2019.
288
+ [26] Benedek Rozemberczki, Carl Allen, and Rik Sarkar. Multi-scale attributed node embedding. Journal of Complex Networks, 9(2):cnab014, 2021.
289
+ [27] 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.
290
+ [28] Daniel Spielman. Spectral and algebraic graph theory. Yale lecture notes, draft of December, 4, 2019.
291
+ [29] Peihao Tong, Qifan Zhang, and Junjie Yao. Leveraging domain context for question answering over knowledge graph. Data Science and Engineering, 4(4):323–335, 2019.
292
+ [30] Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph attention networks. In ICLR, 2018.
293
+ [31] Felix Wu, Amauri Souza, Tianyi Zhang, Christopher Fifty, Tao Yu, and Kilian Weinberger. Simplifying graph convolutional networks. In ICML, 2019.
294
+ [32] Shu Wu, Yuyuan Tang, Yanqiao Zhu, Liang Wang, Xing Xie, and Tieniu Tan. Session-based recommendation with graph neural networks. In AAAI, 2019.
295
+ [33] Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and S Yu Philip. A comprehensive survey on graph neural networks. IEEE transactions on neural networks and learning systems, 2020.
296
+ [34] Bingbing Xu, Huawei Shen, Qi Cao, Keting Cen, and Xueqi Cheng. Graph convolutional networks using heat kernel for semi-supervised learning. In IJCAI, 2019.
297
+ [35] Bingbing Xu, Huawei Shen, Qi Cao, Yunqi Qiu, and Xueqi Cheng. Graph wavelet neural network. In ICLR, 2018.
298
+ [36] Keyulu Xu, Chengtao Li, Yonglong Tian, Tomohiro Sonobe, Ken-ichi Kawarabayashi, and Stefanie Jegelka. Representation learning on graphs with jumping knowledge networks. In ICML, 2018.
299
+ [37] Zhilin Yang, William Cohen, and Ruslan Salakhudinov. Revisiting semi-supervised learning with graph embeddings. In ICML, pages 40–48. PMLR, 2016.
300
+ [38] Rex Ying, Ruining He, Kaifeng Chen, Pong Eksombatchai, William L Hamilton, and Jure Leskovec. Graph convolutional neural networks for web-scale recommender systems. In KDD, 2018.
301
+ [39] Long Zhao, Xi Peng, Yu Tian, Mubbasir Kapadia, and Dimitris N Metaxas. Semantic graph convolutional networks for 3d human pose regression. In CVPR, 2019.
302
+ [40] Dengyong Zhou, Olivier Bousquet, Thomas Lal, Jason Weston, and Bernhard Schölkopf. Learning with local and global consistency. In NeurIPS, 2004.
303
+ [41] Meiqi Zhu, Xiao Wang, Chuan Shi, Houye Ji, and Peng Cui. Interpreting and unifying graph neural networks with an optimization framework. In WWW, 2021.
parse/train/WigDnV-_Gq/WigDnV-_Gq_content_list.json ADDED
@@ -0,0 +1,1330 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "BernNet: Learning Arbitrary Graph Spectral Filters via Bernstein Approximation ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 179,
8
+ 122,
9
+ 820,
10
+ 172
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Mingguo He Renmin University of China mingguo@ruc.edu.cn ",
17
+ "bbox": [
18
+ 264,
19
+ 226,
20
+ 450,
21
+ 267
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Zhewei Wei∗ Renmin University of China zhewei@ruc.edu.cn ",
28
+ "bbox": [
29
+ 547,
30
+ 226,
31
+ 735,
32
+ 267
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Zengfeng Huang Fudan University huangzf@fudan.edu.cn ",
39
+ "bbox": [
40
+ 267,
41
+ 289,
42
+ 441,
43
+ 330
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Hongteng $\\mathbf { X } \\mathbf { u } ^ { * }$ Renmin University of China hongtengxu@ruc.edu.cn ",
50
+ "bbox": [
51
+ 542,
52
+ 289,
53
+ 730,
54
+ 332
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "Abstract ",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 462,
64
+ 367,
65
+ 535,
66
+ 382
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Many representative graph neural networks, e.g., GPR-GNN and ChebNet, approximate graph convolutions with graph spectral filters. However, existing work either applies predefined filter weights or learns them without necessary constraints, which may lead to oversimplified or ill-posed filters. To overcome these issues, we propose BernNet, a novel graph neural network with theoretical support that provides a simple but effective scheme for designing and learning arbitrary graph spectral filters. In particular, for any filter over the normalized Laplacian spectrum of a graph, our BernNet estimates it by an order- $K$ Bernstein polynomial approximation and designs its spectral property by setting the coefficients of the Bernstein basis. Moreover, we can learn the coefficients (and the corresponding filter weights) based on observed graphs and their associated signals and thus achieve the BernNet specialized for the data. Our experiments demonstrate that BernNet can learn arbitrary spectral filters, including complicated band-rejection and comb filters, and it achieves superior performance in real-world graph modeling tasks. Code is available at https://github.com/ivam-he/BernNet. ",
73
+ "bbox": [
74
+ 233,
75
+ 401,
76
+ 766,
77
+ 608
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 Introduction ",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 174,
87
+ 638,
88
+ 310,
89
+ 656
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Graph neural networks (GNNs) have received extensive attention from researchers due to their \nexcellent performance on various graph learning tasks such as social analysis [24, 17, 29], drug \ndiscovery [12, 25], traffic forecasting [18, 3, 6], recommendation system [38, 32] and computer \nvision [39, 4]. Recent studies suggest that many popular GNNs operate as polynomial graph spectral \nfilters [7, 13, 5, 16, 2, 35]. Specifically, we denote an undirected graph with node set $V$ and edge \nset $E$ as $G = ( V , E )$ , whose adjacency matrix is A. Given a signal $\\mathbf { x } = [ x ] \\in R ^ { n }$ on the graph, $n = | V |$ weightshe diag, where is the symmetric normalizednother equivalent polynomial normalized adjacency matrix \n$\\scriptstyle \\sum _ { k = 0 } ^ { K } w _ { k } \\mathbf { L } ^ { k } \\mathbf { x }$ $w _ { k }$ $\\mathbf { L } = \\mathbf { I } - \\mathbf { D } ^ { - 1 / 2 } \\mathbf { A } \\mathbf { D } ^ { - 1 / 2 }$ $G$ $\\mathbf { D }$ $\\scriptstyle \\sum _ { k = 0 } ^ { K } c _ { k } \\mathbf { P } ^ { k } \\mathbf { x }$ $\\mathbf { P } = \\mathbf { D } ^ { - 1 / 2 } \\mathbf { A } \\mathbf { D } ^ { - 1 / 2 }$ $c _ { k }$ ",
96
+ "bbox": [
97
+ 173,
98
+ 672,
99
+ 826,
100
+ 830
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "image",
106
+ "img_path": "images/190ec5391113ac944665522e1adf4c8cf8fc31bf8e9a0938f191d278b12a49dd.jpg",
107
+ "image_caption": [
108
+ "Figure 1: An illustration of the proposed BernNet. "
109
+ ],
110
+ "image_footnote": [],
111
+ "bbox": [
112
+ 199,
113
+ 88,
114
+ 790,
115
+ 231
116
+ ],
117
+ "page_idx": 1
118
+ },
119
+ {
120
+ "type": "text",
121
+ "text": "We can broadly categorize the GNNs applying the above filtering operation into two classes, depending on whether they design the filter weights or learn them based on observed graphs. Some representative models in these two classes are shown below. ",
122
+ "bbox": [
123
+ 176,
124
+ 281,
125
+ 825,
126
+ 323
127
+ ],
128
+ "page_idx": 1
129
+ },
130
+ {
131
+ "type": "text",
132
+ "text": "• The GNNs driven by designing filters: GCN [13] uses a simplified first-order Chebyshev polynomial, which is proven to be a low-pass filter [1, 31, 34, 41]. APPNP [14] utilizes Personalized PageRank (PPR) to set the filter weights and achieves a low-pass filter as well [15, 41]. GNN-LF/HF [41] designs filter weights from the perspective of graph optimization functions, which can simulate high- and low-pass filters. ",
133
+ "bbox": [
134
+ 217,
135
+ 342,
136
+ 823,
137
+ 411
138
+ ],
139
+ "page_idx": 1
140
+ },
141
+ {
142
+ "type": "text",
143
+ "text": "• The GNNs driven by learning filters: ChebNet [7] approximates the filtering operation with Chebyshev polynomials, and learns a filter via trainable weights of the Chebyshev basis. GPR-GNN [5] learns a polynomial filter by directly performing gradient descent on the filter weights, which can derive high- or low-pass filters. ARMA [2] learns a rational filter via the family of Auto-Regressive Moving Average filters [21]. ",
144
+ "bbox": [
145
+ 218,
146
+ 422,
147
+ 823,
148
+ 493
149
+ ],
150
+ "page_idx": 1
151
+ },
152
+ {
153
+ "type": "text",
154
+ "text": "Although the above GNNs achieve some encouraging results in various graph modeling tasks, they still suffer from two major drawbacks. Firstly, most existing methods focus on designing or learning simple filters (e.g., low- and/or high-pass filters), while real-world applications often require much more complex filters such as band-rejection and comb filters. To the best of our knowledge, none of the existing work supports designing arbitrary interpretable spectral filters. The GNNs driven by learning filters can learn arbitrary filters in theory, but they cannot intuitively show what filters they have learned. In other words, their interpretability is poor. For example, GPR-GNN [5] learns the filter weights $w _ { k }$ ’s but only proves a small subset of the learnt weight sequences corresponds to low- or high-pass filters. Secondly, the GNNs often design their filters empirically or learn the filter weights without any necessary constraints. As a result, their filter weights often have poor controllability. For example, GNN-LF/HF [41] designs its filters with a complex and non-intuitive polynomial with difficult-to-tune hyperparameters. The multi-layer GCN/SGC [13, 31] leads to “ill-posed” filters (i.e., those deriving negative spectral responses). Additionally, the filters learned by GPR-GNN [5] or ChebNet [7] have a chance to be ill-posed as well. ",
155
+ "bbox": [
156
+ 173,
157
+ 511,
158
+ 825,
159
+ 704
160
+ ],
161
+ "page_idx": 1
162
+ },
163
+ {
164
+ "type": "text",
165
+ "text": "To overcome the above issues, we propose a novel graph neural network called BernNet, which provides an effective algorithmic framework for designing and learning arbitrary graph spectral filters. As illustrated in Figure 1, for an arbitrary spectral filter $h : [ 0 , 2 ] \\mapsto [ 0 , 1 ]$ over the spectrum of the symmetric normalized Laplacian $\\mathbf { L }$ , our BernNet approximates $h$ by a $K$ -order Bernstein polynomial approximation, i.e., $\\begin{array} { r } { \\bar { h } ( \\lambda ) = \\sum _ { k = 0 } ^ { K } \\theta _ { k } b _ { k } ^ { K } ( \\lambda ) } \\end{array}$ . The non-negative coefficients $\\{ \\theta _ { k } \\} _ { k = 0 } ^ { K }$ of the Bernstein basis $\\{ b _ { k } ^ { K } ( \\lambda ) \\} _ { k = 0 } ^ { K }$ work as the model parameter, which can be interpreted as $h ( 2 k / K )$ , $k = 0 , \\ldots , K$ (i.e., the filter values uniformly sampled from [0, 2]). By designing or learning the $\\theta _ { k }$ ’s, we can obtain various spectral filters, whose filtering operation can be formulated as $\\begin{array} { r l } { ~ } & { { } \\sum _ { k = 0 } ^ { K } \\theta _ { k } \\frac { 1 } { 2 ^ { K } } \\binom { K } { k } ( 2 \\mathbf { I } - \\mathbf { L } ) ^ { K - k } \\mathbf { L } ^ { k } \\mathbf { x } } \\end{array}$ , where $\\mathbf { x }$ is the graph signal. We further demonstrate the rationality of our BernNet from the perspective of graph optimization — any valid polynomial filers, i.e., those polynomial functions mapping $[ 0 , 2 ]$ to $[ 0 , 1 ]$ , can always be expressed by our BernNet, and accordingly, the filters learned by our BernNet are always valid. Finally, we conduct experiments to demonstrate that 1) BernNet can learn arbitrary graph spectral filters (e.g., band-rejection, comb, low-band-pass, etc.), and 2) BernNet achieves superior performance on real-world datasets. ",
166
+ "bbox": [
167
+ 173,
168
+ 712,
169
+ 825,
170
+ 911
171
+ ],
172
+ "page_idx": 1
173
+ },
174
+ {
175
+ "type": "text",
176
+ "text": "2 BernNet ",
177
+ "text_level": 1,
178
+ "bbox": [
179
+ 173,
180
+ 89,
181
+ 276,
182
+ 106
183
+ ],
184
+ "page_idx": 2
185
+ },
186
+ {
187
+ "type": "text",
188
+ "text": "2.1 Bernstein approximation of spectral filters ",
189
+ "text_level": 1,
190
+ "bbox": [
191
+ 173,
192
+ 119,
193
+ 509,
194
+ 136
195
+ ],
196
+ "page_idx": 2
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "Given an arbitrary filter function $h : [ 0 , 2 ] \\mapsto [ 0 , 1 ]$ , let $\\mathbf { L } = \\mathbf { U } \\mathbf { A } \\mathbf { U } ^ { T }$ denote the eigendecomposition of the symmetric normalized Laplacian matrix $\\mathbf { L }$ , where $\\mathbf { U }$ is the matrix of eigenvectors and $\\Lambda =$ $d i a g [ \\lambda _ { 1 } , . . . , \\lambda _ { n } ]$ is the diagonal matrix of eigenvalues. We use ",
201
+ "bbox": [
202
+ 173,
203
+ 143,
204
+ 825,
205
+ 188
206
+ ],
207
+ "page_idx": 2
208
+ },
209
+ {
210
+ "type": "equation",
211
+ "img_path": "images/307cc9a3d1fe81593f26a9044a69a609c09b6a1c5b9c38117f8c94f9bdb2fda0.jpg",
212
+ "text": "$$\nh ( { \\bf L } ) { \\bf x } = { \\bf U } h ( { \\boldsymbol \\Lambda } ) { \\bf U } ^ { T } { \\bf x } = { \\bf U } d i a g [ h ( \\lambda _ { 1 } ) , . . . , h ( \\lambda _ { n } ) ] { \\bf U } ^ { T } { \\bf x }\n$$",
213
+ "text_format": "latex",
214
+ "bbox": [
215
+ 313,
216
+ 191,
217
+ 684,
218
+ 210
219
+ ],
220
+ "page_idx": 2
221
+ },
222
+ {
223
+ "type": "text",
224
+ "text": "to denote a spectral filter on graph signal $\\mathbf { x }$ . The key of our work is approximate $h ( \\mathbf { L } )$ (or, equivalently, $h ( \\lambda ) )$ . For this purpose, we leverage the Bernstein basis and Bernstein polynomial approximation defined below. ",
225
+ "bbox": [
226
+ 176,
227
+ 214,
228
+ 825,
229
+ 257
230
+ ],
231
+ "page_idx": 2
232
+ },
233
+ {
234
+ "type": "text",
235
+ "text": "Definition 2.1 ( [10]). (Bernstein polynomial approximation) Given an arbitrary continuous function $f ( t )$ on $t \\in [ 0 , 1 ]$ , the Bernstein polynomial approximation (of order $K$ ) for $f$ is defined as ",
236
+ "bbox": [
237
+ 171,
238
+ 260,
239
+ 826,
240
+ 289
241
+ ],
242
+ "page_idx": 2
243
+ },
244
+ {
245
+ "type": "equation",
246
+ "img_path": "images/6426e4cd56a6efb4df1ff686832f2bc5d91d9f6b6d1fcb6d4343298dae118c9f.jpg",
247
+ "text": "$$\np _ { K } ( t ) : = \\sum _ { k = 0 } ^ { K } \\theta _ { k } \\cdot b _ { k } ^ { K } ( t ) = \\sum _ { k = 0 } ^ { K } f \\left( \\frac { k } { K } \\right) \\cdot \\binom { K } { k } ( 1 - t ) ^ { K - k } t ^ { k } .\n$$",
248
+ "text_format": "latex",
249
+ "bbox": [
250
+ 292,
251
+ 292,
252
+ 704,
253
+ 337
254
+ ],
255
+ "page_idx": 2
256
+ },
257
+ {
258
+ "type": "text",
259
+ "text": "Here, for $k = 0 , . . . , K$ $\\begin{array} { r } { K , b _ { k } ^ { K } ( t ) = \\binom { K } { k } ( 1 - t ) ^ { K - k } t ^ { k } } \\end{array}$ is the $k$ -th Bernstein base, and $\\textstyle \\theta _ { k } = f ( { \\frac { k } { K } } )$ is the function value at $k / K$ , which works as the coefficient of $b _ { k } ^ { K } ( t )$ . ",
260
+ "bbox": [
261
+ 176,
262
+ 340,
263
+ 820,
264
+ 375
265
+ ],
266
+ "page_idx": 2
267
+ },
268
+ {
269
+ "type": "text",
270
+ "text": "Lemma 2.1 ( [10]). Given an arbitrary continuous function $f ( t )$ on $t \\in [ 0 , 1 ] ,$ , let $p _ { K } ( t )$ denote the Bernstein approximation of $f ( t )$ as defined in Equation (2). We have $p _ { K } ( t ) f ( t )$ as $K \\infty$ . ",
271
+ "bbox": [
272
+ 171,
273
+ 376,
274
+ 823,
275
+ 406
276
+ ],
277
+ "page_idx": 2
278
+ },
279
+ {
280
+ "type": "text",
281
+ "text": "For the filter function $h : [ 0 , 2 ] \\mapsto [ 0 , 1 ]$ , we let $\\begin{array} { r } { t = \\frac { \\lambda } { 2 } } \\end{array}$ and $f ( t ) = h ( 2 t )$ , so that the Bernstein polynomial approximation becomes applicable, where $\\theta _ { k } = f ( k / K ) = h ( 2 k / K )$ and $b _ { k } ^ { K } ( t ) =$ $\\begin{array} { r } { b _ { k } ^ { K } ( \\frac { \\lambda } { 2 } ) \\ = \\ \\binom { K } { k } ( 1 - \\frac { \\lambda } { 2 } ) ^ { K - k } ( \\frac { \\lambda } { 2 } ) ^ { k } } \\end{array}$ for $k = 1 , . . . , K$ . Consequently, we can approximate $h ( \\lambda )$ by $\\begin{array} { r } { p _ { K } ( \\lambda / 2 ) = \\sum _ { k = 0 } ^ { K } \\theta _ { k } { \\binom { K } { k } } ( 1 - \\frac { \\lambda } { 2 } ) ^ { K - k } \\left( \\frac { \\lambda } { 2 } \\right) ^ { k } = \\sum _ { k = 0 } ^ { K } \\theta _ { k } \\frac { 1 } { 2 ^ { K } } { \\binom { K } { k } } ( 2 - \\lambda ) ^ { K - k } \\lambda ^ { k } . } \\end{array}$ , and Lemma 2.1 ensures that $p _ { K } ( \\lambda / 2 ) \\to h ( \\lambda )$ as $K \\infty$ . ",
282
+ "bbox": [
283
+ 173,
284
+ 415,
285
+ 825,
286
+ 500
287
+ ],
288
+ "page_idx": 2
289
+ },
290
+ {
291
+ "type": "text",
292
+ "text": "Replacing $\\{ h ( \\lambda _ { i } ) \\} _ { i = 1 } ^ { n }$ with $\\{ p _ { K } ( \\lambda _ { i } / 2 ) \\} _ { i = 1 } ^ { n }$ , we approximate the spectral filter $h ( \\mathbf { L } )$ in Equation (1) as Udiag $[ p _ { K } ( \\lambda _ { 1 } / 2 ) , . . . , p _ { K } ( \\lambda _ { n } / 2 ) ] \\mathbf { U } ^ { T }$ and derive the proposed BernNet. In particular, given a graph signal $\\mathbf { x }$ , the convolutional operator of our BernNet is defined as follows: ",
293
+ "bbox": [
294
+ 174,
295
+ 505,
296
+ 825,
297
+ 549
298
+ ],
299
+ "page_idx": 2
300
+ },
301
+ {
302
+ "type": "equation",
303
+ "img_path": "images/4d8c2a5ca52d36a788530f215dc6aeff5dce30ab2fd1299b32b0c16440bfe80b.jpg",
304
+ "text": "$$\n\\mathbf { z } = \\underbrace { \\mathbf { U } d i a g [ p _ { K } ( \\lambda _ { 1 } / 2 ) , . . . , p _ { K } ( \\lambda _ { n } / 2 ) ] \\mathbf { U } ^ { T } } _ { \\mathrm { B e r n N e t } } \\mathbf { U } ^ { T } \\mathbf { x } = \\sum _ { k = 0 } ^ { K } \\theta _ { k } { \\frac { 1 } { 2 ^ { K } } } { \\binom { K } { k } } ( 2 \\mathbf { I } - \\mathbf { L } ) ^ { K - k } \\mathbf { L } ^ { k } \\mathbf { x }\n$$",
305
+ "text_format": "latex",
306
+ "bbox": [
307
+ 232,
308
+ 553,
309
+ 766,
310
+ 602
311
+ ],
312
+ "page_idx": 2
313
+ },
314
+ {
315
+ "type": "text",
316
+ "text": "where each coefficient $\\theta _ { k }$ can be either set to $h ( 2 k / K )$ to approximate a predetermined filter $h$ , or learnt from the graph structure and signal in an end-to-end fashion. As a natural extension of Lemma 2.1, our BernNet owns the following proposition. ",
317
+ "bbox": [
318
+ 176,
319
+ 606,
320
+ 825,
321
+ 648
322
+ ],
323
+ "page_idx": 2
324
+ },
325
+ {
326
+ "type": "text",
327
+ "text": "Proposition 2.1. For an arbitrary continuous filter function $h : [ 0 , 2 ] [ 0 , 1 ] ,$ , by setting $\\theta _ { k } =$ $h ( 2 \\bar { k } / K ) , k = 0 , \\dots , K$ , the $\\mathbf { z }$ in Equation (3) satisfies ${ \\bf z } h ( { \\bf L } ) { \\bf x } $ as $K \\infty$ . ",
328
+ "bbox": [
329
+ 169,
330
+ 650,
331
+ 823,
332
+ 680
333
+ ],
334
+ "page_idx": 2
335
+ },
336
+ {
337
+ "type": "text",
338
+ "text": "Proof. According to the above derivation, we have $\\begin{array} { r } { p _ { K } ( \\lambda / 2 ) = \\sum _ { k = 0 } ^ { K } \\theta _ { k } \\binom { K } { k } ( 1 - \\frac { \\lambda } { 2 } ) ^ { K - k } \\left( \\frac { \\lambda } { 2 } \\right) ^ { k } = } \\end{array}$ $\\begin{array} { r } { \\sum _ { k = 0 } ^ { K } \\theta _ { k } \\frac { 1 } { 2 ^ { K } } \\binom { K } { k } ( 2 - \\lambda ) ^ { K - k } \\lambda ^ { k } } \\end{array}$ , and Lemma 2.1 ensures that $p _ { K } ( \\lambda / 2 ) \\to h ( \\lambda )$ as $\\theta _ { k } = h ( 2 k / K )$ and $K \\infty$ . ",
339
+ "bbox": [
340
+ 173,
341
+ 695,
342
+ 825,
343
+ 746
344
+ ],
345
+ "page_idx": 2
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "Consequently, we have ",
350
+ "bbox": [
351
+ 174,
352
+ 751,
353
+ 326,
354
+ 766
355
+ ],
356
+ "page_idx": 2
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "$\\mathbf { z } = \\mathbf { U } d i a g [ p _ { K } ( \\lambda _ { 1 } / 2 ) , . . . , p _ { K } ( \\lambda _ { n } / 2 ) ] \\mathbf { U } ^ { T } \\mathbf { x } \\to \\mathbf { U } d i a g [ h ( \\lambda _ { 1 } ) , . . . , h ( \\lambda _ { n } ) ] \\mathbf { U } ^ { T } \\mathbf { x } = h ( \\mathbf { L } )$ as $\\theta _ { k } = h ( 2 k / K )$ and $K \\infty$ . ",
361
+ "bbox": [
362
+ 173,
363
+ 770,
364
+ 779,
365
+ 808
366
+ ],
367
+ "page_idx": 2
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "2.2 Realizing existing filters with BernNet. ",
372
+ "text_level": 1,
373
+ "bbox": [
374
+ 174,
375
+ 843,
376
+ 480,
377
+ 859
378
+ ],
379
+ "page_idx": 2
380
+ },
381
+ {
382
+ "type": "text",
383
+ "text": "As shown in Proposition 2.1, our BernNet can approximate arbitrary continuous spectral filters with sufficient precision. Below we give some representative examples of how our BernNet exactly realizes existing filters that are commonly used in GNNs. ",
384
+ "bbox": [
385
+ 174,
386
+ 868,
387
+ 825,
388
+ 911
389
+ ],
390
+ "page_idx": 2
391
+ },
392
+ {
393
+ "type": "table",
394
+ "img_path": "images/9dc5140848e3d3617d3a5af27f72597b412a99a0910ba6857a332cf25b5d8f8f.jpg",
395
+ "table_caption": [
396
+ "Table 1: Realizing commonly used filters with BernNet. "
397
+ ],
398
+ "table_footnote": [],
399
+ "table_body": "<table><tr><td>Filter types</td><td>Filter h(λ)</td><td>0k for k=0,...,K</td><td>Bernstein approximation pk()</td><td>BernNet</td></tr><tr><td>All-pass</td><td>1</td><td>0=1</td><td>1</td><td>I</td></tr><tr><td>Linear low-pass</td><td>1-&gt;/2</td><td>0=1-k/K</td><td>1-λ/2</td><td>1</td></tr><tr><td>Linear high-pass</td><td>入/2</td><td>0=k/K</td><td>入/2</td><td></td></tr><tr><td>Impulse low-pass</td><td>(入)</td><td>0=1and other 0k =0</td><td>(1-X/2)K</td><td></td></tr><tr><td>Impulse high-pass</td><td>8(入)</td><td>0K=1and other 0k =0</td><td>(入/2)K</td><td>美K</td></tr><tr><td>Impulse band-pass</td><td>8(入)</td><td>0K/2 =1and other 0k =0</td><td>(K2)(1-&gt;/2)K/2(/2)K/2</td><td>(K/2)(21-L)K/2LK/2</td></tr></table>",
400
+ "bbox": [
401
+ 176,
402
+ 109,
403
+ 825,
404
+ 205
405
+ ],
406
+ "page_idx": 3
407
+ },
408
+ {
409
+ "type": "text",
410
+ "text": "• All-pass filter $h ( \\lambda ) = 1$ . We set $\\theta _ { k } \\ = \\ 1$ for $k = 0 , \\ldots , K$ , and the approximation $p _ { K } ( \\frac { \\lambda } { 2 } ) = 1$ is exactly the same with $h ( \\lambda )$ . Accordingly, our BernNet becomes an identity matrix, which realizes the all-pass filter perfectly. ",
411
+ "bbox": [
412
+ 217,
413
+ 231,
414
+ 825,
415
+ 275
416
+ ],
417
+ "page_idx": 3
418
+ },
419
+ {
420
+ "type": "text",
421
+ "text": "• Linear low-pass filter $h ( \\lambda ) = 1 - \\lambda / 2$ . We set $\\theta _ { k } = 1 - k / K$ for $k = 0 , \\ldots , K$ and obtain $p _ { K } ( \\frac { \\lambda } { 2 } ) = 1 - \\lambda / 2$ . The BernNet becomes $\\begin{array} { r } { \\sum _ { k = 0 } ^ { K } \\frac { ( K - k ) } { K } \\frac { 1 } { 2 ^ { K } } \\binom { K } { k } ( 2 \\mathbf { I } - \\mathbf { L } ) ^ { K - k } \\mathbf { L } ^ { k } = \\mathbf { I } - \\frac { 1 } { 2 } \\mathbf { L } } \\end{array}$ which achieves the linear low-pass filter exactly. Note that $\\begin{array} { r } { \\mathbf { I } - \\frac { 1 } { 2 } \\mathbf { L } = \\frac { 1 } { 2 } ( \\mathbf { I } + \\mathbf { P } ) } \\end{array}$ is also the same as the graph convolutional network (GCN) before renormalization [13]. ",
422
+ "bbox": [
423
+ 218,
424
+ 279,
425
+ 825,
426
+ 342
427
+ ],
428
+ "page_idx": 3
429
+ },
430
+ {
431
+ "type": "text",
432
+ "text": "• Linear high-pass filter $h ( \\lambda ) = \\lambda / 2$ . Similarly, we can set $\\theta _ { k } = k / K$ for $k = 0 , \\ldots , K$ to get a perfect approximation $\\begin{array} { r } { p _ { K } ( \\frac { \\lambda } { 2 } ) = \\frac { \\lambda } { 2 } } \\end{array}$ , and the BernNet becomes $\\scriptstyle { \\frac { 1 } { 2 } } \\mathbf { L }$ . ",
433
+ "bbox": [
434
+ 218,
435
+ 345,
436
+ 823,
437
+ 378
438
+ ],
439
+ "page_idx": 3
440
+ },
441
+ {
442
+ "type": "text",
443
+ "text": "Note that even for those non-continuous spectral filters, e.g., the impulse low/high/band-pass filters, our BernNet can also provide good approximations (with sufficient large $K$ ). ",
444
+ "bbox": [
445
+ 171,
446
+ 387,
447
+ 825,
448
+ 416
449
+ ],
450
+ "page_idx": 3
451
+ },
452
+ {
453
+ "type": "text",
454
+ "text": "• Impulse low-pass filter $h ( \\lambda ) = \\delta _ { 0 } ( \\lambda )$ .† We set $\\theta _ { 0 } = 1$ and $\\theta _ { k } \\ = \\ 0$ for $k \\neq 0$ , and $\\begin{array} { r } { p _ { K } \\bar { ( \\frac { \\lambda } { 2 } ) } = ( 1 - \\frac { \\bar { \\lambda } } { 2 } ) ^ { K } } \\end{array}$ . Accordingly, the BernNet becomes $\\begin{array} { r } { \\frac { 1 } { 2 ^ { K } } ( 2 \\mathbf { I } - \\mathbf { L } ) ^ { K } } \\end{array}$ , deriving an $K$ -layer linear low-pass filter. ",
455
+ "bbox": [
456
+ 217,
457
+ 426,
458
+ 825,
459
+ 472
460
+ ],
461
+ "page_idx": 3
462
+ },
463
+ {
464
+ "type": "text",
465
+ "text": "• Impulse high-pass filter $h ( \\lambda ) = \\delta _ { 2 } ( \\lambda )$ . We set $\\theta _ { K } = 1$ and $\\theta _ { k } = 0$ for $k \\neq K$ , and $\\begin{array} { r } { p _ { K } ( \\frac { \\lambda } { 2 } ) = ( \\frac { \\lambda } { 2 } ) ^ { K } } \\end{array}$ . The BernNet becomes $\\scriptstyle { \\frac { 1 } { 2 ^ { K } } } \\mathbf { L } ^ { K }$ , i.e., an $K$ -layer linear high-pass filter. ",
466
+ "bbox": [
467
+ 218,
468
+ 474,
469
+ 823,
470
+ 508
471
+ ],
472
+ "page_idx": 3
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "• Impulse band-pass filter $h ( \\lambda ) = \\delta _ { 1 } ( \\lambda )$ . Similarly, we set $\\theta _ { K / 2 } = 1$ and $\\theta _ { k } = 0$ for $k \\neq$ $K / 2$ , and $\\begin{array} { r } { p _ { K } ( \\frac { \\lambda } { 2 } ) = \\binom { K } { K / 2 } ( 1 - \\lambda / 2 ) ^ { K / 2 } ( \\lambda / 2 ) ^ { K / 2 } } \\end{array}$ . The BernNet becomes $\\frac { 1 } { 2 ^ { K } } \\binom { K } { K / 2 } ( 2 \\mathbf { I } -$ $\\mathbf { L } ) ^ { K / 2 } \\mathbf { L } ^ { K / 2 }$ , which can be explained as stacking a $K / 2$ -layer linear low-pass filter and a $K / 2$ -layer linear high-pass filter. Obviously, $K$ should be an even number in this case. ",
477
+ "bbox": [
478
+ 218,
479
+ 511,
480
+ 825,
481
+ 577
482
+ ],
483
+ "page_idx": 3
484
+ },
485
+ {
486
+ "type": "text",
487
+ "text": "Table 1 summarizes the design of the BernNet for the filters above. We can find that an appealing advantage of our BernNet is that its coefficients are highly correlated with the spectral property of the target filter. In particular, we can determine to pass or reject the spectral signal with $\\textstyle \\lambda \\approx { \\frac { { \\bar { 2 } } k } { K } }$ by using a large or small property provid $\\theta _ { k }$ because each Bernstein base useful guidance when designi $b _ { k } ^ { K } ( \\lambda )$ corresponds to a “bump” located at rs, which enhances the interpretabili $\\textstyle { \\frac { 2 k } { K } }$ . This of our BernNet. ",
488
+ "bbox": [
489
+ 173,
490
+ 588,
491
+ 825,
492
+ 675
493
+ ],
494
+ "page_idx": 3
495
+ },
496
+ {
497
+ "type": "text",
498
+ "text": "2.3 Learning complex filters with BernNet ",
499
+ "text_level": 1,
500
+ "bbox": [
501
+ 174,
502
+ 693,
503
+ 480,
504
+ 708
505
+ ],
506
+ "page_idx": 3
507
+ },
508
+ {
509
+ "type": "text",
510
+ "text": "Besides designing the above typical filters, our BernNet can express more complex filters, such as band-pass, band-rejection, comb, low-band-pass filters, etc. Moreover, given the graph signals before and after applying such filters (i.e., the x’s and the corresponding $\\mathbf { z }$ ’s), our BernNet can learn their approximations in an end-to-end manner. Specifically, given the pairs $\\{ \\mathbf { x } , \\mathbf { z } \\}$ , we learn the coefficients $\\{ \\theta _ { k } \\} _ { k = 0 } ^ { K }$ of the BernNet by gradient descent. More implementation details can be found at the experimental section below. Figure 2 illustrates the four complex filters and the approximations we learned (The low-band pass filter is $h ( \\lambda ) = I _ { [ 0 , 0 . 5 ] } ( \\lambda ) + \\hat { \\exp { ( - 1 0 0 ( \\lambda - 0 . 5 ) ^ { 2 } ) } } \\hat { I } _ { ( 0 . 5 , 1 ) } ( \\lambda ) +$ $\\exp { ( - 5 0 ( \\lambda - 1 . 5 ) ^ { 2 } ) } I _ { [ 1 , 2 ] } ( \\lambda )$ , where $I _ { \\Omega } ( \\lambda ) = 1$ when $\\lambda \\in \\Omega$ , otherwise $I _ { \\Omega } ( \\lambda ) = 0 )$ . In general, our BernNet can learn a smoothed approximation of these complex filters, and the approximation precision improves with the increase of the order $K$ . Note that although the BernNet cannot pinpoint the exact peaks of the comb filter or drop to 0 for the valleys of comb or low-band-pass filters due to the limitation of $K$ , it still significantly outperforms other GNNs for learning such complex filters. ",
511
+ "bbox": [
512
+ 173,
513
+ 718,
514
+ 826,
515
+ 887
516
+ ],
517
+ "page_idx": 3
518
+ },
519
+ {
520
+ "type": "image",
521
+ "img_path": "images/79be059be4cf245f9f112beb0e01c5cd45d48d8fea28b73516bb37b15d002002.jpg",
522
+ "image_caption": [
523
+ "Figure 2: Illustrations of four complex filters and their approximations learnt by BernNet. "
524
+ ],
525
+ "image_footnote": [],
526
+ "bbox": [
527
+ 176,
528
+ 94,
529
+ 816,
530
+ 231
531
+ ],
532
+ "page_idx": 4
533
+ },
534
+ {
535
+ "type": "text",
536
+ "text": "3 BernNet in the Lens of Graph Optimization ",
537
+ "text_level": 1,
538
+ "bbox": [
539
+ 173,
540
+ 270,
541
+ 570,
542
+ 289
543
+ ],
544
+ "page_idx": 4
545
+ },
546
+ {
547
+ "type": "text",
548
+ "text": "In this section, we motivate BernNet from the perspective of graph optimization. In particular, we show that any polynomial filter that attempts to approximate a valid filter has to take the form of BernNet. ",
549
+ "bbox": [
550
+ 176,
551
+ 301,
552
+ 825,
553
+ 344
554
+ ],
555
+ "page_idx": 4
556
+ },
557
+ {
558
+ "type": "text",
559
+ "text": "3.1 A generalized graph optimization problem ",
560
+ "text_level": 1,
561
+ "bbox": [
562
+ 173,
563
+ 359,
564
+ 509,
565
+ 376
566
+ ],
567
+ "page_idx": 4
568
+ },
569
+ {
570
+ "type": "text",
571
+ "text": "Given a $n$ -dimensional graph signal $\\mathbf { x }$ , we consider a generalized graph optimization problem ",
572
+ "bbox": [
573
+ 173,
574
+ 385,
575
+ 787,
576
+ 401
577
+ ],
578
+ "page_idx": 4
579
+ },
580
+ {
581
+ "type": "equation",
582
+ "img_path": "images/fd35f489ee490033710e3c8b2ca4ce8719ed7c233f214b3ccdc7624314b379f4.jpg",
583
+ "text": "$$\n\\operatorname* { m i n } _ { \\mathbf { z } } f ( \\mathbf { z } ) = ( 1 - \\alpha ) \\mathbf { z } ^ { T } \\boldsymbol { \\gamma } ( \\mathbf { L } ) \\mathbf { z } + \\alpha \\| \\mathbf { z } - \\mathbf { x } \\| _ { 2 } ^ { 2 }\n$$",
584
+ "text_format": "latex",
585
+ "bbox": [
586
+ 352,
587
+ 406,
588
+ 645,
589
+ 431
590
+ ],
591
+ "page_idx": 4
592
+ },
593
+ {
594
+ "type": "text",
595
+ "text": "where $\\alpha \\in [ 0 , 1 )$ is a trade-off parameter, $\\mathbf { z } \\in R ^ { n }$ denotes the propagated representation of the input graph signal $\\mathbf { x }$ , and $\\gamma ( \\mathbf { L } )$ denotes an energy function of $\\mathbf { L }$ , determining the rate of propagation [28]. Generally, $\\gamma ( \\cdot )$ operates on the spectral of $\\mathbf { L }$ , and we have $\\gamma ( { \\bf L } ) = { \\bf U } { \\bar { d } } i a g [ \\gamma ( \\lambda _ { 1 } ) , \\dot { \\bf \\omega } . \\dot { \\bf \\omega } , \\dot { \\gamma ( \\lambda _ { n } ) } ] { \\bf U } ^ { T }$ . ",
596
+ "bbox": [
597
+ 173,
598
+ 436,
599
+ 825,
600
+ 479
601
+ ],
602
+ "page_idx": 4
603
+ },
604
+ {
605
+ "type": "text",
606
+ "text": "We can model the polynomial filtering operation of existing GNNs with the optimal solution of Equation (4). For example, if we set $\\begin{array} { r } { \\gamma ( \\mathbf { L } ) = \\mathbf { L } } \\end{array}$ , then the optimization function (4) becomes $f ( \\mathbf { \\bar { z } } ) = ( 1 - \\alpha ) \\mathbf { z } ^ { T } \\mathbf { L } \\mathbf { z } + \\acute { \\alpha } \\| \\mathbf { z } - \\mathbf { x } \\| _ { 2 } ^ { 2 }$ , a well-known convex graph optimization function proposed by Zhou et al. [40]. $f ( \\mathbf { z } )$ takes the minimum when the derivativ e ∂f(z)z = 2(1 − α)Lz + 2α (z − x) = 0, which solves to ",
607
+ "bbox": [
608
+ 173,
609
+ 484,
610
+ 826,
611
+ 559
612
+ ],
613
+ "page_idx": 4
614
+ },
615
+ {
616
+ "type": "equation",
617
+ "img_path": "images/f4e8724c4364b397e5b247559a6190ef11ed795d9809d061ba24aa35d2ce95a8.jpg",
618
+ "text": "$$\n\\mathbf { z } ^ { * } = \\alpha \\left( \\mathbf { I } - ( 1 - \\alpha ) ( \\mathbf { I } - \\mathbf { L } ) \\right) ^ { - 1 } \\mathbf { x } = \\sum _ { k = 0 } ^ { \\infty } \\alpha ( 1 - \\alpha ) ^ { k } \\left( \\mathbf { I } - \\mathbf { L } \\right) ^ { k } \\mathbf { x } = \\sum _ { k = 0 } ^ { \\infty } \\alpha ( 1 - \\alpha ) ^ { k } \\mathbf { P } ^ { k } \\mathbf { x } .\n$$",
619
+ "text_format": "latex",
620
+ "bbox": [
621
+ 210,
622
+ 560,
623
+ 784,
624
+ 603
625
+ ],
626
+ "page_idx": 4
627
+ },
628
+ {
629
+ "type": "text",
630
+ "text": "By taking a suffix sum $\\begin{array} { r } { \\sum _ { k = 0 } ^ { K } \\alpha ( 1 - \\alpha ) ^ { k } \\mathbf { P } ^ { k } \\mathbf { x } } \\end{array}$ , we obtain the polynomial filtering operation for APPNP [14]. Zhu et al. [41] further show that GCN [13], DAGNN [19], and JKNet [36] can be interpreted by the optimization function (4) with $\\gamma ( \\mathbf { L } ) = \\mathbf { L }$ . ",
631
+ "bbox": [
632
+ 174,
633
+ 609,
634
+ 825,
635
+ 655
636
+ ],
637
+ "page_idx": 4
638
+ },
639
+ {
640
+ "type": "text",
641
+ "text": "The generalized form of Equation (4) allows us to simulate more complex polynomial filtering operation. For example, let $\\alpha = 0 . 5$ and $\\gamma ( \\mathbf { L } ) = e ^ { t \\mathbf { L } } - \\mathbf { I }$ , a heat kernel with $t$ as the temperature parameter. Then $f ( \\mathbf { z } )$ takes the minimum when the derivative $\\begin{array} { r } { \\frac { \\partial f ( \\mathbf { z } ) } { \\partial \\mathbf { z } } = \\left( e ^ { t \\mathbf { L } } - \\mathbf { I } \\right) \\mathbf { z } + \\mathbf { z } - \\mathbf { x } = \\mathbf { 0 } } \\end{array}$ , which solves to ",
642
+ "bbox": [
643
+ 174,
644
+ 660,
645
+ 826,
646
+ 718
647
+ ],
648
+ "page_idx": 4
649
+ },
650
+ {
651
+ "type": "equation",
652
+ "img_path": "images/999514e44500a83bd5be65c2574fdbebae72ab79b440bf043769d6fa9efaef97.jpg",
653
+ "text": "$$\n\\mathbf { z } ^ { * } = e ^ { - t \\mathbf { L } } \\mathbf { x } = e ^ { - t ( \\mathbf { I } - \\mathbf { P } ) } \\mathbf { x } = \\sum _ { k = 0 } ^ { \\infty } e ^ { - t } \\frac { t ^ { k } } { k ! } \\mathbf { P } ^ { k } \\mathbf { x } .\n$$",
654
+ "text_format": "latex",
655
+ "bbox": [
656
+ 348,
657
+ 714,
658
+ 648,
659
+ 756
660
+ ],
661
+ "page_idx": 4
662
+ },
663
+ {
664
+ "type": "text",
665
+ "text": "By taking a suffix sum $\\textstyle \\sum _ { k = 0 } ^ { K } e ^ { - t } { \\frac { t ^ { k } } { k ! } } \\mathbf { P } ^ { k } \\mathbf { x }$ , we obtain the polynomial filtering operation for the heat kernal based GNN such as GDC [15] and GraphHeat [34]. ",
666
+ "bbox": [
667
+ 173,
668
+ 758,
669
+ 825,
670
+ 791
671
+ ],
672
+ "page_idx": 4
673
+ },
674
+ {
675
+ "type": "text",
676
+ "text": "3.2 Non-negative constraint on polynomial filters ",
677
+ "text_level": 1,
678
+ "bbox": [
679
+ 173,
680
+ 806,
681
+ 529,
682
+ 821
683
+ ],
684
+ "page_idx": 4
685
+ },
686
+ {
687
+ "type": "text",
688
+ "text": "A natural question is that, does an arbitrary energy function $\\gamma ( \\mathbf { L } )$ correspond to a valid or ill-posed spectral filter? Conversely, does any polynomial filtering operation $\\scriptstyle \\sum _ { k = 0 } ^ { K } w _ { k } \\mathbf { L } ^ { k } \\mathbf { x }$ correspond to the optimal solution of the optimization function (4) for some energy function $\\gamma ( \\mathbf { L } )$ ? ",
689
+ "bbox": [
690
+ 174,
691
+ 832,
692
+ 825,
693
+ 877
694
+ ],
695
+ "page_idx": 4
696
+ },
697
+ {
698
+ "type": "text",
699
+ "text": "As it turns out, there is a “minimum requirement” for the energy function $\\gamma ( \\mathbf { L } )$ ; $\\gamma ( \\mathbf { L } )$ has to be positive semidefinite. In particular, if $\\gamma ( \\mathbf { L } )$ is not positive semidefinite, then the optimization function $f ( \\mathbf { z } )$ is not convex, and the solution to $\\begin{array} { r } { \\frac { \\partial f ( \\mathbf { z } ) } { \\partial \\mathbf { z } } = 0 } \\end{array}$ may corresponds to a saddle point. Furthermore, without the positive semidefinite constraint on $\\gamma ( \\mathbf { L } )$ , $f ( \\mathbf { z } )$ may goes to $- \\infty$ as we set $\\mathbf { z }$ to be a multiple of the eigenvector corresponding to the negative eigenvalue. ",
700
+ "bbox": [
701
+ 173,
702
+ 882,
703
+ 821,
704
+ 912
705
+ ],
706
+ "page_idx": 4
707
+ },
708
+ {
709
+ "type": "text",
710
+ "text": "",
711
+ "bbox": [
712
+ 173,
713
+ 88,
714
+ 825,
715
+ 133
716
+ ],
717
+ "page_idx": 5
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "Non-negative polynomial filters. Given a positive semidefinite energy function $\\gamma ( \\mathbf { L } )$ , we now consider how the corresponding polynomial filtering operatio n PKk=0 wkLkx should look like. Recall that we assume $\\boldsymbol \\gamma ( \\mathbf { L } ) = \\mathbf { U } d i a g [ \\gamma ( \\lambda _ { 1 } ) , . . . , \\gamma ( \\lambda _ { n } ) ] \\mathbf { U } ^ { T }$ . By the positive semidefinite constraint, we have $\\gamma ( \\lambda ) \\geq 0$ for $\\lambda \\in [ 0 , 2 ]$ . Since the objective function $f ( \\mathbf { z } )$ is convex, it takes the minimum when $\\begin{array} { r } { \\frac { \\partial f ( \\mathbf { z } ) } { \\partial \\mathbf { z } } = 2 ( 1 - \\alpha ) \\gamma ( \\mathbf { L } ) \\mathbf { z } + 2 \\alpha \\left( \\mathbf { z } - \\mathbf { x } \\right) = \\mathbf { 0 } } \\end{array}$ . Accordingly, the optimum $z ^ { * }$ can be derived as ",
722
+ "bbox": [
723
+ 173,
724
+ 138,
725
+ 826,
726
+ 218
727
+ ],
728
+ "page_idx": 5
729
+ },
730
+ {
731
+ "type": "equation",
732
+ "img_path": "images/24f28c6a27df4ff8cc35201b1407d7e14288356e7100dfbc628bca44193ac547.jpg",
733
+ "text": "$$\n\\alpha \\left( \\alpha \\mathbf { I } + ( 1 - \\alpha ) \\gamma ( \\mathbf { L } ) \\right) ^ { - 1 } \\mathbf { x } = \\mathbf { U } d i a g \\left[ \\frac { \\alpha } { \\alpha + ( 1 - \\alpha ) \\gamma ( \\lambda _ { 1 } ) } , . . . , \\frac { \\alpha } { \\alpha + ( 1 - \\alpha ) \\gamma ( \\lambda _ { n } ) } \\right] \\mathbf { U } ^ { T } \\mathbf { x } .\n$$",
734
+ "text_format": "latex",
735
+ "bbox": [
736
+ 194,
737
+ 222,
738
+ 782,
739
+ 256
740
+ ],
741
+ "page_idx": 5
742
+ },
743
+ {
744
+ "type": "text",
745
+ "text": "Let h(λ) = αα+(1−α)γ(λ) denote the exact spectral filter, and $\\begin{array} { r } { g ( \\lambda ) = \\sum _ { k = 0 } ^ { K } w _ { k } \\lambda ^ { k } } \\end{array}$ denote a polynomial approximation of $h ( \\lambda )$ (e.g. the suffix sum of $h ( \\lambda )$ ’s taylor expansion). Since $\\gamma ( \\lambda ) \\geq 0$ when the polynomial filter $\\lambda \\in [ 0 , 2 ]$ , we have $\\begin{array} { r } { 0 \\leq \\dot { h } ( \\lambda ) \\leq \\frac { \\alpha } { \\alpha + ( 1 - \\alpha ) \\cdot 0 } = 1 } \\end{array}$ $\\begin{array} { r } { g ( \\lambda ) = \\sum _ { k = 0 } ^ { K } w _ { k } \\lambda ^ { k } } \\end{array}$ 0 also satisfies for $\\lambda \\in [ 0 , 2 ]$ $0 \\leq g ( \\lambda ) \\leq 1$ . Consequently, it is natural to assume . ",
746
+ "bbox": [
747
+ 173,
748
+ 261,
749
+ 826,
750
+ 329
751
+ ],
752
+ "page_idx": 5
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "Constraint 3.1. Assuming the energy function $\\gamma ( \\mathbf { L } )$ is positive semidefinite, a polynomial filter $\\begin{array} { r } { g ( \\lambda ) = \\sum _ { k = 0 } ^ { K } w _ { k } \\lambda ^ { k } } \\end{array}$ approximating the optimal solution to Equation (4) has to satisfy ",
757
+ "bbox": [
758
+ 173,
759
+ 330,
760
+ 823,
761
+ 362
762
+ ],
763
+ "page_idx": 5
764
+ },
765
+ {
766
+ "type": "equation",
767
+ "img_path": "images/d51bb84d20535b7727d17b8d0c550f61bfe18a153b2b35d45b9e26d47caad0ef.jpg",
768
+ "text": "$$\n0 \\leq g ( \\lambda ) = \\sum _ { k = 0 } ^ { K } w _ { k } \\lambda ^ { k } \\leq 1 , \\forall \\lambda \\in [ 0 , 2 ] .\n$$",
769
+ "text_format": "latex",
770
+ "bbox": [
771
+ 349,
772
+ 364,
773
+ 647,
774
+ 395
775
+ ],
776
+ "page_idx": 5
777
+ },
778
+ {
779
+ "type": "text",
780
+ "text": "While Constraint 3.1 seems to be simple and intuitive, some of the existing GNN may not satisfies this constraint. For example, GCN uses $\\mathbf { \\bar { z } } = \\mathbf { P x } = \\left( \\mathbf { I } - \\mathbf { L } \\right) \\mathbf { x }$ , which corresponds to a polynomial filter $g ( \\lambda ) = 1 - \\lambda$ that takes negative value when $\\lambda > 1$ , violating Constraint 3.1. As shown in [31], the renormalization trick $\\tilde { \\mathbf { P } } = \\left( \\mathbf { I } + \\mathbf { D } \\right) ^ { - 1 / 2 } \\left( \\mathbf { I } + \\mathbf { A } \\right) \\left( \\mathbf { I } + \\mathbf { D } \\right) ^ { - 1 / 2 }$ shrinks the spectral and thus reliefs the problem. However, $g ( \\lambda )$ may still take negative value as the maximum eigenvalue of $\\tilde { \\mathbf { L } } = \\mathbf { I } - \\tilde { \\mathbf { P } }$ is still larger than 1. ",
781
+ "bbox": [
782
+ 173,
783
+ 401,
784
+ 825,
785
+ 492
786
+ ],
787
+ "page_idx": 5
788
+ },
789
+ {
790
+ "type": "text",
791
+ "text": "3.3 Non-negative polynomials and Bernstein basis ",
792
+ "text_level": 1,
793
+ "bbox": [
794
+ 173,
795
+ 507,
796
+ 534,
797
+ 522
798
+ ],
799
+ "page_idx": 5
800
+ },
801
+ {
802
+ "type": "text",
803
+ "text": "Constraint 3.1 motivates us to design polynomial filters g(λ) = PKk=0 wkλk such that 0 ≤ g(λ) ≤ 1 when . The part is trivial, as we can always rescale each by a factor of $\\scriptstyle \\sum _ { k = 0 } ^ { K } | w _ { k } | 2 ^ { k }$ . The $g ( \\lambda ) \\geq 0$ part, however, requires more elaboration. Note that we can not simply set $w _ { k } \\geq 0$ for each $k = 0 \\ldots , K$ , since it is shown in [5] that such polynomials only correspond to low-pass filters. ",
804
+ "bbox": [
805
+ 173,
806
+ 532,
807
+ 825,
808
+ 608
809
+ ],
810
+ "page_idx": 5
811
+ },
812
+ {
813
+ "type": "text",
814
+ "text": "As it turns out, the Bernstein basis has the following nice property: a polynomial that is non-negative on a certain interval can always be expressed as a non-negative linear combination of Bernstein basis. Specifically, we have the following lemma. ",
815
+ "bbox": [
816
+ 174,
817
+ 613,
818
+ 825,
819
+ 656
820
+ ],
821
+ "page_idx": 5
822
+ },
823
+ {
824
+ "type": "text",
825
+ "text": "Lemma 3.1 ([23]). Assume a polynomial $\\textstyle p ( x ) = \\sum _ { k = 0 } ^ { K } \\theta _ { k } x ^ { k }$ satisfies $p ( x ) \\geq 0$ for $x \\in [ 0 , 1 ]$ . Then there exists a sequence of non-negative coefficients $\\theta _ { k }$ , ${ \\bf \\ddot { \\boldsymbol { k } } } = 0 , \\dots , K$ , such that ",
826
+ "bbox": [
827
+ 173,
828
+ 659,
829
+ 821,
830
+ 690
831
+ ],
832
+ "page_idx": 5
833
+ },
834
+ {
835
+ "type": "equation",
836
+ "img_path": "images/4d70723a86e3d339b5e2fdb626e31bd8a97cd63885ffc673851aedeaeeeb5383.jpg",
837
+ "text": "$$\np ( x ) = \\sum _ { k = 0 } ^ { K } \\theta _ { k } b _ { k } ^ { K } ( x ) = \\sum _ { k = 0 } ^ { K } \\theta _ { k } \\binom { K } { k } ( 1 - x ) ^ { K - k } x ^ { k }\n$$",
838
+ "text_format": "latex",
839
+ "bbox": [
840
+ 328,
841
+ 693,
842
+ 669,
843
+ 736
844
+ ],
845
+ "page_idx": 5
846
+ },
847
+ {
848
+ "type": "text",
849
+ "text": "Lemma 3.1 suggests that to approximate a valid filter, the polynomial filter $g ( \\lambda )$ has to be a nonnegative linear combination of Bernstein basis. Specifically, by setting $x = \\lambda / 2$ , the filter $g ( \\lambda )$ that satisfies $g ( \\lambda ) \\geq 0$ for $\\lambda \\in [ 0 , 2 ]$ can be expressed as ",
850
+ "bbox": [
851
+ 173,
852
+ 744,
853
+ 826,
854
+ 787
855
+ ],
856
+ "page_idx": 5
857
+ },
858
+ {
859
+ "type": "equation",
860
+ "img_path": "images/58c0408e57fa0739cc2955cd29474512c1d5bf68fe4e57a05facb7cf5597abee.jpg",
861
+ "text": "$$\ng ( \\lambda ) : = p \\left( \\frac { \\lambda } { 2 } \\right) = \\sum _ { k = 0 } ^ { K } \\theta _ { k } \\frac { 1 } { 2 ^ { K } } \\binom { K } { k } ( 2 - \\lambda ) ^ { K - k } \\lambda ^ { k } .\n$$",
862
+ "text_format": "latex",
863
+ "bbox": [
864
+ 328,
865
+ 790,
866
+ 668,
867
+ 834
868
+ ],
869
+ "page_idx": 5
870
+ },
871
+ {
872
+ "type": "text",
873
+ "text": "Consequently, any valid polynomial filter that approximate the optimal solution of (4) with positive semidefinite energy function $\\gamma ( \\mathbf { L } )$ has to take the following form: $\\begin{array} { r } { \\mathbf { z } = \\sum _ { k = 0 } ^ { K } \\theta _ { k } \\frac { 1 } { 2 ^ { K } } \\binom { \\bar { K } } { k } ( 2 \\mathbf { I } - } \\end{array}$ $\\mathbf { L } ) ^ { K - k } \\mathbf { L } ^ { k } \\mathbf { x }$ . This observation motivates our BernNet from the perspective of graph optimization — any valid polynomial filers, i.e., the $g : [ 0 , 2 ] \\mapsto [ 0 , 1 ]$ , can always be expressed by BernNet, and accordingly, the filters learned by our BernNet are always valid. ",
874
+ "bbox": [
875
+ 173,
876
+ 835,
877
+ 826,
878
+ 912
879
+ ],
880
+ "page_idx": 5
881
+ },
882
+ {
883
+ "type": "image",
884
+ "img_path": "images/a04bbe15dede6bfda46a24f4347c73fa94999d261b7cfd0556e6ed2a7fcce68c.jpg",
885
+ "image_caption": [
886
+ "Figure 3: A input image and the filtering results. "
887
+ ],
888
+ "image_footnote": [],
889
+ "bbox": [
890
+ 184,
891
+ 94,
892
+ 810,
893
+ 193
894
+ ],
895
+ "page_idx": 6
896
+ },
897
+ {
898
+ "type": "table",
899
+ "img_path": "images/e6b3f5dec4812af694d4e40684edb2c340965c0c8c071bcfc52e4b4c749872e4.jpg",
900
+ "table_caption": [
901
+ "Table 2: Average sum of squared error and $R ^ { 2 }$ score in parentheses. "
902
+ ],
903
+ "table_footnote": [],
904
+ "table_body": "<table><tr><td></td><td>Low-pass</td><td>High-pass</td><td>Band-pass</td><td>Band-rejection</td><td>Comb</td></tr><tr><td></td><td>exp(-10x2)</td><td>1-exp(-10x²)</td><td>exp(-10(λ -1)2)</td><td>1 -exp(-10(λ-1)²)</td><td>|sin(πλ)l</td></tr><tr><td>GCN</td><td>3.4799(.9872)</td><td>67.6635(.2364)</td><td>25.8755(.1148)</td><td>21.0747(.9438)</td><td>50.5120(.2977)</td></tr><tr><td>GAT</td><td>2.3574(.9905)</td><td>21.9618(.7529)</td><td>14.4326(.4823)</td><td>12.6384(.9652)</td><td>23.1813(.6957)</td></tr><tr><td>GPR-GNN</td><td>0.4169(.9984)</td><td>0.0943(.9986)</td><td>3.5121(.8551)</td><td>3.7917(.9905)</td><td>4.6549(.9311)</td></tr><tr><td>ARMA</td><td>1.8478(.9932)</td><td>1.8632(.9793)</td><td>7.6922(.7098)</td><td>8.2732(.9782)</td><td>15.1214(.7975)</td></tr><tr><td>ChebNet</td><td>0.8220(.9973)</td><td>0.7867(.9903)</td><td>2.2722(.9104)</td><td>2.5296(.9934)</td><td>4.0735(.9447)</td></tr><tr><td>BernNet</td><td>0.0314(.9999)</td><td>0.0113(.9999)</td><td>0.0411(.9984)</td><td>0.9313(.9973)</td><td>0.9982(.9868)</td></tr></table>",
905
+ "bbox": [
906
+ 176,
907
+ 252,
908
+ 825,
909
+ 367
910
+ ],
911
+ "page_idx": 6
912
+ },
913
+ {
914
+ "type": "text",
915
+ "text": "4 Related Work ",
916
+ "text_level": 1,
917
+ "bbox": [
918
+ 174,
919
+ 395,
920
+ 321,
921
+ 412
922
+ ],
923
+ "page_idx": 6
924
+ },
925
+ {
926
+ "type": "text",
927
+ "text": "Graph neural networks (GNNs) can be broadly divided into spectral-based GNNs and spatial-based GNNs [33]. ",
928
+ "bbox": [
929
+ 174,
930
+ 429,
931
+ 823,
932
+ 458
933
+ ],
934
+ "page_idx": 6
935
+ },
936
+ {
937
+ "type": "text",
938
+ "text": "Spectral-based GNNs design spectral graph filters in the spectral domain. ChebNet [7] uses Chebyshev polynomial to approximate a filter. GCN [13] simplifies the Chebyshev filter with the first-order approximation. GraphHeat [34] uses heat kernel to design a graph filter. APPNP [14] utilizes Personalized PageRank (PPR) to set the filter weights. GPR-GNN [5] learns the polynomial filters via gradient descent on the polynomial coefficients. ARMA [2] learns a rational filter via the family of Auto-Regressive Moving Average filters [21]. AdaGNN [9] learns simple filters across multiple layers with a single parameter for each feature channel at each layer. As aforementioned, these methods mainly focus on designing low- or high-pass filters or learning filters without any constraints, which may lead to misspecified even ill-posed filters. ",
939
+ "bbox": [
940
+ 174,
941
+ 464,
942
+ 825,
943
+ 589
944
+ ],
945
+ "page_idx": 6
946
+ },
947
+ {
948
+ "type": "text",
949
+ "text": "On the other hand, spatial-based GNNs directly propagate and aggregate graph information in the spatial domain. From this perspective, GCN [13] can be explained as the aggregation of the one-hop neighbor information on the graph. GAT [30] uses the attention mechanism to learn aggregation weights. Recently, Balcilar et al. [1] bridge the gap between spectral-based and spatial-based GNNs and unify GNNs in the same framework. Their work shows that the GNNs can be interpreted as sophisticated data-driven filters. This motivates the design of the proposed BernNet, which can learn arbitrary non-negative spectral filters from real-world graph signals. ",
950
+ "bbox": [
951
+ 174,
952
+ 595,
953
+ 825,
954
+ 693
955
+ ],
956
+ "page_idx": 6
957
+ },
958
+ {
959
+ "type": "text",
960
+ "text": "5 Experiments ",
961
+ "text_level": 1,
962
+ "bbox": [
963
+ 174,
964
+ 717,
965
+ 312,
966
+ 733
967
+ ],
968
+ "page_idx": 6
969
+ },
970
+ {
971
+ "type": "text",
972
+ "text": "In this section, we conduct experiments to evaluate BernNet’s capability to learn arbitrary filters as well as the performance of BernNet on real datasets. All the experiments are conducted on a machine with an NVIDIA TITAN V GPU (12GB memory), Intel Xeon CPU $( 2 . 2 0 \\mathrm { G H z } )$ , and 512GB of RAM. ",
973
+ "bbox": [
974
+ 174,
975
+ 751,
976
+ 825,
977
+ 792
978
+ ],
979
+ "page_idx": 6
980
+ },
981
+ {
982
+ "type": "text",
983
+ "text": "5.1 Learning filters from the signal ",
984
+ "text_level": 1,
985
+ "bbox": [
986
+ 176,
987
+ 814,
988
+ 429,
989
+ 829
990
+ ],
991
+ "page_idx": 6
992
+ },
993
+ {
994
+ "type": "text",
995
+ "text": "We conduct an empirical analysis on 50 real images with the resolution of $1 0 0 \\times 1 0 0$ from the Image Processing Toolbox in Matlab. We conduct independent experiments on these 50 images and report the average of the evaluation index. Following the experimental setting in [1], we regard each image as a 2D regular 4-neighborhood grid graph. The graph structure translates to an 1 $) , 0 0 0 \\times 1 0 , 0 0 0$ adjacency matrix while the pixel intensity translates to a 10, 000-dimensional signal vector. ",
996
+ "bbox": [
997
+ 174,
998
+ 842,
999
+ 825,
1000
+ 911
1001
+ ],
1002
+ "page_idx": 6
1003
+ },
1004
+ {
1005
+ "type": "table",
1006
+ "img_path": "images/ce85e616d16afd0ab08a3ea37e2f184d604adbfffa7c10ba9865ece27cc01890.jpg",
1007
+ "table_caption": [
1008
+ "Table 3: Dataset statistics. "
1009
+ ],
1010
+ "table_footnote": [],
1011
+ "table_body": "<table><tr><td></td><td>Cora</td><td>CiteSeer</td><td>PubMed</td><td>Computers</td><td>Photo</td><td>Chameleon</td><td>Squirrel</td><td>Actor</td><td>Texas</td><td>Cornell</td></tr><tr><td>Nodes</td><td>2708</td><td>3327</td><td>19717</td><td>13752</td><td>7650</td><td>2277</td><td>5201</td><td>7600</td><td>183</td><td>183</td></tr><tr><td>Edges</td><td>5278</td><td>4552</td><td>44324</td><td>245861</td><td>119081</td><td>31371</td><td>198353</td><td>26659</td><td>279</td><td>277</td></tr><tr><td>Features</td><td>1433</td><td>3703</td><td>500</td><td>767</td><td>745</td><td>2325</td><td>2089</td><td>932</td><td>1703</td><td>1703</td></tr><tr><td>Classes</td><td>7</td><td>6</td><td>5</td><td>10</td><td>8</td><td>5</td><td>5</td><td>5</td><td>5</td><td>5</td></tr></table>",
1012
+ "bbox": [
1013
+ 176,
1014
+ 107,
1015
+ 825,
1016
+ 179
1017
+ ],
1018
+ "page_idx": 7
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "text": "For each of the 50 images, we apply 5 different filters (low-pass, high-pass, band-pass, band-rejection and comb) to the spectral domain of its signal. The formula of each filter is shown in Table 2. Recall that applying a low-pass filter $\\exp ( - 1 0 \\lambda ^ { 2 } )$ to the spectral domain $\\mathbf { L } = \\mathbf { U } d i a g \\left[ \\lambda _ { 1 } , \\ldots , \\lambda _ { n } \\right] \\mathbf { U } ^ { \\top }$ means applying Udiag $\\left[ \\exp ( - 1 0 \\lambda _ { 1 } ^ { 2 } ) , \\dots , \\exp ( - 1 0 \\lambda _ { n } ^ { 2 } ) \\right] \\mathbf { U } ^ { \\top }$ to the graph signal. Figure 3 shows the one of the input image and the corresponding filtering results. ",
1023
+ "bbox": [
1024
+ 174,
1025
+ 212,
1026
+ 825,
1027
+ 282
1028
+ ],
1029
+ "page_idx": 7
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "In this task, we use the original graph signal as the input and the filtering signal to supervise the training process. The goal is to minimize the square error between output and the filtering signal by learning the correct filter. We evaluate BernNet against five popular GNN models: GCN [13], GAT [30], GPR-GNN [5], ARMA [2] and ChebNet [7]. To ensure fairness, we use two convolutional units and a linear output layer for all models. We train all models with approximately $2 \\mathrm { k }$ trainable parameters and tune the hidden units to ensure they have similar parameters. Following [1], we discard any regularization or dropout and simply force the GNN to learn the input-output relation. For all models, we set the maximum number of epochs to 2000 and stop the training if the loss does not drop for 100 consecutive times and use Adam optimization with a 0.01 learning rate without decay. Models do not use the position information of the picture pixels. We use a mask to cover the edge nodes of the picture, so the problem can be regarded as a simple regression problem. For BernNet, we use a two-layer model, with each layer sharing the same set of $\\theta _ { k }$ for $k = 0 , \\ldots , K$ and set $K = 1 0$ . For GPR-GNN, we use the officially released code (see the supplementary materials for URL and commit numbers) and set the order of polynomial filter $K = 1 0$ . Other baseline models are based on Pytorch Geometric implementation [11]. The more detailed experiments setting can be found in the Appendix. ",
1034
+ "bbox": [
1035
+ 174,
1036
+ 289,
1037
+ 826,
1038
+ 510
1039
+ ],
1040
+ "page_idx": 7
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "Table 2 shows the average of the sum of squared error (lower the better) and the $R ^ { 2 }$ scores (higher the better). We first observe that GCN and GAT can only handle low-pass filters, which concurs with the theoretical analysis in [1]. GPR-GNN, ARMA and ChebNet can learn different filters from the signals. However, BernNet consistently outperformed these models by a large margin on all tasks in terms of both metrics. We attribute this quality to BernNet’s ability to tune the coefficients $\\theta _ { k }$ ’s, which directly correspond to the uniformly sampled filter values. ",
1045
+ "bbox": [
1046
+ 174,
1047
+ 516,
1048
+ 825,
1049
+ 599
1050
+ ],
1051
+ "page_idx": 7
1052
+ },
1053
+ {
1054
+ "type": "text",
1055
+ "text": "5.2 Node classification on real-world datasets ",
1056
+ "text_level": 1,
1057
+ "bbox": [
1058
+ 173,
1059
+ 623,
1060
+ 500,
1061
+ 638
1062
+ ],
1063
+ "page_idx": 7
1064
+ },
1065
+ {
1066
+ "type": "text",
1067
+ "text": "We now evaluate the performance of BernNet against the competitors on real-world datasets. Following [5], we include three citation graph Cora, CiteSeer and PubMed [27, 37], and the Amazon co-purchase graph Computers and Photo [20]. As shown in [5] these 5 datasets are homophilic graphs on which the connected nodes tend to share the same label. We also include the Wikipedia graph Chameleon and Squirrel [26], the Actor co-occurrence graph, and webpage graphs Texas and Cornell from WebKB‡ [22]. These 5 datasets are heterophilic datasets on which connected nodes tend to have different labels. We summarize the statistics of these datasets in Table 3. ",
1068
+ "bbox": [
1069
+ 174,
1070
+ 651,
1071
+ 825,
1072
+ 748
1073
+ ],
1074
+ "page_idx": 7
1075
+ },
1076
+ {
1077
+ "type": "text",
1078
+ "text": "Following [5], we perform full-supervised node classification task with each model, where we randomly split the node set into train/validation/test set with ratio $6 0 \\% / 2 0 \\% / 2 0 \\%$ . For fairness, we generate 10 random splits by random seeds and evaluate all models on the same splits, and report the average metric for each model. ",
1079
+ "bbox": [
1080
+ 174,
1081
+ 756,
1082
+ 825,
1083
+ 810
1084
+ ],
1085
+ "page_idx": 7
1086
+ },
1087
+ {
1088
+ "type": "text",
1089
+ "text": "We compare BernNet with 6 baseline models: MLP, GCN [13], GAT [30], APPNP [14], ChebNet [7], and GPR-GNN [5]. For GPR-GNN, we use the officially released code (see the supplementary materials for URL and commit numbers) and set the order of polynomial filter $K = 1 0$ . For other models, we use the corresponding Pytorch Geometric library implementations [11]. For BernNet, we ",
1090
+ "bbox": [
1091
+ 174,
1092
+ 818,
1093
+ 825,
1094
+ 873
1095
+ ],
1096
+ "page_idx": 7
1097
+ },
1098
+ {
1099
+ "type": "image",
1100
+ "img_path": "images/765778b1d4ff270459c69b13aef9961eb2a095d359a571028f9ab9fa76f0416a.jpg",
1101
+ "image_caption": [
1102
+ "Figure 4: Filters learnt from real-world datasets by BernNet. "
1103
+ ],
1104
+ "image_footnote": [],
1105
+ "bbox": [
1106
+ 178,
1107
+ 94,
1108
+ 813,
1109
+ 203
1110
+ ],
1111
+ "page_idx": 8
1112
+ },
1113
+ {
1114
+ "type": "table",
1115
+ "img_path": "images/63e83abd549a8e0b4e6706eb749430e54629fffaf1ae38ab3e1947f15f70b7fe.jpg",
1116
+ "table_caption": [
1117
+ "Table 4: Results on real world benchmark datasets: Mean accuracy $( \\% ) \\pm 9 5 \\%$ confidence interval. "
1118
+ ],
1119
+ "table_footnote": [],
1120
+ "table_body": "<table><tr><td></td><td>GCN</td><td>GAT</td><td>APPNP</td><td>MLP</td><td>ChebNet</td><td>GPR-GNN</td><td>BernNet</td></tr><tr><td>Cora</td><td>87.14±1.01</td><td>88.03±0.79</td><td>88.14±0.73</td><td>76.96±0.95</td><td>86.67±0.82</td><td>88.57±0.69</td><td>88.52±0.95</td></tr><tr><td>CiteSeer</td><td>79.86±0.67</td><td>80.52±0.71</td><td>80.47±0.74</td><td>76.58±0.88</td><td>79.11±0.75</td><td>80.12±0.83</td><td>80.09±0.79</td></tr><tr><td>PubMed</td><td>86.74±0.27</td><td>87.04±0.24</td><td>88.12±0.31</td><td>85.94±0.22</td><td>87.95±0.28</td><td>88.46±0.33</td><td>88.48±0.41</td></tr><tr><td>Computers</td><td>83.32±0.33</td><td>83.32±0.39</td><td>85.32±0.37</td><td>82.85±0.38</td><td>87.54±0.43</td><td>86.85±0.25</td><td>87.64±0.44</td></tr><tr><td>Photo</td><td>88.26±0.73</td><td>90.94±0.68</td><td>88.51±0.31</td><td>84.72±0.34</td><td>93.77±0.32</td><td>93.85±0.28</td><td>93.63±0.35</td></tr><tr><td>Chameleon</td><td>59.61±2.21</td><td>63.13±1.93</td><td>51.84±1.82</td><td>46.85±1.51</td><td>59.28±1.25</td><td>67.28±1.09</td><td>68.29±1.58</td></tr><tr><td>Actor</td><td>33.23±1.16</td><td>33.93±2.47</td><td>39.66±0.55</td><td>40.19±0.56</td><td>37.61±0.89</td><td>39.92±0.67</td><td>41.79±101</td></tr><tr><td>Squirrel</td><td>46.78±0.87</td><td>44.49±0.88</td><td>34.71±0.57</td><td>31.03±1.18</td><td>40.55±0.42</td><td>50.15±1.92</td><td>51.35±0.73</td></tr><tr><td>Texas</td><td>77.38±3.28</td><td>80.82±2.13</td><td>90.98±1.64</td><td>91.45±1.14</td><td>86.22±2.45</td><td>92.95±1.31</td><td>93.12±0.65</td></tr><tr><td>Cornell</td><td>65.90±4.43</td><td>78.21±2.95</td><td>91.81±1.96</td><td>90.82±1.63</td><td>83.93±2.13</td><td>91.37±1.81</td><td>92.13±1.64</td></tr></table>",
1121
+ "bbox": [
1122
+ 176,
1123
+ 263,
1124
+ 825,
1125
+ 410
1126
+ ],
1127
+ "page_idx": 8
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "use the following propagation process: ",
1132
+ "bbox": [
1133
+ 174,
1134
+ 435,
1135
+ 428,
1136
+ 449
1137
+ ],
1138
+ "page_idx": 8
1139
+ },
1140
+ {
1141
+ "type": "equation",
1142
+ "img_path": "images/bc3e86ae34d642196fbdc687dfd60857e436eb1f46d12dd1e07dd14d0ddfafb9.jpg",
1143
+ "text": "$$\n\\mathbf { Z } = \\sum _ { k = 0 } ^ { K } \\theta _ { k } \\frac { 1 } { 2 ^ { K } } \\binom { K } { k } ( 2 \\mathbf { I } - \\mathbf { L } ) ^ { K - k } \\mathbf { L } ^ { k } f \\left( \\mathbf { X } \\right) ,\n$$",
1144
+ "text_format": "latex",
1145
+ "bbox": [
1146
+ 348,
1147
+ 454,
1148
+ 647,
1149
+ 498
1150
+ ],
1151
+ "page_idx": 8
1152
+ },
1153
+ {
1154
+ "type": "text",
1155
+ "text": "where $f ( \\mathbf { X } )$ is a 2-layer MLP with 64 hidden units on the feature matrix $\\mathbf { X }$ . Note that this propagation process is almost identical to that of APPNP or GPR-GNN. The only difference is that we substitute the Generalized PageRank polynomial with Bernstein polynomial. We set the $K = 1 0$ and use different learning rate and dropout for the linear layer and the propagation layer. For all models, we optimal leaning rate over $\\{ 0 . 0 \\bar { 0 } 1 , 0 . 0 0 2 , 0 . 0 1 , 0 . 0 5 \\}$ and weight decay $\\{ 0 . 0 , \\dot { 0 } . 0 0 0 5 \\}$ . More detailed experimental settings are discussed in Appendix. ",
1156
+ "bbox": [
1157
+ 174,
1158
+ 503,
1159
+ 825,
1160
+ 588
1161
+ ],
1162
+ "page_idx": 8
1163
+ },
1164
+ {
1165
+ "type": "text",
1166
+ "text": "We use the micro-F1 score with a $9 5 \\%$ confidence interval as the evaluation metric. The relevant results are summarized in Table 4. Boldface letters indicate the best result for the given confidence interval. We observe that BernNet provides the best results on seven out of the ten datasets. On the other three datasets, BernNet also achieves competitive results against SOTA methods. ",
1167
+ "bbox": [
1168
+ 174,
1169
+ 593,
1170
+ 825,
1171
+ 650
1172
+ ],
1173
+ "page_idx": 8
1174
+ },
1175
+ {
1176
+ "type": "text",
1177
+ "text": "More interestingly, this experiment also shows BernNet can learn complex filters from real-world datasets with only the supervision of node labels. Figure 4 plots some of the filters BernNet learnt in the training process. On Actor, BernNet learns an all-pass-alike filter, which concurs with the fact that MLP outperforms all other baselines on this dataset. On Chameleon and Squirrel, BernNet learns two comb-alike filters. Given that BernNet outperforms all competitors by at least $1 \\%$ on these two datasets, it may suggest that comb-alike filters are necessary for Chameleon and Squirrel. Figure 5 shows the Coefficients $\\theta _ { k }$ learnt from real-world datasets by BernNet. When comparing Figures 4 and 5, we observe that the curves of filters and curves of coefficients are almost the same. This is because BernNet’s coefficients are highly correlated with the spectral property of the target filter, which indicates BernNet Bernnet has strong interpretability. ",
1178
+ "bbox": [
1179
+ 173,
1180
+ 655,
1181
+ 825,
1182
+ 795
1183
+ ],
1184
+ "page_idx": 8
1185
+ },
1186
+ {
1187
+ "type": "text",
1188
+ "text": "Finally, we present the train time for each method in Table 5. BernNet is slower than other methods due to its quadratic dependence on the degree $K$ . However, compared to the SOTA method GPRGNN, the margin is generally less than 2, which is often acceptable in practice. In theory, both ChebNet [7] and GPR-GNN [5] are linear time complexity related to propagation step $K$ , but BernNet is quadratic time complexity related to $K$ . Delgado et al. [8] show that Bernstein approximation can be evaluated in linear time related to $K$ using the corner cutting algorithm. However, BernNet can not use this algorithm directly, because we need to multiply signal $\\mathbf { x }$ . How to convert BernNet to linear complexity will be a problem worth studying in the future. ",
1189
+ "bbox": [
1190
+ 174,
1191
+ 800,
1192
+ 825,
1193
+ 911
1194
+ ],
1195
+ "page_idx": 8
1196
+ },
1197
+ {
1198
+ "type": "image",
1199
+ "img_path": "images/b0dcb357edbc74b9b1067c37e462472b96686afdfe6fe7fdb0d4e52b97d5bd83.jpg",
1200
+ "image_caption": [
1201
+ "Figure 5: Coefficients $\\theta _ { k }$ learnt from real-world datasets by BernNet. "
1202
+ ],
1203
+ "image_footnote": [],
1204
+ "bbox": [
1205
+ 179,
1206
+ 94,
1207
+ 813,
1208
+ 203
1209
+ ],
1210
+ "page_idx": 9
1211
+ },
1212
+ {
1213
+ "type": "table",
1214
+ "img_path": "images/a0ba4c43ac3275e9c568953872efbc59a96ece653711eb4b73c5eefb4ab518f1.jpg",
1215
+ "table_caption": [
1216
+ "Table 5: Average running time per epoch (ms)/average total running time (s). "
1217
+ ],
1218
+ "table_footnote": [],
1219
+ "table_body": "<table><tr><td></td><td>GCN</td><td>GAT</td><td>APPNP</td><td>MLP</td><td>ChebNet</td><td>GPR-GNN</td><td>BernNet</td></tr><tr><td>Cora</td><td>4.59/1.62</td><td>9.56/2.03</td><td>7.16/2.32</td><td>3.06/0.93</td><td>6.25/1.76</td><td>9.94/2.21</td><td>19.71/5.47</td></tr><tr><td>CiteSeer</td><td>4.63/1.95</td><td>9.93/2.21</td><td>7.79/2.77</td><td>2.95/1.09</td><td>8.28/2.56</td><td>11.16/2.37</td><td>22.36/6.32</td></tr><tr><td>PubMed</td><td>5.12/1.87</td><td>16.16/3.41</td><td>8.21/2.63</td><td>2.91/1.61</td><td>18.04/3.03</td><td>10.45/2.81</td><td>22.02/8.19</td></tr><tr><td>Computers</td><td>5.72/2.52</td><td>30.91/7.85</td><td>9.19/3.48</td><td>3.47/1.31</td><td>20.64/9.64</td><td>16.05/4.38</td><td>28.83/8.69</td></tr><tr><td>Photo</td><td>5.08/2.63</td><td>19.97/5.41</td><td>8.69/4.18</td><td>3.67/1.66</td><td>13.25/7.02</td><td>13.96/3.94</td><td>24.69/7.37</td></tr><tr><td>Chameleon</td><td>4.93/0.99</td><td>13.11/2.66</td><td>7.93/1.62</td><td>3.14/0.63</td><td>10.92/2.25</td><td>10.93/2.41</td><td>22.54/4.75</td></tr><tr><td>Actor</td><td>5.43/1.09</td><td>11.94/2.45</td><td>8.46/1.71</td><td>3.82/0.77</td><td>7.99/1.62</td><td>11.57/2.35</td><td>23.34/5.81</td></tr><tr><td>Squirrel</td><td>5.61/1.13</td><td>22.76/4.91</td><td>8.01/1.61</td><td>3.41/0.69</td><td>38.12/7.78</td><td>9.87/5.56</td><td>25.58/9.23</td></tr><tr><td>Texas</td><td>4.58/0.92</td><td>9.65/1.96</td><td>7.83/1.63</td><td>3.19/0.65</td><td>6.51/1.34</td><td>10.45/2.16</td><td>23.35/4.81</td></tr><tr><td>Cornell</td><td>4.83/0.97</td><td>9.79/1.99</td><td>8.23/1.68</td><td>3.25/0.66</td><td>5.85/1.22</td><td>9.86/2.05</td><td>22.23/5.26</td></tr></table>",
1220
+ "bbox": [
1221
+ 176,
1222
+ 263,
1223
+ 825,
1224
+ 412
1225
+ ],
1226
+ "page_idx": 9
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "6 Conclusion ",
1231
+ "text_level": 1,
1232
+ "bbox": [
1233
+ 174,
1234
+ 436,
1235
+ 299,
1236
+ 453
1237
+ ],
1238
+ "page_idx": 9
1239
+ },
1240
+ {
1241
+ "type": "text",
1242
+ "text": "This paper proposes BernNet, a graph neural network that provides a simple and intuitive mechanism for designing and learning an arbitrary spectral filter via Bernstein polynomial approximation. Compared to previous methods, BernNet can approximate complex filters such as band-rejection and comb filters, and can provide better interpretability. Furthermore, the polynomial filters designed and learned by BernNet are always valid. Experiments show that BernNet outperforms SOTA methods in terms of effectiveness on both synthetic and real-world datasets. For future work, an interesting direction is to improve the efficiency of BernNet. ",
1243
+ "bbox": [
1244
+ 174,
1245
+ 468,
1246
+ 825,
1247
+ 565
1248
+ ],
1249
+ "page_idx": 9
1250
+ },
1251
+ {
1252
+ "type": "text",
1253
+ "text": "Broader Impact ",
1254
+ "text_level": 1,
1255
+ "bbox": [
1256
+ 174,
1257
+ 584,
1258
+ 310,
1259
+ 602
1260
+ ],
1261
+ "page_idx": 9
1262
+ },
1263
+ {
1264
+ "type": "text",
1265
+ "text": "The proposed BernNet algorithm addresses the challenge of designing and learning arbitrary spectral filters on graphs. We consider this algorithm a general technical and theoretical contribution, without any foreseeable specific impacts. For applications in bioinformatics, computer vision, and natural language processing, applying the BernNet algorithm may improve the performance of existing GNN models. We leave the exploration of other potential impacts to future work. ",
1266
+ "bbox": [
1267
+ 174,
1268
+ 614,
1269
+ 825,
1270
+ 685
1271
+ ],
1272
+ "page_idx": 9
1273
+ },
1274
+ {
1275
+ "type": "text",
1276
+ "text": "Acknowledgments and Disclosure of Funding ",
1277
+ "text_level": 1,
1278
+ "bbox": [
1279
+ 174,
1280
+ 704,
1281
+ 553,
1282
+ 722
1283
+ ],
1284
+ "page_idx": 9
1285
+ },
1286
+ {
1287
+ "type": "text",
1288
+ "text": "Zhewei Wei was supported in part by National Natural Science Foundation of China (No. 61972401, No. 61932001 and No. 61832017), by Beijing Outstanding Young Scientist Program NO. BJJWZYJH012019100020098, by Alibaba Group through Alibaba Innovative Research Program, and by CCF-Baidu Open the Fund (NO.2021PP15002000). Zengfeng Huang was supported by National Natural Science Foundation of China Grant No. 61802069, and by Shanghai Science and Technology Commission Grant No. 17JC1420200. Hongteng Xu was supported by Tencent AI Lab Rhino-Bird Joint Research Program. This work is supported by China Unicom Innovation Ecological Cooperation Plan and by Intelligent Social Governance Platform, Major Innovation $\\&$ Planning Interdisciplinary Platform for the “Double-First Class” Initiative, Renmin University of China. We also wish to acknowledge the support provided and contribution made by Public Policy and Decision-making Research Lab of Renmin University of China. ",
1289
+ "bbox": [
1290
+ 173,
1291
+ 734,
1292
+ 825,
1293
+ 887
1294
+ ],
1295
+ "page_idx": 9
1296
+ },
1297
+ {
1298
+ "type": "text",
1299
+ "text": "References \n[1] Muhammet Balcilar, Pierre Héroux, Benoit Gaüzère, Sébastien Adam, and Paul Honeine. Analyzing the expressive power of graph neural networks in a spectral perspective. In ICLR, 2021. \n[2] Filippo Maria Bianchi, Daniele Grattarola, Lorenzo Livi, and Cesare Alippi. Graph neural networks with convolutional arma filters. TPAMI, 2021. \n[3] Toon Bogaerts, Antonio D Masegosa, Juan S Angarita-Zapata, Enrique Onieva, and Peter Hellinckx. A graph cnn-lstm neural network for short and long-term traffic forecasting based on trajectory data. Transportation Research Part C: Emerging Technologies, 2020. \n[4] Zhao-Min Chen, Xiu-Shen Wei, Peng Wang, and Yanwen Guo. Multi-label image recognition with graph convolutional networks. In CVPR, 2019. \n[5] Eli Chien, Jianhao Peng, Pan Li, and Olgica Milenkovic. Adaptive universal generalized pagerank graph neural network. In ICLR, 2021. \n[6] Zhiyong Cui, Kristian Henrickson, Ruimin Ke, and Yinhai Wang. Traffic graph convolutional recurrent neural network: A deep learning framework for network-scale traffic learning and forecasting. T-ITS, 21(11):4883–4894, 2019. \n[7] Michaël Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks on graphs with fast localized spectral filtering. In NeurIPS, pages 3844–3852, 2016. \n[8] Jorge Delgado and Juan Manuel Pena. A linear complexity algorithm for the bernstein basis. In GMP, pages 162–167, 2003. \n[9] Yushun Dong, Kaize Ding, Brian Jalaian, Shuiwang Ji, and Jundong Li. Graph neural networks with adaptive frequency response filter. In CIKM, 2021. \n[10] Rida T Farouki. The bernstein polynomial basis: A centennial retrospective. Computer Aided Geometric Design, 29(6):379–419, 2012. \n[11] Matthias Fey and Jan Eric Lenssen. Fast graph representation learning with pytorch geometric. In ICLR, 2019. \n[12] Dejun Jiang, Zhenxing Wu, Chang-Yu Hsieh, Guangyong Chen, Ben Liao, Zhe Wang, Chao Shen, Dongsheng Cao, Jian Wu, and Tingjun Hou. Could graph neural networks learn better molecular representation for drug discovery? a comparison study of descriptor-based and graph-based models. Journal of cheminformatics, 13(1):1–23, 2021. \n[13] Thomas N Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In ICLR, 2017. \n[14] Johannes Klicpera, Aleksandar Bojchevski, and Stephan Günnemann. Predict then propagate: Graph neural networks meet personalized pagerank. In ICLR, 2019. \n[15] Johannes Klicpera, Stefan Weißenberger, and Stephan Günnemann. Diffusion improves graph learning. In NeurIPS, 2019. \n[16] Ron Levie, Federico Monti, Xavier Bresson, and Michael M Bronstein. Cayleynets: Graph convolutional neural networks with complex rational spectral filters. Transactions on Signal Processing, 67(1):97–109, 2018. \n[17] Chang Li and Dan Goldwasser. Encoding social information with graph convolutional networks forpolitical perspective detection in news media. In ACL, 2019. \n[18] Yaguang Li, Rose Yu, Cyrus Shahabi, and Yan Liu. Diffusion convolutional recurrent neural network: Data-driven traffic forecasting. In ICLR, 2018. \n[19] Meng Liu, Hongyang Gao, and Shuiwang Ji. Towards deeper graph neural networks. In KDD, 2020. \n[20] Julian McAuley, Christopher Targett, Qinfeng Shi, and Anton Van Den Hengel. Image-based recommendations on styles and substitutes. In SIGIR, 2015. \n[21] Sunil K Narang, Akshay Gadde, and Antonio Ortega. Signal processing techniques for interpolation in graph structured data. In ICASSP. IEEE, 2013. \n[22] Hongbin Pei, Bingzhe Wei, Kevin Chen-Chuan Chang, Yu Lei, and Bo Yang. Geom-gcn: Geometric graph convolutional networks. In ICLR, 2020. \n[23] Victoria Powers and Bruce Reznick. Polynomials that are positive on an interval. Transactions of the American Mathematical Society, 352(10):4677–4692, 2000. \n[24] Jiezhong Qiu, Jian Tang, Hao Ma, Yuxiao Dong, Kuansan Wang, and Jie Tang. Deepinf: Social influence prediction with deep learning. In KDD, 2018. \n[25] Prakash Chandra Rathi, R Frederick Ludlow, and Marcel L Verdonk. Practical high-quality electrostatic potential surfaces for drug discovery using a graph-convolutional deep neural network. Journal of medicinal chemistry, 63(16):8778–8790, 2019. \n[26] Benedek Rozemberczki, Carl Allen, and Rik Sarkar. Multi-scale attributed node embedding. Journal of Complex Networks, 9(2):cnab014, 2021. \n[27] 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. \n[28] Daniel Spielman. Spectral and algebraic graph theory. Yale lecture notes, draft of December, 4, 2019. \n[29] Peihao Tong, Qifan Zhang, and Junjie Yao. Leveraging domain context for question answering over knowledge graph. Data Science and Engineering, 4(4):323–335, 2019. \n[30] Petar Velickovi ˇ c, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua ´ Bengio. Graph attention networks. In ICLR, 2018. \n[31] Felix Wu, Amauri Souza, Tianyi Zhang, Christopher Fifty, Tao Yu, and Kilian Weinberger. Simplifying graph convolutional networks. In ICML, 2019. \n[32] Shu Wu, Yuyuan Tang, Yanqiao Zhu, Liang Wang, Xing Xie, and Tieniu Tan. Session-based recommendation with graph neural networks. In AAAI, 2019. \n[33] Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and S Yu Philip. A comprehensive survey on graph neural networks. IEEE transactions on neural networks and learning systems, 2020. \n[34] Bingbing Xu, Huawei Shen, Qi Cao, Keting Cen, and Xueqi Cheng. Graph convolutional networks using heat kernel for semi-supervised learning. In IJCAI, 2019. \n[35] Bingbing Xu, Huawei Shen, Qi Cao, Yunqi Qiu, and Xueqi Cheng. Graph wavelet neural network. In ICLR, 2018. \n[36] Keyulu Xu, Chengtao Li, Yonglong Tian, Tomohiro Sonobe, Ken-ichi Kawarabayashi, and Stefanie Jegelka. Representation learning on graphs with jumping knowledge networks. In ICML, 2018. \n[37] Zhilin Yang, William Cohen, and Ruslan Salakhudinov. Revisiting semi-supervised learning with graph embeddings. In ICML, pages 40–48. PMLR, 2016. \n[38] Rex Ying, Ruining He, Kaifeng Chen, Pong Eksombatchai, William L Hamilton, and Jure Leskovec. Graph convolutional neural networks for web-scale recommender systems. In KDD, 2018. \n[39] Long Zhao, Xi Peng, Yu Tian, Mubbasir Kapadia, and Dimitris N Metaxas. Semantic graph convolutional networks for 3d human pose regression. In CVPR, 2019. \n[40] Dengyong Zhou, Olivier Bousquet, Thomas Lal, Jason Weston, and Bernhard Schölkopf. Learning with local and global consistency. In NeurIPS, 2004. \n[41] Meiqi Zhu, Xiao Wang, Chuan Shi, Houye Ji, and Peng Cui. Interpreting and unifying graph neural networks with an optimization framework. In WWW, 2021. ",
1300
+ "bbox": [
1301
+ 173,
1302
+ 65,
1303
+ 828,
1304
+ 912
1305
+ ],
1306
+ "page_idx": 10
1307
+ },
1308
+ {
1309
+ "type": "text",
1310
+ "text": "",
1311
+ "bbox": [
1312
+ 171,
1313
+ 46,
1314
+ 828,
1315
+ 912
1316
+ ],
1317
+ "page_idx": 11
1318
+ },
1319
+ {
1320
+ "type": "text",
1321
+ "text": "",
1322
+ "bbox": [
1323
+ 169,
1324
+ 90,
1325
+ 826,
1326
+ 157
1327
+ ],
1328
+ "page_idx": 12
1329
+ }
1330
+ ]
parse/train/WigDnV-_Gq/WigDnV-_Gq_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/WigDnV-_Gq/WigDnV-_Gq_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rklklCVYvB/rklklCVYvB.md ADDED
@@ -0,0 +1,350 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TIME2VEC: LEARNING A VECTOR REPRESENTATION OF TIME
2
+
3
+ Anonymous authors Paper under double-blind review
4
+
5
+ # ABSTRACT
6
+
7
+ Time is an important feature in many applications involving events that occur synchronously and/or asynchronously. To effectively consume time information, recent studies have focused on designing new architectures. In this paper, we take an orthogonal but complementary approach by providing a model-agnostic vector representation for time, called $T i m e 2 V e c$ , that can be easily imported into many existing and future architectures and improve their performances. We show on a range of models and problems that replacing the notion of time with its Time2Vec representation improves the performance of the final model.
8
+
9
+ # 1 INTRODUCTION
10
+
11
+ In building machine learning models, “time” is often an important feature. Examples include predicting daily sales for a company based on the date (and other available features), predicting the time for a patient’s next health event based on their medical history, and predicting the song a person is interested in listening to based on their listening history. The input for problems involving time can be considered as a sequence where, rather than being identically and independently distributed (iid), there exists a dependence across time (and/or space) among the data points. The sequence can be either synchronous, i.e. sampled at regular intervals, or asynchronous, i.e. sampled at different points in time. In both cases, time may be an important feature. For predicting daily sales, for instance, it may be useful to know if it is a holiday or not. For predicting the time for a patient’s next encounter, it is important to know the (asynchronous) times of their previous visits.
12
+
13
+ Recurrent neural networks (RNNs) do not typically treat time itself as a feature, typically assuming that inputs are synchronous. When time is known to be a relevant feature, it is often fed in as yet another input dimension (Choi et al., 2016; Du et al., 2016; Li et al., 2018b). In practice, RNNs often fail at effectively making use of time as a feature. To help the RNN make better use of time, several researchers design hand-crafted features of time that suit their specific problem and feed those features into the RNN (Choi et al., 2016; Baytas et al., 2017; Kwon et al., 2019). Hand-crafting features, however, can be expensive and requires domain expertise about the problem.
14
+
15
+ Many recent studies aim at obviating the need for hand-crafting features by proposing generalpurpose—as opposed to problem specific—architectures that better handle time (Neil et al., 2016; Zhu et al., 2017; Mei & Eisner, 2017; Hu & Qi, 2017; Upadhyay et al., 2018; Li et al., 2018a). We follow an orthogonal but complementary approach to these recent studies by developing a generalpurpose model-agnostic representation for time that can be potentially used in any architecture. In particular, we develop a learnable vector representation (or embedding) for time as a vector representation can be easily combined with many models or architectures. We call this vector representation Time2Vec. To validate the effectiveness of Time2Vec, we conduct experiments on several (synthesized and real-world) datasets and integrate it with several architectures. Our main result is to show that on a range of problems and architectures that consume time, using Time2Vec instead of the time itself offers a boost in performance.
16
+
17
+ # 2 RELATED WORK
18
+
19
+ There is a long history of algorithms for predictive modeling in time series analysis. They include auto-regressive techniques (Akaike, 1969) that predict future measurements in a sequence based on a window of past measurements. Since it is not always clear how long the window of past measurements should be, hidden Markov models (Rabiner & Juang, 1986), dynamic Bayesian networks (Murphy & Russell, 2002), and dynamic conditional random fields (Sutton et al., 2007) use hidden states as a finite memory that can remember information arbitrarily far in the past. These models can be seen as special cases of recurrent neural networks (Hochreiter & Schmidhuber, 1997). They typically assume that inputs are synchronous, i.e. arrive at regular time intervals, and that the underlying process is stationary with respect to time. It is possible to aggregate asynchronous events into time-bins and to use synchronous models over the bins (Lipton et al., 2016; Anumula et al., 2018). Asynchronous events can also be directly modeled with point processes (e.g., Poisson, Cox, and Hawkes point processes) (Daley & Vere-Jones, 2007; Laub et al., 2015; Xiao et al., 2017; Li et al., 2018a; Xiao et al., 2018) and continuous time normalizing flows (Chen et al., 2018). Alternatively, one can also interpolate or make predictions at arbitrary time stamps with Gaussian processes (Rasmussen, 2004) or support vector regression (Drucker et al., 1997).
20
+
21
+ Our goal is not to propose a new model for time series analysis, but instead to propose a representation of time in the form of a vector embedding that can be used by many models. Vector embedding has been previously successfully used for other domains such as text (Mikolov et al., 2013; Pennington et al., 2014), (knowledge) graphs (Grover & Leskovec, 2016; Nickel et al., 2016; Kazemi & Poole, 2018), and positions (Vaswani et al., 2017; Gehring et al., 2017). Our approach is related to time decomposition techniques that encode a temporal signal into a set of frequencies (Cohen, 1995). However, instead of using a fixed set of frequencies as in Fourier transforms (Bracewell & Bracewell, 1986), we allow the frequencies to be learned. We take inspiration from the neural decomposition of Godfrey & Gashler (2018) (and similarly (Gashler & Ashmore, 2016)). For time-series analysis, Godfrey & Gashler (2018) decompose a 1D signal of time into several sine functions and a linear function to extrapolate (or interpolate) the given signal. We follow a similar intuition but instead of decomposing a 1D signal of time into its components, we transform the time itself and feed its transformation into the model that is to consume the time information. Our approach corresponds to the technique of Godfrey & Gashler (2018) when applied to regression tasks in 1D signals, but it is more general since we learn a representation that can be shared across many signals and can be fed to many models for tasks beyond regression.
22
+
23
+ While there is a body of literature on designing neural networks with sine activations (Lapedes & Farber, 1987; Sopena et al., 1999; Wong et al., 2002; Mingo et al., 2004; Liu et al., 2016), our work uses sine only for transforming time; the rest of the network uses other activations. There is also a set of techniques that consider time as yet another feature and concatenate time (or some hand designed features of time such as log and/or inverse of delta time) with the input (Choi et al., 2016; Li et al., 2017; Du et al., 2016; Baytas et al., 2017; Kwon et al., 2019; Trivedi et al., 2017; Kumar et al., 2018; Ma et al., 2018). Kazemi et al. (2019) survey several such approaches for dynamic (knowledge) graphs. These models can directly benefit from our proposed vector embedding, Time2Vec, by concatenating Time2Vec with the input instead of their time features. Other works (Neil et al., 2016; Zhu et al., 2017; Mei & Eisner, 2017; Hu & Qi, 2017; Upadhyay et al., 2018; Li et al., 2018a) propose new neural architectures that take into account time (or some features of time). We show how Time2Vec can be used in one of these architectures to better exploit temporal information; it can be potentially used in other architectures as well.
24
+
25
+ # 3 BACKGROUND & NOTATION
26
+
27
+ We use lower-case letters to denote scalars, bold lower-case letters to denote vectors, and bold upper-case letters to denote matrices. We represent the $i ^ { t h }$ element of the vector $\pmb { r }$ as $\pmb { r } [ i ]$ . For two vectors $\pmb { r }$ and $\pmb { s }$ , we use $[ \pmb { r } ; \pmb { s } ]$ to represent their concatenation and $\pmb { r } \odot \pmb { s }$ to represent element-wise (Hadamard) multiplication of the two vectors. Throughout the paper, we use $\tau$ to represent a scalar notion of time (e.g., absolute time or time from the last event) and $\tau$ for a vector of time features.
28
+
29
+ Long Short Term Memory (LSTM) (Hochreiter & Schmidhuber, 1997) is considered one of the most successful RNN architectures for sequence modeling. A formulation of the original LSTM model and a variant of it based on peepholes (Gers & Schmidhuber, 2000) is presented in Appendix C. When time is a relevant feature, the easiest way to handle time is to consider it as just another feature (or extract some engineered features from it), concatenate the time features with the input, and use the standard LSTM model (or some other sequence model) (Choi et al., 2016; Du et al., 2016; Li et al.,
30
+
31
+ 2018b). In this paper, we call this model $L S T M + T .$ Another way of handling time is by changing the formulation of the standard LSTM. Zhu et al. (2017) developed one such formulation, named TimeLSTM, by adding time gates to the architecture of the LSTM with peepholes. They proposed three architectures namely TLSTM1, TLSTM2, TLSTM3. A description of TLSTM1 and TLSTM3 can be found in Appendix C (we skipped TLSTM2 as it is quite similar to TLSTM3).
32
+
33
+ # 4 TIME2VEC
34
+
35
+ A common approach to deal with time in different applications is to apply some hand-crafted function(s) $f _ { 1 } , \ldots , f _ { m }$ to $\tau$ , $\mathit { \Pi } _ { \tau }$ can be absolute time, time from last event, etc.), concatenate the outputs $f _ { 1 } ( \tau ) , \dots , f _ { m } ( \tau )$ with the rest of the input features $\pmb { x }$ , and feed the resulting vector $[ { \pmb x } ; f _ { 1 } ( \tau ) ; \dots ; f _ { m } ( \tau ) ]$ to a sequence model (see Section 2 for references). This approach requires hand-crafting useful functions of time which may be difficult (or impossible) in several applications, and the hand-crafted functions may not be optimal for the task at hand. Instead of hand-crafting functions of time, we devise a representation of time which can be used to approximate any function through learnable parameters. Such a representation offers two advantages: 1- it obviates the need for hand-crafting functions of time and 2- it provides the grounds for learning suitable functions of time based on the data. As vector representations can be efficiently integrated with the current deep learning architectures, we employ a vector representation for time.
36
+
37
+ Our proposed representation leverages the Fourier sine series (Arfken & Weber, 1999) according to which any 1D function can be approximated in a given interval using a weighted sum of sinusoids with appropriate frequencies (and phase-shifts). We include $k$ sinusoids of the form $s i n ( \omega _ { i } \tau + \varphi _ { i } )$ in our vector representation where $\omega _ { i }$ and $\varphi _ { i }$ are learnable parameters1. That is, we concatenate the input features $\pmb { x }$ with $k$ sinusoids and feed the concatenation $[ \pmb { x } ; s i n ( \omega _ { 1 } \tau + \varphi _ { 1 } ) ; \dots ; s i n ( \omega _ { k } \tau + \varphi _ { k } ) ]$ into a sequence model. Different functions of time can be created using these sinusoids by taking a weighted sum of them with different weights. We allow the weights of the sequence model to combine the sinusoids and create functions of time suitable for the task. If we expand the output $\begin{array} { r } { \pmb { a } ( \tau , k ) [ j ] = \gamma _ { j } + \sum _ { i = 1 } ^ { k } \theta _ { j , i } \sin \left( \omega _ { i } \tau + \varphi _ { i } \right) } \end{array}$ fore, wheures p $\theta _ { j , i ^ { \mathrm { S } } }$ g an activation function), it are the first layer weights and on the temporal features). Ea $\gamma _ { j }$ $\pmb { x }$ $\mathbf { \pmb { a } } ( \tau , k ) [ j ]$ operates on the input features $\pmb { x }$ as well as a learned function $\begin{array} { r } { f _ { j } ( \tau ) = \sum _ { i = 1 } ^ { k } \theta _ { j , i } \sin { \left( \omega _ { i } \tau + \varphi _ { i } \right) } } \end{array}$ of time, as opposed to a hand-crafted function2. Following Godfrey & Gashler (2018), to facilitate approximating functions with non-periodic patterns and help with generalization, we also include a linear projection of time in our vector representation. We name our vector representation of time Time2Vec. Time2Vec of $\tau$ , denoted as $\mathbf { t } 2 \mathbf { v } ( \tau )$ , is a vector of size $k + 1$ defined as follows:
38
+
39
+ $$
40
+ \mathbf t 2 \mathbf v ( \tau ) [ i ] = { \left\{ \begin{array} { l l } { \omega _ { i } \tau + \varphi _ { i } , } & { { \mathrm { i f } } i = 0 . } \\ { \sin { ( \omega _ { i } \tau + \varphi _ { i } ) } , } & { { \mathrm { i f } } 1 \leq i \leq k . } \end{array} \right. }
41
+ $$
42
+
43
+ where $\mathbf { t } 2 \mathbf { v } ( \tau ) [ i ]$ is the $i ^ { t h }$ element of $\mathbf { t } 2 \mathbf { v } ( \tau )$ and $\omega _ { i } \mathbf { s }$ and $\varphi _ { i } \mathbf { s }$ are learnable parameters.
44
+
45
+ The use of sine functions is inspired in part by Vaswani et al. (2017)’s positional encoding. Consider a sequence of items (e.g., a sequence of words) $\{ I _ { 1 } , I _ { 2 } , \ldots , I _ { N } \}$ and a vector representation ${ \pmb v } _ { I _ { j } } \in \mathbb { R } ^ { d }$ for the $j ^ { t h }$ item $I _ { j }$ in the sequence. Vaswani et al. (2017) added $\sin { ( j / 1 0 0 0 0 ^ { k / d } ) }$ to ${ \pmb v } _ { I _ { j } } [ k ]$ if $k$ is even and $\sin { ( j / 1 0 0 0 0 ^ { k / d } + \pi / 2 ) }$ if $k$ is odd so that the resulting vector includes information about the position of the item in the sequence. These sine functions are called the positional encoding. Intuitively, positions can be considered as the times and the items can be considered as the events happening at that time. Thus, Time2Vec can be considered as representing continuous time, instead of discrete positions, using sine functions. The sine functions in Time2Vec also enable capturing periodic behaviors which is not a goal in positional encoding. We feed Time2Vec as an input to the model (or to some gate in the model) instead of adding it to other vector representations. Unlike positional encoding, we show in our experiments that learning the frequencies and phase-shifts of sine functions in Time2Vec result in better performance compared to fixing them.
46
+
47
+ # 4.1 PROPERTIES OF TIME2VEC
48
+
49
+ We review some of the interesting and desired properties of Time2Vec.
50
+
51
+ Periodicity: In many scenarios, some events occur periodically. The amount of sales of a store, for instance, may be higher on weekends or holidays. Weather condition usually follows a periodic pattern over different seasons (Gashler & Ashmore, 2016). Some other events may be non-periodic but only happen after a point in time and/or become more probable as time proceeds. For instance, some diseases are more likely for older ages.
52
+
53
+ The period of $\sin \left( \omega _ { i } \tau + \varphi _ { i } \right)$ is $\frac { 2 \pi } { \omega _ { i } }$ , i.e. it has the same value for $\tau$ and $\textstyle { \tau + { \frac { 2 \pi } { \omega _ { i } } } }$ . Therefore, the sine functions in Time2Vec help capture periodic behaviors without the need for feature engineering. For instance, a sine function $\sin { \left( \omega \tau + \varphi \right) }$ with $\begin{array} { r } { \omega = \frac { 2 \pi } { 7 } } \end{array}$ repeats every 7 days (assuming $\tau$ indicates days) and can be potentially used to model weekly patterns. Furthermore, unlike other basis functions which may show strange behaviors for extrapolation (see, e.g., (Poole et al., 2014)), sine functions are expected to work well for extrapolating to future and out of sample data (Vaswani et al., 2017). The linear term represents the progression of time and can be used for capturing non-periodic patterns in the input that depend on time.
54
+
55
+ Invariance to Time Rescaling: Since time can be measured in different scales (e.g., days, hours, seconds, etc.), another important property of a representation for time is invariance to time rescaling (see, e.g., (Tallec & Ollivier, 2018)). A class $\mathcal { C }$ of models is invariant to time rescaling if for any model $\mathcal { M } _ { 1 } \in \mathcal { C }$ and any scalar $\alpha > 0$ , there exists a model $\mathcal { M } _ { 2 } \in \mathcal { C }$ that behaves on $\alpha \tau$ ( $\mathit { \Pi } _ { \tau }$ scaled by $\alpha$ ) in the same way $\mathcal { M } _ { 1 }$ behaves on original $\tau \mathrm { s }$ . Proposition 1 establishes the invariance of Time2Vec to time rescaling. The proof is in Appendix D.
56
+
57
+ Proposition 1. Time2Vec is invariant to time rescaling.
58
+
59
+ Simplicity: A representation for time should be easily consumable by different models and architectures. A matrix representation, for instance, may be difficult to consume as it cannot be easily appended with the other inputs. By selecting a vector representation for time, we ensure easy integration with deep learning architectures.
60
+
61
+ # 5 EXPERIMENTS & RESULTS
62
+
63
+ We use the following datasets:
64
+
65
+ 1) Synthesized data: We create a toy dataset to use for explanatory experiments. The inputs in this dataset are the integers between 1 and 365. Input integers that are multiples of 7 belong to class one and the other integers belong to class two. The first $7 5 \%$ is used for training and the last $2 5 \%$ for testing. This dataset is inspired by the periodic patterns (e.g., weekly or monthly) that often exist in daily-collected data; the input integers can be considered as the days.
66
+
67
+ 2) Event-MNIST: Sequential (event-based) MNIST is a common benchmark in sequence modeling literature (see, e.g., (Bellec et al., 2018; Campos et al., 2018; Fatahi et al., 2016)). We create a sequential event-based version of MNIST by flattening the images and recording the position of the pixels whose intensities are larger than a threshold (0.9 in our experiment). Following this transformation, each image will be represented as an array of increasing numbers such as $[ t _ { 1 } , t _ { 2 } , t _ { 3 } , \ldots , t _ { m } ]$ . We consider these values as the event times and use them to classify the images. As in other sequence modeling works, our aim in building this dataset is not to beat the state-of-the-art on the MNIST dataset; our aim is to provide a dataset where the only input is time and different representations for time can be compared when extraneous variables (confounders) are eliminated as much as possible.
68
+
69
+ 3) N TIDIGITS18 (Anumula et al., 2018): The dataset includes audio spikes of the TIDIGITS spoken digit dataset (Leonard & Doddington, 1993) recorded by the binaural 64-channel silicon cochlea sensor. Each sample is a sequence of $( t , c )$ tuples where $t$ represents time and $c$ denotes the index of active frequency channel at time $t$ . The labels are sequences of 1 to 7 connected digits with a vocabulary consisting of 11 digits (i.e. “zero” to “nine” plus “oh”) and the goal is to classify the spoken digit based on the given sequence of active channels. We use the reduced version of the dataset where only the single digit samples are used for training and testing. The reduced dataset has a total of 2,464 training and 2,486 test samples.
70
+
71
+ ![](images/d284eb34fa7cec683a41bc11dcf77dc40c6bbb62c4cfea0ed98d33c7730f82d8.jpg)
72
+ Figure 1: Comparing $\mathrm { L S T M + T }$ and LSTM+Time2Vec on several datasets.
73
+
74
+ 4) Stack Overflow (SOF): This dataset contains sequences of badges obtained by stack overflow users and the timestamps at which the badges were obtained3. We used the subset released by Du et al. (2016) containing $\sim 6 K$ users, 22 event types (badges), and $\sim 4 8 0 K$ events. Given a sequence $[ ( b _ { 1 } ^ { u } , t _ { 1 } ^ { u } ) , ( b _ { 2 } ^ { u } , t _ { 2 } ^ { u } ) , . . . , ( b _ { n } ^ { u } , t _ { n } ^ { u } ) ]$ for each user $u$ where $b _ { i } ^ { u }$ is the badge id and $t _ { i } ^ { u }$ is the timestamp when $u$ received this badge id, the task is to predict the badge the user will obtain at time $t _ { k + 1 } ^ { u }$ .
75
+
76
+ 5) Last.FM: This dataset contains a history of listening habits for Last.FM users (Celma, 2010). We used the code released by Zhu et al. (2017) to pre-process the data. The dataset contains $\sim 1 K$ users, 5000 event types (songs), and $\sim 8 1 9 K$ events. The prediction problem is similar to the SOF dataset but with dynamic updating (see, (Zhu et al., 2017) for details).
77
+
78
+ 6) CiteULike: This dataset contains data about what and when a user posted on citeulike website4. The original dataset has about 8000 samples. Similar to Last.FM, we used the pre-processing used by Zhu et al. (2017) to select $\sim 1 . 6 K$ sequences with 5000 event types (papers) and $\sim 3 6 K$ events. The task for this dataset is similar to that for Last.FM.
79
+
80
+ Measures: For classification tasks, we report accuracy corresponding to the percentage of correctly classified examples. For recommendation tasks, we report Recall $@ q$ and $M R R @ q$ . Following Zhu et al. (2017), to generate a recommendation list, we sample $k - 1$ random items and add the correct item to the sampled list resulting in a list of $k$ items. Then our model ranks these $k$ items. Looking only at the top ten recommendations, Recall $@ \mathbf { q }$ corresponds to the percentage of recommendation lists where the correct item is in the top $q$ ; $\mathbf { M R R } @ \mathbf { q }$ (reported in Appendix B) corresponds to the mean of the inverses of the rankings of the correct items where the inverse rank is considered 0 if the item does not appear in top $q$ recommendations. For Last.FM and CiteULike, following Zhu et al. (2017) we report Recall $@ 1 0$ and $\mathbf { M R R } @ 1 0$ . For SOF, we report Recall $\textcircled { \alpha } 3$ and MRR as there are only 22 event types and Recall $@ 1 0$ and MRR $@ 1 0$ are not informative enough. The detail of the implementations is presented in Appendix A.
81
+
82
+ # 5.1 ON THE EFFECTIVENESS OF TIME2VEC
83
+
84
+ Fig. 1 represents the obtained results of comparing $L S T M + T i m e 2 V e c$ with $L S T M + T$ on several datasets with different properties and statistics. On all datasets, replacing time with Time2Vec improves the performance in most cases and never deteriorates it; in many cases, LSTM $^ +$ Time2Vec performs consistently better than $\mathrm { L S T M + T } .$ . Anumula et al. (2018) mention that $\mathrm { L S T M + T }$ fails on N TIDIGITS18 as the dataset contains very long sequences. By feeding better features to the LSTM rather than relying on the LSTM to extract them, Time2Vec helps better optimize the LSTM and offers higher accuracy (and lower variance) compared to $\mathrm { L S T M + T } .$ Besides N TIDIGITS18, SOF also contains somewhat long sequences and long time horizons. The results on these two datasets indicate that Time2Vec can be effective for datasets with long sequences and time horizons.
85
+
86
+ ![](images/a5e4bb8f547dcf576f3780aed266cd6e8c6666d13534634fe9224fe3dd4d675d.jpg)
87
+ Figure 2: Comparing TLSTM1 and TLSTM3 on Last.FM and CiteULike in terms of Recall $@$ 10 with and without Time2Vec.
88
+
89
+ To verify if Time2Vec can be integrated with other architectures and improve their performance, we integrate it with TLSTM1 and TLSTM3, two recent and powerful models for handling asynchronous events. We replaced their notion $\tau$ of time with $\mathbf { t } 2 \mathbf { v } ( \tau )$ and replaced the vectors getting multiplied to $\tau$ with matrices accordingly. The updated formulations are presented in Appendix C. The obtained results in Fig. 2 for TLSTM1 and TLSTM3 on Last.FM and CiteULike demonstrates that replacing time with Time2Vec for both TLSTM1 and TLSTM3 improves the performance.
90
+
91
+ # 5.2 MODEL VARIANTS & ABLATION STUDY
92
+
93
+ Other activation functions: Inspired by Fourier sine series and by positional encoding, we used sine activations in Eq. 1. To evaluate how sine activations compare to other activation functions for our setting, we repeated the experiment on Event-MNIST in Section 5.1 when using non-periodic activations such as Sigmoid, Tanh, and rectified linear units (ReLU) (Nair & Hinton, 2010), and periodic activations such as mod and triangle. We fixed the length of the Time2Vec to $6 4 + 1$ , i.e. 64 units with a non-linear transformation and 1 unit with a linear transformation. From the results shown in Fig. 5(a), it can be observed that the periodic activation functions (sine, mod, and triangle) outperform the non-periodic ones. Other than not being able to capture periodic behaviors, we believe one of the main reasons why these non-periodic activation functions do not perform well is because as time goes forward and becomes larger, Sigmoid and Tanh saturate and ReLU either goes to zero or explodes. Among periodic activation functions, sine outperforms the other two.
94
+
95
+ Fixed frequencies and phase-shifts: Vaswani et al. (2017) mention that learning sine frequencies and phase-shifts for their positional encoding gives the same performance as fixing frequencies to exponentially-decaying values and phase-shifts to 0 and $\frac { \pi } { 2 }$ . This raises the question of whether learning the sine frequencies and phase-shifts of Time2Vec from data offer any advantage compared to fixing them. To answer this question, we compare three models on Event-MNIST when using Time2Vec of length $1 6 + 1$ : 1- fixing $\mathbf { t } 2 \mathbf { v } ( \tau ) [ n ]$ to sin $\left( { \frac { 2 \pi n } { 1 6 } } \right)$ for $n \leq 1 6$ , 2- fixing the frequencies and phase shifts according to Vaswani et al. (2017)’s positional encoding, and 3- learning the frequencies and phase-shifts from the data. Fig. 5(b) represents our obtained results. The obtained results in Fig. 5(b) show that learning the frequencies and phase-shifts rather than fixing them helps improve the performance of the model.
96
+
97
+ Modeling Periodic Behaviours: To measure how well Time2Vec performs in capturing periodic behaviours, we trained a model on our synthesized dataset where the input integer (day) is used as
98
+
99
+ (a) A weighted sum of the sinusoids in Time2Vec oscillating every 7 days.
100
+
101
+ ![](images/57cf77dc0ea113bc62ab8a494db033a617854e6fab9b8bd56bf5d83b74ac3f8d.jpg)
102
+ Figure 3: The models learned for our synthesized dataset before the final activation. The red dots represent the points to be classified as 1.
103
+
104
+ ![](images/46452851a214ffea2d551fa40a2dfa6df34da8dca372ab0536941f637a1d1e1a.jpg)
105
+ (b) A weighted sum of the sinusoids in Time2Vec oscillating every 14 days.
106
+
107
+ the time for Time2Vec and a fully connected layer is used on top of the Time2Vec to predict the class. That is, the probability of one of the classes is a sigmoid of a weighted sum of the Time2Vec elements. Fig. 3 (a) shows a the learned function for the days in the test set where the weights, frequencies and phase-shifts are learned from the data. The red dots on the figure represent multiples of 7. It can be observed that Time2Vec successfully learns the correct period and oscillates every 7 days. The phase-shifts have been learned in a way that all multiples of 7 are placed on the positive peaks of the signal to facilitate separating them from the other days. Looking at the learned frequency and phase-shift for the sine functions across several runs, we observed that in many runs one of the main sine functions has a frequency around $\begin{array} { r } { 0 . 8 9 8 \approx \frac { 2 \pi } { 7 } } \end{array}$ and a phase-shift around $1 . 5 6 \approx \frac { \pi } { 2 }$ , thus learning to oscillate every 7 days and shifting by $\frac { \pi } { 2 }$ to make sure multiples of 7 end up at the peaks of the signal. Fig. 4 shows the initial and learned sine frequencies for one run. It can be viewed that at the beginning, the weights and frequencies are random numbers. But after training, only the desired frequency $\textstyle { \left( { \frac { 2 \pi } { 7 } } \right) }$ has a high weight (and the 0 frequency which gets subsumed into the bias). The model perfectly classifies the examples in the test set which represents the sine functions in Time2Vec can be used effectively for extrapolation and out of sample times assuming that the test set follows similar periodic patterns as the train set5. We added some noise to our labels by flipping $5 \%$ of the labels selected at random and observed a similar performance in most runs.
108
+
109
+ To test invariance to time rescaling, we multiplied the inputs by 2 and observed that in many runs, the frequency of one of the main sine functions was around $\begin{array} { r } { 0 . 4 4 \dot { 8 } \approx \frac { 2 \pi } { 2 * 7 } } \end{array}$ thus oscillating every 14 days. An example of a combination of signals learned to oscillate every 14 days is in Fig. 3 (b).
110
+
111
+ The use of periodicity in sine functions: It has been argued that when sine activations are used, only a monotonically increasing (or decreasing) part of it is used and the periodic part is ignored (Giambattista Parascandolo, 2017). When we use Time2Vec, however, the periodicity of the sine functions are also being used and seem to be key to the effectiveness of the Time2Vec representation. Fig. 5(c) shows some statistics on the frequencies learned for Event-MNIST where we count the number of learned frequencies that fall within intervals of lengths 0.1 centered at $[ 0 . 0 5 , 0 . 1 5 , \ldots , 0 . 9 5 ]$ ] (all learned frequencies are between 0 and 1). The figure contains two peaks at 0.35 and 0.85. Since the input to the sine functions for this problem can have a maximum value of 784 (number of pixels in an image), sine functions with frequencies around 0.35 and 0.85 finish (almost) 44 and 106 full periods. The smallest learned frequency is 0.029 which finishes (almost) 3.6 full periods. These values indicate that the model is indeed using the periodicity of the sine functions, not just a monotonically increasing (or decreasing) part of them.
112
+
113
+ ![](images/087e83ffaf5f5917afade18bb06245b15156d18257d36717c25fb05ca79d2905.jpg)
114
+ Figure 4: (a) Initial vs. (b) learned weights and frequencies for our synthesized dataset.
115
+
116
+ ![](images/8da9c3d24f891893c3a0d28a36f5cd502358906524cea96ca5fb9d75114ada8c.jpg)
117
+ Figure 5: An ablation study of several components in Time2Vec. (a) Comparing different activation functions for Time2Vec on Event-MNIST. Sigmoid and Tanh almost overlap. (b) Comparing frequencies fixed to equally-spaced values, frequencies fixed according to positional encoding (Vaswani et al., 2017), and learned frequencies on Event-MNIST. (c) A histogram of the frequencies learned in Time2Vec for Event-MNIST. The $\mathbf { X }$ -axis represents frequency intervals and the y-axis represents the number of frequencies in that interval. (d) The performance of TLSTM3 $+$ Time2Vec on CiteULike in terms of Recall $@ 1 0$ with and without the linear term.
118
+
119
+ The Linear Term: To see the effect of the linear term in Time2Vec, we repeated the experiment for Event-MNIST when the linear term is removed from Time2VecWe observed that the results were not ˙ affected substantially, thus showing that the linear term may not be helpful for Event-MNIST. This might be due to the simplicity of the Event-MNIST dataset. Then we conducted a similar experiment for TLSTM3 on CiteULike (which is a more challenging dataset) and obtained the results in Fig. 5(d). From these results, we can see that the linear term helps facilitate learning functions of time that can be effectively consumed by the model.
120
+
121
+ # 6 CONCLUSION & FUTURE WORK
122
+
123
+ In many tasks for synchronous and asynchronous event predictions, time is an important feature. Previous work has mainly resorted to applying hand-crafted functions to time and concatenating these functions with the rest of the input features. In this work, we presented an approach that automatically learns these functions from data. In particular, we developed Time2Vec, a vector representation for time, using sine and linear activations and showed the effectiveness of this representation across several datasets and several tasks. In the majority of our experiments, Time2Vec improved our results, while the remaining results were not hindered by its application. While sine functions have been argued to complicate the optimization (Lapedes & Farber, 1987; Giambattista Parascandolo, 2017), we did not experience such a complication except for the experiment in Subsection 5.2 on our synthesized dataset when using only a few sine functions. We hypothesize that the main reasons include combining sine functions with a powerful model (e.g., LSTM) and using many sine functions which reduces the distance to the goal (see, e.g., (Neyshabur et al., 2019)). We leave a deeper theoretical analysis of this hypothesis, development of better optimizers, and experimenting with other representations for time as future work.
124
+
125
+ # REFERENCES
126
+
127
+ Hirotugu Akaike. Fitting autoregressive models for prediction. Annals of the institute of Statistical Mathematics, 21(1):243–247, 1969.
128
+
129
+ Jithendar Anumula, Daniel Neil, Tobi Delbruck, and Shih-Chii Liu. Feature representations for neuromorphic audio spike streams. Frontiers in neuroscience, 12:23, 2018.
130
+
131
+ George B Arfken and Hans J Weber. Mathematical methods for physicists, 1999.
132
+
133
+ Inci M Baytas, Cao Xiao, Xi Zhang, Fei Wang, Anil K Jain, and Jiayu Zhou. Patient subtyping via time-aware lstm networks. In ACM SIGKDD, pp. 65–74, 2017.
134
+
135
+ Guillaume Bellec, Darjan Salaj, Anand Subramoney, Robert Legenstein, and Wolfgang Maass. Long short-term memory and learning-to-learn in networks of spiking neurons. In NeurIPS, 2018.
136
+
137
+ Ronald Newbold Bracewell and Ronald N Bracewell. The Fourier transform and its applications. McGraw-Hill New York, 1986.
138
+
139
+ 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. In ICLR, 2018.
140
+
141
+ O. Celma. Music Recommendation and Discovery in the Long Tail. Springer, 2010.
142
+
143
+ Tian Qi Chen, Yulia Rubanova, Jesse Bettencourt, and David Duvenaud. Neural ordinary differential equations. In Neural Information Processing Systems (NeurIPS), 2018.
144
+
145
+ Edward Choi, Mohammad Taha Bahadori, Andy Schuetz, Walter F Stewart, and Jimeng Sun. Doctor AI: Predicting clinical events via recurrent neural networks. In Machine Learning for Healthcare Conference, pp. 301–318, 2016.
146
+
147
+ Leon Cohen. Time-frequency analysis, volume 778. Prentice hall, 1995.
148
+
149
+ Daryl J Daley and David Vere-Jones. An introduction to the theory of point processes: volume II: general theory and structure. Springer Science & Business Media, 2007.
150
+
151
+ Harris Drucker, Christopher JC Burges, Linda Kaufman, Alex J Smola, and Vladimir Vapnik. Support vector regression machines. In NeurIPS, pp. 155–161, 1997.
152
+
153
+ Nan Du, Hanjun Dai, Rakshit Trivedi, Utkarsh Upadhyay, Manuel Gomez-Rodriguez, and Le Song. Recurrent marked temporal point processes: Embedding event history to vector. In ACM SIGKDD, pp. 1555–1564. ACM, 2016.
154
+
155
+ Mazdak Fatahi, Mahmood Ahmadi, Mahyar Shahsavari, Arash Ahmadi, and Philippe Devienne. evt mnist: A spike based version of traditional mnist. arXiv preprint arXiv:1604.06751, 2016.
156
+
157
+ Michael S Gashler and Stephen C Ashmore. Modeling time series data with deep fourier neural networks. Neurocomputing, 188:3–11, 2016.
158
+
159
+ Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N Dauphin. Convolutional sequence to sequence learning. arXiv preprint arXiv:1705.03122, 2017.
160
+
161
+ Felix A Gers and Jurgen Schmidhuber. Recurrent nets that time and count. In ¨ IJCNN, volume 3, pp. 189–194. IEEE, 2000.
162
+
163
+ Tuomas Virtanen Giambattista Parascandolo, Heikki Huttunen. Taming the waves: sine as activation function in deep neural networks. 2017. URL https://openreview.net/pdf?id= Sks3zF9eg.
164
+
165
+ Luke B Godfrey and Michael S Gashler. Neural decomposition of time-series data for effective generalization. IEEE transactions on neural networks and learning systems, 29(7):2973–2985, 2018.
166
+
167
+ Klaus Greff, Rupesh K Srivastava, Jan Koutn´ık, Bas R Steunebrink, and Jurgen Schmidhuber. Lstm: ¨ A search space odyssey. IEEE transactions on neural networks and learning systems, 28(10): 2222–2232, 2017.
168
+
169
+ Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In ACM SIGKDD, pp. 855–864, 2016.
170
+
171
+ Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997.
172
+
173
+ Hao Hu and Guo-Jun Qi. State-frequency memory recurrent neural networks. In International Conference on Machine Learning, pp. 1568–1577, 2017.
174
+
175
+ Seyed Mehran Kazemi and David Poole. SimplE embedding for link prediction in knowledge graphs. In NeurIPS, pp. 4289–4300, 2018.
176
+
177
+ Seyed Mehran Kazemi, Rishab Goel, Kshitij Jain, Ivan Kobyzev, Akshay Sethi, Peter Forsyth, and Pascal Poupart. Relational representation learning for dynamic (knowledge) graphs: A survey. arXiv preprint arXiv:1905.11485, 2019.
178
+
179
+ Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
180
+
181
+ Srijan Kumar, Xikun Zhang, and Jure Leskovec. Learning dynamic embedding from temporal interaction networks. arXiv preprint arXiv:1812.02289, 2018.
182
+
183
+ Bum Chul Kwon, Min-Je Choi, Joanne Taery Kim, Edward Choi, Young Bin Kim, Soonwook Kwon, Jimeng Sun, and Jaegul Choo. Retainvis: Visual analytics with interpretable and interactive recurrent neural networks on electronic medical records. IEEE transactions on visualization and computer graphics, 25(1):299–309, 2019.
184
+
185
+ Alan Lapedes and Robert Farber. Nonlinear signal processing using neural networks: Prediction and system modelling. Technical report, 1987.
186
+
187
+ Patrick J Laub, Thomas Taimre, and Philip K Pollett. Hawkes processes. arXiv preprint arXiv:1507.02822, 2015.
188
+
189
+ R Gary Leonard and George Doddington. Tidigits. Linguistic Data Consortium, Philadelphia, 1993.
190
+
191
+ Shuang Li, Shuai Xiao, Shixiang Zhu, Nan Du, Yao Xie, and Le Song. Learning temporal point processes via reinforcement learning. In NeurIPS, pp. 10804–10814, 2018a.
192
+
193
+ Yang Li, Nan Du, and Samy Bengio. Time-dependent representation for neural event sequence prediction. arXiv preprint arXiv:1708.00065, 2017.
194
+
195
+ Yang Li, Nan Du, and Samy Bengio. Time-dependent representation for neural event sequence prediction. 2018b. URL https://openreview.net/pdf?id $\underline { { \underline { { \mathbf { \Pi } } } } } =$ HyrT5Hkvf.
196
+
197
+ Zachary C Lipton, David Kale, and Randall Wetzel. Directly modeling missing data in sequences with rnns: Improved classification of clinical time series. In Machine Learning for Healthcare Conference, pp. 253–270, 2016.
198
+
199
+ Peng Liu, Zhigang Zeng, and Jun Wang. Multistability of recurrent neural networks with nonmonotonic activation functions and mixed time delays. IEEE Transactions on Systems, Man, and Cybernetics: Systems, 46(4):512–523, 2016.
200
+
201
+ Yao Ma, Ziyi Guo, Zhaochun Ren, Eric Zhao, Jiliang Tang, and Dawei Yin. Streaming graph neural networks. arXiv preprint arXiv:1810.10627, 2018.
202
+
203
+ Hongyuan Mei and Jason M Eisner. The neural hawkes process: A neurally self-modulating multivariate point process. In NeurIPS, pp. 6754–6764, 2017.
204
+
205
+ Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In NeurIPS, 2013.
206
+
207
+ Luis Mingo, Levon Aslanyan, Juan Castellanos, Miguel Diaz, and Vladimir Riazanov. Fourier neural networks: An approach with sinusoidal activation functions. 2004.
208
+
209
+ Kevin Patrick Murphy and Stuart Russell. Dynamic bayesian networks: representation, inference and learning. 2002.
210
+
211
+ Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In ICML, pp. 807–814, 2010.
212
+
213
+ Daniel Neil, Michael Pfeiffer, and Shih-Chii Liu. Phased lstm: Accelerating recurrent network training for long or event-based sequences. In NeurIPS, pp. 3882–3890, 2016.
214
+
215
+ Behnam Neyshabur, Zhiyuan Li, Srinadh Bhojanapalli, Yann LeCun, and Nathan Srebro. The role of over-parametrization in generalization of neural networks. In ICLR, 2019.
216
+
217
+ Maximilian Nickel, Kevin Murphy, Volker Tresp, and Evgeniy Gabrilovich. A review of relational machine learning for knowledge graphs. Proceedings of the IEEE, 104(1):11–33, 2016.
218
+
219
+ Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017.
220
+
221
+ Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In EMNLP, pp. 1532–1543, 2014.
222
+
223
+ David Poole, David Buchman, Seyed Mehran Kazemi, Kristian Kersting, and Sriraam Natarajan. Population size extrapolation in relational probabilistic modelling. In SUM. Springer, 2014.
224
+
225
+ Lawrence R Rabiner and Biing-Hwang Juang. An introduction to hidden markov models. ieee assp magazine, 3(1):4–16, 1986.
226
+
227
+ Carl Edward Rasmussen. Gaussian processes in machine learning. In Advanced lectures on machine learning, pp. 63–71. Springer, 2004.
228
+
229
+ Josep M Sopena, Enrique Romero, and Rene Alquezar. Neural networks with periodic and monotonic activation functions: a comparative study in classification problems. 1999.
230
+
231
+ Charles Sutton, Andrew McCallum, and Khashayar Rohanimanesh. Dynamic conditional random fields: Factorized probabilistic models for labeling and segmenting sequence data. Journal of Machine Learning Research, 8(Mar):693–723, 2007.
232
+
233
+ Corentin Tallec and Yann Ollivier. Can recurrent neural networks warp time? In International Conference on Learning Representation (ICLR), 2018.
234
+
235
+ Rakshit Trivedi, Hanjun Dai, Yichen Wang, and Le Song. Know-evolve: Deep temporal reasoning for dynamic knowledge graphs. In ICML, pp. 3462–3471, 2017.
236
+
237
+ Utkarsh Upadhyay, Abir De, and Manuel Gomez-Rodriguez. Deep reinforcement learning of marked temporal point processes. In NeurIPS, 2018.
238
+
239
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, 2017.
240
+
241
+ Kwok-wo Wong, Chi-sing Leung, and Sheng-jiang Chang. Handwritten digit recognition using multilayer feedforward neural networks with periodic and monotonic activation functions. In Pattern Recognition, volume 3, pp. 106–109. IEEE, 2002.
242
+
243
+ Shuai Xiao, Mehrdad Farajtabar, Xiaojing Ye, Junchi Yan, Le Song, and Hongyuan Zha. Wasserstein learning of deep generative point process models. In NeurIPS, 2017.
244
+
245
+ Shuai Xiao, Hongteng Xu, Junchi Yan, Mehrdad Farajtabar, Xiaokang Yang, Le Song, and Hongyuan Zha. Learning conditional generative models for temporal point processes. In AAAI, 2018.
246
+
247
+ Yu Zhu, Hao Li, Yikang Liao, Beidou Wang, Ziyu Guan, Haifeng Liu, and Deng Cai. What to do next: Modeling user behaviors by time-lstm. In IJCAI, pp. 3602–3608, 2017.
248
+
249
+ ![](images/00dbf51aef6dc414379150092b4e2229c8a9e041d859b21a9f3ec08e5d3c547f.jpg)
250
+ Figure 6: Comparing $\mathrm { L S T M + T }$ and LSTM $\cdot +$ Time2Vec on Event-MNIST.
251
+
252
+ # A IMPLEMENTATION DETAIL
253
+
254
+ For the experiments on Event-MNIST, N TIDIGITS18 and SOF, we implemented6 our model in PyTorch Paszke et al. (2017). We used Adam optimizer Kingma & Ba (2014) with a learning rate of 0.001. For Event-MNIST and SOF, we fixed the hidden size of the LSTM to 128. For N TIDIGITS18, due to its smaller train set, we fixed the hidden size to 64. We allowed each model 200 epochs. We used a batch size of 512 for Event-MNIST and 128 for N TIDIGITS18 and SOF. For the experiments on Last.FM and CiteULike, we used the code released by Zhu et al. $( 2 0 1 7 ) ^ { 7 }$ without any modifications, except replacing $\tau$ with $\mathbf { t } 2 \mathbf { v } ( \tau )$ . The only other thing we changed in their code was to change the SAMPLE TIME variable from 3 to 20. SAMPLE TIME controls the number of times we do sampling to compute Recall $@ 1 0$ and $\mathbf { M R R } @ 1 0$ . We experienced a high variation when sampling only 3 times so we increased the number of times we sample to 20 to make the results more robust. For both Last.FM and CiteULike, Adagrad optimizer is used with a learning rate of 0.01, vocabulary size is 5000, and the maximum length of the sequence is 200. For Last.FM, the hidden size of the LSTM is 128 and for CiteULike, it is 256. For all except the synthesized dataset, we shifted the event times such that the first event of each sequence starts at time 0.
255
+
256
+ For the fairness of the experiments, we made sure the competing models for all our experiments have an (almost) equal number of parameters. For instance, since adding Time2Vec as an input to the LSTM increases the number of model parameters compared to just adding time as a feature, we reduced the hidden size of the LSTM for this model to ensure the number of model parameters stays (almost) the same. For the experiments involving Time2Vec, unless stated otherwise, we tried vectors with 16, 32 and 64 sine functions (and one linear term). We reported the vector length offering the best performance in the main text. The results for other vector lengths can be found in Appendix B. For the synthetic dataset, we use Adam optimizer with a learning rate of 0.001 without any regularization. The length of the Time2Vec vector is 32.
257
+
258
+ ![](images/76aa07786e64a3837fd9f14d434cd6ac184d1ae6940f879a76d6c3a580a792b6.jpg)
259
+ Figure 7: Comparing $\mathrm { L S T M + T }$ and LSTM $+$ Time2Vec on Event-MNIST and raw N TIDIGITS18.
260
+
261
+ ![](images/d3a24b60f8c8f0493e1757dd3dcc0c4e89eab8a986fb46521120a9364e6b6fa6.jpg)
262
+ Figure 8: Comparing LSTM+T and LSTM+Time2Vec on SOF.
263
+
264
+ ![](images/b6da3e307b8b779ebf7c7096fdb4a9b4227a850e1255c49ed128d8cbe5db8464.jpg)
265
+ Figure 9: Comparing LSTM $+ \mathrm { T }$ and LSTM $^ +$ Time2Vec on Last.FM.
266
+
267
+ # B MORE RESULTS
268
+
269
+ We ran experiments on other versions of the N TIDIGITS18 dataset as well. Following Anumula et al. (2018), we converted the raw event data to event-binned features by virtue of aggregating active channels through a period of time in which a pre-defined number of events occur. The outcome of binning is thus consecutive frames each with multiple but a fixed number of active channels. In our experiments, we used event-binning with 100 events per frame. For this variant of the dataset, we compared $\mathrm { L S T M + T }$ and LSTM+Time2Vec similar to the experiments in Section 5.1. The obtained results were on-par. Then, similar to Event-MNIST, we only fed as input the times at which events occurred (i.e. we removed the channels from the input). We allowed the models 1000 epochs to make sure they converge. The obtained results are presented in Fig. 6. It can be viewed that Time2Vec provides an effective representation for time and LSTM $+$ Time2Vec outperforms LSTM $+ \mathrm { T }$ on this dataset.
270
+
271
+ In the main text, for the experiments involving Time2Vec, we tested Time2Vec vectors with 16, 32 and 64 sinusoids and reported the best one for the clarity of the diagrams. Here, we show the results for all frequencies. Figures 7, 8, 9, and 10 compare LSTM $+ \mathrm { T }$ and LSTM $^ +$ Time2Vec for our datasets. Figures 11, and 12 compare TLSTM1 with TLSTM1 $^ +$ Time2Vec on Last.FM and CiteULike. Figures 13, and 14 compare TLSTM3 with TLSTM1 $^ +$ Time2Vec on Last.FM and CiteULike. In most cases, Time2Vec with 64 sinusoids outperforms (or gives on-par results with) the cases with 32 or 16 sinusoids. An exception is TLSTM3 where 16 sinusoids works best. We believe that is because TLSTM3 has two time gates and adding, e.g., 64 temporal components (corresponding to the sinusoids) to each gate makes it overfit to the temporal signals.
272
+
273
+ # C LSTM ARCHITECTURES
274
+
275
+ The original LSTM model can be neatly defined with the following equations:
276
+
277
+ $$
278
+ \begin{array} { r l } & { { i _ { j } } = \sigma \left( W _ { i } { { \bf { x } } _ { j } } + U _ { i } { { h _ { j - 1 } } } + { { \bf { b } } _ { i } } \right) } \\ & { { f _ { j } } = \sigma \left( { W _ { f } { { \bf { x } } _ { j } } + U _ { f } { { h _ { j - 1 } } } + { { b _ { f } } } } \right) } \\ & { { { { \overline { { c } } } _ { j } } } = T a n h \left( { W _ { c } { { \bf { x } } _ { j } } + U _ { c } { { h _ { j - 1 } } } + { { b _ { c } } } } \right) } \\ & { { { { \overline { { c _ { j } } } } } } = { f _ { t } } \odot { { \bf { c } } _ { j - 1 } } + { i _ { j } } \odot { { { \overline { { { c _ { j } } } } } } } } \\ & { { { \sigma _ { j } } } = \sigma \left( { W _ { o } { { \bf { x } } _ { j } } + U _ { o } { { h _ { j - 1 } } } + { { b _ { o } } } } \right) } \\ & { { { { h _ { j } } } = { { o _ { j } } } \odot T a n h \left( { { c _ { j } } } \right) } } \end{array}
279
+ $$
280
+
281
+ ![](images/40d16ef249ff694d5fa296be84bbd3e8a1eabbff493ebb5ca30448726d171f10.jpg)
282
+ Figure 10: Comparing LSTM+T and LSTM $^ +$ Time2Vec on CiteULike.
283
+
284
+ ![](images/1ee8a037142439db5e80aadffce7ae031a58fd252a1ea45770669fbfec34052f.jpg)
285
+ Figure 11: TLSTM1’s performance on Last.FM with and without Time2Vec.
286
+
287
+ Here $\mathbf { \delta } _ { i , \mathrm { ~ \tiny ~ \left. ~ \right. ~ } }$ , $\pmb { f } _ { t }$ , and $\mathbf { \sigma } _ { \pmb { o } _ { t } }$ represent the input, forget and output gates respectively, while $\mathbf { c } _ { t }$ is the memory cell and $\pmb { h } _ { t }$ is the hidden state. $\sigma$ and T anh represent the Sigmoid and hyperbolic tangent activation functions respectively. We refer to $\pmb { x } _ { j }$ as the $j ^ { \bar { t } h }$ event.
288
+
289
+ Peepholes: Gers & Schmidhuber (2000) introduced a variant of the LSTM architecture where the input, forget, and output gates peek into the memory cell. In this variant, ${ \pmb w } _ { p i } \odot { \pmb c } _ { j - 1 } , { \pmb w } _ { p f } \odot { \pmb c } _ { j - 1 }$ and ${ \pmb w } _ { p o } \odot { \pmb c } _ { j }$ are added to the linear parts of Eq. (2), (3), and (6) respectively, where ${ \pmb w } _ { p i } , { \pmb w } _ { p f }$ , and ${ \pmb w } _ { p o }$ are learnable parameters.
290
+
291
+ $\mathbf { L S T M + T } \mathbf { : }$ Let $\tau _ { j }$ represent the time features for the $j ^ { t h }$ event in the input and let $\pmb { x } _ { j } ^ { \prime } = [ \pmb { x } _ { j } ; \pmb { \tau } _ { j } ]$ Then $\mathrm { L S T M + T }$ uses the exact same equations as the standard LSTM (denoted above) except that $\pmb { x } _ { j }$ is replaced with $\pmb { x } _ { j } ^ { \prime }$ .
292
+
293
+ TimeLSTM: We explain TLSTM1 and TLSTM3 which have been used in our experiments. For clarity of writing, we do not include the peephole terms in the equations but they are used in the experiments. In TLSTM1, a new time gate is introduced as in Eq. equation 8 and Eq. equation 5 and equation 6 are updated to Eq. equation 9 and equation 10 respectively:
294
+
295
+ $$
296
+ \begin{array} { r l } & { \pmb { t } _ { j } = \sigma \left( \pmb { W } _ { t } \pmb { x } _ { j } + \sigma \left( \pmb { u } _ { t } \tau _ { j } \right) + \pmb { b } _ { t } \right) } \\ & { \pmb { c } _ { j } = \pmb { f } _ { j } \odot \pmb { c } _ { j - 1 } + \pmb { i } _ { j } \odot \pmb { t } _ { j } \odot \overline { { \pmb { c } _ { j } } } } \\ & { \pmb { o } _ { j } = \sigma \left( \pmb { W } _ { o } \pmb { x } _ { j } + \pmb { v } _ { t } \tau _ { j } + \pmb { U } _ { o } \pmb { h } _ { j - 1 } + \pmb { b } _ { o } \right) } \end{array}
297
+ $$
298
+
299
+ $t _ { j }$ controls the influence of the current input on the prediction and makes the required information from timing history get stored on the cell state. TLSTM3 uses two time gates:
300
+
301
+ $$
302
+ \begin{array} { r } { \pmb { t 1 } _ { j } = \sigma \left( \pmb { W } _ { t 1 } \pmb { x } _ { j } + \sigma \left( \pmb { u } _ { t 1 } \tau _ { j } \right) + \pmb { b } _ { t 1 } \right) } \\ { \pmb { t 2 } _ { j } = \sigma \left( \pmb { W } _ { t 2 } \pmb { x } _ { j } + \sigma \left( \pmb { u } _ { t 2 } \tau _ { j } \right) + \pmb { b } _ { t 2 } \right) } \end{array}
303
+ $$
304
+
305
+ where the elements of $W _ { t 1 }$ are constrained to be non-positive. $\pmb { t 1 }$ is used for controlling the influence of the last consumed item and $\pmb { t 2 }$ stores the $\tau \mathbf { S }$ thus enabling modeling long range dependencies. TLSTM3 couples the input and forget gates following Greff et al. (2017) along with the $\pmb { t 1 }$ and $\pmb { t 2 }$ gates and replaces Eq. (5) to (7) with the following:
306
+
307
+ $$
308
+ \begin{array} { r l } & { \tilde { \mathbf { c } } _ { j } = \left( 1 - i _ { j } \odot t { \bf 1 } _ { j } \right) \odot \mathbf { c } _ { j - 1 } + i _ { j } \odot t { \bf 1 } _ { j } \odot \bar { \mathbf { c } } _ { j } } \\ & { \mathbf { c } _ { j } = \left( 1 - i _ { j } \right) \odot \mathbf { c } _ { j - 1 } + i _ { j } \odot t { \bf 2 } _ { j } \odot \bar { \mathbf { c } } _ { j } } \\ & { \mathbf { o } _ { j } = \sigma \left( W _ { o } \mathbf { x } _ { j } + \mathbf { v } _ { t } \tau _ { j } + U _ { o } \mathbf { h } _ { j - 1 } + \mathbf { b } _ { o } \right) } \\ & { \mathbf { h } _ { j } = o _ { j } \odot T a n h \left( \tilde { \mathbf { c } } _ { j } \right) } \end{array}
309
+ $$
310
+
311
+ ![](images/2792f646e18eaf88109b2d7268bb9be9b2f1ad4ca537fb0c4e885ec977ca9f2c.jpg)
312
+ Figure 12: TLSTM1’s performance on CiteULike with and without Time2Vec.
313
+
314
+ ![](images/63be7796c2b8a7c7b18e4cff05ef2e9180793681d99a0b276524b82af87f436c.jpg)
315
+ Figure 13: TLSTM3’s performance on Last.FM with and without Time2Vec.
316
+
317
+ ![](images/da71988ac8cf0d1afe94a485ec7ac9e71ec909c5b026ed379f6867a32deef577.jpg)
318
+ Figure 14: TLSTM3’s performance on CiteULike with and without Time2Vec.
319
+
320
+ Zhu et al. (2017) use $\tau _ { j } = \Delta t _ { j }$ in their experiments, where $\Delta t _ { j }$ is the duration between the current and the last event.
321
+
322
+ TimeLSTM $^ +$ Time2Vec: To replace time in TLSTM1 with Time2Vec, we modify Eq. (8) and (10) as follows:
323
+
324
+ $$
325
+ \begin{array} { r l } & { \pmb { t _ { j } } = \sigma \left( \pmb { W _ { t } } \pmb { x _ { j } } + \sigma \left( \pmb { U _ { t } } \pmb { \mathrm { t } } 2 \mathbf { v } ( \tau ) \right) + \pmb { b _ { t } } \right) } \\ & { \pmb { o _ { j } } = \sigma ( \pmb { W _ { o } } \pmb { x _ { j } } + \pmb { V _ { t } } \pmb { \mathrm { t } } 2 \mathbf { v } ( \tau ) + \pmb { U _ { o } } \pmb { h _ { j - 1 } } + \pmb { b _ { o } } ) } \end{array}
326
+ $$
327
+
328
+ i.e., $\tau$ is replaced with $\mathbf { t } 2 \mathbf { v } ( \tau )$ , $\mathbf { \pmb { u } } _ { t }$ is replaced with $\boldsymbol { U } _ { t }$ , and ${ \pmb v } _ { t }$ is replaced with $V _ { t }$ . Similarly, for TLSTM3 we modify Eq. (11), (12) and (15) as follows:
329
+
330
+ $$
331
+ \begin{array} { r } { t \pmb { 1 } _ { j } = \sigma \left( \pmb { W } _ { t 1 } \pmb { x } _ { j } + \sigma \left( \pmb { U } _ { t 1 } \pmb { \mathrm { t } } 2 \pmb { \mathrm { v } } ( \tau ) \right) + \pmb { b } _ { t 1 } \right) } \\ { t \pmb { 2 } _ { j } = \sigma \left( \pmb { W } _ { t 2 } \pmb { x } _ { j } + \sigma \left( \pmb { U } _ { t 2 } \pmb { \mathrm { t } } 2 \pmb { \mathrm { v } } ( \tau ) \right) + \pmb { b } _ { t 2 } \right) } \\ { \pmb { o } _ { j } = \sigma ( \pmb { W } _ { o } \pmb { x } _ { j } + \pmb { V } _ { t } \pmb { \mathrm { t } } 2 \pmb { \mathrm { v } } ( \tau ) + \pmb { U } _ { o } \pmb { h } _ { j - 1 } + \pmb { b } _ { o } ) } \end{array}
332
+ $$
333
+
334
+ # D PROOFS
335
+
336
+ Proposition 1. Time2Vec is invariant to time rescaling.
337
+
338
+ Proof. Consider the following Time2Vec representation $\mathcal { M } _ { 1 }$ :
339
+
340
+ $$
341
+ \mathbf t 2 \mathbf v ( \tau ) [ i ] = { \left\{ \begin{array} { l l } { \omega _ { i } \tau + \varphi _ { i } , } & { { \mathrm { i f } } i = 0 . } \\ { \sin { ( \omega _ { i } \tau + \varphi _ { i } ) } , } & { { \mathrm { i f } } 1 \leq i \leq k . } \end{array} \right. }
342
+ $$
343
+
344
+ Replacing $\tau$ with $\alpha \cdot \tau$ (for $\alpha > 0$ ), the Time2Vec representation updates as follows:
345
+
346
+ $$
347
+ \mathbf { t } 2 \mathbf { v } ( \alpha \cdot \tau ) [ i ] = { \left\{ \begin{array} { l l } { \omega _ { i } ( \alpha \cdot \tau ) + \varphi _ { i } , } & { { \mathrm { i f } } i = 0 . } \\ { \sin { ( \omega _ { i } ( \alpha \cdot \tau ) + \varphi _ { i } ) } , } & { { \mathrm { i f } } 1 \leq i \leq k . } \end{array} \right. }
348
+ $$
349
+
350
+ Consider anosame way as Time2Vec representation . This proves that Time2 $\mathcal { M } _ { 2 }$ with frequencies s invariant to time $\begin{array} { r } { \omega _ { i } ^ { \prime } = \frac { \omega _ { i } } { \alpha } } \end{array}$ . Then g. $\mathcal { M } _ { 2 }$ behaves in the $\mathcal { M } _ { 1 }$
parse/train/rklklCVYvB/rklklCVYvB_content_list.json ADDED
@@ -0,0 +1,1878 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "TIME2VEC: LEARNING A VECTOR REPRESENTATION OF TIME ",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 174,
8
+ 98,
9
+ 823,
10
+ 145
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Anonymous authors Paper under double-blind review ",
17
+ "bbox": [
18
+ 183,
19
+ 171,
20
+ 398,
21
+ 198
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "ABSTRACT ",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 454,
31
+ 236,
32
+ 544,
33
+ 251
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Time is an important feature in many applications involving events that occur synchronously and/or asynchronously. To effectively consume time information, recent studies have focused on designing new architectures. In this paper, we take an orthogonal but complementary approach by providing a model-agnostic vector representation for time, called $T i m e 2 V e c$ , that can be easily imported into many existing and future architectures and improve their performances. We show on a range of models and problems that replacing the notion of time with its Time2Vec representation improves the performance of the final model. ",
40
+ "bbox": [
41
+ 233,
42
+ 267,
43
+ 766,
44
+ 378
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1 INTRODUCTION ",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 176,
54
+ 406,
55
+ 336,
56
+ 422
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "In building machine learning models, “time” is often an important feature. Examples include predicting daily sales for a company based on the date (and other available features), predicting the time for a patient’s next health event based on their medical history, and predicting the song a person is interested in listening to based on their listening history. The input for problems involving time can be considered as a sequence where, rather than being identically and independently distributed (iid), there exists a dependence across time (and/or space) among the data points. The sequence can be either synchronous, i.e. sampled at regular intervals, or asynchronous, i.e. sampled at different points in time. In both cases, time may be an important feature. For predicting daily sales, for instance, it may be useful to know if it is a holiday or not. For predicting the time for a patient’s next encounter, it is important to know the (asynchronous) times of their previous visits. ",
63
+ "bbox": [
64
+ 174,
65
+ 439,
66
+ 825,
67
+ 578
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "Recurrent neural networks (RNNs) do not typically treat time itself as a feature, typically assuming that inputs are synchronous. When time is known to be a relevant feature, it is often fed in as yet another input dimension (Choi et al., 2016; Du et al., 2016; Li et al., 2018b). In practice, RNNs often fail at effectively making use of time as a feature. To help the RNN make better use of time, several researchers design hand-crafted features of time that suit their specific problem and feed those features into the RNN (Choi et al., 2016; Baytas et al., 2017; Kwon et al., 2019). Hand-crafting features, however, can be expensive and requires domain expertise about the problem. ",
74
+ "bbox": [
75
+ 174,
76
+ 585,
77
+ 825,
78
+ 683
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Many recent studies aim at obviating the need for hand-crafting features by proposing generalpurpose—as opposed to problem specific—architectures that better handle time (Neil et al., 2016; Zhu et al., 2017; Mei & Eisner, 2017; Hu & Qi, 2017; Upadhyay et al., 2018; Li et al., 2018a). We follow an orthogonal but complementary approach to these recent studies by developing a generalpurpose model-agnostic representation for time that can be potentially used in any architecture. In particular, we develop a learnable vector representation (or embedding) for time as a vector representation can be easily combined with many models or architectures. We call this vector representation Time2Vec. To validate the effectiveness of Time2Vec, we conduct experiments on several (synthesized and real-world) datasets and integrate it with several architectures. Our main result is to show that on a range of problems and architectures that consume time, using Time2Vec instead of the time itself offers a boost in performance. ",
85
+ "bbox": [
86
+ 174,
87
+ 689,
88
+ 825,
89
+ 842
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "2 RELATED WORK ",
96
+ "text_level": 1,
97
+ "bbox": [
98
+ 176,
99
+ 863,
100
+ 344,
101
+ 878
102
+ ],
103
+ "page_idx": 0
104
+ },
105
+ {
106
+ "type": "text",
107
+ "text": "There is a long history of algorithms for predictive modeling in time series analysis. They include auto-regressive techniques (Akaike, 1969) that predict future measurements in a sequence based on a window of past measurements. Since it is not always clear how long the window of past measurements should be, hidden Markov models (Rabiner & Juang, 1986), dynamic Bayesian networks (Murphy & Russell, 2002), and dynamic conditional random fields (Sutton et al., 2007) use hidden states as a finite memory that can remember information arbitrarily far in the past. These models can be seen as special cases of recurrent neural networks (Hochreiter & Schmidhuber, 1997). They typically assume that inputs are synchronous, i.e. arrive at regular time intervals, and that the underlying process is stationary with respect to time. It is possible to aggregate asynchronous events into time-bins and to use synchronous models over the bins (Lipton et al., 2016; Anumula et al., 2018). Asynchronous events can also be directly modeled with point processes (e.g., Poisson, Cox, and Hawkes point processes) (Daley & Vere-Jones, 2007; Laub et al., 2015; Xiao et al., 2017; Li et al., 2018a; Xiao et al., 2018) and continuous time normalizing flows (Chen et al., 2018). Alternatively, one can also interpolate or make predictions at arbitrary time stamps with Gaussian processes (Rasmussen, 2004) or support vector regression (Drucker et al., 1997). ",
108
+ "bbox": [
109
+ 174,
110
+ 895,
111
+ 823,
112
+ 924
113
+ ],
114
+ "page_idx": 0
115
+ },
116
+ {
117
+ "type": "text",
118
+ "text": "",
119
+ "bbox": [
120
+ 174,
121
+ 103,
122
+ 825,
123
+ 284
124
+ ],
125
+ "page_idx": 1
126
+ },
127
+ {
128
+ "type": "text",
129
+ "text": "Our goal is not to propose a new model for time series analysis, but instead to propose a representation of time in the form of a vector embedding that can be used by many models. Vector embedding has been previously successfully used for other domains such as text (Mikolov et al., 2013; Pennington et al., 2014), (knowledge) graphs (Grover & Leskovec, 2016; Nickel et al., 2016; Kazemi & Poole, 2018), and positions (Vaswani et al., 2017; Gehring et al., 2017). Our approach is related to time decomposition techniques that encode a temporal signal into a set of frequencies (Cohen, 1995). However, instead of using a fixed set of frequencies as in Fourier transforms (Bracewell & Bracewell, 1986), we allow the frequencies to be learned. We take inspiration from the neural decomposition of Godfrey & Gashler (2018) (and similarly (Gashler & Ashmore, 2016)). For time-series analysis, Godfrey & Gashler (2018) decompose a 1D signal of time into several sine functions and a linear function to extrapolate (or interpolate) the given signal. We follow a similar intuition but instead of decomposing a 1D signal of time into its components, we transform the time itself and feed its transformation into the model that is to consume the time information. Our approach corresponds to the technique of Godfrey & Gashler (2018) when applied to regression tasks in 1D signals, but it is more general since we learn a representation that can be shared across many signals and can be fed to many models for tasks beyond regression. ",
130
+ "bbox": [
131
+ 174,
132
+ 291,
133
+ 826,
134
+ 513
135
+ ],
136
+ "page_idx": 1
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "While there is a body of literature on designing neural networks with sine activations (Lapedes & Farber, 1987; Sopena et al., 1999; Wong et al., 2002; Mingo et al., 2004; Liu et al., 2016), our work uses sine only for transforming time; the rest of the network uses other activations. There is also a set of techniques that consider time as yet another feature and concatenate time (or some hand designed features of time such as log and/or inverse of delta time) with the input (Choi et al., 2016; Li et al., 2017; Du et al., 2016; Baytas et al., 2017; Kwon et al., 2019; Trivedi et al., 2017; Kumar et al., 2018; Ma et al., 2018). Kazemi et al. (2019) survey several such approaches for dynamic (knowledge) graphs. These models can directly benefit from our proposed vector embedding, Time2Vec, by concatenating Time2Vec with the input instead of their time features. Other works (Neil et al., 2016; Zhu et al., 2017; Mei & Eisner, 2017; Hu & Qi, 2017; Upadhyay et al., 2018; Li et al., 2018a) propose new neural architectures that take into account time (or some features of time). We show how Time2Vec can be used in one of these architectures to better exploit temporal information; it can be potentially used in other architectures as well. ",
141
+ "bbox": [
142
+ 174,
143
+ 520,
144
+ 825,
145
+ 700
146
+ ],
147
+ "page_idx": 1
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "3 BACKGROUND & NOTATION",
152
+ "text_level": 1,
153
+ "bbox": [
154
+ 176,
155
+ 728,
156
+ 439,
157
+ 744
158
+ ],
159
+ "page_idx": 1
160
+ },
161
+ {
162
+ "type": "text",
163
+ "text": "We use lower-case letters to denote scalars, bold lower-case letters to denote vectors, and bold upper-case letters to denote matrices. We represent the $i ^ { t h }$ element of the vector $\\pmb { r }$ as $\\pmb { r } [ i ]$ . For two vectors $\\pmb { r }$ and $\\pmb { s }$ , we use $[ \\pmb { r } ; \\pmb { s } ]$ to represent their concatenation and $\\pmb { r } \\odot \\pmb { s }$ to represent element-wise (Hadamard) multiplication of the two vectors. Throughout the paper, we use $\\tau$ to represent a scalar notion of time (e.g., absolute time or time from the last event) and $\\tau$ for a vector of time features. ",
164
+ "bbox": [
165
+ 174,
166
+ 762,
167
+ 823,
168
+ 833
169
+ ],
170
+ "page_idx": 1
171
+ },
172
+ {
173
+ "type": "text",
174
+ "text": "Long Short Term Memory (LSTM) (Hochreiter & Schmidhuber, 1997) is considered one of the most successful RNN architectures for sequence modeling. A formulation of the original LSTM model and a variant of it based on peepholes (Gers & Schmidhuber, 2000) is presented in Appendix C. When time is a relevant feature, the easiest way to handle time is to consider it as just another feature (or extract some engineered features from it), concatenate the time features with the input, and use the standard LSTM model (or some other sequence model) (Choi et al., 2016; Du et al., 2016; Li et al., ",
175
+ "bbox": [
176
+ 174,
177
+ 839,
178
+ 825,
179
+ 922
180
+ ],
181
+ "page_idx": 1
182
+ },
183
+ {
184
+ "type": "text",
185
+ "text": "2018b). In this paper, we call this model $L S T M + T .$ Another way of handling time is by changing the formulation of the standard LSTM. Zhu et al. (2017) developed one such formulation, named TimeLSTM, by adding time gates to the architecture of the LSTM with peepholes. They proposed three architectures namely TLSTM1, TLSTM2, TLSTM3. A description of TLSTM1 and TLSTM3 can be found in Appendix C (we skipped TLSTM2 as it is quite similar to TLSTM3). ",
186
+ "bbox": [
187
+ 174,
188
+ 103,
189
+ 825,
190
+ 174
191
+ ],
192
+ "page_idx": 2
193
+ },
194
+ {
195
+ "type": "text",
196
+ "text": "4 TIME2VEC ",
197
+ "text_level": 1,
198
+ "bbox": [
199
+ 174,
200
+ 193,
201
+ 297,
202
+ 209
203
+ ],
204
+ "page_idx": 2
205
+ },
206
+ {
207
+ "type": "text",
208
+ "text": "A common approach to deal with time in different applications is to apply some hand-crafted function(s) $f _ { 1 } , \\ldots , f _ { m }$ to $\\tau$ , $\\mathit { \\Pi } _ { \\tau }$ can be absolute time, time from last event, etc.), concatenate the outputs $f _ { 1 } ( \\tau ) , \\dots , f _ { m } ( \\tau )$ with the rest of the input features $\\pmb { x }$ , and feed the resulting vector $[ { \\pmb x } ; f _ { 1 } ( \\tau ) ; \\dots ; f _ { m } ( \\tau ) ]$ to a sequence model (see Section 2 for references). This approach requires hand-crafting useful functions of time which may be difficult (or impossible) in several applications, and the hand-crafted functions may not be optimal for the task at hand. Instead of hand-crafting functions of time, we devise a representation of time which can be used to approximate any function through learnable parameters. Such a representation offers two advantages: 1- it obviates the need for hand-crafting functions of time and 2- it provides the grounds for learning suitable functions of time based on the data. As vector representations can be efficiently integrated with the current deep learning architectures, we employ a vector representation for time. ",
209
+ "bbox": [
210
+ 174,
211
+ 223,
212
+ 826,
213
+ 377
214
+ ],
215
+ "page_idx": 2
216
+ },
217
+ {
218
+ "type": "text",
219
+ "text": "Our proposed representation leverages the Fourier sine series (Arfken & Weber, 1999) according to which any 1D function can be approximated in a given interval using a weighted sum of sinusoids with appropriate frequencies (and phase-shifts). We include $k$ sinusoids of the form $s i n ( \\omega _ { i } \\tau + \\varphi _ { i } )$ in our vector representation where $\\omega _ { i }$ and $\\varphi _ { i }$ are learnable parameters1. That is, we concatenate the input features $\\pmb { x }$ with $k$ sinusoids and feed the concatenation $[ \\pmb { x } ; s i n ( \\omega _ { 1 } \\tau + \\varphi _ { 1 } ) ; \\dots ; s i n ( \\omega _ { k } \\tau + \\varphi _ { k } ) ]$ into a sequence model. Different functions of time can be created using these sinusoids by taking a weighted sum of them with different weights. We allow the weights of the sequence model to combine the sinusoids and create functions of time suitable for the task. If we expand the output $\\begin{array} { r } { \\pmb { a } ( \\tau , k ) [ j ] = \\gamma _ { j } + \\sum _ { i = 1 } ^ { k } \\theta _ { j , i } \\sin \\left( \\omega _ { i } \\tau + \\varphi _ { i } \\right) } \\end{array}$ fore, wheures p $\\theta _ { j , i ^ { \\mathrm { S } } }$ g an activation function), it are the first layer weights and on the temporal features). Ea $\\gamma _ { j }$ $\\pmb { x }$ $\\mathbf { \\pmb { a } } ( \\tau , k ) [ j ]$ operates on the input features $\\pmb { x }$ as well as a learned function $\\begin{array} { r } { f _ { j } ( \\tau ) = \\sum _ { i = 1 } ^ { k } \\theta _ { j , i } \\sin { \\left( \\omega _ { i } \\tau + \\varphi _ { i } \\right) } } \\end{array}$ of time, as opposed to a hand-crafted function2. Following Godfrey & Gashler (2018), to facilitate approximating functions with non-periodic patterns and help with generalization, we also include a linear projection of time in our vector representation. We name our vector representation of time Time2Vec. Time2Vec of $\\tau$ , denoted as $\\mathbf { t } 2 \\mathbf { v } ( \\tau )$ , is a vector of size $k + 1$ defined as follows: ",
220
+ "bbox": [
221
+ 173,
222
+ 383,
223
+ 825,
224
+ 614
225
+ ],
226
+ "page_idx": 2
227
+ },
228
+ {
229
+ "type": "equation",
230
+ "img_path": "images/d7f6ea4a53ac0ddd562bb339736ad4c1efd7b1d51f7eb23d7e0faee5dc3f5cf9.jpg",
231
+ "text": "$$\n\\mathbf t 2 \\mathbf v ( \\tau ) [ i ] = { \\left\\{ \\begin{array} { l l } { \\omega _ { i } \\tau + \\varphi _ { i } , } & { { \\mathrm { i f } } i = 0 . } \\\\ { \\sin { ( \\omega _ { i } \\tau + \\varphi _ { i } ) } , } & { { \\mathrm { i f } } 1 \\leq i \\leq k . } \\end{array} \\right. }\n$$",
232
+ "text_format": "latex",
233
+ "bbox": [
234
+ 346,
235
+ 618,
236
+ 650,
237
+ 655
238
+ ],
239
+ "page_idx": 2
240
+ },
241
+ {
242
+ "type": "text",
243
+ "text": "where $\\mathbf { t } 2 \\mathbf { v } ( \\tau ) [ i ]$ is the $i ^ { t h }$ element of $\\mathbf { t } 2 \\mathbf { v } ( \\tau )$ and $\\omega _ { i } \\mathbf { s }$ and $\\varphi _ { i } \\mathbf { s }$ are learnable parameters. ",
244
+ "bbox": [
245
+ 176,
246
+ 667,
247
+ 735,
248
+ 684
249
+ ],
250
+ "page_idx": 2
251
+ },
252
+ {
253
+ "type": "text",
254
+ "text": "The use of sine functions is inspired in part by Vaswani et al. (2017)’s positional encoding. Consider a sequence of items (e.g., a sequence of words) $\\{ I _ { 1 } , I _ { 2 } , \\ldots , I _ { N } \\}$ and a vector representation ${ \\pmb v } _ { I _ { j } } \\in \\mathbb { R } ^ { d }$ for the $j ^ { t h }$ item $I _ { j }$ in the sequence. Vaswani et al. (2017) added $\\sin { ( j / 1 0 0 0 0 ^ { k / d } ) }$ to ${ \\pmb v } _ { I _ { j } } [ k ]$ if $k$ is even and $\\sin { ( j / 1 0 0 0 0 ^ { k / d } + \\pi / 2 ) }$ if $k$ is odd so that the resulting vector includes information about the position of the item in the sequence. These sine functions are called the positional encoding. Intuitively, positions can be considered as the times and the items can be considered as the events happening at that time. Thus, Time2Vec can be considered as representing continuous time, instead of discrete positions, using sine functions. The sine functions in Time2Vec also enable capturing periodic behaviors which is not a goal in positional encoding. We feed Time2Vec as an input to the model (or to some gate in the model) instead of adding it to other vector representations. Unlike positional encoding, we show in our experiments that learning the frequencies and phase-shifts of sine functions in Time2Vec result in better performance compared to fixing them. ",
255
+ "bbox": [
256
+ 174,
257
+ 689,
258
+ 825,
259
+ 862
260
+ ],
261
+ "page_idx": 2
262
+ },
263
+ {
264
+ "type": "text",
265
+ "text": "4.1 PROPERTIES OF TIME2VEC",
266
+ "text_level": 1,
267
+ "bbox": [
268
+ 176,
269
+ 103,
270
+ 403,
271
+ 117
272
+ ],
273
+ "page_idx": 3
274
+ },
275
+ {
276
+ "type": "text",
277
+ "text": "We review some of the interesting and desired properties of Time2Vec. ",
278
+ "bbox": [
279
+ 174,
280
+ 128,
281
+ 637,
282
+ 145
283
+ ],
284
+ "page_idx": 3
285
+ },
286
+ {
287
+ "type": "text",
288
+ "text": "Periodicity: In many scenarios, some events occur periodically. The amount of sales of a store, for instance, may be higher on weekends or holidays. Weather condition usually follows a periodic pattern over different seasons (Gashler & Ashmore, 2016). Some other events may be non-periodic but only happen after a point in time and/or become more probable as time proceeds. For instance, some diseases are more likely for older ages. ",
289
+ "bbox": [
290
+ 174,
291
+ 151,
292
+ 825,
293
+ 220
294
+ ],
295
+ "page_idx": 3
296
+ },
297
+ {
298
+ "type": "text",
299
+ "text": "The period of $\\sin \\left( \\omega _ { i } \\tau + \\varphi _ { i } \\right)$ is $\\frac { 2 \\pi } { \\omega _ { i } }$ , i.e. it has the same value for $\\tau$ and $\\textstyle { \\tau + { \\frac { 2 \\pi } { \\omega _ { i } } } }$ . Therefore, the sine functions in Time2Vec help capture periodic behaviors without the need for feature engineering. For instance, a sine function $\\sin { \\left( \\omega \\tau + \\varphi \\right) }$ with $\\begin{array} { r } { \\omega = \\frac { 2 \\pi } { 7 } } \\end{array}$ repeats every 7 days (assuming $\\tau$ indicates days) and can be potentially used to model weekly patterns. Furthermore, unlike other basis functions which may show strange behaviors for extrapolation (see, e.g., (Poole et al., 2014)), sine functions are expected to work well for extrapolating to future and out of sample data (Vaswani et al., 2017). The linear term represents the progression of time and can be used for capturing non-periodic patterns in the input that depend on time. ",
300
+ "bbox": [
301
+ 174,
302
+ 227,
303
+ 825,
304
+ 340
305
+ ],
306
+ "page_idx": 3
307
+ },
308
+ {
309
+ "type": "text",
310
+ "text": "Invariance to Time Rescaling: Since time can be measured in different scales (e.g., days, hours, seconds, etc.), another important property of a representation for time is invariance to time rescaling (see, e.g., (Tallec & Ollivier, 2018)). A class $\\mathcal { C }$ of models is invariant to time rescaling if for any model $\\mathcal { M } _ { 1 } \\in \\mathcal { C }$ and any scalar $\\alpha > 0$ , there exists a model $\\mathcal { M } _ { 2 } \\in \\mathcal { C }$ that behaves on $\\alpha \\tau$ ( $\\mathit { \\Pi } _ { \\tau }$ scaled by $\\alpha$ ) in the same way $\\mathcal { M } _ { 1 }$ behaves on original $\\tau \\mathrm { s }$ . Proposition 1 establishes the invariance of Time2Vec to time rescaling. The proof is in Appendix D. ",
311
+ "bbox": [
312
+ 174,
313
+ 347,
314
+ 825,
315
+ 431
316
+ ],
317
+ "page_idx": 3
318
+ },
319
+ {
320
+ "type": "text",
321
+ "text": "Proposition 1. Time2Vec is invariant to time rescaling. ",
322
+ "bbox": [
323
+ 174,
324
+ 435,
325
+ 537,
326
+ 449
327
+ ],
328
+ "page_idx": 3
329
+ },
330
+ {
331
+ "type": "text",
332
+ "text": "Simplicity: A representation for time should be easily consumable by different models and architectures. A matrix representation, for instance, may be difficult to consume as it cannot be easily appended with the other inputs. By selecting a vector representation for time, we ensure easy integration with deep learning architectures. ",
333
+ "bbox": [
334
+ 174,
335
+ 460,
336
+ 825,
337
+ 517
338
+ ],
339
+ "page_idx": 3
340
+ },
341
+ {
342
+ "type": "text",
343
+ "text": "5 EXPERIMENTS & RESULTS ",
344
+ "text_level": 1,
345
+ "bbox": [
346
+ 176,
347
+ 536,
348
+ 428,
349
+ 553
350
+ ],
351
+ "page_idx": 3
352
+ },
353
+ {
354
+ "type": "text",
355
+ "text": "We use the following datasets: ",
356
+ "bbox": [
357
+ 174,
358
+ 568,
359
+ 372,
360
+ 582
361
+ ],
362
+ "page_idx": 3
363
+ },
364
+ {
365
+ "type": "text",
366
+ "text": "1) Synthesized data: We create a toy dataset to use for explanatory experiments. The inputs in this dataset are the integers between 1 and 365. Input integers that are multiples of 7 belong to class one and the other integers belong to class two. The first $7 5 \\%$ is used for training and the last $2 5 \\%$ for testing. This dataset is inspired by the periodic patterns (e.g., weekly or monthly) that often exist in daily-collected data; the input integers can be considered as the days. ",
367
+ "bbox": [
368
+ 174,
369
+ 589,
370
+ 825,
371
+ 660
372
+ ],
373
+ "page_idx": 3
374
+ },
375
+ {
376
+ "type": "text",
377
+ "text": "2) Event-MNIST: Sequential (event-based) MNIST is a common benchmark in sequence modeling literature (see, e.g., (Bellec et al., 2018; Campos et al., 2018; Fatahi et al., 2016)). We create a sequential event-based version of MNIST by flattening the images and recording the position of the pixels whose intensities are larger than a threshold (0.9 in our experiment). Following this transformation, each image will be represented as an array of increasing numbers such as $[ t _ { 1 } , t _ { 2 } , t _ { 3 } , \\ldots , t _ { m } ]$ . We consider these values as the event times and use them to classify the images. As in other sequence modeling works, our aim in building this dataset is not to beat the state-of-the-art on the MNIST dataset; our aim is to provide a dataset where the only input is time and different representations for time can be compared when extraneous variables (confounders) are eliminated as much as possible. ",
378
+ "bbox": [
379
+ 173,
380
+ 666,
381
+ 825,
382
+ 805
383
+ ],
384
+ "page_idx": 3
385
+ },
386
+ {
387
+ "type": "text",
388
+ "text": "3) N TIDIGITS18 (Anumula et al., 2018): The dataset includes audio spikes of the TIDIGITS spoken digit dataset (Leonard & Doddington, 1993) recorded by the binaural 64-channel silicon cochlea sensor. Each sample is a sequence of $( t , c )$ tuples where $t$ represents time and $c$ denotes the index of active frequency channel at time $t$ . The labels are sequences of 1 to 7 connected digits with a vocabulary consisting of 11 digits (i.e. “zero” to “nine” plus “oh”) and the goal is to classify the spoken digit based on the given sequence of active channels. We use the reduced version of the dataset where only the single digit samples are used for training and testing. The reduced dataset has a total of 2,464 training and 2,486 test samples. ",
389
+ "bbox": [
390
+ 173,
391
+ 811,
392
+ 825,
393
+ 924
394
+ ],
395
+ "page_idx": 3
396
+ },
397
+ {
398
+ "type": "image",
399
+ "img_path": "images/d284eb34fa7cec683a41bc11dcf77dc40c6bbb62c4cfea0ed98d33c7730f82d8.jpg",
400
+ "image_caption": [
401
+ "Figure 1: Comparing $\\mathrm { L S T M + T }$ and LSTM+Time2Vec on several datasets. "
402
+ ],
403
+ "image_footnote": [],
404
+ "bbox": [
405
+ 184,
406
+ 122,
407
+ 808,
408
+ 351
409
+ ],
410
+ "page_idx": 4
411
+ },
412
+ {
413
+ "type": "text",
414
+ "text": "4) Stack Overflow (SOF): This dataset contains sequences of badges obtained by stack overflow users and the timestamps at which the badges were obtained3. We used the subset released by Du et al. (2016) containing $\\sim 6 K$ users, 22 event types (badges), and $\\sim 4 8 0 K$ events. Given a sequence $[ ( b _ { 1 } ^ { u } , t _ { 1 } ^ { u } ) , ( b _ { 2 } ^ { u } , t _ { 2 } ^ { u } ) , . . . , ( b _ { n } ^ { u } , t _ { n } ^ { u } ) ]$ for each user $u$ where $b _ { i } ^ { u }$ is the badge id and $t _ { i } ^ { u }$ is the timestamp when $u$ received this badge id, the task is to predict the badge the user will obtain at time $t _ { k + 1 } ^ { u }$ . ",
415
+ "bbox": [
416
+ 173,
417
+ 404,
418
+ 825,
419
+ 474
420
+ ],
421
+ "page_idx": 4
422
+ },
423
+ {
424
+ "type": "text",
425
+ "text": "5) Last.FM: This dataset contains a history of listening habits for Last.FM users (Celma, 2010). We used the code released by Zhu et al. (2017) to pre-process the data. The dataset contains $\\sim 1 K$ users, 5000 event types (songs), and $\\sim 8 1 9 K$ events. The prediction problem is similar to the SOF dataset but with dynamic updating (see, (Zhu et al., 2017) for details). ",
426
+ "bbox": [
427
+ 174,
428
+ 481,
429
+ 825,
430
+ 536
431
+ ],
432
+ "page_idx": 4
433
+ },
434
+ {
435
+ "type": "text",
436
+ "text": "6) CiteULike: This dataset contains data about what and when a user posted on citeulike website4. The original dataset has about 8000 samples. Similar to Last.FM, we used the pre-processing used by Zhu et al. (2017) to select $\\sim 1 . 6 K$ sequences with 5000 event types (papers) and $\\sim 3 6 K$ events. The task for this dataset is similar to that for Last.FM. ",
437
+ "bbox": [
438
+ 174,
439
+ 544,
440
+ 825,
441
+ 599
442
+ ],
443
+ "page_idx": 4
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "Measures: For classification tasks, we report accuracy corresponding to the percentage of correctly classified examples. For recommendation tasks, we report Recall $@ q$ and $M R R @ q$ . Following Zhu et al. (2017), to generate a recommendation list, we sample $k - 1$ random items and add the correct item to the sampled list resulting in a list of $k$ items. Then our model ranks these $k$ items. Looking only at the top ten recommendations, Recall $@ \\mathbf { q }$ corresponds to the percentage of recommendation lists where the correct item is in the top $q$ ; $\\mathbf { M R R } @ \\mathbf { q }$ (reported in Appendix B) corresponds to the mean of the inverses of the rankings of the correct items where the inverse rank is considered 0 if the item does not appear in top $q$ recommendations. For Last.FM and CiteULike, following Zhu et al. (2017) we report Recall $@ 1 0$ and $\\mathbf { M R R } @ 1 0$ . For SOF, we report Recall $\\textcircled { \\alpha } 3$ and MRR as there are only 22 event types and Recall $@ 1 0$ and MRR $@ 1 0$ are not informative enough. The detail of the implementations is presented in Appendix A. ",
448
+ "bbox": [
449
+ 173,
450
+ 607,
451
+ 825,
452
+ 760
453
+ ],
454
+ "page_idx": 4
455
+ },
456
+ {
457
+ "type": "text",
458
+ "text": "5.1 ON THE EFFECTIVENESS OF TIME2VEC ",
459
+ "text_level": 1,
460
+ "bbox": [
461
+ 176,
462
+ 776,
463
+ 486,
464
+ 790
465
+ ],
466
+ "page_idx": 4
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "Fig. 1 represents the obtained results of comparing $L S T M + T i m e 2 V e c$ with $L S T M + T$ on several datasets with different properties and statistics. On all datasets, replacing time with Time2Vec improves the performance in most cases and never deteriorates it; in many cases, LSTM $^ +$ Time2Vec performs consistently better than $\\mathrm { L S T M + T } .$ . Anumula et al. (2018) mention that $\\mathrm { L S T M + T }$ fails on N TIDIGITS18 as the dataset contains very long sequences. By feeding better features to the LSTM rather than relying on the LSTM to extract them, Time2Vec helps better optimize the LSTM and offers higher accuracy (and lower variance) compared to $\\mathrm { L S T M + T } .$ Besides N TIDIGITS18, SOF also contains somewhat long sequences and long time horizons. The results on these two datasets indicate that Time2Vec can be effective for datasets with long sequences and time horizons. ",
471
+ "bbox": [
472
+ 173,
473
+ 801,
474
+ 825,
475
+ 887
476
+ ],
477
+ "page_idx": 4
478
+ },
479
+ {
480
+ "type": "image",
481
+ "img_path": "images/a5e4bb8f547dcf576f3780aed266cd6e8c6666d13534634fe9224fe3dd4d675d.jpg",
482
+ "image_caption": [
483
+ "Figure 2: Comparing TLSTM1 and TLSTM3 on Last.FM and CiteULike in terms of Recall $@$ 10 with and without Time2Vec. "
484
+ ],
485
+ "image_footnote": [],
486
+ "bbox": [
487
+ 238,
488
+ 116,
489
+ 758,
490
+ 342
491
+ ],
492
+ "page_idx": 5
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "",
497
+ "bbox": [
498
+ 174,
499
+ 411,
500
+ 825,
501
+ 453
502
+ ],
503
+ "page_idx": 5
504
+ },
505
+ {
506
+ "type": "text",
507
+ "text": "To verify if Time2Vec can be integrated with other architectures and improve their performance, we integrate it with TLSTM1 and TLSTM3, two recent and powerful models for handling asynchronous events. We replaced their notion $\\tau$ of time with $\\mathbf { t } 2 \\mathbf { v } ( \\tau )$ and replaced the vectors getting multiplied to $\\tau$ with matrices accordingly. The updated formulations are presented in Appendix C. The obtained results in Fig. 2 for TLSTM1 and TLSTM3 on Last.FM and CiteULike demonstrates that replacing time with Time2Vec for both TLSTM1 and TLSTM3 improves the performance. ",
508
+ "bbox": [
509
+ 174,
510
+ 460,
511
+ 825,
512
+ 544
513
+ ],
514
+ "page_idx": 5
515
+ },
516
+ {
517
+ "type": "text",
518
+ "text": "5.2 MODEL VARIANTS & ABLATION STUDY ",
519
+ "text_level": 1,
520
+ "bbox": [
521
+ 176,
522
+ 563,
523
+ 491,
524
+ 577
525
+ ],
526
+ "page_idx": 5
527
+ },
528
+ {
529
+ "type": "text",
530
+ "text": "Other activation functions: Inspired by Fourier sine series and by positional encoding, we used sine activations in Eq. 1. To evaluate how sine activations compare to other activation functions for our setting, we repeated the experiment on Event-MNIST in Section 5.1 when using non-periodic activations such as Sigmoid, Tanh, and rectified linear units (ReLU) (Nair & Hinton, 2010), and periodic activations such as mod and triangle. We fixed the length of the Time2Vec to $6 4 + 1$ , i.e. 64 units with a non-linear transformation and 1 unit with a linear transformation. From the results shown in Fig. 5(a), it can be observed that the periodic activation functions (sine, mod, and triangle) outperform the non-periodic ones. Other than not being able to capture periodic behaviors, we believe one of the main reasons why these non-periodic activation functions do not perform well is because as time goes forward and becomes larger, Sigmoid and Tanh saturate and ReLU either goes to zero or explodes. Among periodic activation functions, sine outperforms the other two. ",
531
+ "bbox": [
532
+ 174,
533
+ 589,
534
+ 825,
535
+ 742
536
+ ],
537
+ "page_idx": 5
538
+ },
539
+ {
540
+ "type": "text",
541
+ "text": "Fixed frequencies and phase-shifts: Vaswani et al. (2017) mention that learning sine frequencies and phase-shifts for their positional encoding gives the same performance as fixing frequencies to exponentially-decaying values and phase-shifts to 0 and $\\frac { \\pi } { 2 }$ . This raises the question of whether learning the sine frequencies and phase-shifts of Time2Vec from data offer any advantage compared to fixing them. To answer this question, we compare three models on Event-MNIST when using Time2Vec of length $1 6 + 1$ : 1- fixing $\\mathbf { t } 2 \\mathbf { v } ( \\tau ) [ n ]$ to sin $\\left( { \\frac { 2 \\pi n } { 1 6 } } \\right)$ for $n \\leq 1 6$ , 2- fixing the frequencies and phase shifts according to Vaswani et al. (2017)’s positional encoding, and 3- learning the frequencies and phase-shifts from the data. Fig. 5(b) represents our obtained results. The obtained results in Fig. 5(b) show that learning the frequencies and phase-shifts rather than fixing them helps improve the performance of the model. ",
542
+ "bbox": [
543
+ 174,
544
+ 750,
545
+ 825,
546
+ 888
547
+ ],
548
+ "page_idx": 5
549
+ },
550
+ {
551
+ "type": "text",
552
+ "text": "Modeling Periodic Behaviours: To measure how well Time2Vec performs in capturing periodic behaviours, we trained a model on our synthesized dataset where the input integer (day) is used as ",
553
+ "bbox": [
554
+ 174,
555
+ 895,
556
+ 823,
557
+ 924
558
+ ],
559
+ "page_idx": 5
560
+ },
561
+ {
562
+ "type": "text",
563
+ "text": "(a) A weighted sum of the sinusoids in Time2Vec oscillating every 7 days. ",
564
+ "bbox": [
565
+ 204,
566
+ 228,
567
+ 467,
568
+ 253
569
+ ],
570
+ "page_idx": 6
571
+ },
572
+ {
573
+ "type": "image",
574
+ "img_path": "images/57cf77dc0ea113bc62ab8a494db033a617854e6fab9b8bd56bf5d83b74ac3f8d.jpg",
575
+ "image_caption": [
576
+ "Figure 3: The models learned for our synthesized dataset before the final activation. The red dots represent the points to be classified as 1. "
577
+ ],
578
+ "image_footnote": [],
579
+ "bbox": [
580
+ 209,
581
+ 116,
582
+ 460,
583
+ 220
584
+ ],
585
+ "page_idx": 6
586
+ },
587
+ {
588
+ "type": "image",
589
+ "img_path": "images/46452851a214ffea2d551fa40a2dfa6df34da8dca372ab0536941f637a1d1e1a.jpg",
590
+ "image_caption": [
591
+ "(b) A weighted sum of the sinusoids in Time2Vec oscillating every 14 days. "
592
+ ],
593
+ "image_footnote": [],
594
+ "bbox": [
595
+ 534,
596
+ 116,
597
+ 787,
598
+ 220
599
+ ],
600
+ "page_idx": 6
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "the time for Time2Vec and a fully connected layer is used on top of the Time2Vec to predict the class. That is, the probability of one of the classes is a sigmoid of a weighted sum of the Time2Vec elements. Fig. 3 (a) shows a the learned function for the days in the test set where the weights, frequencies and phase-shifts are learned from the data. The red dots on the figure represent multiples of 7. It can be observed that Time2Vec successfully learns the correct period and oscillates every 7 days. The phase-shifts have been learned in a way that all multiples of 7 are placed on the positive peaks of the signal to facilitate separating them from the other days. Looking at the learned frequency and phase-shift for the sine functions across several runs, we observed that in many runs one of the main sine functions has a frequency around $\\begin{array} { r } { 0 . 8 9 8 \\approx \\frac { 2 \\pi } { 7 } } \\end{array}$ and a phase-shift around $1 . 5 6 \\approx \\frac { \\pi } { 2 }$ , thus learning to oscillate every 7 days and shifting by $\\frac { \\pi } { 2 }$ to make sure multiples of 7 end up at the peaks of the signal. Fig. 4 shows the initial and learned sine frequencies for one run. It can be viewed that at the beginning, the weights and frequencies are random numbers. But after training, only the desired frequency $\\textstyle { \\left( { \\frac { 2 \\pi } { 7 } } \\right) }$ has a high weight (and the 0 frequency which gets subsumed into the bias). The model perfectly classifies the examples in the test set which represents the sine functions in Time2Vec can be used effectively for extrapolation and out of sample times assuming that the test set follows similar periodic patterns as the train set5. We added some noise to our labels by flipping $5 \\%$ of the labels selected at random and observed a similar performance in most runs. ",
605
+ "bbox": [
606
+ 173,
607
+ 321,
608
+ 825,
609
+ 558
610
+ ],
611
+ "page_idx": 6
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "To test invariance to time rescaling, we multiplied the inputs by 2 and observed that in many runs, the frequency of one of the main sine functions was around $\\begin{array} { r } { 0 . 4 4 \\dot { 8 } \\approx \\frac { 2 \\pi } { 2 * 7 } } \\end{array}$ thus oscillating every 14 days. An example of a combination of signals learned to oscillate every 14 days is in Fig. 3 (b). ",
616
+ "bbox": [
617
+ 174,
618
+ 565,
619
+ 823,
620
+ 607
621
+ ],
622
+ "page_idx": 6
623
+ },
624
+ {
625
+ "type": "text",
626
+ "text": "The use of periodicity in sine functions: It has been argued that when sine activations are used, only a monotonically increasing (or decreasing) part of it is used and the periodic part is ignored (Giambattista Parascandolo, 2017). When we use Time2Vec, however, the periodicity of the sine functions are also being used and seem to be key to the effectiveness of the Time2Vec representation. Fig. 5(c) shows some statistics on the frequencies learned for Event-MNIST where we count the number of learned frequencies that fall within intervals of lengths 0.1 centered at $[ 0 . 0 5 , 0 . 1 5 , \\ldots , 0 . 9 5 ]$ ] (all learned frequencies are between 0 and 1). The figure contains two peaks at 0.35 and 0.85. Since the input to the sine functions for this problem can have a maximum value of 784 (number of pixels in an image), sine functions with frequencies around 0.35 and 0.85 finish (almost) 44 and 106 full periods. The smallest learned frequency is 0.029 which finishes (almost) 3.6 full periods. These values indicate that the model is indeed using the periodicity of the sine functions, not just a monotonically increasing (or decreasing) part of them. ",
627
+ "bbox": [
628
+ 173,
629
+ 614,
630
+ 826,
631
+ 726
632
+ ],
633
+ "page_idx": 6
634
+ },
635
+ {
636
+ "type": "image",
637
+ "img_path": "images/087e83ffaf5f5917afade18bb06245b15156d18257d36717c25fb05ca79d2905.jpg",
638
+ "image_caption": [
639
+ "Figure 4: (a) Initial vs. (b) learned weights and frequencies for our synthesized dataset. "
640
+ ],
641
+ "image_footnote": [],
642
+ "bbox": [
643
+ 308,
644
+ 780,
645
+ 686,
646
+ 892
647
+ ],
648
+ "page_idx": 6
649
+ },
650
+ {
651
+ "type": "image",
652
+ "img_path": "images/8da9c3d24f891893c3a0d28a36f5cd502358906524cea96ca5fb9d75114ada8c.jpg",
653
+ "image_caption": [
654
+ "Figure 5: An ablation study of several components in Time2Vec. (a) Comparing different activation functions for Time2Vec on Event-MNIST. Sigmoid and Tanh almost overlap. (b) Comparing frequencies fixed to equally-spaced values, frequencies fixed according to positional encoding (Vaswani et al., 2017), and learned frequencies on Event-MNIST. (c) A histogram of the frequencies learned in Time2Vec for Event-MNIST. The $\\mathbf { X }$ -axis represents frequency intervals and the y-axis represents the number of frequencies in that interval. (d) The performance of TLSTM3 $+$ Time2Vec on CiteULike in terms of Recall $@ 1 0$ with and without the linear term. "
655
+ ],
656
+ "image_footnote": [],
657
+ "bbox": [
658
+ 263,
659
+ 122,
660
+ 733,
661
+ 359
662
+ ],
663
+ "page_idx": 7
664
+ },
665
+ {
666
+ "type": "text",
667
+ "text": "",
668
+ "bbox": [
669
+ 174,
670
+ 503,
671
+ 825,
672
+ 560
673
+ ],
674
+ "page_idx": 7
675
+ },
676
+ {
677
+ "type": "text",
678
+ "text": "The Linear Term: To see the effect of the linear term in Time2Vec, we repeated the experiment for Event-MNIST when the linear term is removed from Time2VecWe observed that the results were not ˙ affected substantially, thus showing that the linear term may not be helpful for Event-MNIST. This might be due to the simplicity of the Event-MNIST dataset. Then we conducted a similar experiment for TLSTM3 on CiteULike (which is a more challenging dataset) and obtained the results in Fig. 5(d). From these results, we can see that the linear term helps facilitate learning functions of time that can be effectively consumed by the model. ",
679
+ "bbox": [
680
+ 174,
681
+ 566,
682
+ 825,
683
+ 665
684
+ ],
685
+ "page_idx": 7
686
+ },
687
+ {
688
+ "type": "text",
689
+ "text": "6 CONCLUSION & FUTURE WORK ",
690
+ "text_level": 1,
691
+ "bbox": [
692
+ 176,
693
+ 693,
694
+ 472,
695
+ 708
696
+ ],
697
+ "page_idx": 7
698
+ },
699
+ {
700
+ "type": "text",
701
+ "text": "In many tasks for synchronous and asynchronous event predictions, time is an important feature. Previous work has mainly resorted to applying hand-crafted functions to time and concatenating these functions with the rest of the input features. In this work, we presented an approach that automatically learns these functions from data. In particular, we developed Time2Vec, a vector representation for time, using sine and linear activations and showed the effectiveness of this representation across several datasets and several tasks. In the majority of our experiments, Time2Vec improved our results, while the remaining results were not hindered by its application. While sine functions have been argued to complicate the optimization (Lapedes & Farber, 1987; Giambattista Parascandolo, 2017), we did not experience such a complication except for the experiment in Subsection 5.2 on our synthesized dataset when using only a few sine functions. We hypothesize that the main reasons include combining sine functions with a powerful model (e.g., LSTM) and using many sine functions which reduces the distance to the goal (see, e.g., (Neyshabur et al., 2019)). We leave a deeper theoretical analysis of this hypothesis, development of better optimizers, and experimenting with other representations for time as future work. ",
702
+ "bbox": [
703
+ 174,
704
+ 729,
705
+ 825,
706
+ 924
707
+ ],
708
+ "page_idx": 7
709
+ },
710
+ {
711
+ "type": "text",
712
+ "text": "REFERENCES ",
713
+ "text_level": 1,
714
+ "bbox": [
715
+ 174,
716
+ 102,
717
+ 287,
718
+ 118
719
+ ],
720
+ "page_idx": 8
721
+ },
722
+ {
723
+ "type": "text",
724
+ "text": "Hirotugu Akaike. Fitting autoregressive models for prediction. Annals of the institute of Statistical Mathematics, 21(1):243–247, 1969. ",
725
+ "bbox": [
726
+ 174,
727
+ 126,
728
+ 825,
729
+ 155
730
+ ],
731
+ "page_idx": 8
732
+ },
733
+ {
734
+ "type": "text",
735
+ "text": "Jithendar Anumula, Daniel Neil, Tobi Delbruck, and Shih-Chii Liu. Feature representations for neuromorphic audio spike streams. Frontiers in neuroscience, 12:23, 2018. ",
736
+ "bbox": [
737
+ 173,
738
+ 161,
739
+ 821,
740
+ 191
741
+ ],
742
+ "page_idx": 8
743
+ },
744
+ {
745
+ "type": "text",
746
+ "text": "George B Arfken and Hans J Weber. Mathematical methods for physicists, 1999. ",
747
+ "bbox": [
748
+ 173,
749
+ 199,
750
+ 707,
751
+ 215
752
+ ],
753
+ "page_idx": 8
754
+ },
755
+ {
756
+ "type": "text",
757
+ "text": "Inci M Baytas, Cao Xiao, Xi Zhang, Fei Wang, Anil K Jain, and Jiayu Zhou. Patient subtyping via time-aware lstm networks. In ACM SIGKDD, pp. 65–74, 2017. ",
758
+ "bbox": [
759
+ 174,
760
+ 222,
761
+ 823,
762
+ 252
763
+ ],
764
+ "page_idx": 8
765
+ },
766
+ {
767
+ "type": "text",
768
+ "text": "Guillaume Bellec, Darjan Salaj, Anand Subramoney, Robert Legenstein, and Wolfgang Maass. Long short-term memory and learning-to-learn in networks of spiking neurons. In NeurIPS, 2018. ",
769
+ "bbox": [
770
+ 174,
771
+ 260,
772
+ 823,
773
+ 290
774
+ ],
775
+ "page_idx": 8
776
+ },
777
+ {
778
+ "type": "text",
779
+ "text": "Ronald Newbold Bracewell and Ronald N Bracewell. The Fourier transform and its applications. McGraw-Hill New York, 1986. ",
780
+ "bbox": [
781
+ 173,
782
+ 296,
783
+ 823,
784
+ 327
785
+ ],
786
+ "page_idx": 8
787
+ },
788
+ {
789
+ "type": "text",
790
+ "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. In ICLR, 2018. ",
791
+ "bbox": [
792
+ 174,
793
+ 333,
794
+ 823,
795
+ 363
796
+ ],
797
+ "page_idx": 8
798
+ },
799
+ {
800
+ "type": "text",
801
+ "text": "O. Celma. Music Recommendation and Discovery in the Long Tail. Springer, 2010. ",
802
+ "bbox": [
803
+ 174,
804
+ 371,
805
+ 723,
806
+ 387
807
+ ],
808
+ "page_idx": 8
809
+ },
810
+ {
811
+ "type": "text",
812
+ "text": "Tian Qi Chen, Yulia Rubanova, Jesse Bettencourt, and David Duvenaud. Neural ordinary differential equations. In Neural Information Processing Systems (NeurIPS), 2018. ",
813
+ "bbox": [
814
+ 173,
815
+ 393,
816
+ 820,
817
+ 424
818
+ ],
819
+ "page_idx": 8
820
+ },
821
+ {
822
+ "type": "text",
823
+ "text": "Edward Choi, Mohammad Taha Bahadori, Andy Schuetz, Walter F Stewart, and Jimeng Sun. Doctor AI: Predicting clinical events via recurrent neural networks. In Machine Learning for Healthcare Conference, pp. 301–318, 2016. ",
824
+ "bbox": [
825
+ 176,
826
+ 431,
827
+ 826,
828
+ 474
829
+ ],
830
+ "page_idx": 8
831
+ },
832
+ {
833
+ "type": "text",
834
+ "text": "Leon Cohen. Time-frequency analysis, volume 778. Prentice hall, 1995. ",
835
+ "bbox": [
836
+ 173,
837
+ 482,
838
+ 647,
839
+ 498
840
+ ],
841
+ "page_idx": 8
842
+ },
843
+ {
844
+ "type": "text",
845
+ "text": "Daryl J Daley and David Vere-Jones. An introduction to the theory of point processes: volume II: general theory and structure. Springer Science & Business Media, 2007. ",
846
+ "bbox": [
847
+ 173,
848
+ 506,
849
+ 825,
850
+ 535
851
+ ],
852
+ "page_idx": 8
853
+ },
854
+ {
855
+ "type": "text",
856
+ "text": "Harris Drucker, Christopher JC Burges, Linda Kaufman, Alex J Smola, and Vladimir Vapnik. Support vector regression machines. In NeurIPS, pp. 155–161, 1997. ",
857
+ "bbox": [
858
+ 171,
859
+ 542,
860
+ 823,
861
+ 573
862
+ ],
863
+ "page_idx": 8
864
+ },
865
+ {
866
+ "type": "text",
867
+ "text": "Nan Du, Hanjun Dai, Rakshit Trivedi, Utkarsh Upadhyay, Manuel Gomez-Rodriguez, and Le Song. Recurrent marked temporal point processes: Embedding event history to vector. In ACM SIGKDD, pp. 1555–1564. ACM, 2016. ",
868
+ "bbox": [
869
+ 173,
870
+ 579,
871
+ 826,
872
+ 623
873
+ ],
874
+ "page_idx": 8
875
+ },
876
+ {
877
+ "type": "text",
878
+ "text": "Mazdak Fatahi, Mahmood Ahmadi, Mahyar Shahsavari, Arash Ahmadi, and Philippe Devienne. evt mnist: A spike based version of traditional mnist. arXiv preprint arXiv:1604.06751, 2016. ",
879
+ "bbox": [
880
+ 169,
881
+ 631,
882
+ 825,
883
+ 660
884
+ ],
885
+ "page_idx": 8
886
+ },
887
+ {
888
+ "type": "text",
889
+ "text": "Michael S Gashler and Stephen C Ashmore. Modeling time series data with deep fourier neural networks. Neurocomputing, 188:3–11, 2016. ",
890
+ "bbox": [
891
+ 166,
892
+ 667,
893
+ 825,
894
+ 698
895
+ ],
896
+ "page_idx": 8
897
+ },
898
+ {
899
+ "type": "text",
900
+ "text": "Jonas Gehring, Michael Auli, David Grangier, Denis Yarats, and Yann N Dauphin. Convolutional sequence to sequence learning. arXiv preprint arXiv:1705.03122, 2017. ",
901
+ "bbox": [
902
+ 171,
903
+ 704,
904
+ 825,
905
+ 734
906
+ ],
907
+ "page_idx": 8
908
+ },
909
+ {
910
+ "type": "text",
911
+ "text": "Felix A Gers and Jurgen Schmidhuber. Recurrent nets that time and count. In ¨ IJCNN, volume 3, pp. 189–194. IEEE, 2000. ",
912
+ "bbox": [
913
+ 173,
914
+ 742,
915
+ 825,
916
+ 771
917
+ ],
918
+ "page_idx": 8
919
+ },
920
+ {
921
+ "type": "text",
922
+ "text": "Tuomas Virtanen Giambattista Parascandolo, Heikki Huttunen. Taming the waves: sine as activation function in deep neural networks. 2017. URL https://openreview.net/pdf?id= Sks3zF9eg. ",
923
+ "bbox": [
924
+ 174,
925
+ 779,
926
+ 825,
927
+ 821
928
+ ],
929
+ "page_idx": 8
930
+ },
931
+ {
932
+ "type": "text",
933
+ "text": "Luke B Godfrey and Michael S Gashler. Neural decomposition of time-series data for effective generalization. IEEE transactions on neural networks and learning systems, 29(7):2973–2985, 2018. ",
934
+ "bbox": [
935
+ 173,
936
+ 830,
937
+ 825,
938
+ 872
939
+ ],
940
+ "page_idx": 8
941
+ },
942
+ {
943
+ "type": "text",
944
+ "text": "Klaus Greff, Rupesh K Srivastava, Jan Koutn´ık, Bas R Steunebrink, and Jurgen Schmidhuber. Lstm: ¨ A search space odyssey. IEEE transactions on neural networks and learning systems, 28(10): 2222–2232, 2017. ",
945
+ "bbox": [
946
+ 176,
947
+ 881,
948
+ 825,
949
+ 924
950
+ ],
951
+ "page_idx": 8
952
+ },
953
+ {
954
+ "type": "text",
955
+ "text": "Aditya Grover and Jure Leskovec. node2vec: Scalable feature learning for networks. In ACM SIGKDD, pp. 855–864, 2016. ",
956
+ "bbox": [
957
+ 171,
958
+ 103,
959
+ 825,
960
+ 132
961
+ ],
962
+ "page_idx": 9
963
+ },
964
+ {
965
+ "type": "text",
966
+ "text": "Sepp Hochreiter and Jurgen Schmidhuber. Long short-term memory. ¨ Neural computation, 9(8): 1735–1780, 1997. ",
967
+ "bbox": [
968
+ 173,
969
+ 142,
970
+ 825,
971
+ 171
972
+ ],
973
+ "page_idx": 9
974
+ },
975
+ {
976
+ "type": "text",
977
+ "text": "Hao Hu and Guo-Jun Qi. State-frequency memory recurrent neural networks. In International Conference on Machine Learning, pp. 1568–1577, 2017. ",
978
+ "bbox": [
979
+ 169,
980
+ 181,
981
+ 825,
982
+ 210
983
+ ],
984
+ "page_idx": 9
985
+ },
986
+ {
987
+ "type": "text",
988
+ "text": "Seyed Mehran Kazemi and David Poole. SimplE embedding for link prediction in knowledge graphs. In NeurIPS, pp. 4289–4300, 2018. ",
989
+ "bbox": [
990
+ 173,
991
+ 219,
992
+ 823,
993
+ 248
994
+ ],
995
+ "page_idx": 9
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "Seyed Mehran Kazemi, Rishab Goel, Kshitij Jain, Ivan Kobyzev, Akshay Sethi, Peter Forsyth, and Pascal Poupart. Relational representation learning for dynamic (knowledge) graphs: A survey. arXiv preprint arXiv:1905.11485, 2019. ",
1000
+ "bbox": [
1001
+ 173,
1002
+ 258,
1003
+ 826,
1004
+ 301
1005
+ ],
1006
+ "page_idx": 9
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014. ",
1011
+ "bbox": [
1012
+ 174,
1013
+ 310,
1014
+ 823,
1015
+ 340
1016
+ ],
1017
+ "page_idx": 9
1018
+ },
1019
+ {
1020
+ "type": "text",
1021
+ "text": "Srijan Kumar, Xikun Zhang, and Jure Leskovec. Learning dynamic embedding from temporal interaction networks. arXiv preprint arXiv:1812.02289, 2018. ",
1022
+ "bbox": [
1023
+ 173,
1024
+ 349,
1025
+ 823,
1026
+ 380
1027
+ ],
1028
+ "page_idx": 9
1029
+ },
1030
+ {
1031
+ "type": "text",
1032
+ "text": "Bum Chul Kwon, Min-Je Choi, Joanne Taery Kim, Edward Choi, Young Bin Kim, Soonwook Kwon, Jimeng Sun, and Jaegul Choo. Retainvis: Visual analytics with interpretable and interactive recurrent neural networks on electronic medical records. IEEE transactions on visualization and computer graphics, 25(1):299–309, 2019. ",
1033
+ "bbox": [
1034
+ 174,
1035
+ 387,
1036
+ 825,
1037
+ 445
1038
+ ],
1039
+ "page_idx": 9
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "text": "Alan Lapedes and Robert Farber. Nonlinear signal processing using neural networks: Prediction and system modelling. Technical report, 1987. ",
1044
+ "bbox": [
1045
+ 171,
1046
+ 454,
1047
+ 825,
1048
+ 484
1049
+ ],
1050
+ "page_idx": 9
1051
+ },
1052
+ {
1053
+ "type": "text",
1054
+ "text": "Patrick J Laub, Thomas Taimre, and Philip K Pollett. Hawkes processes. arXiv preprint arXiv:1507.02822, 2015. ",
1055
+ "bbox": [
1056
+ 173,
1057
+ 493,
1058
+ 823,
1059
+ 523
1060
+ ],
1061
+ "page_idx": 9
1062
+ },
1063
+ {
1064
+ "type": "text",
1065
+ "text": "R Gary Leonard and George Doddington. Tidigits. Linguistic Data Consortium, Philadelphia, 1993. ",
1066
+ "bbox": [
1067
+ 173,
1068
+ 531,
1069
+ 823,
1070
+ 549
1071
+ ],
1072
+ "page_idx": 9
1073
+ },
1074
+ {
1075
+ "type": "text",
1076
+ "text": "Shuang Li, Shuai Xiao, Shixiang Zhu, Nan Du, Yao Xie, and Le Song. Learning temporal point processes via reinforcement learning. In NeurIPS, pp. 10804–10814, 2018a. ",
1077
+ "bbox": [
1078
+ 174,
1079
+ 556,
1080
+ 823,
1081
+ 587
1082
+ ],
1083
+ "page_idx": 9
1084
+ },
1085
+ {
1086
+ "type": "text",
1087
+ "text": "Yang Li, Nan Du, and Samy Bengio. Time-dependent representation for neural event sequence prediction. arXiv preprint arXiv:1708.00065, 2017. ",
1088
+ "bbox": [
1089
+ 173,
1090
+ 595,
1091
+ 821,
1092
+ 626
1093
+ ],
1094
+ "page_idx": 9
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "Yang Li, Nan Du, and Samy Bengio. Time-dependent representation for neural event sequence prediction. 2018b. URL https://openreview.net/pdf?id $\\underline { { \\underline { { \\mathbf { \\Pi } } } } } =$ HyrT5Hkvf. ",
1099
+ "bbox": [
1100
+ 173,
1101
+ 633,
1102
+ 823,
1103
+ 665
1104
+ ],
1105
+ "page_idx": 9
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "Zachary C Lipton, David Kale, and Randall Wetzel. Directly modeling missing data in sequences with rnns: Improved classification of clinical time series. In Machine Learning for Healthcare Conference, pp. 253–270, 2016. ",
1110
+ "bbox": [
1111
+ 174,
1112
+ 672,
1113
+ 823,
1114
+ 717
1115
+ ],
1116
+ "page_idx": 9
1117
+ },
1118
+ {
1119
+ "type": "text",
1120
+ "text": "Peng Liu, Zhigang Zeng, and Jun Wang. Multistability of recurrent neural networks with nonmonotonic activation functions and mixed time delays. IEEE Transactions on Systems, Man, and Cybernetics: Systems, 46(4):512–523, 2016. ",
1121
+ "bbox": [
1122
+ 173,
1123
+ 726,
1124
+ 823,
1125
+ 768
1126
+ ],
1127
+ "page_idx": 9
1128
+ },
1129
+ {
1130
+ "type": "text",
1131
+ "text": "Yao Ma, Ziyi Guo, Zhaochun Ren, Eric Zhao, Jiliang Tang, and Dawei Yin. Streaming graph neural networks. arXiv preprint arXiv:1810.10627, 2018. ",
1132
+ "bbox": [
1133
+ 169,
1134
+ 779,
1135
+ 825,
1136
+ 809
1137
+ ],
1138
+ "page_idx": 9
1139
+ },
1140
+ {
1141
+ "type": "text",
1142
+ "text": "Hongyuan Mei and Jason M Eisner. The neural hawkes process: A neurally self-modulating multivariate point process. In NeurIPS, pp. 6754–6764, 2017. ",
1143
+ "bbox": [
1144
+ 171,
1145
+ 818,
1146
+ 823,
1147
+ 847
1148
+ ],
1149
+ "page_idx": 9
1150
+ },
1151
+ {
1152
+ "type": "text",
1153
+ "text": "Tomas Mikolov, Ilya Sutskever, Kai Chen, Greg S Corrado, and Jeff Dean. Distributed representations of words and phrases and their compositionality. In NeurIPS, 2013. ",
1154
+ "bbox": [
1155
+ 173,
1156
+ 856,
1157
+ 823,
1158
+ 886
1159
+ ],
1160
+ "page_idx": 9
1161
+ },
1162
+ {
1163
+ "type": "text",
1164
+ "text": "Luis Mingo, Levon Aslanyan, Juan Castellanos, Miguel Diaz, and Vladimir Riazanov. Fourier neural networks: An approach with sinusoidal activation functions. 2004. ",
1165
+ "bbox": [
1166
+ 176,
1167
+ 895,
1168
+ 820,
1169
+ 924
1170
+ ],
1171
+ "page_idx": 9
1172
+ },
1173
+ {
1174
+ "type": "text",
1175
+ "text": "Kevin Patrick Murphy and Stuart Russell. Dynamic bayesian networks: representation, inference and learning. 2002. ",
1176
+ "bbox": [
1177
+ 171,
1178
+ 103,
1179
+ 825,
1180
+ 132
1181
+ ],
1182
+ "page_idx": 10
1183
+ },
1184
+ {
1185
+ "type": "text",
1186
+ "text": "Vinod Nair and Geoffrey E Hinton. Rectified linear units improve restricted boltzmann machines. In ICML, pp. 807–814, 2010. ",
1187
+ "bbox": [
1188
+ 174,
1189
+ 142,
1190
+ 823,
1191
+ 171
1192
+ ],
1193
+ "page_idx": 10
1194
+ },
1195
+ {
1196
+ "type": "text",
1197
+ "text": "Daniel Neil, Michael Pfeiffer, and Shih-Chii Liu. Phased lstm: Accelerating recurrent network training for long or event-based sequences. In NeurIPS, pp. 3882–3890, 2016. ",
1198
+ "bbox": [
1199
+ 173,
1200
+ 181,
1201
+ 821,
1202
+ 212
1203
+ ],
1204
+ "page_idx": 10
1205
+ },
1206
+ {
1207
+ "type": "text",
1208
+ "text": "Behnam Neyshabur, Zhiyuan Li, Srinadh Bhojanapalli, Yann LeCun, and Nathan Srebro. The role of over-parametrization in generalization of neural networks. In ICLR, 2019. ",
1209
+ "bbox": [
1210
+ 173,
1211
+ 220,
1212
+ 823,
1213
+ 251
1214
+ ],
1215
+ "page_idx": 10
1216
+ },
1217
+ {
1218
+ "type": "text",
1219
+ "text": "Maximilian Nickel, Kevin Murphy, Volker Tresp, and Evgeniy Gabrilovich. A review of relational machine learning for knowledge graphs. Proceedings of the IEEE, 104(1):11–33, 2016. ",
1220
+ "bbox": [
1221
+ 173,
1222
+ 260,
1223
+ 825,
1224
+ 291
1225
+ ],
1226
+ "page_idx": 10
1227
+ },
1228
+ {
1229
+ "type": "text",
1230
+ "text": "Adam Paszke, Sam Gross, Soumith Chintala, Gregory Chanan, Edward Yang, Zachary DeVito, Zeming Lin, Alban Desmaison, Luca Antiga, and Adam Lerer. Automatic differentiation in pytorch. 2017. ",
1231
+ "bbox": [
1232
+ 174,
1233
+ 299,
1234
+ 825,
1235
+ 343
1236
+ ],
1237
+ "page_idx": 10
1238
+ },
1239
+ {
1240
+ "type": "text",
1241
+ "text": "Jeffrey Pennington, Richard Socher, and Christopher Manning. Glove: Global vectors for word representation. In EMNLP, pp. 1532–1543, 2014. ",
1242
+ "bbox": [
1243
+ 169,
1244
+ 353,
1245
+ 825,
1246
+ 382
1247
+ ],
1248
+ "page_idx": 10
1249
+ },
1250
+ {
1251
+ "type": "text",
1252
+ "text": "David Poole, David Buchman, Seyed Mehran Kazemi, Kristian Kersting, and Sriraam Natarajan. Population size extrapolation in relational probabilistic modelling. In SUM. Springer, 2014. ",
1253
+ "bbox": [
1254
+ 171,
1255
+ 392,
1256
+ 825,
1257
+ 422
1258
+ ],
1259
+ "page_idx": 10
1260
+ },
1261
+ {
1262
+ "type": "text",
1263
+ "text": "Lawrence R Rabiner and Biing-Hwang Juang. An introduction to hidden markov models. ieee assp magazine, 3(1):4–16, 1986. ",
1264
+ "bbox": [
1265
+ 174,
1266
+ 431,
1267
+ 823,
1268
+ 462
1269
+ ],
1270
+ "page_idx": 10
1271
+ },
1272
+ {
1273
+ "type": "text",
1274
+ "text": "Carl Edward Rasmussen. Gaussian processes in machine learning. In Advanced lectures on machine learning, pp. 63–71. Springer, 2004. ",
1275
+ "bbox": [
1276
+ 173,
1277
+ 470,
1278
+ 823,
1279
+ 501
1280
+ ],
1281
+ "page_idx": 10
1282
+ },
1283
+ {
1284
+ "type": "text",
1285
+ "text": "Josep M Sopena, Enrique Romero, and Rene Alquezar. Neural networks with periodic and monotonic activation functions: a comparative study in classification problems. 1999. ",
1286
+ "bbox": [
1287
+ 173,
1288
+ 510,
1289
+ 823,
1290
+ 540
1291
+ ],
1292
+ "page_idx": 10
1293
+ },
1294
+ {
1295
+ "type": "text",
1296
+ "text": "Charles Sutton, Andrew McCallum, and Khashayar Rohanimanesh. Dynamic conditional random fields: Factorized probabilistic models for labeling and segmenting sequence data. Journal of Machine Learning Research, 8(Mar):693–723, 2007. ",
1297
+ "bbox": [
1298
+ 174,
1299
+ 550,
1300
+ 825,
1301
+ 593
1302
+ ],
1303
+ "page_idx": 10
1304
+ },
1305
+ {
1306
+ "type": "text",
1307
+ "text": "Corentin Tallec and Yann Ollivier. Can recurrent neural networks warp time? In International Conference on Learning Representation (ICLR), 2018. ",
1308
+ "bbox": [
1309
+ 173,
1310
+ 603,
1311
+ 825,
1312
+ 632
1313
+ ],
1314
+ "page_idx": 10
1315
+ },
1316
+ {
1317
+ "type": "text",
1318
+ "text": "Rakshit Trivedi, Hanjun Dai, Yichen Wang, and Le Song. Know-evolve: Deep temporal reasoning for dynamic knowledge graphs. In ICML, pp. 3462–3471, 2017. ",
1319
+ "bbox": [
1320
+ 171,
1321
+ 642,
1322
+ 825,
1323
+ 672
1324
+ ],
1325
+ "page_idx": 10
1326
+ },
1327
+ {
1328
+ "type": "text",
1329
+ "text": "Utkarsh Upadhyay, Abir De, and Manuel Gomez-Rodriguez. Deep reinforcement learning of marked temporal point processes. In NeurIPS, 2018. ",
1330
+ "bbox": [
1331
+ 174,
1332
+ 681,
1333
+ 823,
1334
+ 712
1335
+ ],
1336
+ "page_idx": 10
1337
+ },
1338
+ {
1339
+ "type": "text",
1340
+ "text": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is all you need. In NeurIPS, 2017. ",
1341
+ "bbox": [
1342
+ 173,
1343
+ 720,
1344
+ 823,
1345
+ 751
1346
+ ],
1347
+ "page_idx": 10
1348
+ },
1349
+ {
1350
+ "type": "text",
1351
+ "text": "Kwok-wo Wong, Chi-sing Leung, and Sheng-jiang Chang. Handwritten digit recognition using multilayer feedforward neural networks with periodic and monotonic activation functions. In Pattern Recognition, volume 3, pp. 106–109. IEEE, 2002. ",
1352
+ "bbox": [
1353
+ 174,
1354
+ 760,
1355
+ 823,
1356
+ 804
1357
+ ],
1358
+ "page_idx": 10
1359
+ },
1360
+ {
1361
+ "type": "text",
1362
+ "text": "Shuai Xiao, Mehrdad Farajtabar, Xiaojing Ye, Junchi Yan, Le Song, and Hongyuan Zha. Wasserstein learning of deep generative point process models. In NeurIPS, 2017. ",
1363
+ "bbox": [
1364
+ 169,
1365
+ 813,
1366
+ 825,
1367
+ 843
1368
+ ],
1369
+ "page_idx": 10
1370
+ },
1371
+ {
1372
+ "type": "text",
1373
+ "text": "Shuai Xiao, Hongteng Xu, Junchi Yan, Mehrdad Farajtabar, Xiaokang Yang, Le Song, and Hongyuan Zha. Learning conditional generative models for temporal point processes. In AAAI, 2018. ",
1374
+ "bbox": [
1375
+ 171,
1376
+ 852,
1377
+ 823,
1378
+ 883
1379
+ ],
1380
+ "page_idx": 10
1381
+ },
1382
+ {
1383
+ "type": "text",
1384
+ "text": "Yu Zhu, Hao Li, Yikang Liao, Beidou Wang, Ziyu Guan, Haifeng Liu, and Deng Cai. What to do next: Modeling user behaviors by time-lstm. In IJCAI, pp. 3602–3608, 2017. ",
1385
+ "bbox": [
1386
+ 173,
1387
+ 892,
1388
+ 823,
1389
+ 921
1390
+ ],
1391
+ "page_idx": 10
1392
+ },
1393
+ {
1394
+ "type": "image",
1395
+ "img_path": "images/00dbf51aef6dc414379150092b4e2229c8a9e041d859b21a9f3ec08e5d3c547f.jpg",
1396
+ "image_caption": [
1397
+ "Figure 6: Comparing $\\mathrm { L S T M + T }$ and LSTM $\\cdot +$ Time2Vec on Event-MNIST. "
1398
+ ],
1399
+ "image_footnote": [],
1400
+ "bbox": [
1401
+ 380,
1402
+ 113,
1403
+ 604,
1404
+ 228
1405
+ ],
1406
+ "page_idx": 11
1407
+ },
1408
+ {
1409
+ "type": "text",
1410
+ "text": "A IMPLEMENTATION DETAIL ",
1411
+ "text_level": 1,
1412
+ "bbox": [
1413
+ 176,
1414
+ 287,
1415
+ 429,
1416
+ 304
1417
+ ],
1418
+ "page_idx": 11
1419
+ },
1420
+ {
1421
+ "type": "text",
1422
+ "text": "For the experiments on Event-MNIST, N TIDIGITS18 and SOF, we implemented6 our model in PyTorch Paszke et al. (2017). We used Adam optimizer Kingma & Ba (2014) with a learning rate of 0.001. For Event-MNIST and SOF, we fixed the hidden size of the LSTM to 128. For N TIDIGITS18, due to its smaller train set, we fixed the hidden size to 64. We allowed each model 200 epochs. We used a batch size of 512 for Event-MNIST and 128 for N TIDIGITS18 and SOF. For the experiments on Last.FM and CiteULike, we used the code released by Zhu et al. $( 2 0 1 7 ) ^ { 7 }$ without any modifications, except replacing $\\tau$ with $\\mathbf { t } 2 \\mathbf { v } ( \\tau )$ . The only other thing we changed in their code was to change the SAMPLE TIME variable from 3 to 20. SAMPLE TIME controls the number of times we do sampling to compute Recall $@ 1 0$ and $\\mathbf { M R R } @ 1 0$ . We experienced a high variation when sampling only 3 times so we increased the number of times we sample to 20 to make the results more robust. For both Last.FM and CiteULike, Adagrad optimizer is used with a learning rate of 0.01, vocabulary size is 5000, and the maximum length of the sequence is 200. For Last.FM, the hidden size of the LSTM is 128 and for CiteULike, it is 256. For all except the synthesized dataset, we shifted the event times such that the first event of each sequence starts at time 0. ",
1423
+ "bbox": [
1424
+ 173,
1425
+ 324,
1426
+ 825,
1427
+ 518
1428
+ ],
1429
+ "page_idx": 11
1430
+ },
1431
+ {
1432
+ "type": "text",
1433
+ "text": "For the fairness of the experiments, we made sure the competing models for all our experiments have an (almost) equal number of parameters. For instance, since adding Time2Vec as an input to the LSTM increases the number of model parameters compared to just adding time as a feature, we reduced the hidden size of the LSTM for this model to ensure the number of model parameters stays (almost) the same. For the experiments involving Time2Vec, unless stated otherwise, we tried vectors with 16, 32 and 64 sine functions (and one linear term). We reported the vector length offering the best performance in the main text. The results for other vector lengths can be found in Appendix B. For the synthetic dataset, we use Adam optimizer with a learning rate of 0.001 without any regularization. The length of the Time2Vec vector is 32. ",
1434
+ "bbox": [
1435
+ 173,
1436
+ 526,
1437
+ 825,
1438
+ 650
1439
+ ],
1440
+ "page_idx": 11
1441
+ },
1442
+ {
1443
+ "type": "image",
1444
+ "img_path": "images/76aa07786e64a3837fd9f14d434cd6ac184d1ae6940f879a76d6c3a580a792b6.jpg",
1445
+ "image_caption": [
1446
+ "Figure 7: Comparing $\\mathrm { L S T M + T }$ and LSTM $+$ Time2Vec on Event-MNIST and raw N TIDIGITS18. "
1447
+ ],
1448
+ "image_footnote": [],
1449
+ "bbox": [
1450
+ 250,
1451
+ 761,
1452
+ 738,
1453
+ 893
1454
+ ],
1455
+ "page_idx": 11
1456
+ },
1457
+ {
1458
+ "type": "image",
1459
+ "img_path": "images/d3a24b60f8c8f0493e1757dd3dcc0c4e89eab8a986fb46521120a9364e6b6fa6.jpg",
1460
+ "image_caption": [
1461
+ "Figure 8: Comparing LSTM+T and LSTM+Time2Vec on SOF. "
1462
+ ],
1463
+ "image_footnote": [],
1464
+ "bbox": [
1465
+ 241,
1466
+ 103,
1467
+ 753,
1468
+ 218
1469
+ ],
1470
+ "page_idx": 12
1471
+ },
1472
+ {
1473
+ "type": "image",
1474
+ "img_path": "images/b6da3e307b8b779ebf7c7096fdb4a9b4227a850e1255c49ed128d8cbe5db8464.jpg",
1475
+ "image_caption": [
1476
+ "Figure 9: Comparing LSTM $+ \\mathrm { T }$ and LSTM $^ +$ Time2Vec on Last.FM. "
1477
+ ],
1478
+ "image_footnote": [],
1479
+ "bbox": [
1480
+ 241,
1481
+ 263,
1482
+ 753,
1483
+ 376
1484
+ ],
1485
+ "page_idx": 12
1486
+ },
1487
+ {
1488
+ "type": "text",
1489
+ "text": "B MORE RESULTS ",
1490
+ "text_level": 1,
1491
+ "bbox": [
1492
+ 176,
1493
+ 428,
1494
+ 343,
1495
+ 444
1496
+ ],
1497
+ "page_idx": 12
1498
+ },
1499
+ {
1500
+ "type": "text",
1501
+ "text": "We ran experiments on other versions of the N TIDIGITS18 dataset as well. Following Anumula et al. (2018), we converted the raw event data to event-binned features by virtue of aggregating active channels through a period of time in which a pre-defined number of events occur. The outcome of binning is thus consecutive frames each with multiple but a fixed number of active channels. In our experiments, we used event-binning with 100 events per frame. For this variant of the dataset, we compared $\\mathrm { L S T M + T }$ and LSTM+Time2Vec similar to the experiments in Section 5.1. The obtained results were on-par. Then, similar to Event-MNIST, we only fed as input the times at which events occurred (i.e. we removed the channels from the input). We allowed the models 1000 epochs to make sure they converge. The obtained results are presented in Fig. 6. It can be viewed that Time2Vec provides an effective representation for time and LSTM $+$ Time2Vec outperforms LSTM $+ \\mathrm { T }$ on this dataset. ",
1502
+ "bbox": [
1503
+ 173,
1504
+ 459,
1505
+ 825,
1506
+ 612
1507
+ ],
1508
+ "page_idx": 12
1509
+ },
1510
+ {
1511
+ "type": "text",
1512
+ "text": "In the main text, for the experiments involving Time2Vec, we tested Time2Vec vectors with 16, 32 and 64 sinusoids and reported the best one for the clarity of the diagrams. Here, we show the results for all frequencies. Figures 7, 8, 9, and 10 compare LSTM $+ \\mathrm { T }$ and LSTM $^ +$ Time2Vec for our datasets. Figures 11, and 12 compare TLSTM1 with TLSTM1 $^ +$ Time2Vec on Last.FM and CiteULike. Figures 13, and 14 compare TLSTM3 with TLSTM1 $^ +$ Time2Vec on Last.FM and CiteULike. In most cases, Time2Vec with 64 sinusoids outperforms (or gives on-par results with) the cases with 32 or 16 sinusoids. An exception is TLSTM3 where 16 sinusoids works best. We believe that is because TLSTM3 has two time gates and adding, e.g., 64 temporal components (corresponding to the sinusoids) to each gate makes it overfit to the temporal signals. ",
1513
+ "bbox": [
1514
+ 173,
1515
+ 619,
1516
+ 826,
1517
+ 744
1518
+ ],
1519
+ "page_idx": 12
1520
+ },
1521
+ {
1522
+ "type": "text",
1523
+ "text": "C LSTM ARCHITECTURES ",
1524
+ "text_level": 1,
1525
+ "bbox": [
1526
+ 176,
1527
+ 763,
1528
+ 413,
1529
+ 781
1530
+ ],
1531
+ "page_idx": 12
1532
+ },
1533
+ {
1534
+ "type": "text",
1535
+ "text": "The original LSTM model can be neatly defined with the following equations: ",
1536
+ "bbox": [
1537
+ 173,
1538
+ 795,
1539
+ 684,
1540
+ 810
1541
+ ],
1542
+ "page_idx": 12
1543
+ },
1544
+ {
1545
+ "type": "equation",
1546
+ "img_path": "images/fdba7f72699780e83d0754365b7c4430972689522e7f4240089608f877b56d5e.jpg",
1547
+ "text": "$$\n\\begin{array} { r l } & { { i _ { j } } = \\sigma \\left( W _ { i } { { \\bf { x } } _ { j } } + U _ { i } { { h _ { j - 1 } } } + { { \\bf { b } } _ { i } } \\right) } \\\\ & { { f _ { j } } = \\sigma \\left( { W _ { f } { { \\bf { x } } _ { j } } + U _ { f } { { h _ { j - 1 } } } + { { b _ { f } } } } \\right) } \\\\ & { { { { \\overline { { c } } } _ { j } } } = T a n h \\left( { W _ { c } { { \\bf { x } } _ { j } } + U _ { c } { { h _ { j - 1 } } } + { { b _ { c } } } } \\right) } \\\\ & { { { { \\overline { { c _ { j } } } } } } = { f _ { t } } \\odot { { \\bf { c } } _ { j - 1 } } + { i _ { j } } \\odot { { { \\overline { { { c _ { j } } } } } } } } \\\\ & { { { \\sigma _ { j } } } = \\sigma \\left( { W _ { o } { { \\bf { x } } _ { j } } + U _ { o } { { h _ { j - 1 } } } + { { b _ { o } } } } \\right) } \\\\ & { { { { h _ { j } } } = { { o _ { j } } } \\odot T a n h \\left( { { c _ { j } } } \\right) } } \\end{array}\n$$",
1548
+ "text_format": "latex",
1549
+ "bbox": [
1550
+ 375,
1551
+ 815,
1552
+ 619,
1553
+ 922
1554
+ ],
1555
+ "page_idx": 12
1556
+ },
1557
+ {
1558
+ "type": "image",
1559
+ "img_path": "images/40d16ef249ff694d5fa296be84bbd3e8a1eabbff493ebb5ca30448726d171f10.jpg",
1560
+ "image_caption": [
1561
+ "Figure 10: Comparing LSTM+T and LSTM $^ +$ Time2Vec on CiteULike. "
1562
+ ],
1563
+ "image_footnote": [],
1564
+ "bbox": [
1565
+ 241,
1566
+ 104,
1567
+ 754,
1568
+ 218
1569
+ ],
1570
+ "page_idx": 13
1571
+ },
1572
+ {
1573
+ "type": "image",
1574
+ "img_path": "images/1ee8a037142439db5e80aadffce7ae031a58fd252a1ea45770669fbfec34052f.jpg",
1575
+ "image_caption": [
1576
+ "Figure 11: TLSTM1’s performance on Last.FM with and without Time2Vec. "
1577
+ ],
1578
+ "image_footnote": [],
1579
+ "bbox": [
1580
+ 241,
1581
+ 263,
1582
+ 753,
1583
+ 376
1584
+ ],
1585
+ "page_idx": 13
1586
+ },
1587
+ {
1588
+ "type": "text",
1589
+ "text": "Here $\\mathbf { \\delta } _ { i , \\mathrm { ~ \\tiny ~ \\left. ~ \\right. ~ } }$ , $\\pmb { f } _ { t }$ , and $\\mathbf { \\sigma } _ { \\pmb { o } _ { t } }$ represent the input, forget and output gates respectively, while $\\mathbf { c } _ { t }$ is the memory cell and $\\pmb { h } _ { t }$ is the hidden state. $\\sigma$ and T anh represent the Sigmoid and hyperbolic tangent activation functions respectively. We refer to $\\pmb { x } _ { j }$ as the $j ^ { \\bar { t } h }$ event. ",
1590
+ "bbox": [
1591
+ 174,
1592
+ 431,
1593
+ 825,
1594
+ 473
1595
+ ],
1596
+ "page_idx": 13
1597
+ },
1598
+ {
1599
+ "type": "text",
1600
+ "text": "Peepholes: Gers & Schmidhuber (2000) introduced a variant of the LSTM architecture where the input, forget, and output gates peek into the memory cell. In this variant, ${ \\pmb w } _ { p i } \\odot { \\pmb c } _ { j - 1 } , { \\pmb w } _ { p f } \\odot { \\pmb c } _ { j - 1 }$ and ${ \\pmb w } _ { p o } \\odot { \\pmb c } _ { j }$ are added to the linear parts of Eq. (2), (3), and (6) respectively, where ${ \\pmb w } _ { p i } , { \\pmb w } _ { p f }$ , and ${ \\pmb w } _ { p o }$ are learnable parameters. ",
1601
+ "bbox": [
1602
+ 174,
1603
+ 479,
1604
+ 825,
1605
+ 536
1606
+ ],
1607
+ "page_idx": 13
1608
+ },
1609
+ {
1610
+ "type": "text",
1611
+ "text": "$\\mathbf { L S T M + T } \\mathbf { : }$ Let $\\tau _ { j }$ represent the time features for the $j ^ { t h }$ event in the input and let $\\pmb { x } _ { j } ^ { \\prime } = [ \\pmb { x } _ { j } ; \\pmb { \\tau } _ { j } ]$ Then $\\mathrm { L S T M + T }$ uses the exact same equations as the standard LSTM (denoted above) except that $\\pmb { x } _ { j }$ is replaced with $\\pmb { x } _ { j } ^ { \\prime }$ . ",
1612
+ "bbox": [
1613
+ 173,
1614
+ 544,
1615
+ 825,
1616
+ 588
1617
+ ],
1618
+ "page_idx": 13
1619
+ },
1620
+ {
1621
+ "type": "text",
1622
+ "text": "TimeLSTM: We explain TLSTM1 and TLSTM3 which have been used in our experiments. For clarity of writing, we do not include the peephole terms in the equations but they are used in the experiments. In TLSTM1, a new time gate is introduced as in Eq. equation 8 and Eq. equation 5 and equation 6 are updated to Eq. equation 9 and equation 10 respectively: ",
1623
+ "bbox": [
1624
+ 173,
1625
+ 593,
1626
+ 825,
1627
+ 650
1628
+ ],
1629
+ "page_idx": 13
1630
+ },
1631
+ {
1632
+ "type": "equation",
1633
+ "img_path": "images/9d141487b621fc6f4f1a8f24bf1d5a72bcdc466b0ef14263944d0f292fa94efc.jpg",
1634
+ "text": "$$\n\\begin{array} { r l } & { \\pmb { t } _ { j } = \\sigma \\left( \\pmb { W } _ { t } \\pmb { x } _ { j } + \\sigma \\left( \\pmb { u } _ { t } \\tau _ { j } \\right) + \\pmb { b } _ { t } \\right) } \\\\ & { \\pmb { c } _ { j } = \\pmb { f } _ { j } \\odot \\pmb { c } _ { j - 1 } + \\pmb { i } _ { j } \\odot \\pmb { t } _ { j } \\odot \\overline { { \\pmb { c } _ { j } } } } \\\\ & { \\pmb { o } _ { j } = \\sigma \\left( \\pmb { W } _ { o } \\pmb { x } _ { j } + \\pmb { v } _ { t } \\tau _ { j } + \\pmb { U } _ { o } \\pmb { h } _ { j - 1 } + \\pmb { b } _ { o } \\right) } \\end{array}\n$$",
1635
+ "text_format": "latex",
1636
+ "bbox": [
1637
+ 364,
1638
+ 655,
1639
+ 630,
1640
+ 712
1641
+ ],
1642
+ "page_idx": 13
1643
+ },
1644
+ {
1645
+ "type": "text",
1646
+ "text": "$t _ { j }$ controls the influence of the current input on the prediction and makes the required information from timing history get stored on the cell state. TLSTM3 uses two time gates: ",
1647
+ "bbox": [
1648
+ 169,
1649
+ 713,
1650
+ 821,
1651
+ 742
1652
+ ],
1653
+ "page_idx": 13
1654
+ },
1655
+ {
1656
+ "type": "equation",
1657
+ "img_path": "images/f535d695e47b83109ae5489cf96fecb4e7ca91a05d5cd24ad2150d121996e929.jpg",
1658
+ "text": "$$\n\\begin{array} { r } { \\pmb { t 1 } _ { j } = \\sigma \\left( \\pmb { W } _ { t 1 } \\pmb { x } _ { j } + \\sigma \\left( \\pmb { u } _ { t 1 } \\tau _ { j } \\right) + \\pmb { b } _ { t 1 } \\right) } \\\\ { \\pmb { t 2 } _ { j } = \\sigma \\left( \\pmb { W } _ { t 2 } \\pmb { x } _ { j } + \\sigma \\left( \\pmb { u } _ { t 2 } \\tau _ { j } \\right) + \\pmb { b } _ { t 2 } \\right) } \\end{array}\n$$",
1659
+ "text_format": "latex",
1660
+ "bbox": [
1661
+ 377,
1662
+ 747,
1663
+ 619,
1664
+ 786
1665
+ ],
1666
+ "page_idx": 13
1667
+ },
1668
+ {
1669
+ "type": "text",
1670
+ "text": "where the elements of $W _ { t 1 }$ are constrained to be non-positive. $\\pmb { t 1 }$ is used for controlling the influence of the last consumed item and $\\pmb { t 2 }$ stores the $\\tau \\mathbf { S }$ thus enabling modeling long range dependencies. TLSTM3 couples the input and forget gates following Greff et al. (2017) along with the $\\pmb { t 1 }$ and $\\pmb { t 2 }$ gates and replaces Eq. (5) to (7) with the following: ",
1671
+ "bbox": [
1672
+ 173,
1673
+ 789,
1674
+ 825,
1675
+ 844
1676
+ ],
1677
+ "page_idx": 13
1678
+ },
1679
+ {
1680
+ "type": "equation",
1681
+ "img_path": "images/90fc15217213a6d5c9172dc6649fc072fc9a6ccea7fc32e5973a0019da2c51f2.jpg",
1682
+ "text": "$$\n\\begin{array} { r l } & { \\tilde { \\mathbf { c } } _ { j } = \\left( 1 - i _ { j } \\odot t { \\bf 1 } _ { j } \\right) \\odot \\mathbf { c } _ { j - 1 } + i _ { j } \\odot t { \\bf 1 } _ { j } \\odot \\bar { \\mathbf { c } } _ { j } } \\\\ & { \\mathbf { c } _ { j } = \\left( 1 - i _ { j } \\right) \\odot \\mathbf { c } _ { j - 1 } + i _ { j } \\odot t { \\bf 2 } _ { j } \\odot \\bar { \\mathbf { c } } _ { j } } \\\\ & { \\mathbf { o } _ { j } = \\sigma \\left( W _ { o } \\mathbf { x } _ { j } + \\mathbf { v } _ { t } \\tau _ { j } + U _ { o } \\mathbf { h } _ { j - 1 } + \\mathbf { b } _ { o } \\right) } \\\\ & { \\mathbf { h } _ { j } = o _ { j } \\odot T a n h \\left( \\tilde { \\mathbf { c } } _ { j } \\right) } \\end{array}\n$$",
1683
+ "text_format": "latex",
1684
+ "bbox": [
1685
+ 351,
1686
+ 849,
1687
+ 643,
1688
+ 924
1689
+ ],
1690
+ "page_idx": 13
1691
+ },
1692
+ {
1693
+ "type": "image",
1694
+ "img_path": "images/2792f646e18eaf88109b2d7268bb9be9b2f1ad4ca537fb0c4e885ec977ca9f2c.jpg",
1695
+ "image_caption": [
1696
+ "Figure 12: TLSTM1’s performance on CiteULike with and without Time2Vec. "
1697
+ ],
1698
+ "image_footnote": [],
1699
+ "bbox": [
1700
+ 241,
1701
+ 106,
1702
+ 754,
1703
+ 218
1704
+ ],
1705
+ "page_idx": 14
1706
+ },
1707
+ {
1708
+ "type": "image",
1709
+ "img_path": "images/63be7796c2b8a7c7b18e4cff05ef2e9180793681d99a0b276524b82af87f436c.jpg",
1710
+ "image_caption": [
1711
+ "Figure 13: TLSTM3’s performance on Last.FM with and without Time2Vec. "
1712
+ ],
1713
+ "image_footnote": [],
1714
+ "bbox": [
1715
+ 241,
1716
+ 263,
1717
+ 753,
1718
+ 377
1719
+ ],
1720
+ "page_idx": 14
1721
+ },
1722
+ {
1723
+ "type": "image",
1724
+ "img_path": "images/da71988ac8cf0d1afe94a485ec7ac9e71ec909c5b026ed379f6867a32deef577.jpg",
1725
+ "image_caption": [
1726
+ "Figure 14: TLSTM3’s performance on CiteULike with and without Time2Vec. "
1727
+ ],
1728
+ "image_footnote": [],
1729
+ "bbox": [
1730
+ 241,
1731
+ 421,
1732
+ 754,
1733
+ 536
1734
+ ],
1735
+ "page_idx": 14
1736
+ },
1737
+ {
1738
+ "type": "text",
1739
+ "text": "Zhu et al. (2017) use $\\tau _ { j } = \\Delta t _ { j }$ in their experiments, where $\\Delta t _ { j }$ is the duration between the current and the last event. ",
1740
+ "bbox": [
1741
+ 173,
1742
+ 589,
1743
+ 823,
1744
+ 619
1745
+ ],
1746
+ "page_idx": 14
1747
+ },
1748
+ {
1749
+ "type": "text",
1750
+ "text": "TimeLSTM $^ +$ Time2Vec: To replace time in TLSTM1 with Time2Vec, we modify Eq. (8) and (10) as follows: ",
1751
+ "bbox": [
1752
+ 173,
1753
+ 625,
1754
+ 820,
1755
+ 654
1756
+ ],
1757
+ "page_idx": 14
1758
+ },
1759
+ {
1760
+ "type": "equation",
1761
+ "img_path": "images/d02e576b19854ff438c8fa35503eb75838e3e240401a86843011ef2bd05618f6.jpg",
1762
+ "text": "$$\n\\begin{array} { r l } & { \\pmb { t _ { j } } = \\sigma \\left( \\pmb { W _ { t } } \\pmb { x _ { j } } + \\sigma \\left( \\pmb { U _ { t } } \\pmb { \\mathrm { t } } 2 \\mathbf { v } ( \\tau ) \\right) + \\pmb { b _ { t } } \\right) } \\\\ & { \\pmb { o _ { j } } = \\sigma ( \\pmb { W _ { o } } \\pmb { x _ { j } } + \\pmb { V _ { t } } \\pmb { \\mathrm { t } } 2 \\mathbf { v } ( \\tau ) + \\pmb { U _ { o } } \\pmb { h _ { j - 1 } } + \\pmb { b _ { o } } ) } \\end{array}\n$$",
1763
+ "text_format": "latex",
1764
+ "bbox": [
1765
+ 349,
1766
+ 659,
1767
+ 647,
1768
+ 698
1769
+ ],
1770
+ "page_idx": 14
1771
+ },
1772
+ {
1773
+ "type": "text",
1774
+ "text": "i.e., $\\tau$ is replaced with $\\mathbf { t } 2 \\mathbf { v } ( \\tau )$ , $\\mathbf { \\pmb { u } } _ { t }$ is replaced with $\\boldsymbol { U } _ { t }$ , and ${ \\pmb v } _ { t }$ is replaced with $V _ { t }$ . Similarly, for TLSTM3 we modify Eq. (11), (12) and (15) as follows: ",
1775
+ "bbox": [
1776
+ 171,
1777
+ 702,
1778
+ 823,
1779
+ 731
1780
+ ],
1781
+ "page_idx": 14
1782
+ },
1783
+ {
1784
+ "type": "equation",
1785
+ "img_path": "images/84d83c3a74908778584095bde89293133a25fef3282065a2c781738c6a468257.jpg",
1786
+ "text": "$$\n\\begin{array} { r } { t \\pmb { 1 } _ { j } = \\sigma \\left( \\pmb { W } _ { t 1 } \\pmb { x } _ { j } + \\sigma \\left( \\pmb { U } _ { t 1 } \\pmb { \\mathrm { t } } 2 \\pmb { \\mathrm { v } } ( \\tau ) \\right) + \\pmb { b } _ { t 1 } \\right) } \\\\ { t \\pmb { 2 } _ { j } = \\sigma \\left( \\pmb { W } _ { t 2 } \\pmb { x } _ { j } + \\sigma \\left( \\pmb { U } _ { t 2 } \\pmb { \\mathrm { t } } 2 \\pmb { \\mathrm { v } } ( \\tau ) \\right) + \\pmb { b } _ { t 2 } \\right) } \\\\ { \\pmb { o } _ { j } = \\sigma ( \\pmb { W } _ { o } \\pmb { x } _ { j } + \\pmb { V } _ { t } \\pmb { \\mathrm { t } } 2 \\pmb { \\mathrm { v } } ( \\tau ) + \\pmb { U } _ { o } \\pmb { h } _ { j - 1 } + \\pmb { b } _ { o } ) } \\end{array}\n$$",
1787
+ "text_format": "latex",
1788
+ "bbox": [
1789
+ 351,
1790
+ 734,
1791
+ 645,
1792
+ 792
1793
+ ],
1794
+ "page_idx": 14
1795
+ },
1796
+ {
1797
+ "type": "text",
1798
+ "text": "D PROOFS ",
1799
+ "text_level": 1,
1800
+ "bbox": [
1801
+ 174,
1802
+ 808,
1803
+ 277,
1804
+ 824
1805
+ ],
1806
+ "page_idx": 14
1807
+ },
1808
+ {
1809
+ "type": "text",
1810
+ "text": "Proposition 1. Time2Vec is invariant to time rescaling. ",
1811
+ "bbox": [
1812
+ 173,
1813
+ 839,
1814
+ 537,
1815
+ 854
1816
+ ],
1817
+ "page_idx": 14
1818
+ },
1819
+ {
1820
+ "type": "text",
1821
+ "text": "Proof. Consider the following Time2Vec representation $\\mathcal { M } _ { 1 }$ : ",
1822
+ "bbox": [
1823
+ 173,
1824
+ 869,
1825
+ 576,
1826
+ 886
1827
+ ],
1828
+ "page_idx": 14
1829
+ },
1830
+ {
1831
+ "type": "equation",
1832
+ "img_path": "images/2e0e4237ab1de27c0c3c25f046c569a3e1fd5c070b949deaa94a76a300aa589f.jpg",
1833
+ "text": "$$\n\\mathbf t 2 \\mathbf v ( \\tau ) [ i ] = { \\left\\{ \\begin{array} { l l } { \\omega _ { i } \\tau + \\varphi _ { i } , } & { { \\mathrm { i f } } i = 0 . } \\\\ { \\sin { ( \\omega _ { i } \\tau + \\varphi _ { i } ) } , } & { { \\mathrm { i f } } 1 \\leq i \\leq k . } \\end{array} \\right. }\n$$",
1834
+ "text_format": "latex",
1835
+ "bbox": [
1836
+ 346,
1837
+ 892,
1838
+ 650,
1839
+ 928
1840
+ ],
1841
+ "page_idx": 14
1842
+ },
1843
+ {
1844
+ "type": "text",
1845
+ "text": "Replacing $\\tau$ with $\\alpha \\cdot \\tau$ (for $\\alpha > 0$ ), the Time2Vec representation updates as follows: ",
1846
+ "bbox": [
1847
+ 173,
1848
+ 102,
1849
+ 725,
1850
+ 119
1851
+ ],
1852
+ "page_idx": 15
1853
+ },
1854
+ {
1855
+ "type": "equation",
1856
+ "img_path": "images/8e11041b52eceeeece7ea224fd9bd116dd3ea688cea78cffb8cf1c01fdb7b36c.jpg",
1857
+ "text": "$$\n\\mathbf { t } 2 \\mathbf { v } ( \\alpha \\cdot \\tau ) [ i ] = { \\left\\{ \\begin{array} { l l } { \\omega _ { i } ( \\alpha \\cdot \\tau ) + \\varphi _ { i } , } & { { \\mathrm { i f } } i = 0 . } \\\\ { \\sin { ( \\omega _ { i } ( \\alpha \\cdot \\tau ) + \\varphi _ { i } ) } , } & { { \\mathrm { i f } } 1 \\leq i \\leq k . } \\end{array} \\right. }\n$$",
1858
+ "text_format": "latex",
1859
+ "bbox": [
1860
+ 318,
1861
+ 126,
1862
+ 678,
1863
+ 161
1864
+ ],
1865
+ "page_idx": 15
1866
+ },
1867
+ {
1868
+ "type": "text",
1869
+ "text": "Consider anosame way as Time2Vec representation . This proves that Time2 $\\mathcal { M } _ { 2 }$ with frequencies s invariant to time $\\begin{array} { r } { \\omega _ { i } ^ { \\prime } = \\frac { \\omega _ { i } } { \\alpha } } \\end{array}$ . Then g. $\\mathcal { M } _ { 2 }$ behaves in the $\\mathcal { M } _ { 1 }$ ",
1870
+ "bbox": [
1871
+ 174,
1872
+ 169,
1873
+ 826,
1874
+ 199
1875
+ ],
1876
+ "page_idx": 15
1877
+ }
1878
+ ]
parse/train/rklklCVYvB/rklklCVYvB_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rklklCVYvB/rklklCVYvB_model.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rytstxWAW/rytstxWAW.md ADDED
@@ -0,0 +1,522 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # FASTGCN: FAST LEARNING WITH GRAPH CONVOLUTIONAL NETWORKS VIA IMPORTANCE SAMPLING
2
+
3
+ Jie Chen∗, Tengfei Ma∗, Cao Xiao
4
+ IBM Research
5
+ chenjie@us.ibm.com, Tengfei.Ma1@ibm.com, cxiao@us.ibm.com
6
+
7
+ # ABSTRACT
8
+
9
+ The graph convolutional networks (GCN) recently proposed by Kipf and Welling are an effective graph model for semi-supervised learning. This model, however, was originally designed to be learned with the presence of both training and test data. Moreover, the recursive neighborhood expansion across layers poses time and memory challenges for training with large, dense graphs. To relax the requirement of simultaneous availability of test data, we interpret graph convolutions as integral transforms of embedding functions under probability measures. Such an interpretation allows for the use of Monte Carlo approaches to consistently estimate the integrals, which in turn leads to a batched training scheme as we propose in this work—FastGCN. Enhanced with importance sampling, FastGCN not only is efficient for training but also generalizes well for inference. We show a comprehensive set of experiments to demonstrate its effectiveness compared with GCN and related models. In particular, training is orders of magnitude more efficient while predictions remain comparably accurate.
10
+
11
+ # 1 INTRODUCTION
12
+
13
+ Graphs are universal representations of pairwise relationship. Many real world data come naturally in the form of graphs; e.g., social networks, gene expression networks, and knowledge graphs. To improve the performance of graph-based learning tasks, such as node classification and link prediction, recently much effort is made to extend well-established network architectures, including recurrent neural networks (RNN) and convolutional neural networks (CNN), to graph data; see, e.g., Bruna et al. (2013); Duvenaud et al. (2015); Li et al. (2015); Jain et al. (2015); Henaff et al. (2015); Niepert et al. (2016); Kipf & Welling (2016a;b).
14
+
15
+ Whereas learning feature representations for graphs is an important subject among this effort, here, we focus on the feature representations for graph vertices. In this vein, the closest work that applies a convolution architecture is the graph convolutional network (GCN) (Kipf & Welling, 2016a;b). Borrowing the concept of a convolution filter for image pixels or a linear array of signals, GCN uses the connectivity structure of the graph as the filter to perform neighborhood mixing. The architecture may be elegantly summarized by the following expression:
16
+
17
+ $$
18
+ H ^ { ( l + 1 ) } = \sigma ( \hat { A } H ^ { ( l ) } W ^ { ( l ) } ) ,
19
+ $$
20
+
21
+ where $\hat { A }$ is some normalization of the graph adjacency matrix, $H ^ { ( l ) }$ contains the embedding (rowwise) of the graph vertices in the $l$ th layer, $\mathbf { \overline { { W } } } ^ { ( l ) }$ is a parameter matrix, and $\sigma$ is nonlinearity.
22
+
23
+ As with many graph algorithms, the adjacency matrix encodes the pairwise relationship for both training and test data. The learning of the model as well as the embedding is performed for both data simultaneously, at least as the authors proposed. For many applications, however, test data may not be readily available, because the graph may be constantly expanding with new vertices (e.g. new members of a social network, new products to a recommender system, and new drugs for functionality tests). Such scenarios require an inductive scheme that learns a model from only a training set of vertices and that generalizes well to any augmentation of the graph.
24
+
25
+ A more severe challenge for GCN is that the recursive expansion of neighborhoods across layers incurs expensive computations in batched training. Particularly for dense graphs and powerlaw graphs, the expansion of the neighborhood for a single vertex quickly fills up a large portion of the graph. Then, a usual mini-batch training will involve a large amount of data for every batch, even with a small batch size. Hence, scalability is a pressing issue to resolve for GCN to be applicable to large, dense graphs.
26
+
27
+ To address both challenges, we propose to view graph convolutions from a different angle and interpret them as integral transforms of embedding functions under probability measures. Such a view provides a principled mechanism for inductive learning, starting from the formulation of the loss to the stochastic version of the gradient. Specifically, we interpret that graph vertices are iid samples of some probability distribution and write the loss and each convolution layer as integrals with respect to vertex embedding functions. Then, the integrals are evaluated through Monte Carlo approximation that defines the sample loss and the sample gradient. One may further alter the sampling distribution (as in importance sampling) to reduce the approximation variance.
28
+
29
+ The proposed approach, coined FastGCN, not only rids the reliance on the test data but also yields a controllable cost for per-batch computation. At the time of writing, we notice a newly published work GraphSAGE (Hamilton et al., 2017) that proposes also the use of sampling to reduce the computational footprint of GCN. Our sampling scheme is more economic, resulting in a substantial saving in the gradient computation, as will be analyzed in more detail in Section 3.3. Experimental results in Section 4 indicate that the per-batch computation of FastGCN is more than an order of magnitude faster than that of GraphSAGE, while classification accuracies are highly comparable.
30
+
31
+ # 2 RELATED WORK
32
+
33
+ Over the past few years, several graph-based convolution network models emerged for addressing applications of graph-structured data, such as the representation of molecules (Duvenaud et al., 2015). An important stream of work is built on spectral graph theory (Bruna et al., 2013; Henaff et al., 2015; Defferrard et al., 2016). They define parameterized filters in the spectral domain, inspired by graph Fourier transform. These approaches learn a feature representation for the whole graph and may be used for graph classification.
34
+
35
+ Another line of work learns embeddings for graph vertices, for which Goyal & Ferrara (2017) is a recent survey that covers comprehensively several categories of methods. A major category consists of factorization based algorithms that yield the embedding through matrix factorizations; see, e.g., Roweis & Saul (2000); Belkin & Niyogi (2001); Ahmed et al. (2013); Cao et al. (2015); Ou et al. (2016). These methods learn the representations of training and test data jointly. Another category is random walk based methods (Perozzi et al., 2014; Grover & Leskovec, 2016) that compute node representations through exploration of neighborhoods. LINE (Tang et al., 2015) is also such a technique that is motivated by the preservation of the first and second-order proximities. Meanwhile, there appear a few deep neural network architectures, which better capture the nonlinearity within graphs, such as SDNE (Wang et al., 2016). As motivated earlier, GCN (Kipf & Welling, 2016a) is the model on which our work is based.
36
+
37
+ The most relevant work to our approach is GraphSAGE (Hamilton et al., 2017), which learns node representations through aggregation of neighborhood information. One of the proposed aggregators employs the GCN architecture. The authors also acknowledge the memory bottleneck of GCN and hence propose an ad hoc sampling scheme to restrict the neighborhood size. Our sampling approach is based on a different and more principled formulation. The major distinction is that we sample vertices rather than neighbors. The resulting computational savings are analyzed in Section 3.3.
38
+
39
+ # 3 TRAINING AND INFERENCE THROUGH SAMPLING
40
+
41
+ One striking difference between GCN and many standard neural network architectures is the lack of independence in the sample loss. Training algorithms such as SGD and its batch generalization are designed based on the additive nature of the loss function with respect to independent data samples. For graphs, on the other hand, each vertex is convolved with all its neighbors and hence defining a sample gradient that is efficient to compute is beyond straightforward.
42
+
43
+ Concretely, consider the standard SGD scenario where the loss is the expectation of some function $g$ with respect to a data distribution $D$ :
44
+
45
+ $$
46
+ L = \operatorname { E } _ { x \sim D } [ g ( W ; x ) ] .
47
+ $$
48
+
49
+ Here, $W$ denotes the model parameter to be optimized. Of course, the data distribution is generally unknown and one instead minimizes the empirical loss through accessing $n$ iid samples $x _ { 1 } , \ldots , x _ { n }$ :
50
+
51
+ $$
52
+ L _ { \mathrm { e m p } } = { \frac { 1 } { n } } \sum _ { i = 1 } ^ { n } g ( W ; x _ { i } ) , \qquad x _ { i } \sim D , \ \forall i .
53
+ $$
54
+
55
+ In each step of SGD, the gradient is approximated by $\nabla g ( W ; x _ { i } )$ , an (assumed) unbiased sample of $\nabla L$ . One may interpret that each gradient step makes progress toward the sample loss $g ( W ; x _ { i } )$ . The sample loss and the sample gradient involve only one single sample $x _ { i }$ .
56
+
57
+ For graphs, one may no longer leverage the independence and compute the sample gradient $\nabla g ( W ; x _ { i } )$ by discarding the information of $i$ ’s neighboring vertices and their neighbors, recursively. We therefore seek an alternative formulation. In order to cast the learning problem under the same sampling framework, let us assume that there is a (possibly infinite) graph $G ^ { \prime }$ with the vertex set $V ^ { \prime }$ associated with a probability space $( V ^ { \prime } , F , P )$ , such that for the given graph $G$ , it is an induced subgraph of $G ^ { \prime }$ and its vertices are iid samples of $V ^ { \prime }$ according to the probability measure $P$ . For the probability space, $V ^ { \prime }$ serves as the sample space and $F$ may be any event space (e.g., the power set $F = 2 ^ { V ^ { \prime } }$ ). The probability measure $P$ defines a sampling distribution.
58
+
59
+ To resolve the problem of lack of independence caused by convolution, we interpret that each layer of the network defines an embedding function of the vertices (random variable) that are tied to the same probability measure but are independent. See Figure 1. Specifically, recall the architecture of GCN
60
+
61
+ $$
62
+ \tilde { H } ^ { ( l + 1 ) } = \hat { A } H ^ { ( l ) } W ^ { ( l ) } , \quad H ^ { ( l + 1 ) } = \sigma ( \tilde { H } ^ { ( l + 1 ) } ) , \quad l = 0 , \dots , M - 1 , \quad L = \frac { 1 } { n } \sum _ { i = 1 } ^ { n } g ( H ^ { ( M ) } ( i , : ) ) .
63
+ $$
64
+
65
+ For the functional generalization, we write
66
+
67
+ $$
68
+ \tilde { h } ^ { ( l + 1 ) } ( v ) = \int \hat { A } ( v , u ) h ^ { ( l ) } ( u ) W ^ { ( l ) } d P ( u ) , \quad h ^ { ( l + 1 ) } ( v ) = \sigma ( \tilde { h } ^ { ( l + 1 ) } ( v ) ) , \quad l = 0 , \ldots , M - 1 ,
69
+ $$
70
+
71
+ $$
72
+ L = \mathrm { E } _ { v \sim P } [ g ( h ^ { ( M ) } ( v ) ) ] = \int g ( h ^ { ( M ) } ( v ) ) d P ( v ) .
73
+ $$
74
+
75
+ Here, $u$ and $v$ are independent random variables, both of which have the same probability measure $P$ . The function $\it { h ^ { ( l ) } }$ is interpreted as the embedding function from the lth layer. The embedding functions from two consecutive layers are related through convolution, expressed as an integral transform, where the kernel $\hat { A } ( v , u )$ corresponds to the $( v , u )$ element of the matrix $\hat { A }$ . The loss is the expectation of $g ( h ^ { ( M ) } )$ for the final embedding $h ^ { ( M ) }$ . Note that the integrals are not the usual Riemann–Stieltjes integrals, because the variables $u$ and $v$ are graph vertices but not real numbers; however, this distinction is only a matter of formalism.
76
+
77
+ Writing GCN in the functional form allows for evaluating the integrals in the Monte Carlo manner, which leads to a batched training algorithm and also to a natural separation of training and test data, as in inductive learning. For each layer $l$ , we use $t _ { l }$ iid samples $u _ { 1 } ^ { ( l ) } , \ldots , u _ { t _ { l } } ^ { ( l ) } \sim P$ to approximately evaluate the integral transform (2); that is,
78
+
79
+ $$
80
+ \tilde { h } _ { t _ { l + 1 } } ^ { ( l + 1 ) } ( v ) : = \frac { 1 } { t _ { l } } \sum _ { j = 1 } ^ { t _ { l } } \hat { A } ( v , u _ { j } ^ { ( l ) } ) h _ { t _ { l } } ^ { ( l ) } ( u _ { j } ^ { ( l ) } ) W ^ { ( l ) } , \quad h _ { t _ { l + 1 } } ^ { ( l + 1 ) } ( v ) : = \sigma ( \tilde { h } _ { t _ { l + 1 } } ^ { ( l + 1 ) } ( v ) ) , \quad l = 0 , \ldots , M - 1 ,
81
+ $$
82
+
83
+ with the convention $h _ { t _ { 0 } } ^ { ( 0 ) } \equiv h ^ { ( 0 ) }$ . Then, the loss $L$ in (3) admits an estimator
84
+
85
+ $$
86
+ L _ { t _ { 0 } , t _ { 1 } , \dots , t _ { M } } : = \frac { 1 } { t _ { M } } \sum _ { i = 1 } ^ { t _ { M } } g ( h _ { t _ { M } } ^ { ( M ) } ( u _ { i } ^ { ( M ) } ) ) .
87
+ $$
88
+
89
+ The follow result establishes that the estimator is consistent. The proof is a recursive application of the law of large numbers and the continuous mapping theorem; it is given in the appendix.
90
+
91
+ ![](images/cf270237a65cf7e32f03eb558345d72b4d11db5bcbb3bcbf03aebfc5bedf4549.jpg)
92
+ Figure 1: Two views of GCN. On the left (graph convolution view), each circle represents a graph vertex. On two consecutive rows, a circle $i$ is connected (in gray line) with circle $j$ if the two corresponding vertices in the graph are connected. A convolution layer uses the graph connectivity structure to mix the vertex features/embeddings. On the right (integral transform view), the embedding function in the next layer is an integral transform (illustrated by the orange fanout shape) of the one in the previous layer. For the proposed method, all integrals (including the loss function) are evaluated by using Monte Carlo sampling. Correspondingly in the graph view, vertices are subsampled in a bootstrapping manner in each layer to approximate the convolution. The sampled portions are collectively denoted by the solid blue circles and the orange lines.
93
+
94
+ Theorem 1. If $g$ and $\sigma$ are continuous, then
95
+
96
+ $$
97
+ \operatorname * { l i m } _ { t _ { 0 } , t _ { 1 } , . . . , t _ { M } \infty } { \cal L } _ { t _ { 0 } , t _ { 1 } , . . . , t _ { M } } = { \cal L } w i t h p r o b a b i l i t y o n e .
98
+ $$
99
+
100
+ In practical use, we are given a graph whose vertices are already assumed to be samples. Hence, we will need bootstrapping to obtain a consistent estimate. In particular, for the network architecture (1), the output $H ^ { ( M ) }$ is split into batches as usual. We will still use $u _ { 1 } ^ { ( M ) } , \dots , u _ { t _ { M } } ^ { ( M ) }$ to denote a batch of vertices, which come from the given graph. For each batch, we sample (with replacement) uniformly each layer and obtain samples $u _ { i } ^ { ( l ) }$ , $i = 1 , \ldots , t _ { l }$ , $l = 0 , \ldots , M - 1$ . Such a procedure is equivalent to uniformly sampling the rows of $H ^ { ( l ) }$ for each $l$ . Then, we obtain the batch loss
101
+
102
+ $$
103
+ L _ { \mathrm { b a t c h } } = \frac { 1 } { t _ { M } } \sum _ { i = 1 } ^ { t _ { M } } g ( H ^ { ( M ) } ( u _ { i } ^ { ( M ) } , : ) ) ,
104
+ $$
105
+
106
+ where, recursively,
107
+
108
+ $$
109
+ H ^ { ( l + 1 ) } ( v , : ) = \sigma \left( \frac { n } { t _ { l } } \sum _ { j = 1 } ^ { t _ { l } } \hat { A } ( v , u _ { j } ^ { ( l ) } ) H ^ { ( l ) } ( u _ { j } ^ { ( l ) } , : ) W ^ { ( l ) } \right) , \quad l = 0 , \ldots , M - 1 .
110
+ $$
111
+
112
+ Here, the $n$ inside the activation function $\sigma$ is the number of vertices in the given graph and is used to account for the normalization difference between the matrix form (1) and the integral form (2). The corresponding batch gradient may be straightforwardly obtained through applying the chain rule on each $H ^ { ( l ) }$ . See Algorithm 1.
113
+
114
+ # 3.1 VARIANCE REDUCTION
115
+
116
+ As for any estimator, one is interested in improving its variance. Whereas computing the full variance is highly challenging because of nonlinearity in all the layers, it is possible to consider each single layer and aim at improving the varianceSpecifically, consider for the lth layer, the function $\tilde { h } _ { t _ { l + 1 } } ^ { ( l + 1 ) } ( v )$ bedding function before nonlinearity. as an approximation to the convolution $\begin{array} { r l } { \int \hat { A } ( v , u ) h _ { t _ { l } } ^ { ( l ) } ( u ) W ^ { ( l ) } d P ( u ) } \end{array}$ . When taking $t _ { l + 1 }$ samples $v = u _ { 1 } ^ { ( l + 1 ) } , \dots , u _ { t _ { l + 1 } } ^ { ( l + 1 ) }$ , the sample average of by this lay $\tilde { h } _ { t _ { l + 1 } } ^ { ( l + 1 ) } ( v )$ admits a variance that captures the deviation from the eventual loss contributed, we seek an improvement of this variance. Now that we consider each layer separately, we will do the following change of notation to keep the expressions less cumbersome:
117
+
118
+ # Algorithm 1 FastGCN batched training (one epoch)
119
+
120
+ 1: for each batch do
121
+ 2: For each layer $l$ , sample uniformly $t _ { l }$ vertices $u _ { 1 } ^ { ( l ) } , \ldots , u _ { t _ { l } } ^ { ( l ) }$
122
+ 3: for each layer $l$ do $\triangleright$ Compute batch gradient $\nabla L _ { \mathrm { b a t c h } }$
123
+ 4: If $v$ is sampled in the next layer,
124
+
125
+ $$
126
+ \nabla \tilde { H } ^ { ( l + 1 ) } ( v , : ) \gets \frac { n } { t _ { l } } \sum _ { j = 1 } ^ { t _ { l } } \hat { A } ( v , u _ { j } ^ { ( l ) } ) \nabla \Big \{ H ^ { ( l ) } ( u _ { j } ^ { ( l ) } , : ) W ^ { ( l ) } \Big \}
127
+ $$
128
+
129
+ 5: end for
130
+ 6: $W W - \eta \nabla L _ { \mathrm { b a t c h } }$
131
+ 7: end for
132
+
133
+ . SGD step
134
+
135
+ <table><tr><td></td><td>Function</td><td>Samples</td><td>Num. samples</td></tr><tr><td>Layer l +1; random variable u</td><td></td><td>(+1)→Ui 山i</td><td>t+1→s</td></tr><tr><td>Layer l; random variable u</td><td>m (u)W(l) → x(u)</td><td>uj (1) →uj</td><td>t→t</td></tr></table>
136
+
137
+ Under the joint distribution of $v$ and $u$ , the aforementioned sample average is
138
+
139
+ $$
140
+ G : = \frac { 1 } { s } \sum _ { i = 1 } ^ { s } y ( v _ { i } ) = \frac { 1 } { s } \sum _ { i = 1 } ^ { s } \left( \frac { 1 } { t } \sum _ { j = 1 } ^ { t } \hat { A } ( v _ { i } , u _ { j } ) x ( u _ { j } ) \right) .
141
+ $$
142
+
143
+ First, we have the following result.
144
+
145
+ Proposition 2. The variance of $G$ admits
146
+
147
+ $$
148
+ \mathrm { V a r } \{ G \} = R + \frac { 1 } { s t } \int \int \hat { A } ( v , u ) ^ { 2 } x ( u ) ^ { 2 } d P ( u ) d P ( v ) ,
149
+ $$
150
+
151
+ where
152
+
153
+ $$
154
+ R = \frac { 1 } { s } \left( 1 - \frac { 1 } { t } \right) \int e ( v ) ^ { 2 } d P ( v ) - \frac { 1 } { s } \left( \int e ( v ) d P ( v ) \right) ^ { 2 } \quad a n d \quad e ( v ) = \int \hat { A } ( v , u ) x ( u ) d P ( u ) .
155
+ $$
156
+
157
+ The variance (6) consists of two parts. The first part $R$ leaves little room for improvement, because the sampling in the $v$ space is not done in this layer. The second part (the double integral), on the other hand, depends on how the $u _ { j }$ ’s in this layer are sampled. The current result (6) is the consequence of sampling $u _ { j }$ ’s by using the probability measure $P$ . One may perform importance sampling, altering the sampling distribution to reduce variance. Specifically, let $Q ( u )$ be the new probability measure, where the $u _ { j }$ ’s are drawn from. We hence define the new sample average approximation
158
+
159
+ $$
160
+ y _ { Q } ( v ) : = \frac { 1 } { t } \sum _ { j = 1 } ^ { t } \hat { A } ( v , u _ { j } ) x ( u _ { j } ) \left( \frac { d P ( u ) } { d Q ( u ) } \bigg | _ { u _ { j } } \right) , \qquad u _ { 1 } , \ldots , u _ { t } \sim Q ,
161
+ $$
162
+
163
+ and the quantity of interest
164
+
165
+ $$
166
+ G _ { Q } : = \frac { 1 } { s } \sum _ { i = 1 } ^ { s } y _ { Q } ( v _ { i } ) = \frac { 1 } { s } \sum _ { i = 1 } ^ { s } \left( \frac { 1 } { t } \sum _ { j = 1 } ^ { t } \hat { A } ( v _ { i } , u _ { j } ) x ( u _ { j } ) \left( \left. \frac { d P ( u ) } { d Q ( u ) } \right| _ { u _ { j } } \right) \right) .
167
+ $$
168
+
169
+ Clearly, the expectation of $G _ { Q }$ is the same as that of $G$ , regardless of the new measure $Q$ . The following result gives the optimal $Q$ .
170
+
171
+ # Theorem 3. If
172
+
173
+ $$
174
+ d Q ( u ) = \frac { b ( u ) | x ( u ) | d P ( u ) } { \int b ( u ) | x ( u ) | d P ( u ) } \quad w h e r e \quad b ( u ) = \left[ \int \hat { A } ( v , u ) ^ { 2 } d P ( v ) \right] ^ { \frac { 1 } { 2 } } ,
175
+ $$
176
+
177
+ then the variance of $G _ { Q }$ admits
178
+
179
+ $$
180
+ \mathrm { V a r } \{ G _ { Q } \} = R + { \frac { 1 } { s t } } \left[ \int b ( u ) | x ( u ) | d P ( u ) \right] ^ { 2 } ,
181
+ $$
182
+
183
+ where $R$ is defined in Proposition 2. The variance is minimum among all choices of $Q$ .
184
+
185
+ A drawback of defining the sampling distribution $Q$ in this manner is that it involves $| x ( u ) |$ , which constantly changes during training. It corresponds to the product of the embedding matrix $H ^ { ( l ) }$ and the parameter matrix $\mathsf { \bar { W } } ^ { ( l ) }$ . The parameter matrix is updated in every iteration; and the matrix product is expensive to compute. Hence, the cost of computing the optimal measure $Q$ is quite high.
186
+
187
+ As a compromise, we consider a different choice of $Q$ , which involves only $b ( u )$ . The following proposition gives the precise definition. The resulting variance may or may not be smaller than (6). In practice, however, we find that it is almost always helpful.
188
+
189
+ # Proposition 4. If
190
+
191
+ $$
192
+ d Q ( u ) = \frac { b ( u ) ^ { 2 } d P ( u ) } { \int b ( u ) ^ { 2 } d P ( u ) }
193
+ $$
194
+
195
+ where $b ( u )$ is defined in (7), then the variance of $G _ { Q }$ admits
196
+
197
+ $$
198
+ \mathrm { V a r } \{ G _ { Q } \} = R + \frac { 1 } { s t } \int b ( u ) ^ { 2 } d P ( u ) \int x ( u ) ^ { 2 } d P ( u ) ,
199
+ $$
200
+
201
+ where $R$ is defined in Proposition 2.
202
+
203
+ With this choice of the probability measure $Q$ , the ratio $d Q ( u ) / d P ( u )$ is proportional to $b ( u ) ^ { 2 }$ , which is simply the integral of $\hat { A } ( v , u ) ^ { 2 }$ with respect to $v$ . In practical use, for the network architecture (1), we define a probability mass function for all the vertices in the given graph:
204
+
205
+ $$
206
+ q ( u ) = \| \hat { A } ( : , u ) \| ^ { 2 } / \sum _ { u ^ { \prime } \in V } \| \hat { A } ( : , u ^ { \prime } ) \| ^ { 2 } , \quad u \in V
207
+ $$
208
+
209
+ and sample $t$ vertices $u _ { 1 } , \ldots , u _ { t }$ according to this distribution. From the expression of $q$ , we see that it has no dependency on $l$ ; that is, the sampling distribution is the same for all layers. To summarize, the batch loss $L _ { \mathrm { b a t c h } }$ in (4) now is recursively expanded as
210
+
211
+ $$
212
+ H ^ { ( l + 1 ) } ( v , : ) = \sigma \left( \frac { 1 } { t _ { l } } \sum _ { j = 1 } ^ { t _ { l } } \frac { \hat { A } ( v , u _ { j } ^ { ( l ) } ) H ^ { ( l ) } ( u _ { j } ^ { ( l ) } , : ) W ^ { ( l ) } } { q ( u _ { j } ^ { ( l ) } ) } \right) , \quad u _ { j } ^ { ( l ) } \sim q , \quad l = 0 , \ldots , M - 1 .
213
+ $$
214
+
215
+ The major difference between (5) and (10) is that the former obtains samples uniformly whereas the latter according to $q$ . Accordingly, the scaling inside the summation changes. The corresponding batch gradient may be straightforwardly obtained through applying the chain rule on each $\bar { H } ^ { ( l ) }$ . See Algorithm 2.
216
+
217
+ # Algorithm 2 FastGCN batched training (one epoch), improved version
218
+
219
+ 1: For each vertex $u$ , compute sampling probability $q ( u ) \propto \lVert \hat { A } ( : , u ) \rVert ^ { 2 }$
220
+ 2: for each batch do For each layer l, sample tl vertices u(l)1 , . $u _ { 1 } ^ { ( l ) } , \ldots , u _ { t _ { l } } ^ { ( l ) }$ according to distribution $q$
221
+ 4: . Compute batch gradient $\nabla L _ { \mathrm { b a t c h } }$
222
+ 5: If $v$ is sampled in the next layer,
223
+
224
+ $$
225
+ \nabla \tilde { H } ^ { ( l + 1 ) } ( v , : ) \gets \frac { 1 } { t _ { l } } \sum _ { j = 1 } ^ { t _ { l } } \frac { \hat { A } ( v , u _ { j } ^ { ( l ) } ) } { q ( u _ { j } ^ { ( l ) } ) } \nabla \Big \{ H ^ { ( l ) } ( u _ { j } ^ { ( l ) } , : ) W ^ { ( l ) } \Big \}
226
+ $$
227
+
228
+ . SGD step
229
+
230
+ # 3.2 INFERENCE
231
+
232
+ The sampling approach described in the preceding subsection clearly separates out test data from training. Such an approach is inductive, as opposed to transductive that is common for many graph algorithms. The essence is to cast the set of graph vertices as iid samples of a probability distribution, so that the learning algorithm may use the gradient of a consistent estimator of the loss to perform parameter update. Then, for inference, the embedding of a new vertex may be either computed by using the full GCN architecture (1), or approximated through sampling as is done in parameter learning. Generally, using the full architecture is more straightforward and easier to implement.
233
+
234
+ # 3.3 COMPARISON WITH GRAPHSAGE
235
+
236
+ GraphSAGE (Hamilton et al., 2017) is a newly proposed architecture for generating vertex embeddings through aggregating neighborhood information. It shares the same memory bottleneck with GCN, caused by recursive neighborhood expansion. To reduce the computational footprint, the authors propose restricting the immediate neighborhood size for each layer. Using our notation for the sample size, if one samples $t _ { l }$ neighbors for each vertex in the lth layer, then the size of the expanded neighborhood is, in the worst case, the product of the $t _ { l }$ ’s. On the other hand, FastGCN samples vertices rather than neighbors in each layer. Then, the total number of involved vertices is at most the sum of the $t _ { l }$ ’s, rather than the product. See experimental results in Section 4 for the order-of-magnitude saving in actual computation time.
237
+
238
+ # 4 EXPERIMENTS
239
+
240
+ We follow the experiment setup in Kipf & Welling (2016a) and Hamilton et al. (2017) to demonstrate the effective use of FastGCN, comparing with the original GCN model as well as GraphSAGE, on the following benchmark tasks: (1) classifying research topics using the Cora citation data set (McCallum et al., 2000); (2) categorizing academic papers with the Pubmed database; and (3) predicting the community structure of a social network modeled with Reddit posts. These data sets are downloaded from the accompany websites of the aforementioned references. The graphs have increasingly more nodes and higher node degrees, representative of the large and dense setting under which our method is motivated. Statistics are summarized in Table 1. We adjusted the training/validation/test split of Cora and Pubmed to align with the supervised learning scenario. Specifically, all labels of the training examples are used for training, as opposed to only a small portion in the semi-supervised setting (Kipf & Welling, 2016a). Such a split is coherent with that of the other data set, Reddit, used in the work of GraphSAGE. Additional experiments using the original split of Cora and Pubmed are reported in the appendix.
241
+
242
+ Table 1: Dataset Statistics
243
+
244
+ <table><tr><td>Dataset</td><td>Nodes</td><td>Edges</td><td>Classes</td><td>Features</td><td>Training/Validation/Test</td></tr><tr><td>Cora</td><td>2,708</td><td>5,429</td><td>7</td><td>1,433</td><td>1,208/500/1,000</td></tr><tr><td>Pubmed</td><td>19,717</td><td>44,338</td><td>3</td><td>500</td><td>18,217/500/1,000</td></tr><tr><td>Reddit</td><td>232,965</td><td>11,606,919</td><td>41</td><td>602</td><td>152,410/23,699/55,334</td></tr></table>
245
+
246
+ Implementation details are as following. All networks (including those under comparison) contain two layers as usual. The codes of GraphSAGE and GCN are downloaded from the accompany websites and the latter is adapted for FastGCN. Inference with FastGCN is done with the full GCN network, as mentioned in Section 3.2. Further details are contained in the appendix.
247
+
248
+ We first consider the use of sampling in FastGCN. The left part of Table 2 (columns under “Sampling”) lists the time and classification accuracy as the number of samples increases. For illustration purpose, we equalize the sample size on both layers. Clearly, with more samples, the per-epoch training time increases, but the accuracy (as measured by using micro F1 scores) also improves generally.
249
+
250
+ An interesting observation is that given input features $H ^ { ( 0 ) }$ , the product $\hat { A } H ^ { ( 0 ) }$ in the bottom layer does not change, which means that the chained expansion of the gradient with respect to $W ^ { ( 0 ) }$ in the last step is a constant throughout training. Hence, one may precompute the product rather than sampling this layer to gain efficiency. The compared results are listed on the right part of Table 2 (columns under “Precompute”). One sees that the training time substantially decreases while the accuracy is comparable. Hence, all the experiments that follow use precomputation.
251
+
252
+ Table 2: Benefit of precomputing $\hat { A } H ^ { ( 0 ) }$ for the input layer. Data set: Pubmed. Training time is in seconds, per-epoch (batch size 1024). Accuracy is measured by using micro F1 score.
253
+
254
+ <table><tr><td colspan="2">Sampling</td><td rowspan="2">F1</td><td rowspan="2">Precompute Time F1</td></tr><tr><td>t1</td><td>Time</td></tr><tr><td>5</td><td>0.737</td><td>0.859</td><td>0.139 0.849</td></tr><tr><td>10</td><td>0.755</td><td>0.863</td><td>0.141 0.870</td></tr><tr><td>25</td><td>0.760</td><td>0.873</td><td>0.144 0.879</td></tr><tr><td>50</td><td>0.774</td><td>0.864</td><td>0.142 0.880</td></tr></table>
255
+
256
+ ![](images/c89d2f6c01abefbd0d3dad500867153e7990fb5dff5c5b4811cd9fb2ea82f634.jpg)
257
+ Figure 2: Prediction accuracy: uniform versus importance sampling. The three data sets from top to bottom are ordered the same as Table 1.
258
+
259
+ Next, we compare the sampling approaches for FastGCN: uniform and importance sampling. Figure 2 summarizes the prediction accuracy under both approaches. It shows that importance sampling consistently yields higher accuracy than does uniform sampling. Since the altered sampling distribution (see Proposition 4 and Algorithm 2) is a compromise alternative of the optimal distribution that is impractical to use, this result suggests that the variance of the used sampling indeed is smaller than that of uniform sampling; i.e., the term (9) stays closer to (8) than does (6). A possible reason is that $b ( u )$ correlates with $| x ( u ) |$ . Hence, later experiments will apply importance sampling.
260
+
261
+ We now demonstrate that the proposed method is significantly faster than the original GCN as well as GraphSAGE, while maintaining comparable prediction performance. See Figure 3. The bar heights indicate the per-batch training time, in the log scale. One sees that GraphSAGE is a substantial improvement of GCN for large and dense graphs (e.g., Reddit), although for smaller ones (Cora and Pubmed), GCN trains faster. FastGCN is the fastest, with at least an order of magnitude improvement compared with the runner up (except for Cora), and approximately two orders of magnitude speed up compared with the slowest. Here, the training time of FastGCN is with respect to the sample size that achieves the best prediction accuracy. As seen from the table on the right, this accuracy is highly comparable with the best of the other two methods.
262
+
263
+ <table><tr><td colspan="3">Micro F1 Score</td></tr><tr><td>Cora</td><td>Pubmed</td><td>Reddit</td></tr><tr><td>FastGCN</td><td>0.850 0.880</td><td>0.937</td></tr><tr><td>GraphSAGE-GCN</td><td>0.829 0.849</td><td>0.923</td></tr><tr><td>GraphSAGE-mean</td><td>0.822 0.888</td><td>0.946</td></tr><tr><td>GCN (batched)</td><td>0.851 0.867</td><td>0.930</td></tr><tr><td>GCN (original)</td><td>0.865 0.875</td><td>NA</td></tr></table>
264
+
265
+ ![](images/aee78eb0f79ba7f4845f3f9257458cc251c039184f7aaea9e2ecb0576c444894.jpg)
266
+ Figure 3: Per-batch training time in seconds (left) and prediction accuracy (right). For timing, GraphSAGE refers to GraphSAGE-GCN in Hamilton et al. (2017). The timings of using other aggregators, such as GraphSAGE-mean, are similar. GCN refers to using batched learning, as opposed to the original version that is nonbatched; for more details of the implementation, see the appendix. The nonbatched version of GCN runs out of memory on the large graph Reddit. The sample sizes for FastGCN are 400, 100, and 400, respectively for the three data sets.
267
+
268
+ In the discussion period, the authors of GraphSAGE offered an improved implementation of their codes and alerted that GraphSAGE was better suited for massive graphs. The reason is that for small graphs, the sample size (recalling that it is the product across layers) is comparable to the graph size and hence improvement is marginal; moreover, sampling overhead might then adversely affect the timing. For fair comparison, the authors of GraphSAGE kept the sampling strategy but improved the implementation of their original codes by eliminating redundant calculations of the sampled nodes. Now the per-batch training time of GraphSAGE compares more favorably on the smallest graph Cora; see Table 3. Note that this implementation does not affect large graphs (e.g., Reddit) and our observation of orders of magnitude faster training remains valid.
269
+
270
+ Table 3: Further comparison of per-batch training time (in seconds) with new implementation of GraphSAGE for small graphs. The new implementation is in PyTorch whereas the rest are in TensorFlow.
271
+
272
+ <table><tr><td></td><td>Cora</td><td>Pubmed</td><td>Reddit</td></tr><tr><td>FastGCN</td><td>0.0084</td><td>0.0047</td><td>0.0129</td></tr><tr><td>GraphSAGE-GCN (old impl)</td><td>1.1630</td><td>0.3579</td><td>0.4260</td></tr><tr><td>GraphSAGE-GCN (new impl)</td><td>0.0380</td><td>0.3989</td><td>NA</td></tr><tr><td>GCN (batched)</td><td>0.0166</td><td>0.0815</td><td>2.1731</td></tr></table>
273
+
274
+ # 5 CONCLUSIONS
275
+
276
+ We have presented FastGCN, a fast improvement of the GCN model recently proposed by Kipf & Welling (2016a) for learning graph embeddings. It generalizes transductive training to an inductive manner and also addresses the memory bottleneck issue of GCN caused by recursive expansion of neighborhoods. The crucial ingredient is a sampling scheme in the reformulation of the loss and the gradient, well justified through an alternative view of graph convoluntions in the form of integral transforms of embedding functions. We have compared the proposed method with additionally GraphSAGE (Hamilton et al., 2017), a newly published work that also proposes using sampling to restrict the neighborhood size, although the two sampling schemes substantially differ in both algorithm and cost. Experimental results indicate that our approach is orders of magnitude faster than GCN and GraphSAGE, while maintaining highly comparable prediction performance with the two.
277
+
278
+ The simplicity of the GCN architecture allows for a natural interpretation of graph convolutions in terms of integral transforms. Such a view, yet, generalizes to many graph models whose formulations are based on first-order neighborhoods, examples of which include MoNet that applies to (meshed) manifolds (Monti et al., 2017), as well as many message-passing neural networks (see e.g., Scarselli et al. (2009); Gilmer et al. (2017)). The proposed work elucidates the basic Monte Carlo ingredients for consistently estimating the integrals. When generalizing to other networks aforementioned, an additional effort is to investigate whether and how variance reduction may improve the estimator, a possibly rewarding avenue of future research.
279
+
280
+ # REFERENCES
281
+
282
+ Amr Ahmed, Nino Shervashidze, Shravan Narayanamurthy, Vanja Josifovski, and Alexander J. Smola. Distributed large-scale natural graph factorization. In Proceedings of the 22Nd International Conference on World Wide Web, WWW ’13, pp. 37–48, 2013. ISBN 978-1-4503-2035-1.
283
+ Mikhail Belkin and Partha Niyogi. Laplacian eigenmaps and spectral techniques for embedding and clustering. In Proceedings of the 14th International Conference on Neural Information Processing Systems: Natural and Synthetic, NIPS’01, pp. 585–591, 2001.
284
+ Joan Bruna, Wojciech Zaremba, Arthur Szlam, and Yann LeCun. Spectral networks and locally connected networks on graphs. CoRR, abs/1312.6203, 2013.
285
+ Shaosheng Cao, Wei Lu, and Qiongkai Xu. Grarep: Learning graph representations with global structural information. In Proceedings of the 24th ACM International on Conference on Information and Knowledge Management, CIKM ’15, pp. 891–900, 2015. ISBN 978-1-4503-3794-6.
286
+
287
+ Michael Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks on ¨ graphs with fast localized spectral filtering. CoRR, abs/1606.09375, 2016.
288
+
289
+ David K Duvenaud, Dougal Maclaurin, Jorge Iparraguirre, Rafael Bombarell, Timothy Hirzel, Alan Aspuru-Guzik, and Ryan P Adams. Convolutional networks on graphs for learning molecular fingerprints. In C. Cortes, N. D. Lawrence, D. D. Lee, M. Sugiyama, and R. Garnett (eds.), Advances in Neural Information Processing Systems 28, pp. 2224–2232. Curran Associates, Inc., 2015.
290
+
291
+ J. Gilmer, S.S. Schoenholz, P.F. Riley, O. Vinyals, and G.E. Dahl. Neural message passing for quantum chemistry. In ICML, 2017.
292
+
293
+ Palash Goyal and Emilio Ferrara. Graph embedding techniques, applications, and performance: A survey. CoRR, abs/1705.02801, 2017.
294
+
295
+ Aditya Grover and Jure Leskovec. Node2vec: Scalable feature learning for networks. In Proceedings of the 22Nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’16, pp. 855–864, 2016. ISBN 978-1-4503-4232-2.
296
+
297
+ William L. Hamilton, Rex Ying, and Jure Leskovec. Inductive representation learning on large graphs. CoRR, abs/1706.02216, 2017.
298
+
299
+ Mikael Henaff, Joan Bruna, and Yann LeCun. Deep convolutional networks on graph-structured data. CoRR, abs/1506.05163, 2015.
300
+
301
+ Ashesh Jain, Amir Roshan Zamir, Silvio Savarese, and Ashutosh Saxena. Structural-rnn: Deep learning on spatio-temporal graphs. CoRR, abs/1511.05298, 2015.
302
+
303
+ Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. CoRR, abs/1609.02907, 2016a.
304
+
305
+ TN. Kipf and M. Welling. Variational graph auto-encoders. In NIPS Workshop on Bayesian Deep Learning. 2016b.
306
+
307
+ Yujia Li, Daniel Tarlow, Marc Brockschmidt, and Richard S. Zemel. Gated graph sequence neural networks. CoRR, abs/1511.05493, 2015.
308
+
309
+ Andrew Kachites McCallum, Kamal Nigam, Jason Rennie, and Kristie Seymore. Automating the construction of internet portals with machine learning. Inf. Retr., 3(2):127–163, July 2000. ISSN 1386-4564.
310
+
311
+ F. Monti, D. Boscaini, J. Masci, E. Rodala, J. Svoboda, and M.M. Bronstein. Geometric deep learning on graphs and manifolds using mixture model CNNs. In CVPR, 2017.
312
+
313
+ Mathias Niepert, Mohamed Ahmed, and Konstantin Kutzkov. Learning convolutional neural networks for graphs. CoRR, abs/1605.05273, 2016.
314
+
315
+ Mingdong Ou, Peng Cui, Jian Pei, Ziwei Zhang, and Wenwu Zhu. Asymmetric transitivity preserving graph embedding. In Proceedings of the 22Nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’16, pp. 1105–1114, 2016. ISBN 978-1-4503- 4232-2.
316
+
317
+ Bryan Perozzi, Rami Al-Rfou, and Steven Skiena. Deepwalk: Online learning of social representations. In Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’14, pp. 701–710, 2014. ISBN 978-1-4503-2956-9.
318
+
319
+ Sam T. Roweis and Lawrence K. Saul. Nonlinear dimensionality reduction by locally linear embedding. Science, 290(5500):2323–2326, 2000. ISSN 0036-8075. doi: 10.1126/science.290.5500. 2323.
320
+
321
+ F. Scarselli, M. Gori, A.C. Tsoi, M. Hagenbuchner, and G. Monfardini. The graph neural network model. IEEE Transactions on Neural Networks, 20, 2009.
322
+
323
+ Jian Tang, Meng Qu, Mingzhe Wang, Ming Zhang, Jun Yan, and Qiaozhu Mei. Line: Large-scale information network embedding. In Proceedings of the 24th International Conference on World Wide Web, WWW ’15, pp. 1067–1077, 2015. ISBN 978-1-4503-3469-3.
324
+
325
+ Daixin Wang, Peng Cui, and Wenwu Zhu. Structural deep network embedding. In Proceedings of the 22Nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, KDD ’16, pp. 1225–1234, 2016. ISBN 978-1-4503-4232-2.
326
+
327
+ # A PROOFS
328
+
329
+ Proof of Theorem 1. Because the samples $u _ { j } ^ { ( 0 ) }$ are iid, by the strong law of large numbers,
330
+
331
+ $$
332
+ \tilde { h } _ { t _ { 1 } } ^ { ( 1 ) } ( v ) = \frac { 1 } { t _ { 0 } } \sum _ { j = 1 } ^ { t _ { 0 } } \hat { A } ( v , u _ { j } ^ { ( 0 ) } ) h ^ { ( 0 ) } ( u _ { j } ^ { ( 0 ) } ) W ^ { ( 0 ) }
333
+ $$
334
+
335
+ converges almost surely to $\tilde { h } ^ { ( 1 ) } ( v )$ . Then, because the activation function $\sigma$ is continuous, the continuous mapping theorem implies that $h _ { t _ { 1 } } ^ { ( 1 ) } ( v ) \ = \ \sigma ( \tilde { h } _ { t _ { 1 } } ^ { ( 1 ) } ( v ) )$ converges almost surely to $h ^ { ( 1 ) } ( v ) = \sigma ( \tilde { h } ^ { ( 1 ) } ( v ) )$ . Thus, $\begin{array} { r } { \int \hat { A } ( v , u ) h _ { t _ { 1 } } ^ { ( 1 ) } ( u ) W ^ { ( 1 ) } d P ( u ) } \end{array}$ converges almost surely to $\tilde { h } ^ { ( 2 ) } ( v ) =$ $\begin{array} { r } { \int \hat { A } ( v , u ) h ^ { ( 1 ) } ( u ) W ^ { ( 1 ) } d P ( u ) } \end{array}$ , where note that the probability space is with respect to the 0th layer and hence has nothing to do with that of the variable $u$ or $v$ in this statement. Similarly,
336
+
337
+ $$
338
+ \tilde { h } _ { t _ { 2 } } ^ { ( 2 ) } ( v ) = \frac { 1 } { t _ { 1 } } \sum _ { j = 1 } ^ { t _ { 1 } } \hat { A } ( v , u _ { j } ^ { ( 1 ) } ) h _ { t _ { 1 } } ^ { ( 1 ) } ( u _ { j } ^ { ( 1 ) } ) W ^ { ( 1 ) }
339
+ $$
340
+
341
+ converges almost surely to $\begin{array} { r } { \int \hat { A } ( v , u ) h _ { t _ { 1 } } ^ { ( 1 ) } ( u ) W ^ { ( 1 ) } d P ( u ) } \end{array}$ and thus to $\tilde { h } ^ { ( 2 ) } ( v )$ . A simple induction completes the rest of the proof.
342
+
343
+ Proof of Proposition 2. Conditioned on $v$ , the expectation of $y ( v )$ is
344
+
345
+ $$
346
+ \operatorname { E } [ y ( v ) | v ] = \int { \hat { A } } ( v , u ) x ( u ) d P ( u ) = e ( v ) ,
347
+ $$
348
+
349
+ and the variance is $1 / t$ times that of $\hat { A } ( v , u ) x ( u )$ , i.e.,
350
+
351
+ $$
352
+ \mathrm { V a r } \{ y ( v ) | v \} = \frac { 1 } { t } \left( \int \hat { A } ( v , u ) ^ { 2 } x ( u ) ^ { 2 } d P ( u ) - e ( v ) ^ { 2 } \right) .
353
+ $$
354
+
355
+ Instantiating (11) and (12) with iid samples $v _ { 1 } , \ldots , v _ { s } \sim P$ and taking variance and expectation in the front, respectively, we obtain
356
+
357
+ $$
358
+ \left\{ \mathop { \mathrm { A r } } \left\{ \left[ \frac { 1 } { s } \sum _ { i = 1 } ^ { s } y ( v _ { i } ) \right] v _ { 1 } , \ldots , v _ { s } \right\} \right\} = \mathop { \mathrm { V a r } } \left\{ \frac { 1 } { s } \sum _ { i = 1 } ^ { s } e ( v _ { i } ) \right\} = \frac { 1 } { s } \int e ( v ) ^ { 2 } d P ( v ) - \frac { 1 } { s } \left( \int e ( v ) d P ( v ) \right) =
359
+ $$
360
+
361
+ and
362
+
363
+ $$
364
+ \mathbb { E } \left[ \mathrm { V a r } \left\{ \frac { 1 } { s } \sum _ { i = 1 } ^ { s } y ( v _ { i } ) \Bigg | v _ { 1 } , \dots , v _ { s } \right\} \right] = \frac { 1 } { s t } \iint \hat { A } ( v , u ) ^ { 2 } x ( u ) ^ { 2 } d P ( u ) d P ( v ) - \frac { 1 } { s t } \int e ( v ) ^ { 2 } d P ( v ) .
365
+ $$
366
+
367
+ Then, applying the law of total variance
368
+
369
+ $$
370
+ \operatorname { a r } \{ { \frac { 1 } { s } } \sum _ { i = 1 } ^ { s } y ( v _ { i } ) \} = \operatorname { V a r } \{ \operatorname { E } [ { \frac { 1 } { s } } \sum _ { i = 1 } ^ { s } y ( v _ { i } ) | v _ { 1 } , \ldots , v _ { s } ] \} + \operatorname { E } [ \operatorname { V a r } \{ { \frac { 1 } { s } } \sum _ { i = 1 } ^ { s } y ( v _ { i } ) { \Bigg | } v _ { 1 } , \ldots , v _ { s } \} ] ,
371
+ $$
372
+
373
+ we conclude the proof.
374
+
375
+ Proof of Theorem 3. Conditioned on $v$ , the variance of $y _ { Q } ( v )$ is $1 / t$ times that of
376
+
377
+ $$
378
+ { \hat { A } } ( v , u ) x ( u ) { \frac { d P ( u ) } { d Q ( u ) } } \quad ( { \mathrm { w h e r e ~ } } u \sim Q ) ,
379
+ $$
380
+
381
+ i.e.,
382
+
383
+ $$
384
+ \mathrm { V a r } \{ y _ { Q } ( v ) | v \} = \frac { 1 } { t } \left( \int \frac { \hat { A } ( v , u ) ^ { 2 } { x } ( u ) ^ { 2 } d P ( u ) ^ { 2 } } { d Q ( u ) } - e ( v ) ^ { 2 } \right) .
385
+ $$
386
+
387
+ Then, following the proof of Proposition 2, the overall variance is
388
+
389
+ $$
390
+ \mathrm { V a r } \{ G _ { Q } \} = R + \frac { 1 } { s t } \iint \frac { \hat { A } ( v , u ) ^ { 2 } x ( u ) ^ { 2 } d P ( u ) ^ { 2 } d P ( v ) } { d Q ( u ) } = R + \frac { 1 } { s t } \int \frac { b ( u ) ^ { 2 } x ( u ) ^ { 2 } d P ( u ) ^ { 2 } } { d Q ( u ) } .
391
+ $$
392
+
393
+ Hence, the optimal $d Q ( u )$ must be proportional to $b ( u ) | x ( u ) | d P ( u )$ . Because it also must integrate to unity, we have
394
+
395
+ $$
396
+ d Q ( u ) = \frac { b ( u ) | x ( u ) | d P ( u ) } { \int b ( u ) | x ( u ) | d P ( u ) } ,
397
+ $$
398
+
399
+ in which case
400
+
401
+ $$
402
+ \mathrm { V a r } \{ G _ { Q } \} = R + { \frac { 1 } { s t } } \left[ \int b ( u ) | x ( u ) | d P ( u ) \right] ^ { 2 } .
403
+ $$
404
+
405
+ Proof of Proposition 4. Conditioned on $v$ , the variance of $y _ { Q } ( v )$ is $1 / t$ times that of
406
+
407
+ $$
408
+ \hat { A } ( v , u ) x ( u ) \frac { d P ( u ) } { d Q ( u ) } = \frac { \hat { A } ( v , u ) \mathrm { s g n } ( x ( u ) ) } { b ( u ) } \int b ( u ) | x ( u ) | d P ( u ) ,
409
+ $$
410
+
411
+ i.e.,
412
+
413
+ $$
414
+ \mathrm { V a r } \{ y _ { Q } ( v ) | v \} = \frac { 1 } { t } \left( \left[ \int b ( u ) | x ( u ) | d P ( u ) \right] ^ { 2 } \int \frac { \hat { A } ( v , u ) ^ { 2 } } { b ( u ) ^ { 2 } } d Q ( u ) - e ( v ) ^ { 2 } \right) .
415
+ $$
416
+
417
+ The rest of the proof follows that of Proposition 2.
418
+
419
+ # B ADDITIONAL EXPERIMENT DETAILS
420
+
421
+ # B.1 BASELINES
422
+
423
+ GCN: The original GCN cannot work on very large graphs (e.g., Reddit). So we modified it into a batched version by simply removing the sampling in our FastGCN (i.e., using all the nodes instead of sampling a few in each batch). For relatively small graphs (Cora and Pubmed), we also compared the results with the original GCN.
424
+
425
+ GraphSAGE: For training time comparison, we use GraphSAGE-GCN that employs GCN as the aggregator. It is also the fastest version among all choices of the aggregators. For accuracy comparison, we also compared with GraphSAGE-mean. We used the codes from https: //github.com/williamleif/GraphSAGE. Following the setting of Hamilton et al. (2017), we use two layers with neighborhood sample sizes $S _ { 1 } = 2 5$ and $S _ { 2 } = 1 0$ . For fair comparison with our method, the batch size is set to be the same as FastGCN, and the hidden dimension is 128.
426
+
427
+ # B.2 EXPERIMENT SETUP
428
+
429
+ Datasets: The Cora and Pubmed data sets are from https://github.com/tkipf/gcn. As we explained in the paper, we kept the validation index and test index unchanged but changed the training index to use all the remaining nodes in the graph. The Reddit data is from http: //snap.stanford.edu/graphsage/.
430
+
431
+ Experiment Setting: We preformed hyperparameter selection for the learning rate and model dimension. We swept learning rate in the set $\left. 0 . 0 1 , 0 . 0 0 1 , 0 . 0 0 0 1 \right.$ . The hidden dimension of FastGCN for Reddit is set as 128, and for the other two data sets, it is 16. The batch size is 256 for Cora and Reddit, and 1024 for Pubmed. Dropout rate is set as 0. We use Adam as the optimization method for training. In the test phase, we use the trained parameters and all the graph nodes instead of sampling. For more details please check our codes in a temporary git repository https://github.com/matenure/FastGCN.
432
+
433
+ Hardware: Running time is compared on a single machine with 4-core 2.5 GHz Intel Core i7, and 16G RAM.
434
+
435
+ # C ADDITIONAL EXPERIMENTS
436
+
437
+ C.1 TRAINING TIME COMPARISON
438
+
439
+ Figure 3 in the main text compares the per-batch training time for different methods. Here, we list the total training time for reference. It is impacted by the convergence of SGD, whose contributing factors include learning rate, batch size, and sample size. See Table 4. Although the orders-ofmagnitude speedup of per-batch time is slightly weakened by the convergence speed, one still sees a substantial advantage of the proposed method in the overall training time. Note that even though the original GCN trains faster than the batched version, it does not scale because of memory limitation. Hence, a fair comparison should be gauged with the batched version. We additionally show in Figure 4 the evolution of prediction accuracy as training progresses.
440
+
441
+ Table 4: Total training time (in seconds).
442
+
443
+ <table><tr><td></td><td>Cora</td><td>Pubmed</td><td>Reddit</td></tr><tr><td>FastGCN</td><td>2.7</td><td>15.5</td><td>638.6</td></tr><tr><td>GraphSAGE-GCN</td><td>72.4</td><td>259.6</td><td>3318.5</td></tr><tr><td>GCN (batched)</td><td>6.9</td><td>210.8</td><td>58346.6</td></tr><tr><td>GCN (original)</td><td>1.7</td><td>21.4</td><td>NA</td></tr></table>
444
+
445
+ ![](images/1008ca8b5638fd3d161b1aa4b3d754c0fea24b24f49755b163298dbf769a672d.jpg)
446
+ Figure 4: Training/test accuracy versus training time. From left to right, the data sets are Cora, Pubmed, and Reddit, respectively.
447
+
448
+ # C.2 ORIGINAL DATA SPLIT FOR CORA AND PUBMED
449
+
450
+ As explained in Section 4, we increased the number of labels used for training in Cora and Pubmed, to align with the supervised learning setting of Reddit. For reference, here we present results by using the original data split with substantially fewer training labels. We also fork a separate version of FastGCN, called FastGCN-transductive, that uses both training and test data for learning. See Table 5.
451
+
452
+ The results for GCN are consistent with those reported by Kipf & Welling (2016a). Because labeled data are scarce, the training of GCN is quite fast. FastGCN beats it only on Pubmed. The accuracy results of FastGCN are inferior to GCN, also because of the limited number of training labels. The transductive version FastGCN-transductive matches the accuracy of that of GCN. The results for GraphSAGE are curious. We suspect that the model significantly overfits the data, because perfect training accuracy (i.e., 1) is attained.
453
+
454
+ One may note a subtlety that the training of GCN (original) is slower than what is reported in Table 4, even though fewer labels are used here. The reason is that we adopt the same hyperparameters as in Kipf & Welling (2016a) to reproduce the F1 scores of their work, whereas for Table 4, a better learning rate is found that boosts the performance on the new split of the data, in which case GCN (original) converges faster.
455
+
456
+ Table 5: Total training time and test accuracy for Cora and Pubmed, original data split. Time is in seconds.
457
+
458
+ <table><tr><td></td><td colspan="2">Cora</td><td colspan="2">Pubmed</td></tr><tr><td></td><td>Time</td><td>F1</td><td>Time</td><td>F1</td></tr><tr><td>FastGCN</td><td>2.52</td><td>0.723</td><td>0.97</td><td>0.721</td></tr><tr><td>FastGCN-transductive</td><td>5.88</td><td>0.818</td><td>8.97</td><td>0.776</td></tr><tr><td>GraphSAGE-GCN</td><td>107.95</td><td>0.334</td><td>39.34</td><td>0.386</td></tr><tr><td>GCN (original)</td><td>2.18</td><td>0.814</td><td>32.65</td><td>0.795</td></tr></table>
459
+
460
+ # D CONVERGENCE
461
+
462
+ Strictly speaking, the training algorithms proposed in Section 3 do not precisely follow the existing theory of SGD, because the gradient estimator, though consistent, is biased. In this section, we fill the gap by deriving a convergence result. Similar to the case of standard SGD where the convergence rate depends on the properties of the objective function, here we analyze only a simple case; a comprehensive treatment is out of the scope of the present work. For convenience, we will need a separate system of notations and the same notations appearing in the main text may bear a different meaning here. We abbreviate “with probability one” to “w.p.1” for short.
463
+
464
+ We use $f ( x )$ to denote the objective function and assume that it is differentiable. Differentiability is not a restriction because for the nondifferentiable case, the analysis that follows needs simply change the gradient to the subgradient. The key assumption made on $f$ is that it is $l$ -strictly convex; that is, there exists a positive real number $l$ such that
465
+
466
+ $$
467
+ f ( x ) - f ( y ) \geq \langle \nabla f ( y ) , x - y \rangle + { \frac { l } { 2 } } \| x - y \| ^ { 2 } ,
468
+ $$
469
+
470
+ for all $x$ and $y$ . We use $g$ to denote the gradient estimator. Specifically, denote by $g ( x ; \xi _ { N } )$ , with $\xi _ { N }$ being a random variable, a strongly consistent estimator of $\nabla f ( x )$ ; that is,
471
+
472
+ $$
473
+ \operatorname* { l i m } _ { N \to \infty } g ( x ; \xi _ { N } ) = \nabla f ( x ) \quad { \mathrm { w . p . 1 } } .
474
+ $$
475
+
476
+ Moreover, we consider the SGD update rule
477
+
478
+ $$
479
+ x _ { k + 1 } = x _ { k } - \gamma _ { k } \ g ( x _ { k } ; \xi _ { N } ^ { ( k ) } ) ,
480
+ $$
481
+
482
+ where (k) is an indepedent sample of $\xi _ { N }$ for the $k$ th update. The following result states that the update converges on the order of $O ( 1 / k )$ .
483
+
484
+ Theorem 5. Let $x ^ { * }$ be the (global) minimum of $f$ and assume that $\| \nabla f ( x ) \|$ is uniformly bounded by some constant $G > 0$ . $I f \gamma _ { k } = ( l k ) ^ { - 1 }$ , then there exists a sequence $B _ { k }$ with
485
+
486
+ $$
487
+ B _ { k } \leq \frac { \operatorname* { m a x } \{ \| x _ { 1 } - x ^ { * } \| ^ { 2 } , ~ G ^ { 2 } / l ^ { 2 } \} } { k }
488
+ $$
489
+
490
+ such that $\| x _ { k } - x ^ { * } \| ^ { 2 } \to B _ { k }$ w.p.1.
491
+
492
+ Proof. Expanding $\| x _ { k + 1 } - x ^ { * } \| ^ { 2 }$ by using the update rule (14), we obtain
493
+
494
+ $$
495
+ \| x _ { k + 1 } - x ^ { * } \| ^ { 2 } = \| x _ { k } - x ^ { * } \| ^ { 2 } - 2 \gamma _ { k } \langle g _ { k } , x _ { k } - x ^ { * } \rangle + \gamma _ { k } ^ { 2 } \| g _ { k } \| ^ { 2 } ,
496
+ $$
497
+
498
+ where $g _ { k } \equiv g ( x _ { k } ; \xi _ { N } ^ { ( k ) } )$ . Because for a given $x _ { k } , \textrm { } g _ { k }$ converges to $\nabla f ( x _ { k } )$ w.p.1, we have that conditioned on $x _ { k }$ ,
499
+
500
+ $$
501
+ \| x _ { k + 1 } - x ^ { * } \| ^ { 2 } \to \| x _ { k } - x ^ { * } \| ^ { 2 } - 2 \gamma _ { k } \langle \nabla f ( x _ { k } ) , x _ { k } - x ^ { * } \rangle + \gamma _ { k } ^ { 2 } \| \nabla f ( x _ { k } ) \| ^ { 2 } \quad \mathrm { w . p . 1 } .
502
+ $$
503
+
504
+ On the other hand, applying the strict convexity (13), by first taking $x = x _ { k } , y = x ^ { * }$ and then taking $x = x ^ { * } , y = x _ { k }$ , we obtain
505
+
506
+ $$
507
+ \langle \nabla f ( x _ { k } ) , x _ { k } - x ^ { * } \rangle \geq l \| x _ { k } - x ^ { * } \| ^ { 2 } .
508
+ $$
509
+
510
+ Substituting (16) to (15), we have that conditioned on $x _ { k }$ ,
511
+
512
+ $$
513
+ \| x _ { k + 1 } - x ^ { * } \| ^ { 2 } \to C _ { k } \quad { \mathrm { w . p . 1 } }
514
+ $$
515
+
516
+ for some
517
+
518
+ $$
519
+ \begin{array} { r } { C _ { k } \leq ( 1 - 2 l \gamma _ { k } ) \| x _ { k } - x ^ { * } \| ^ { 2 } + \gamma _ { k } ^ { 2 } G ^ { 2 } = ( 1 - 2 / k ) \| x _ { k } - x ^ { * } \| ^ { 2 } + G ^ { 2 } / ( l ^ { 2 } k ^ { 2 } ) . } \end{array}
520
+ $$
521
+
522
+ Now consider the randomness of $x _ { k }$ and apply induction. For the base case $k = 2$ , the theorem clearly holds with $B _ { 2 } = C _ { 1 }$ . If the theorem holds for $k = T$ , let $L = \operatorname* { m a x } \{ \| x _ { 1 } - x ^ { * } \| ^ { 2 } , \ G ^ { 2 } / l ^ { 2 } \}$ . Then, taking the probabilistic limit of $x _ { T }$ on both sides of (17), we have that $C _ { T }$ converges w.p.1 to some limit that is less than or equal to $( 1 - 2 / T ) ( L / T ) + G ^ { 2 } / ( l ^ { 2 } T ^ { 2 } ) \leq L / ( T + 1 )$ . Letting this limit be $B _ { T + 1 }$ , we complete the induction proof. □
parse/train/rytstxWAW/rytstxWAW_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rytstxWAW/rytstxWAW_middle.json ADDED
The diff for this file is too large to render. See raw diff
 
parse/train/rytstxWAW/rytstxWAW_model.json ADDED
The diff for this file is too large to render. See raw diff