Title: RIEMANNIAN ADAPTIVE OPTIMIZATION METHODS

Abstract: Several first order stochastic optimization methods commonly used in the Euclidean domain such as stochastic gradient descent (SGD), accelerated gradient descent or variance reduced methods have already been adapted to certain Riemannian settings. However, some of the most popular of these optimization toolsnamely ADAM, ADAGRAD and the more recent AMSGRADremain to be generalized to Riemannian manifolds. We discuss the difficulty of generalizing such adaptive schemes to the most agnostic Riemannian setting, and then provide algorithms and convergence proofs for geodesically convex objectives in the particular case of a product of Riemannian manifolds, in which adaptivity is implemented across manifolds in the cartesian product. Our generalization is tight in the sense that choosing the Euclidean space as Riemannian manifold yields the same algorithms and regret bounds as those that were already known for the standard algorithms. Experimentally, we show faster convergence and to a lower train loss value for Riemannian adaptive methods over their corresponding baselines on the realistic task of embedding the WordNet taxonomy in the Poincaré ball.

1. INTRODUCTION:

Developing powerful stochastic gradient-based optimization algorithms is of major importance for a variety of application domains. In particular, for computational efficiency, it is common to opt for a first order method, when the number of parameters to be optimized is great enough. Such cases have recently become ubiquitous in engineering and computational sciences, from the optimization of deep neural networks to learning embeddings over large vocabularies. This new need resulted in the development of empirically very successful first order methods such as ADAGRAD (Duchi et al., 2011) , ADADELTA (Zeiler, 2012) , ADAM (Kingma & Ba, 2015) or its recent update AMSGRAD (Reddi et al., 2018) .

Note that these algorithms are designed to optimize parameters living in a Euclidean space R n , which has often been considered as the default geometry to be used for continuous variables. However, a recent line of work has been concerned with the optimization of parameters lying on a Riemannian manifold, a more general setting allowing non-Euclidean geometries. This family of algorithms has already found numerous applications, including for instance solving Lyapunov equations (Vandereycken & Vandewalle, 2010) , matrix factorization (Tan et al., 2014) , geometric programming (Sra & Hosseini, 2015) , dictionary learning (Cherian & Sra, 2017) or hyperbolic taxonomy embedding (Nickel & Kiela, 2017; Ganea et al., 2018a; De Sa et al., 2018; Nickel & Kiela, 2018) .

A few first order stochastic methods have already been generalized to this setting (see section 6), the seminal one being Riemannian stochastic gradient descent (RSGD) (Bonnabel, 2013) , along with new methods for their convergence analysis in the geodesically convex case (Zhang & Sra, 2016) . However, the above mentioned empirically successful adaptive methods, together with their convergence analysis, remain to find their respective Riemannian counterparts. Indeed, the adaptivity of these algorithms can be thought of as assigning one learning rate per coordinate of the parameter vector. However, on a Riemannian manifold, one is generally not given an intrinsic coordinate system, rendering meaningless the notions sparsity or coordinate-wise update.

Our contributions. In this work we (i) explain why generalizing these adaptive schemes to the most agnostic Riemannian setting in an intrinsic manner is compromised, and (ii) propose generalizations of the algorithms together with their convergence analysis in the particular case of a product of manifolds where each manifold represents one "coordinate" of the adaptive scheme. Finally, we (iii) empirically support our claims on the realistic task of hyperbolic taxonomy embedding.

Our initial motivation. The particular application that motivated us in developing Riemannian versions of ADAGRAD and ADAM was the learning of symbolic embeddings in non-Euclidean spaces. As an example, the GloVe algorithm (Pennington et al., 2014) an unsupervised method for learning Euclidean word embeddings capturing semantic/syntactic relationshipsbenefits significantly from optimizing with ADAGRAD compared to using SGD, presumably because different words are sampled at different frequencies. Hence the absence of Riemannian adaptive algorithms could constitute a significant obstacle to the development of competitive optimization-based Riemannian embedding methods. In particular, we believe that the recent rise of embedding methods in hyperbolic spaces could benefit from such developments (Nickel & Kiela, 2017; 2018; Ganea et al., 2018a; b; De Sa et al., 2018; Vinh et al., 2018) .

2. PRELIMINARIES AND NOTATIONS:



2.1. DIFFERENTIAL GEOMETRY:

We recall here some elementary notions of differential geometry. For more in-depth expositions, we refer the interested reader to Spivak (1979) and Robbin & Salamon (2011) .

Manifold, tangent space, Riemannian metric. A manifold M of dimension n is a space that can locally be approximated by a Euclidean space R n , and which can be understood as a generalization to higher dimensions of the notion of surface. For instance, the sphere S := {x ∈ R n | x 2 = 1} embedded in R n is an (n -1)-dimensional manifold. In particular, R n is a very simple n-dimensional manifold, with zero curvature. At each point x ∈ M, one can define the tangent space T x M, which is an n-dimensional vector space and can be seen as a first order local approximation of M around x.

A Riemannian metric ρ is a collection ρ := (ρ x ) x∈M of inner-products ρ x (•, •) : T x M × T x M → R on T x M

, varying smoothly with x. It defines the geometry locally on M. For x ∈ M and u ∈ T x M, we also write u x := ρ x (u, u). A Riemannian manifold is a pair (M, ρ).

Induced distance function, geodesics. Notice how a choice of a Riemannian metric ρ induces a natural global distance function on M. Indeed, for x, y ∈ M, we can set d(x, y) to be equal to the infimum of the lengths of smooth paths between x and y in M, where the length (c) of a path c is given by integrating the size of its speed vector ċ(t) ∈ T c(t) M, in the corresponding tangent space:

(c) := 1 t=0 ċ(t) c(t) dt. A geodesic γ in (M, ρ) is a smooth curve γ : (a, b

) → M which locally has minimal length. In particular, a shortest path between two points in M is a geodesic.

Exponential and logarithmic maps. Under some assumptions, one can define at point x ∈ M the exponential map exp x : T x M → M. Intuitively, this map folds the tangent space on the manifold. Locally, if v ∈ T x M, then for small t, exp x (tv) tells us how to move in M as to take a shortest path from x with initial direction v. In R n , exp x (v) = x + v. In some cases, one can also define the logarithmic map log x : M → T x M as the inverse of exp x .

Parallel transport. In the Euclidean space, if one wants to transport a vector v from x to y, one simply translates v along the straight-line from x to y. In a Riemannian manifold, the resulting transported vector will depend on which path was taken from x to y. The parallel transport P x (v; w) of a vector v from a point x in the direction w and in a unit time, gives a canonical way to transport v with zero acceleration along a geodesic starting from x, with initial velocity w.

2.2. RIEMANNIAN OPTIMIZATION:

Consider performing an SGD update of the form

EQUATION

where g t denotes the gradient of objective f t1 and α > 0 is the step-size. In a Riemannian manifold (M, ρ), for smooth f : M → R, Bonnabel (2013) defines Riemannian SGD by the following update:

EQUATION

where g t ∈ T xt M denotes the Riemannian gradient of f t at x t . Note that when (M, ρ) is the Euclidean space (R n , I n ), these two match, since we then have exp x (v) = x + v.

Intuitively, applying the exponential map enables to perform an update along the shortest path in the relevant direction in unit time, while remaining in the manifold.

In practice, when exp x (v) is not known in closed-form, it is common to replace it by a retraction map R x (v), most often chosen as R x (v) = x + v, which is a first-order approximation of exp x (v).

2.3. AMSGRAD, ADAM, ADAGRAD:

Let's recall here the main algorithms that we are taking interest in.

ADAGRAD. Introduced by Duchi et al. (2011) , the standard form of its update step is defined as2 

EQUATION

Such updates rescaled coordinate-wise depending on the size of past gradients can yield huge improvements when gradients are sparse, or in deep networks where the size of a good update may depend on the layer. However, the accumulation of all past gradients can also slow down learning.

ADAM. Proposed by Kingma & Ba (2015) , the ADAM update rule is given by

EQUATION

where m t = β 1 m t-1 + (1-β 1 )g t can be seen as a momentum term and

v i t = β 2 v i t-1 + (1-β 2 )(g i t )

2 is an adaptivity term. When β 1 = 0, one essentially recovers the unpublished method RMSPROP (Tieleman & Hinton, 2012) , the only difference to ADAGRAD being that the sum is replaced by an exponential moving average, hence past gradients are forgotten over time in the adaptivity term v t . This circumvents the issue of ADAGRAD that learning could stop too early when the sum of accumulated squared gradients is too significant. Let us also mention that the momentum term introduced by ADAM for β 1 = 0 has been observed to often yield huge empirical improvements.

AMSGRAD. More recently, Reddi et al. ( 2018) identified a mistake in the convergence proof of ADAM. To fix it, they proposed to either modify the ADAM algorithm with3 

EQUATION

which they coin AMSGRAD, or to choose an increasing schedule for β 2 , making it time dependent, which they call ADAMNC (for non-constant).

3. ADAPTIVE SCHEMES IN RIEMANNIAN MANIFOLDS:



3.1. THE DIFFICULTY OF DESIGNING ADAPTIVE SCHEMES IN THE GENERAL SETTING:

Intrinsic updates. It is easily understandable that writing any coordinate-wise update requires the choice of a coordinate system. However, on a Riemannian manifold (M, ρ), one is generally not provided with a canonical coordinate system. The formalism only allows to work with certain local coordinate systems, also called charts, and several different charts can be defined around each point x ∈ M. One usually says that a quantity defined using a chart is intrinsic to M if its definition does not depend on which chart was used. For instance, it is known that the Riemannian gradient gradf of a smooth function f : M → R can be defined intrinsically to (M, ρ), but its Hessian is only intrinsically defined at critical points4 . It is easily seen that the RSGD update of Eq. ( 2) is intrinsic, since it only involves exp and grad, which are objects intrinsic to (M, ρ). However, it is unclear whether it is possible at all to express either of Eqs. (3, 4, 5) in a coordinate-free or intrinsic manner.

A tempting solution. Note that since an update is defined in a tangent space, one could be tempted to fix a canonical coordinate system e := (e (1) , ..., e (n) ) in the tangent space T x0 M R d at the initialization x 0 ∈ M, and parallel-transport e along the optimization trajectory, adapting Eq. ( 3) to:

EQUATION

)

where and (•) 2 denote coordinate-wise division and square respectively, these operations being taken relatively to coordinate system e t . In the Euclidean space, parallel transport between two points x and y does not depend on the path it is taken along because the space has no curvature. However, in a general Riemannian manifold, not only does it depend on the chosen path but curvature will also give to parallel transport a rotational component5 , which will almost surely break the sparsity of the gradients and hence the benefit of adaptivity. Besides, the interpretation of adaptivity as optimizing different features (i.e. gradient coordinates) at different speeds is also completely lost here, since the coordinate system used to represent gradients depends on the optimization path. Finally, note that the techniques we used to prove our theorems would not apply to updates defined in the vein of Eq. ( 6).

3.2. ADAPTIVITY IS POSSIBLE ACROSS MANIFOLDS IN A PRODUCT:

From now on, we assume additional structure on (M, ρ), namely that it is the cartesian product of n Riemannian manifolds (M i , ρ i ), where ρ is the induced product metric:

EQUATION

)

Product notations. The induced distance function d on M is known to be given by d(x, y

) 2 = n i=1 d i (x i , y i ) 2

, where d i is the distance in M i . The tangent space at x = (x 1 , ..., x n ) is given by

T x M = T x 1 M 1 ⊕ • • • ⊕ T x n M n , and the Riemannian gradient g of a smooth function f : M → R at point x ∈ M is simply the concatenation g = ((g 1 ) T • • • (g n ) T ) T of the Riemannian gradients g i ∈ T x i M i of each partial map f i : y ∈ M i → f (x 1 , ..., x i-1 , y, x i+1 , ..., x n ).

Similarly, the exponential, log map and the parallel transport in M are the concatenations of those in each M i .

Riemannian ADAGRAD. We just saw in the above discussion that designing meaningful adaptive schemesintuitively corresponding to one learning rate per coordinatein a general Riemannian manifold was difficult, because of the absence of intrinsic coordinates. Here, we propose to see each component x i ∈ M i of x as a "coordinate", yielding a simple adaptation of Eq. (3) as

EQUATION

)

On the adaptivity term. Note that we take (squared) Riemannian norms

g i t 2 x i t = ρ i x i t (g i t , g i t )

in the adaptivity term rescaling the gradient. In the Euclidean setting, this quantity is simply a scalar (g i t ) 2 , which is related to the size of an SGD update of the i th coordinate, rescaled by the learning rate (see Eq. ( 1)):

|g i t | = |x i t+1 -x i t |/α.

By analogy, note that the size of an RSGD update in M i (see Eq. ( 2)) is given by d

i (x i t+1 , x i t ) = d i (exp i x i t (-αg i t ), x i t ) = -αg i t x i

t , hence we also recover g i t x i t = d i (x i t+1 , x i t )/α, which indeed suggests replacing the scalar (g i t ) 2 by g i t 2

x i t when transforming a coordinate-wise adaptive scheme into a manifold-wise adaptive one.

4. RAMSGRAD, RADAMNC: CONVERGENCE GUARANTEES:

In section 2, we briefly presented ADAGRAD, ADAM and AMSGRAD. Intuitively, ADAM can be described as a combination of ADAGRAD with a momentum (of parameter β 1 ), with the slight modification that the sum of the past squared-gradients is replaced with an exponential moving average, for an exponent β 2 . Let's also recall that AMSGRAD implements a slight modification of ADAM, allowing to correct its convergence proof. Finally, ADAMNC is simply ADAM, but with a particular non-constant schedule for β 1 and β 2 . On the other hand, what is interesting to note is that the schedule initially proposed by Reddi et al. (2018) for β 2 in ADAMNC, namely β 2t := 1 -1/t, lets v t recover the sum of squared-gradients of ADAGRAD. Hence, ADAMNC without momentum (i.e. β 1t = 0) yields ADAGRAD.

Assumptions and notations. For 1 ≤ i ≤ n, we assume (M i , ρ i ) is a geodesically complete Riemannian manifold with sectional curvature lower bounded by κ i ≤ 0. As written in Eq. ( 7), let (M, ρ) be the product manifold of the (M i , ρ i )'s. For each i, let X i ⊂ M i be a compact, geodesically convex set and define X := X 1 × • • • × X n , the set of feasible parameters. Define Π Xi : M i → X i to be the projection operator, i.e. Π Xi (x) is the unique y ∈ X i minimizing d i (y, x). Denote by P i , exp i and log i the parallel transport, exponential and log maps in (M i , ρ i ), respectively. For f : M → R, if g = gradf (x) for x ∈ M, denote by x i ∈ M i and by g i ∈ T x i M i the corresponding components of x and g. In the sequel, let (f t ) be a family of differentiable, geodesically convex functions from M to R. Assume that each X i ⊂ M i has a diameter bounded by D ∞ and that for all

1 ≤ i ≤ n, t ∈ [T ] and x ∈ X , (gradf t (x)) i xi ≤ G ∞ .

Finally, our convergence guarantees will bound the regret, defined at the end of T rounds as

R T = T t=1 f t (x t ) -min x∈X T j=1 f j (x), so that R T = o(T ).

Finally, ϕ i:

x i →y i denotes any isometry from T x i M i to T y i M i , for x i , y i ∈ M i . Following the discussion in section 3.2 and especially Eq. ( 8), we present Riemannian AMSGRAD in Figure 1a . For comparison, we show next to it the standard AMSGRAD algorithm in Figure 1b .

Require: Write

x 1 ∈ X , {α t } T t=1 , {β 1t } T t=1 , β 2 Set m 0 = 0, τ 0 = 0, v 0 = 0 and v0 = 0 for t = 1 to T do (for all 1 ≤ i ≤ n) g t = gradf t (x t ) m i t = β 1t τ i t-1 + (1 -β 1t )g i t v i t = β 2 v i t-1 + (1 -β 2 ) g i t 2 x i t vi t = max{v i t-1 , v i t } x i t+1 = Π Xi (exp i x i t (-α t m i t / vi t )) τ i t = ϕ i x i t →x i t+1 (m i t ) end for (a) RAMSGRAD in M1 × • • • × Mn. Require: x 1 ∈ X , {α t } T t=1 , {β 1t } T t=1 , β 2 Set m 0 = 0, v 0 = 0 and v0 = 0 for t = 1 to T do (for all 1 ≤ i ≤ n) g t = gradf t (x t ) m i t = β 1t m i t-1 + (1 -β 1t )g i t v i t = β 2 v i t-1 + (1 -β 2 )(g i t ) 2 vi t = max{v i t-1 , v i t } x i t+1 = Π Xi (x i t -α t m i t / vi t ) end for (b) AMSGRAD in R n .

h i t := -α t m i t / vi t .

As a natural choice for ϕ i , one could first parallel-transport6 m i t from x i t to xi t+1 := exp x i t (h i t ) using P i (• ; h i t ), and then from xi t+1 to x i t+1 along a minimizing geodesic. As can be seen, if (M i , ρ i ) = R for all i, RAMSGRAD and AMSGRAD coincide: we then have

κ i = 0, d i (x i , y i ) = |x i -y i |, ϕ i = Id, exp i x i (v i ) = x i + v i , M 1 × • • • × M n = R n , g i t 2 x i t = (g i t ) 2 ∈ R.

From these algorithms, RADAM and ADAM are obtained simply by removing the max operations, i.e. replacing vi t = max{v i t-1 , v i t } with vi t = v i t . The convergence guarantee that we obtain for RAMSGRAD is presented in Theorem 1, where the quantity ζ is defined by Zhang & Sra (2016) as

EQUATION

For comparison, we also show the convergence guarantee of the original AMSGRAD in appendix C. Note that when (M i , ρ i ) = R for all i, convergence guarantees between RAMSGRAD and AMSGRAD coincide as well. Indeed, the curvature dependent quantity (ζ(κ i , D ∞ ) + 1)/2 in the Riemannian case then becomes equal to 1, recovering the convergence theorem of AMSGRAD. It is also interesting to understand at which speed does the regret bound worsen when the curvature is small but non-zero: by a multiplicative factor of approximately 1 + D ∞ |κ|/6 (see Eq.( 9)). Similar remarks hold for RADAMNC, whose convergence guarantee is shown in Theorem 2. Finally, notice that β 1 := 0 in Theorem 2 yields a convergence proof for RADAGRAD, whose update rule we defined in Eq. ( 8).

Theorem 1 (Convergence of RAMSGRAD). Let (x t ) and (v t ) be the sequences obtained from Algorithm 1a,

α t = α/ √ t, β 1 = β 11 , β 1t ≤ β 1 for all t ∈ [T ] and γ = β 1 / √ β 2 < 1.

We then have:

EQUATION

Proof. See appendix A.

Theorem 2 (Convergence of RADAMNC). Let (x t ) and (v t ) be the sequences obtained from RADAMNC,

α t = α/ √ t, β 1 = β 11 , β 1t = β 1 λ t-1 , λ < 1, β 2t = 1 -1/t.

We then have:

R T ≤ n i=1 D ∞ 2α(1 -β 1 ) + α(ζ(κ i , D ∞ ) + 1) (1 -β 1 ) 3 T t=1 g i t 2 x i t + β 1 D 2 ∞ G ∞ n 2α(1 -β 1 )(1 -λ) 2 . (11) Proof. See appendix B.

The role of convexity. Note how the notion of convexity in Theorem 5 got replaced by the notion of geodesic convexity in Theorem 1. Let us compare the two definitions: the differentiable functions f : R n → R and g : M → R are respectively convex and geodesically convex if for all x, y ∈ R n , u, v ∈ M:

EQUATION

)

But how does this come at play in the proofs? Regret bounds for convex objectives are usually obtained by bounding T t=1 f t (x t ) -f t (x * ) using Eq. ( 12) for any x * ∈ X , which boils down to bounding each g t , x t -x * . In the Riemannian case, this term becomes ρ xt (g t , -log xt (x * )).

The role of the cosine law. How does one obtain a bound on g t , x t -x * ? For simplicity, let us look at the particular case of an SGD update, from Eq. (1). Using a cosine law, this yields

EQUATION

)

One now has two terms to bound: (i) when summing over t, the first one simplifies as a telescopic summation; (ii) the second term T t=1 α t g t 2 will require a well chosen decreasing schedule for α. In Riemannian manifolds, this step is generalized using the analogue lemma 6 introduced by Zhang & Sra (2016) , valid in all Alexandrov spaces, which includes our setting of geodesically convex subsets of Riemannian manifolds with lower bounded sectional curvature. The curvature dependent quantity ζ of Eq. ( 10) appears from this lemma, letting us bound ρ i

x i t (g i t , -log i x i t (x i * )).

The benefit of adaptivity. Let us also mention that the above bounds significantly improve for sparse (per-manifold) gradients. In practice, this could happen for instance for algorithms embedding each word i (or node of a graph) in a manifold M i and when just a few words are updated at a time.

On the choice of ϕ i . The fact that our convergence theorems (see lemma 3) do not require specifying ϕ i suggests that the regret bounds could be improved by exploiting momentum/acceleration in the proofs for a particular ϕ i . Note that this remark also applies to AMSGRAD (Reddi et al., 2018) .

5. EXPERIMENTS:

We empirically assess the quality of the proposed algorithms: RADAM, RAMSGRAD and RADAGRAD compared to the non-adaptive RSGD method (Eq. 2). For this, we follow (Nickel & Kiela, 2017) and embed the transitive closure of the WordNet noun hierarchy (Miller et al., 1990) in the n-dimensional Poincaré model D n of hyperbolic geometry which is well-known to be better suited to embed tree-like graphs than the Euclidean space (Gromov, 1987; De Sa et al., 2018) . In this case, each word is embedded in the same space of constant curvature -1, thus M i = D n , ∀i. Note that it would also be interesting to explore the benefit of our optimization tools for algorithms proposed in (Nickel & Kiela, 2018; De Sa et al., 2018; Ganea et al., 2018a) . The choice of the Poincaré model is justified by the access to closed form expressions for all the quantities used in Alg. 1a:

• Metric tensor:

ρ x = λ 2 x I n , ∀x ∈ D n , where λ x = 2 1-x 2 is the conformal factor. • Riemannian gradients are rescaled Euclidean gradients: gradf (x) = (1/λ 2 x )∇ E f (x).

• Distance function and geodesics, (Nickel & Kiela, 2017; Ungar, 2008; Ganea et al., 2018b) .

• Exponential and logarithmic maps:

exp x (v) = x ⊕ tanh λx v 2 v v

, where ⊕ is the generalized Mobius addition (Ungar, 2008; Ganea et al., 2018b) .

• Parallel transport along the unique geodesic from x to y: P x→y (v) = λx λy • gyr[y, -x]v. This formula was derived from (Ungar, 2008; Ganea et al., 2018b) , gyr being given in closed form in (Ungar, 2008, Eq. (1.27)).

Dataset & Model. The transitive closure of the WordNet taxonomy graph consists of 82,115 nouns and 743,241 hypernymy Is-A relations (directed edges E). These words are embedded in D n such that the distance between words connected by an edge is minimized, while being maximized otherwise. We minimize the same loss function as (Nickel & Kiela, 2017) which is similar with log-likelihood, but approximating the partition function using sampling of negative word pairs (non-edges), fixed to 10 in our case. Note that this loss does not use the direction of the edges in the graph7 

L(θ) = (u,v)∈E e -d D (u,v) u ∈N (v) e -d D (u ,v) (14)

Metrics. We report both the loss value and the mean average precision (MAP) (Nickel & Kiela, 2017) : for each directed edge (u, v), we rank its distance d(u, v) among the full set of ground truth negative examples {d(u , v)|(u , v) / ∈ E}. We use the same two settings as (Nickel & Kiela, 2017) , namely: reconstruction (measuring representation capacity) and link prediction (measuring generalization). For link prediction we sample a validation set of 2% edges from the set of transitive closure edges that contain no leaf node or root. We only focused on 5-dimensional hyperbolic spaces.

Training details. For all methods we use the same "burn-in phase" described in (Nickel & Kiela, 2017) for 20 epochs, with a fixed learning rate of 0.03 and using RSGD with retraction as explained in Sec. 2.2. Solely during this phase, we sampled negative words based on their graph degree raised at power 0.75. This strategy improves all metrics. After that, when different optimization methods start, we sample negatives uniformly. We use n = 5, following Nickel & Kiela (2017) .

Optimization methods. Experimentally we obtained slightly better results for RADAM over RAMS-GRAD, so we will mostly report the former. Moreover, we unexpectedly observed convergence to lower loss values when replacing the true exponential map with its first order approximationi.e. the retraction R x (v) = x + vin both RSGD and in our adaptive methods from Alg. 1a. One possible explanation is that retraction methods need fewer steps and smaller gradients to "escape" points sub-optimally collapsed on the ball border of D n compared to fully Riemannian methods. As a consequence, we report "retraction"-based methods in a separate setting as they are not directly comparable to their fully Riemannian analogues. Results. We show in Figures 2 and 3 results for "exponential" based and "retraction" based methods. We ran all our methods with different learning rates from the set {0.001, 0.003, 0.01, 0.03, 0.1, 0.3, 1.0, 3.0}. For the RSGD baseline we show in orange the best learning rate setting, but we also show the previous lower (slower convergence, in blue) and the next higher (faster overfitting, in green) learning rates. For RADAM and RAMSGRAD we only show the best settings. We always use β 1 = 0.9 and β 2 = 0.999 for these methods as these achieved the lowest training loss. RADAGRAD was consistently worse, so we do not report it. As can be seen, RADAM always achieves the lowest training loss. On the MAP metric for both reconstruction and link prediction settings, the same method also outperforms all the other methods for the full Riemannian setting (i.e. Tab. 2). Interestingly, in the "retraction" setting, RADAM reaches the lowest training loss value and is on par with RSGD on the MAP evaluation for both reconstruction and link prediction settings. However, RAMSGRAD is faster to converge in terms of MAP for the link prediction task, suggesting that this method has a better generalization capability.

6. RELATED WORK:

After Riemannian SGD was introduced by Bonnabel ( 2013), a pletora of other first order Riemannian methods arose, such as Riemannian SVRG (Zhang et al., 2016) , Riemannian Stein variational gradient descent (Liu & Zhu, 2017) , Riemannian accelerated gradient descent (Liu et al., 2017; Zhang & Sra, 2018) or averaged RSGD (Tripuraneni et al., 2018) , along with new methods for their convergence analysis in the geodesically convex case (Zhang & Sra, 2016) . Stochastic gradient Langevin dynamics was generalized as well, to improve optimization on the probability simplex (Patterson & Teh, 2013) .

Let us also mention that Roy et al. (2018) proposed Riemannian counterparts of SGD with momentum and RMSprop, suggesting to transport the momentum term using parallel translation, which is an idea that we preserved. However (i) no convergence guarantee is provided and (ii) their algorithm performs the coordinate-wise adaptive operations (squaring and division) w.r.t. a coordinate system in the tangent space, which, as we discussed in section 3.1, compromises the possibility of obtaining convergence guarantees. Finally, another version of Riemannian ADAM for the Grassmann manifold G(1, n) was previously introduced by Cho & Lee (2017) , also transporting the momentum term using parallel translation. However, their algorithm completely removes the adaptive component, since the adaptivity term v t becomes a scalar. No adaptivity across manifolds is discussed, which is the main point of our discussion. Moreover, no convergence analysis is provided either.

7. CONCLUSION:

Driven by recent work in learning non-Euclidean embeddings for symbolic data, we propose to generalize popular adaptive optimization tools (e.g. ADAM, AMSGRAD, ADAGRAD) to Cartesian products of Riemannian manifolds in a principled and intrinsic manner. We derive convergence rates that are similar to the Euclidean corresponding models. Experimentally we show that our methods outperform popular non-adaptive methods such as RSGD on the realistic task of hyperbolic word taxonomy embedding.

A PROOF OF THEOREM 1:

Proof. Denote by xi t+1 := exp i x i t (-α t m i t / vi t ) and consider the geodesic triangle defined by xi t+1 ,

x i t and x i * . Now let a = d i (x i t+1 , x i * ), b = d i (x i t+1 , x i t ), c = d i (x i t , x i * ) and A = ∠x i t+1 x i t x i * .

Combining the following formula8 :

EQUATION

with the following inequality (given by lemma 6):

EQUATION

yields

EQUATION

where the use the notation •, • x i for ρ i x i (•, •) when it is clear which metric is used. By definition of Π Xi , we can safely replace xi t+1 by x i t+1 in the above inequality. Plugging

m i t = β 1t ϕ i x i t-1 →x i t (m i t-1 ) + (1 -β 1t )g i t into

Eq. ( 17) gives us

EQUATION

Now applying Cauchy-Schwarz' and Young's inequalities to the last term yields

EQUATION

From the geodesic convexity of f t for 1 ≤ t ≤ T , we have

EQUATION

Published as a conference paper at ICLR 2019 Let's look at the first term. Using β 1t ≤ β 1 and with a change of indices, we have

EQUATION

where the last equality comes from a standard telescopic summation. We now need the following lemma.

Lemma 3.

T t=1 α t vi t m i t 2 x i t ≤ α √ 1 + log T (1 -β 1 )(1 -γ) √ 1 -β 2 T t=1 g i t 2 x i t (25)

Proof. Let's start by separating the last term, and removing the hat on v.

EQUATION

Let's now have a closer look at the last term. We can reformulate m i T as:

EQUATION

Applying lemma 7, we get

EQUATION

)

Since ϕ i is an isometry, we always have

EQUATION

)

Using that

EQUATION

Finally, (1 -β 1j ) ≤ 1 and

EQUATION

Let's now look at v i T . It is given by

v i T = (1 -β 2 ) T j=1 β T -j 2 g i j 2 x i j (33)

Combining Eq. ( 32) and Eq. ( 33) allows us to bound the last term of Eq. ( 26):

EQUATION

)

With this inequality, we can now bound every term of Eq. ( 26):

EQUATION

Putting together Eqs. ( 19), ( 20), (24) and lemma 3 lets us bound the regret:

EQUATION

where we used the facts that d → ζ(κ, d) is an increasing function, and that α t / vi t ≤ α t-1 / vi t-1 , which enables us to bound both the second and third terms of the right-hand side of Eq. ( 19) using lemma 3.

Remark. Let us notice that similarly as for AMSGRAD, RAMSGRAD also has a regret bounded by O(G ∞ √ T ). This is easy to see from the proof of lemma 4. Hence the actual upper-bound on the regret is a minimum between the one in O(G ∞

√:

T ) and the one of Theorem 1.

B PROOF OF THEOREM 2:

Proof. Similarly as for the proof of Theorem 1 (and with same notations), we obtain the inequality:

EQUATION

From the geodesic convexity of f t for 1 ≤ t ≤ T , we have

EQUATION

With the same techniques as before, we obtain the same bound on the first term:

EQUATION

However, for the other terms, we now need a new lemma:

EQUATION

Proof. Let's start by separating the last term.

EQUATION

Similarly as before, we have

EQUATION

Let's now look at v i T . Since β 2t = 1 -1/t, it is simply given by

EQUATION

Combining these yields:

EQUATION

)

Published as a conference paper at ICLR 2019 Using this inequality at all time-steps gives

EQUATION

where the last inequality comes from lemma 8.

Putting everything together, we finally obtain

EQUATION

where we used that for this choice of α t and β 2t , we have α t / v i t ≤ α t-1 / v i t-1 . Finally,

EQUATION

)

This combined with Eq. ( 53) yields the final result.

Remark. Notice the appearance of a factor n/α in the last term of the last equation. This term is missing in corollaries 1 and 2 of Reddi et al. (2018) , which is a mistake. However, this dependence in n is not too harmful here, since this term does not depend on T .

C AMSGRAD:

Theorem 5 (Convergence of AMSGRAD). Let (f t ) be a family of differentiable, convex functions from R n to R. Let (x t ) and (v t ) be the sequences obtained from Algorithm 1b, α t = α/ √ t, β 1 = β 11 , β 1t ≤ β 1 for all t ∈ [T ] and γ = β 1 / √ β 2 < 1. Assume that each X i ⊂ R has a diameter bounded by D ∞ and that for all 1 ≤ i ≤ n, t ∈ [T ] and x ∈ X , (gradf t (x)) ∞ ≤ G ∞ . For (x t ) generated using the AMSGRAD (Algorithm 1b), we have the following bound on the regret

R T ≤ √ T D 2 ∞ 2α(1 -β 1 ) n i=1 vi T + D 2 ∞ 2(1 -β 1 ) n i=1 T t=1 β 1t vi t α t + α √ 1 + log T (1 -β 1 ) 2 (1 -γ) √ 1 -β 2 n i=1 T t=1 (g i t ) 2 (62)

Proof. See Theorem 4 of Reddi et al. (2018) .

D USEFUL LEMMAS:

The following lemma is a user-friendly inequality developed by Zhang & Sra (2016) 

Proof. See section 3.1, lemma 6 of Zhang & Sra (2016) .

Lemma 7 (An analogue of Cauchy-Schwarz). For all p, k ∈ N * , u 1 , ..., u k ∈ R p , a 1 , ..., a k ∈ R + , we have

EQUATION

)

Proof. The proof consists in applying Cauchy-Schwarz' inequality two times:

EQUATION

≤ i,j

√ a i a j √ a i u i 2 √ a j u j 2 (67)

EQUATION

)

Finally, this last lemma is used by Reddi et al. (2018) in their convergence proof for ADAMNC. We need it too, in an analogue lemma. Lemma 8 ( (Auer et al., 2002) ). For any non-negative real numbers y 1 , ..., y t , the following holds: 

:

to be interpreted as the objective with the same parameters, evaluated at the minibatch taken at time t.

a small ε = 10 -8 is often added in the square-root for numerical stability, omitted here for simplicity.

with mt and vt defined by the same equations as in ADAM (see above paragraph).

because the Poisson bracket cancels at critical points(Milnor, 1963, part 1.2).

The rotational component of parallel transport inherited from curvature is called the holonomy.

The idea of parallel-transporting mt from Tx t M to Tx t+1 M previously appeared inCho & Lee (2017).

In a pair (u, v), u denotes the parent, i.e. u entails vparameters θ are coordinates of all u, v.

Note that since each Xi is geodesically convex, logarithms are well-defined.

Figures and Tables:

Figure 1: Comparison of the Riemannian and Euclidean versions of AMSGRAD.

Figure 2: Results for methods doing updates with the exponential map. From left to right we report: training loss, MAP on the train set, MAP on the validation set.

Figure 3: Results for methods doing updates with the retraction. From left to right we report: training loss, MAP on the train set, MAP on the validation set.

in order to prove convergence of gradient-based optimization algorithms, for geodesically convex functions, in Alexandrov spaces. Lemma 6 (Cosine inequality in Alexandrov spaces). If a, b, c, are the sides (i.e., side lengths) of a geodesic triangle in an Alexandrov space with curvature lower bounded by κ, and A is the angle between sides b and c, then a 2 ≤ |κ|c tanh( |κ|c) b 2 + c 2 -2bc cos(A).

Peer review (iclr2019):
 I have enjoyed reading this paper. The paper is accessible in most cases and provides a novel optimization technique. Having said this, I have a few concerns here, - I am not sure why the notion of product manifolds is required in developing the technique. To me, all the arguments follow without that. Even if the authors are only interested in manifolds that can be constructed in a product manner (say R^n from R), the development can be done without explicitly going along that path. Nevertheless I may have missed something so please elaborate why product manifolds. I have to add that in many cases, the underlying Riemannian geometry cannot be derived as a product space. For example, the SPD manifold cannot be constructed as a product space of lower dimensional geometries. - I have a feeling that finding the operator .Pi in many interesting cases is not easy. Given the dependency of the developments on this operator, I am wondering if the method can be used to address problems on other manifolds such as SPD, Grassmannian or Stiefel. Please provide the form of this operator for the aforementioned manifolds and comment on how the method can be used if such an operator is not at our disposal. - While I appreciate the experiments done in the paper, common tests (e.g., Frechet means) are not presented in the paper (see my comment below as well). - last but not least, the authors missed the work of Roy et. al., "Geometry Aware Constrained Optimization Techniques for Deep Learning", CVPR*18 where RSGC with momentum and Riemannian version of RMSProp are developed. This reference should be considered and compared. Aside from the above, please - define v and .hat{v} for Eq.(5) - provide a reference for the claim at l3-p4 (claim about the gradient and Hessian) - maybe you want to mention that .alpha -> 0 for |g_t^i| at the bottom of p4 - what does [.] mean in the last step of the algorithm presented in p7 - what is the dimensionality of the Hn in the experiments