A Riemannian gradient descent method
for optimization on the indefinite Stiefel manifold
October 29, 2024
We consider the optimization problem with a generally quadratic matrix constraint of the form \(X^TAX = J\), where \(A\) is a given nonsingular, symmetric \(n\times n\) matrix and \(J\) is a given \(k\times k\) symmetric matrix, with \(k\leq n\), satisfying \(J^2 = I_k\). Since the feasible set constitutes a differentiable manifold, called the indefinite Stiefel manifold, we approach this problem within the framework of Riemannian optimization. Namely, we first equip the manifold with a Riemannian metric and construct the associated geometric structure, then propose a retraction based on the Cayley transform, and finally suggest a Riemannian gradient descent method using the attained materials, whose global convergence is guaranteed. Our results not only cover the known cases, the orthogonal and generalized Stiefel manifolds, but also provide a Riemannian optimization solution for other constrained problems which has not been investigated. As applications, we consider, via trace minimization, several eigenvalue problems of symmetric positive definite matrix pencils, including the linear response eigenvalue problem, and a matrix least square problem, a general framework for the Procrustes problem and constrained matrix equations. The presented numerical results justify the theoretical findings.
Indefinite Stiefel manifold, Riemannian gradient descent, tractable metric, Cayley retraction, trace minimization, eigenvalue problem, matrix least square
65K05, 70G45, 90C48, 15A18
Optimization of smooth functions of variable \(X\in{\mathbb{R}^{n\times k}}\) with \(k\leq n\) under the condition \[\label{eq:gen95constraint} X^TAX = B,\tag{1}\] in which \(A\in{\mathbb{R}^{n\times n}}, B \in {\mathbb{R}^{k\times k}}\), possibly with some conditions imposed, is popular thanks to its wide range of applications. In many circumstances when the feasible set, \[\mathcal{F}:= \{X\in{\mathbb{R}^{n\times k}}\;:\;X^TAX = B\},\] constitutes a differentiable manifold, various algorithms were developed by extending popular methods for unconstrained optimization in the Euclidean space to the Riemannian manifold once necessary geometric tools such as the tangent space, metric, projection, and retraction are efficiently realized. Such an approach is generally referred to as Riemannian optimization.
The most well known situation is when \(A = I_n\), the \(n\times n\) identity matrix, and \(B=I_k\), where \(\mathcal{F}\) is named as the (orthogonal) Stiefel manifold. Numerous practical issues can be (re)formulated as an optimization problem on the Stiefel manifold, i.e., with the orthogonality constraint. For instance, in dimensionality reduction of data, principal component analysis (PCA) requires solving \[\label{eq:PCAProb} \max_{X^T X = I_k}\mathrm{tr}\left(X^T\bar{S}^T\bar{S}X\right),\tag{2}\] where \(\bar{S}\) is the centered data set, i.e., each of its columns is of the form \(\bar{s}_j = s_j - \mu \in \mathbb{R}^n\) with \(\mu = \frac{1}{m}\sum_{j=1}^ms_j\). Ky-Fan’s theorem is a similar situation in numerical linear algebra which states that given a symmetric matrix \(M\) whose eigenvalues are denoted by \(\lambda_1 \leq \ldots \leq \lambda_n\), we have \[\label{eq:KyFan} \min_{X^TX = I_k}\mathrm{tr}\left(X^TMX\right) = \sum_{j=1}^k\lambda_j,for eachk = 1,\ldots,n.\tag{3}\] Riemannian optimization is among the methods of choice for solving 2 and 3 . The reader is referred to the classic work [@EdelAS98] and excellent monographs [@Udri1994; @AbsiMS08; @Sato2021; @Boumal23] for details. A slightly different context is when \(A\in \mathrm{SPD}(n),\) the set of \(n\times n\) symmetric positive-definite (spd) matrices, and \(B = I_k\) occurring in the study of locality preserving projections where one wants to find a projection matrix that preserves some affinity graph from a given data set; it leads to the optimization problem \[\label{eq:LPP} \min_{X^T(\hat{S}^T\hat{S})X = I_k} \mathrm{tr}\left(X^T\hat{S}^T(I-\hat{W})\hat{S}X\right),\tag{4}\] where \(\hat{S}\) is generally of full rank and \(\hat{W}\) is a modified weighted matrix [@HeN03]. A similar problem arises in canonical correlation analysis whose feasible set is the Cartesian product of two sets as that of 4. Meanwhile, an extension of Ky-Fan’s theorem [@SameW82] for the symmetric matrix pencil \((M,A)\), where \(A\) is spd, also leads to \[\label{eq:KyFan2} \min_{X^{T}AX = I_k}\mathrm{tr}\left(X^{T}MX\right) = \sum_{j=1}^k\lambda_j,for each k = 1,\ldots,n,\tag{5}\] in which \(\lambda_j, j = 1,\ldots,n,\) are the (generalized) eigenvalues of the matrix pencil \((M,A)\). Solutions to the optimization problems with constraints akin to 4 and 5 motivate the investigation of Riemannian optimization methods on the generalized Stiefel manifold, denoted by \(\mathrm{St}_A(k,n)\), [@YgerBGR12; @manopt; @MishS2016; @SatoA19; @ShusA2023; @WangDPY2024]. These results provide us with tools to work directly on \(\mathrm{St}_A(k,n)\) without having to turn back to \(\mathrm{St}(k,n)\) via a Cholesky factorization of \(A\) which should be avoided, especially for large and/or sparse \(A\). More problems on minimization of the trace can be found in [@KokiS11].
Other authors [@GSAS21; @GSAS21a; @BendZ21; @OviH23; @YamaS2023; @GSS24; @JenZ24; @GaoSS2024] concentrated on developing optimization methods on the symplectic Stiefel manifold, which corresponds to the case where both \(A\) and \(B\) are the Poisson matrices, i.e., of the form \(\left[\begin{smallmatrix} 0&I_p\\-I_p&0 \end{smallmatrix}\right]\). This problem arises in model reduction of Hamiltonian systems [@PengM16; @BendZ22; @BuchGH22; @GSS24], computing the symplectic eigenvalues of (semi)spd matrices [@BhatJ15; @SonAGS21; @SonS22].
In [@KovaV95], Ky-Fan’s theorem was further investigated for \(n\times n\) symmetric positive-definite matrix pencils \(M-\lambda A\), i.e., the ones such that the matrix \(M-\lambda_0 A\) is spd for some \(\lambda_0\). In this extension, \(A\) is nonsingular and may be indefinite, i.e., \(A\) has \(p\) positive and \(m\) negative eigenvalues, \(p>0, m > 0, p+m = n\). Namely, let \(J = \mathrm{diag}(I_{k_p},-I_{k_m}),\) the block diagonal matrix, with \(0\leq k_p \leq p, 0\leq k_m \leq m, k_p + k_m = k\), and denote the eigenvalues of \((M,A)\) by \[\lambda^-_m\leq \ldots\leq \lambda^-_1 <\lambda^+_1 \leq \ldots \leq \lambda^+_p,\] where the minus/plus sign means the negative/positive value. Then we have \[\label{eq:KovacStrikoVeselic} \min_{X^TAX = J}\mathrm{tr}\left(X^TMX\right) = \sum_{j=1}^{k_p}\lambda^+_j - \sum_{j=1}^{k_m}\lambda^-_j.\tag{6}\] Once a minimizer \(X_*\) is obtained, one can determine the eigenvalues appearing on the right hand side of 6 and their associated normalized eigenvectors, i.e., an \(n\times k\) matrix \(\hat{X}\) satisfying the constraint \(\hat{X}^TA\hat{X}=J\) and its \(j\)-th column \(\hat{x}_j\) verifies \(M\hat{x}_j = \lambda_jA\hat{x}_j\) and \(\lambda_j = \lambda_j^+\) for \(j=1,\ldots,k_p\) and \(\lambda_{j+k_p} = \lambda_j^-\) for \(j=1,\ldots,k_m\), by solving two standard eigenvalue problems for the matrices of sizes \(k_p\times k_p\) and \(k_m\times k_m\) extracted from \(X_*^TMX_*\), see [@KovaV95] and section 6 for details. The need for computing several smallest positive eigenvalues of symmetric/Hermitian matrices/matrix pencils arises in practice, for instance, in the design of electromagnetic accelerators, see [@Geus2002] and references therein. In the case that \(A=J=\mathrm{diag}(\pm 1,\ldots,\pm 1),\) the signature matrix, the problem of determining the eigenvalues and eigenvectors mentioned above is referred to as the hyperbolic eigenvalue problem [@SlapT2000]. A solution to this problem is a main step for hyperbolic PCA which is arguably more informative than the conventional PCA [@TabaKWM2024] and the computation of hyperbolic singular value decomposition [@OnnSB1989]. Another issue is the linear response eigenvalue problem (LREVP) where one has to compute a few smallest eigenvalues of the matrix \(\left[ \begin{smallmatrix} 0&K\\M&0 \end{smallmatrix}\right]\) with symmetric positive-semidefinite matrices \(K, M\) in which at least one of them is spd. This problem originates from the studies of density functions, random phase approximation, see [@BaiL12] and references therein. Various numerical methods have been proposed, see [@BaiL2017] for a recent survey, among which the ones based on trace minimization [@BaiL13; @BaiL14; @ChenSL2023] are of our interest. It is direct to see that the mentioned LREVP is equivalent to the eigenvalue problem for the matrix pencil \[\label{eq:HGpencil} H - \lambda G := \begin{bmatrix} K&0\\0&M \end{bmatrix} - \lambda \begin{bmatrix} 0&I\\I&0 \end{bmatrix}.\tag{7}\] When both \(K\) and \(M\) are spd, 7 is equivalent to the product eigenvalue problem where one has to find the \(k\) smallest eigenvalues of a product matrix \(KM\) [@KresPS2014; @Pand2019]. Indeed, it can be verified that \(\lambda^2, \lambda\in \mathbb{R},\) is an eigenvalue of \(KM\) if and only if \(\pm\lambda\) are the eigenvalues of the matrix pencil 7 . The statement 6 suggests that the LREVP can be solved via finding a solution \(X\in \mathbb{R}^{2n\times k}\) to \[\label{eq:IndefTraceMin} \min_{X^TGX = J }\mathrm{tr}\left(X^THX\right)\tag{8}\] with \(H\) and \(G\) defined as in 7 and \(J = I_k\).
Obviously, the existing Riemannian optimization methods on the generalized Stiefel manifold and the symplectic Stiefel manifold do not help solve the optimization problems mentioned in 6 and 8 . The main reason lies in the difference in the feasible sets. This fact inspires us to consider the optimization problem \[\label{eq:opt95prob} \min_{X\in \mathbb{R}^{n\times k}} f(X)\; s.t. \;X^{T}AX = J,\tag{9}\] where \(f\) is continuously differentiable, \(A\in \mathbb{R}^{n\times n}\) is symmetric, nonsingular and \(J\in\mathrm{Sym}(k)\) satisfying \(J^2 = I_k\). As will be shown in section 2, the feasible set of this problem \[\label{eq:indefStiefel} \mathrm{iSt}_{A,J}(k,n) = \{X\in \mathbb{R}^{n\times k}\;:\;X^{T}AX = J\}\tag{10}\] constitutes a differentiable manifold. We will refer to it as the indefinite Stiefel manifold to emphasize the possible indefiniteness of \(A\) and \(J\)3. If the two matrices \(A,J\) or the size \(n\times k\) of the ambient space are either clear from the context and/or inessential, we also write \(\mathrm{iSt}(k,n)\) or \(\mathrm{iSt}_{A,J}\). This manifold covers several sets considered in the literature. If \(A\) is additionally positive-definite and \(J = I_k\), the constraint set in our problem is a generalized Stiefel manifold which naturally reduces to the Stiefel manifold if \(A=I_n\). For \(A = \mathrm{diag}(-1,1,\ldots,1)\), if \(J = I_k\), we obtain the hyperbolic manifold mentioned in [@XiaoLT2024; @HanJM2024]; if \(J = -1\), the Lorentz model or the hyperboloid model of hyperbolic space, see, e.g., [@NickK2018; @WilsL2018], is a half of \(\mathrm{iSt}_{A,J}\). Moreover, if \(A = J = \mathrm{diag}(\pm 1,\ldots,\pm 1)\), we are having the \(J\)-orthogonal group [@High03; @HeYWX2024].
Despite the similarity, there are essential differences between the indefinite Stiefel manifold and other Stiefel-type manifolds. The generalized Stiefel manifold, including the Stiefel manifold as a special case, is compact while the indefinite Stiefel manifold is generally not so. This can be easily seen by considering the hyperboloid model \(x_1^2 - x_2^2 = 1\) in \(\mathbb{R}^{2\times 1}\). Moreover, \(\mathrm{iSt}_{A,J}\) in this paper is defined generally, both \(J\) and \(A\) are symmetric (with appropriate restrictions), and therefore completely different from the symplectic Stiefel manifold defined in [@GSAS21] which is attached to two fixed (skew-symmetric) Poisson matrices \(J_{2n}\) and \(J_{2k}\).
To the best of our knowledge, our present work is the first attempt to approach the optimization problem with possibly indefinite quadratic constraint \(X^TAX = J\) in the Riemannian framework. Namely, in section 2 we show that \(\mathrm{iSt}_{A,J}\) is an embedded submanifold of \({\mathbb{R}^{n\times k}}\) and describe its tangent vectors. We then equip the manifold with a family of tractable metrics, construct the associated orthogonal projections onto the tangent and normal spaces, and compute the Riemannian gradient of a general cost function in section 3. A retraction based on the Cayley transformation is studied in section 4 and a gradient descent algorithm is proposed in section 5. The obtained results are then verified by various numerical examples in section 6. Since the results in this work are not necessarily restricted to the indefinite case, they also hold for the generalized Stiefel manifold; with suitable restrictions, some of them reduce to the results derived for generalized Stiefel manifold, see remarks 1, 2, and 3. Moreover, our result enables a Riemannian approach for optimization with \(J\)-orthogonality constraint.
First, \(\dim(\cdot)\) will denote the dimension of a linear space, \(\mathrm{diag}(\cdot,\ldots,\cdot)\) is the (block) diagonal matrix whose diagonal (block) entries are the listed objects. For any matrix \(\Omega\), the notations \(\Omega^T, \mathrm{tr}\,\Omega,\, \|\Omega\|_F,\) and \(\|\Omega\|\) are respectively its transpose, trace, Frobenius norm, and spectral norm, if not specified otherwise. If \(\Omega\) is a square matrix, we denote by \(\mathrm{skew}(\Omega) \mathrel{\vcenter{:}}= \frac{1}{2}(\Omega-\Omega^{T})\) and \(\mathrm{sym}(\Omega) \mathrel{\vcenter{:}}= \frac{1}{2}(\Omega + \Omega^{T})\) its skew-symmetric and symmetric parts, respectively. Meanwhile, \(\mathrm{Skew}(p)\), \(\mathrm{Sym}(p)\), and \(\mathrm{O}(p)\) stand for the set of skew-symmetric, the set of symmetric, and the set of orthogonal matrices of size \(p\times p,\) respectively. The Fréchet derivative of a map \(F:\mathcal{V}_1\longrightarrow\mathcal{V}_2\) at \(X\in\mathcal{V}_1\) between two normed vector spaces \(\mathcal{V}_1\) and \(\mathcal{V}_2\) is defined to be a linear operator \(\mathrm{\small D}F(X):\mathcal{V}_1\longrightarrow\mathcal{V}_2\) such that \(F(X+Z) = F(X)+\mathrm{\small D}F(X)[Z]+o(\| Z\|),\) for any \(Z\in\mathcal{V}_1,\) where \(o(\cdot)\) is the little-\(o\) notation. Finally, for a smooth mapping \(\gamma\) of one variable \(t\), \(\frac{\mathrm{d}}{\mathrm{d}t}(\gamma)\) or \(\dot{\gamma}(t)\) denotes the derivative of \(\gamma\) with respect to \(t.\)
Without further restriction on \(A\) and \(J\), the set \(\mathrm{iSt}(k,n)\) can be empty. For instance, there is no real number pair \((x_1,x_2)\) such that \(x_1^2 + x_2^2 = -1\). The following statement helps avoid working with such a set.
Lemma 1. The set \(\mathrm{iSt}_{A,J}(k,n)\) defined in 10 is nonempty if and only if \[\label{eq:lem95nonempty} \mathrm{i}_+(J) \leq \mathrm{i}_+(A)and\mathrm{i}_-(J) \leq \mathrm{i}_-(A),\qquad{(1)}\] where \(\mathrm{i}_+(M)\) and \(\mathrm{i}_-(M)\) denote the number of positive and negative eigenvalues of a real symmetric \(M\), respectively.
Proof. The necessity for the nonemptiness of \(\mathrm{iSt}_{A,J}(k,n)\) follows directly from [@Tian2010]. Moreover, by assumption, there exists \(n\times k\) real matrix \(V\) such that \(V^TAV = \mathrm{diag}(I_{\mathrm{i}_+(J)},-I_{\mathrm{i}_-(J)})\) and \(k\times k\) orthogonal matrix \(U\) such that \(U^TJU = \mathrm{diag}(I_{\mathrm{i}_+(J)},-I_{\mathrm{i}_-(J)})\). As a consequence, \(\mathrm{iSt}_{A,J}(k,n)\) has the matrix \(VU^T\) as one of its element and therefore verifies the sufficiency. ◻
From now on, it is essential to assume that the condition ?? is always fulfilled. The following result gives the foundation for \(\mathrm{iSt}(k,n).\)
The set \(\mathrm{iSt}(k,n)\) defined in 10 is a closed, embedded submanifold of \({\mathbb{R}^{n\times k}}\) with the dimension \(\dim(\mathrm{iSt}(k,n))=nk-\frac{1}{2}k(k+1)\).
Proof. Define the map \[\begin{align} F: {\mathbb{R}^{n\times k}}& \longrightarrow &\mathrm{Sym}(k) \\ X &\longmapsto & X^{T}AX-J \end{align}\] Since F is continuous and \(F^{-1}(0) = \mathrm{iSt}(k,n),\) it follows that \(\mathrm{iSt}(k,n)\) is closed. For any fixed \(X\in\mathrm{iSt}(k,n)\), we are going to verify that \(\mathrm{\small D}F(X)\) is a surjection. Indeed, since \[\label{eq:eqDF} \mathrm{\small D}F(X)[Z]=X^{T}AZ+Z^{T}AX,\;\forall\;Z\in{\mathbb{R}^{n\times k}},\tag{11}\] and \(J^{T}=J,\) for each \(Y\in\mathrm{Sym}(k),\) with \(Z \mathrel{\vcenter{:}}=\frac{1}{2}XJY\), we have
\(\mathrm{\small D}F(X)[Z] = \dfrac{1}{2}X^{T}AXJY + \dfrac{1}{2}Y^{T}J^{T}X^{T}AX = Y.\)
Next, by the Regular Level Set Theorem [@Lee12], it follows that \(\mathrm{iSt}(k,n)\) is a closed embedded submanifold of \({\mathbb{R}^{n\times k}}\) and \[\begin{align} \dim(\mathrm{iSt}(k,n)) = \dim({\mathbb{R}^{n\times k}}) - \dim \mathrm{Sym}(k) = nk-\dfrac{1}{2}k(k+1), \end{align}\] which completes the proof. ◻
A proof for a special case when both \(A\) and \(J\) are of the form \(\mathrm{diag}(\pm 1,\ldots,\pm 1)\) was given in [@KovaV95]. It can be used to obtain the statement made in Proposition [theo:PropertiesH] via a suitable diffeomorphism but the given direct proof better prepares the reader for later development.
Let us denote by \(\langle\cdot,\cdot\rangle_{\mathbb{R}^{p\times q}}\) the standard Euclidean inner product on \(\mathbb{R}^{p\times q}\). That is, \(\langle U,V\rangle_{\mathbb{R}^{p\times q}} =\mathrm{tr}(U^TV)\) for \(U,V\in\mathbb{R}^{p\times q}\). Given \(X\in\mathrm{iSt}_{A,J},\) we are going to formulate the adjoint operator \(\mathrm{\small D}F^{*}(X)\) of \(\mathrm{\small D}F(X)\) with respect to this inner product, which is the linear operator \[\mathrm{\small D}F^{*}(X) :\mathrm{Sym}(k) \longrightarrow {\mathbb{R}^{n\times k}}\] satisfying the condition \[\label{eq:DF95adjoint} \langle\mathrm{\small D}F(X)[Z],\Omega\rangle_{{\mathbb{R}^{k\times k}}} = \langle Z,\mathrm{\small D}F^{*}(X)[\Omega]\rangle_{{\mathbb{R}^{n\times k}}},\;\forall\;\Omega\in \mathrm{Sym}(k),\; Z\in{\mathbb{R}^{n\times k}},\tag{12}\] and show that \(\mathrm{\small D}F^{*}(X)\) is injective. Indeed, since \[\langle\mathrm{\small D}F(X)[Z],\Omega\rangle_{{\mathbb{R}^{k\times k}}} = \langle X^{T}AZ+Z^{T}AX,\Omega\rangle_{{\mathbb{R}^{k\times k}}} = 2\mathrm{tr}(Z^{T}AX\Omega)\\ = \langle Z,2AX\Omega\rangle_{{\mathbb{R}^{n\times k}}},\] in view of 12 , we deduce that \[\label{eq:DF95adjoint2} \mathrm{\small D}F^{*}(X)[\Omega] = 2AX\Omega, for\Omega\in\mathrm{Sym}(k).\tag{13}\] Combining with the fact that \(X^{T}AX =J\) is invertible, it follows that \(\mathrm{\small D}F^{*}(X)\) is injective.
For \(X\in\mathrm{iSt}_{A,J}\), let us denote by \(X_{\perp}\in\mathbb{R}^{n\times(n-k)}\) a full rank matrix such that \(X^{T}X_{\perp}=0\in\mathbb{R}^{k\times(n-k)}.\) Note that \(X_{\perp}\) is not unique. The following technical lemma, similar to [@GSAS21], will be useful later.
Lemma 2. For \(X\in \mathrm{iSt}(k,n)\), let us denote the matrix \[E\mathrel{\vcenter{:}}= [X \;\; A^{-1}X_{\perp}]\in {\mathbb{R}^{n\times n}}.\] Then
\(E\) is nonsingular;
\(E^{T}AE = \begin{bmatrix} J & 0 \\ 0 & X_{\perp}^{T}A^{-1}X_{\perp} \end{bmatrix}\) and \(X_{\perp}^{T}A^{-1}X_{\perp}\) is nonsingular;
\(E^{-1}= \begin{bmatrix} JX^{T}A \\ (X_{\perp}^{T}A^{-1}X_{\perp})^{-1}X_{\perp}^{T} \end{bmatrix};\)
For any \(Z\in{\mathbb{R}^{n\times k}},\) there are \(W\in{\mathbb{R}^{k\times k}}\) and \(K\in\mathbb{R}^{(n-k)\times k}\) such that \[Z = XW + A^{-1}X_{\perp}K.\label{eq:eq21}\qquad{(2)}\] Moreover, \(W = JX^{T}AZ, K = (X_{\perp}^{T}A^{-1}X_{\perp})^{-1}X_{\perp}^{T}Z,\) and \(A^{-1}X_{\perp}K\) is independent of \(X_{\perp}.\)
Proof.
To proceed, we will verify that the homogeneous linear system \(E \left[\begin{smallmatrix} y_1 \\ y_2 \end{smallmatrix}\right]=0\) with \(y_1\in\mathbb{R}^{k}, y_2\in\mathbb{R}^{n-k}\) has only the trivial solution. Multiply both sides of the equation by \(X^{T}A\) from the left to obtain \(Jy_1 = 0\). This results in \(A^{-1}X_{\perp}y_2 = 0\) which immediately implies that \(y_2=0\) because \(A^{-1}X_{\perp}\in\mathbb{R}^{n\times (n-k)}\) is of full rank.
The identity follows from a direct calculation. Moreover, since the matrices \(E\) and \(A\) are invertible, so are \(E^{T}AE\) and its diagonal block \(X_{\perp}^{T}A^{-1}X_{\perp}.\)
The equality in ii) yields that \(E^{-1} = \left[\begin{smallmatrix} J & 0\\ 0 & (X_{\perp}^{T}A^{-1}X_{\perp})^{-1} \end{smallmatrix}\right] E^TA\) which leads to the expected equality.
For any \(Z\in{\mathbb{R}^{n\times k}},\) let \(W\in{\mathbb{R}^{k\times k}}\) and \(K\in\mathbb{R}^{(n-k)\times k}\) be the matrices obtained from the identity \(E^{-1}Z = \left[\begin{smallmatrix} W\\ K \end{smallmatrix}\right].\) From iii), we get \(W = JX^{T}AZ\) and \(K = (X_{\perp}^{T}A^{-1}X_{\perp})^{-1}X_{\perp}^{T}Z.\) So, \(Z = E \left[\begin{smallmatrix} W\\ K \end{smallmatrix}\right] = [X\; A^{-1}X_{\perp}] \left[\begin{smallmatrix} W\\ K \end{smallmatrix}\right] = XW + A^{-1}X_{\perp}K.\) The independence of \(X_{\perp}\) is derived from the fact that \(A^{-1}X_{\perp}K = Z - XW\) with \(W = JX^TAZ\).
◻
Next, we determine the tangent space at a point on the manifold \(\mathrm{iSt}(k,n).\) This is crucial for optimization with manifold constraint since most iterative methods update the iterate along a vector belonging to this space. Recall that the tangent space at \(X\in \mathrm{iSt}(k,n)\) is the set \[T_{X}\mathrm{iSt}(k,n)= \left\lbrace \dot{\varphi}(0) \; |\; \varphi: I\ni 0 \longrightarrow \mathrm{iSt}(k,n)\text{ is a smooth curve and }\varphi(0)=X \right\rbrace.\] The following proposition characterizes the elements of this tangent space.
For a given \(X\in \mathrm{iSt}(k,n)\), the tangent space \(T_{X}\mathrm{iSt}(k,n)\) can be expressed as follows: \[\begin{align} T_{X}\mathrm{iSt}(k,n)& = \left\{Z\in{\mathbb{R}^{n\times k}}: Z^{T}AX + X^{T}AZ = 0\right\}\tag{14} \\ & = \left\{XW + A^{-1}X_{\perp}K: JW\in\mathrm{Skew}(k), K\in\mathbb{R}^{(n-k)\times k} \right\} \tag{15}\\ & = \left\{ SAX: S\in\mathrm{Skew}(n) \right\}. \tag{16} \end{align}\]
Proof. Let \(F\) be as in the proof of Proposition [theo:PropertiesH]. In view of [@Lee12], \(T_{X}\mathrm{iSt}(k,n)= \mathrm{ker}( \mathrm{\small D}F(X))\), which together with 11 , yields 14 . Note that using the definition, 14 can also be derived by differentiating the relation \(X(t)^TAX(t) = J\) at \(0\). To verify 15 , we use ?? in Lemma 2. For any \(Z\in{\mathbb{R}^{n\times k}},\) there are \(W\in{\mathbb{R}^{k\times k}}\) and \(K\in\mathbb{R}^{(n-k)\times k}\) such that \(Z = XW + A^{-1}X_{\perp}K.\) Therefore, \[\begin{align} Z^{T}AX + X^{T}AZ & = (W^{T}X^{T} + K^{T}X_{\perp}^{T}A^{-1})AX + X^{T}A(XW + A^{-1}X_{\perp}K)\\ & = W^{T}J + JW = (JW)^{T}+JW. \end{align}\] By 14 , \(Z\in T_{X}\mathrm{iSt}(k,n)\) if and only if \(JW=-(JW)^{T}\in\mathrm{Skew}(k).\) Finally, we see that \(\left\{ SAX: S\in\mathrm{Skew}(n) \right\}\) is a linear subspace of \(T_{X}\mathrm{iSt}(k,n)\) since \((SAX)^{T}AX+X^{T}A(SAX)=X^{T}AS^{T}AX+X^{T}ASAX=0.\) Hence, to verify 16 , it is sufficient to prove that \(\dim \left\{ SAX: S\in\mathrm{Skew}(n) \right\} = \dim \mathrm{iSt}(k,n)\) which is also the dimension of \(T_{X}\mathrm{iSt}(k,n)\). Indeed, let \(S\in \mathrm{Skew}(n)\) and \(P = AE = [AX\;\;X_{\perp}],\) where \(E\) is as in Lemma 2. Then \(P\) is nonsingular and \(AX = P\left[\begin{smallmatrix} I_k\\ 0 \end{smallmatrix}\right].\) So \(P^{T}SAX = P^{T}SP\left[\begin{smallmatrix} I_k\\ 0 \end{smallmatrix}\right] =: B\left[\begin{smallmatrix} I_k\\ 0 \end{smallmatrix}\right],\) where \(B \mathrel{\vcenter{:}}= P^{T}SP\in\mathrm{Skew}(n).\)
Assume that \(B =\left[\begin{smallmatrix} B_{11}&-B_{21}^{T}\\ B_{21}&B_{22} \end{smallmatrix}\right],\) with \(B_{11}\in\mathrm{Skew}(k), B_{22}\in\mathrm{Skew}(n-k)\) and \(B_{21}\in\mathbb{R}^{(n-k)\times k}.\) Then, \(P^{T}SAX = B\left[\begin{smallmatrix} I_k\\ 0 \end{smallmatrix}\right] = \left[\begin{smallmatrix} B_{11}\\ B_{21} \end{smallmatrix}\right].\) Therefore, \[\begin{align} \dim\left\{ SAX: S\in\mathrm{Skew}(n) \right\} &= \dim\left\{ P^{T}SAX: S\in\mathrm{Skew}(n) \right\} \\ &= \dim\left\{\begin{bmatrix} B_{11}\\ B_{21} \end{bmatrix}: B_{11}\in\mathrm{Skew}(k), B_{21}\in\mathbb{R}^{(n-k)\times k}\right\} \\ &= \dim\mathrm{Skew}(k) + \dim\mathbb{R}^{(n-k)\times k} \\ &= \dfrac{1}{2}k(k-1) + (n-k)k = nk - \dfrac{1}{2}k(k+1) \\ & = \dim\mathrm{iSt}(k,n). \end{align}\] Here, the first identity follows from the nonsingularity of \(P\) and \(P^{T}\) whereas the last one has just been obtained in Proposition [theo:PropertiesH]. ◻
Remark 1. The formula 14 was derived for several manifolds as a quadratic constraint, see [@AbsiMS08], [@YgerBGR12], and [@GSAS21] while 15 is an extension of [@EdelAS98], [@YgerBGR12]; cf., [@GSAS21].
A metric \(\mathrm{g}_X\) on the manifold \(\mathrm{iSt}_{A,J}\) is an inner product defined on each tangent space \(T_X\mathrm{iSt}_{A,J}\) which is required to depend smoothly on \(X\). In this case, the pair \((\mathrm{iSt}_{A,J}, \mathrm{g}_X)\) becomes a Riemannian manifold and the metric is referred to as a Riemannian metric. On a Riemannian manifold, a metric allows quantification such as length, distance, angle and, particularly, the definition of orthogonality which is essential in designing many optimization methods. There are numerous ways to select a metric for a given smooth manifold. This freedom is exploited to get advantages in computation in the framework of preconditioning, see [@MishS2016; @DongGGG2022; @ShusA2023; @GaoPY2024], to name a few. To this end, instead of a single one, in this section we will equip \(\mathrm{iSt}_{A,J}\) with a family of tractable metrics, which was recently introduced in [@NguyD23], used for the generalized Stiefel manifold [@ShusA2023] and the symplectic Stiefel manifold [@GaoSS2024], and present the resulting geometric structure.
Let \(\mathbf{M}_{X}\in\mathrm{SPD}(n)\) depend smoothly on \(X\in\mathrm{iSt}(k,n)\). We define an inner product \(\mathrm{g}_{\mathbf{M}_{X}}\) on \(T_{X}\mathrm{iSt}(k,n)\) by \[\label{eq:def95gMx} \mathrm{g}_{\mathbf{M}_{X}}(Z_1,Z_2)=\mathrm{tr}(Z_1^{T}\mathbf{M}_{X}Z_2), \text{ for all } Z_1, Z_2\in T_X\mathrm{iSt}(k,n).\tag{17}\] It can be seen that \(\mathrm{g}_{\mathbf{M}_{X}}\) is indeed a metric not only on \(\mathrm{iSt}(k,n)\) but also on \({\mathbb{R}^{n\times k}}\) by letting \(Z_1, Z_2\) vary in \({\mathbb{R}^{n\times k}}\). As a result, we can define the normal space \(T_{X}\mathrm{iSt}(k,n)^{\perp}_{\mathrm{g}_{\mathbf{M}_{X}}}\) with respect to the inner product \(\mathrm{g}_{\mathbf{M}_{X}}\) of \({\mathbb{R}^{n\times k}}\) as \[T_{X}\mathrm{iSt}(k,n)^{\perp}_{\mathrm{g}_{\mathbf{M}_{X}}} \mathrel{\vcenter{:}}= \left\{ N\in{\mathbb{R}^{n\times k}}: \mathrm{g}_{\mathbf{M}_{X}}(N,Z)=0,\text{ for all } Z\in T_{X}\mathrm{iSt}(k,n)\right\}.\] The following characterization of \(T_{X}\mathrm{iSt}(k,n)^{\perp}_{\mathrm{g}_{\mathbf{M}_{X}}}\) helps formulate the orthogonal projection onto \(T_{X}\mathrm{iSt}(k,n)\).
The normal space to \(\mathrm{iSt}(k,n)\) at \(X\in \mathrm{iSt}(k,n)\) with respect to \(\mathrm{g}_{\mathbf{M}_{X}}\) is given by \(T_{X}\mathrm{iSt}(k,n)^{\perp}_{\mathrm{g}_{\mathbf{M}_{X}}}=\left\lbrace \mathbf{M}_{X}^{-1}AXW \in{\mathbb{R}^{n\times k}},\; W\in\mathrm{Sym}(k)\right\rbrace.\)
Proof. Consider \(E\in{\mathbb{R}^{n\times n}}\) defined as in Lemma 2 and any \(N\in{\mathbb{R}^{n\times k}}\). In view of Lemma 2.(iv), there exist unique matrices \(\tilde{W}_N\in{\mathbb{R}^{k\times k}}\) and \(\tilde{K}_N\in\mathbb{R}^{(n-k)\times k}\) such that \(A^{-1}\mathbf{M}_{X}N = E\left[\begin{smallmatrix} \tilde{W}_N\\ \tilde{K}_N \end{smallmatrix}\right]\) which yields \(N = \mathbf{M}_{X}^{-1}AE\left[\begin{smallmatrix} \tilde{W}_N \\ \tilde{K}_N \end{smallmatrix}\right].\) Next, using the form 15 for \(Z\in T_{X}\mathrm{iSt}(k,n),\) we can write \(Z = XW_Z+A^{-1}X_{\perp}K_Z = E \left[\begin{smallmatrix} W_Z\\ K_Z \end{smallmatrix}\right].\) We obtain then \[\begin{align} N^{T}\mathbf{M}_{X}Z =& \left[ \tilde{W}_N^{T}\;\;\tilde{K}_N^{T}\right]E^{T}AE \left[\begin{matrix} W_Z\\ K_Z \end{matrix}\right]\\ =& \left[ \tilde{W}_N^{T}\;\;\tilde{K}_N^{T}\right] \begin{bmatrix} J & 0 \\ 0 & X_{\perp}^{T}A^{-1}X_{\perp} \end{bmatrix} \left[\begin{matrix} W_Z\\ K_Z \end{matrix}\right]\\ =& \tilde{W}_N^{T}JW_Z + \tilde{K}_N^{T}(X_{\perp}^{T}A^{-1}X_{\perp})K_Z, \end{align}\] where the second identity follows from Lemma 2.(ii). Hence \[\mathrm{g}_{\mathbf{M}_{X}}(N,Z) =\mathrm{tr}(N^{T}\mathbf{M}_{X}Z) = \mathrm{tr}\left( \tilde{W}_N^{T}JW_Z\right) +\mathrm{tr}\left(\tilde{K}_N^{T}(X_{\perp}^{T}A^{-1}X_{\perp})K_Z\right).\] When \(Z\) varies all over \(T_X\mathrm{iSt}(k,n),\) one can check that \(JW_Z\) and \((X_{\perp}^{T}A^{-1}X_{\perp})K_Z\) will vary all over the sets \(\mathrm{Skew}(k)\) and \(\mathbb{R}^{(n-k)\times k},\) respectively. Therefore, \(\mathrm{g}_{\mathbf{M}_{X}}(N,Z) = 0\) for all \(Z\in T_X\mathrm{iSt}(k,n)\) if and only if \(\tilde{W}_N\in\mathrm{Sym}(k)\) and \(\tilde{K}_N=0.\) That is, a normal vector must take the form \(N = \mathbf{M}_{X}^{-1}AX\tilde{W}_N\) with \(\tilde{W}_N\in\mathrm{Sym}(k).\) This completes the proof. ◻
Next, for each \(X\in \mathrm{iSt}_{A,J}\), considering \(\mathrm{g}_{\mathbf{M}_{X}}\) as an inner product on the ambient space \({\mathbb{R}^{n\times k}}\), it holds that \[{\mathbb{R}^{n\times k}}= T_X\mathrm{iSt}(k,n)\; {\bigoplus}\;T_X\mathrm{iSt}(k,n)_{\mathrm{g}_{\mathbf{M}_{X}}}^{\perp}.\] So, there exists a unique pair \((Y_1,Y_2)\in T_X \mathrm{iSt}(k,n)\times T_X\mathrm{iSt}(k,n)_{\mathrm{g}_{\mathbf{M}_{X}}}^{\perp}\) for each \(Y\) in \({\mathbb{R}^{n\times k}}\) such that \(Y = Y_1 + Y_2.\) This enables us to define two orthogonal projections \[\begin{align} \mathcal{P}_{X}^{\mathbf{M}_{X}}: {\mathbb{R}^{n\times k}}&\longrightarrow T_{X}\mathrm{iSt}(k,n)\\ Y& \longmapsto \mathcal{P}_{X}^{\mathbf{M}_{X}}(Y) = Y_1 \end{align}\] and \[\begin{align} \mathcal{P}_{X}^{\perp_{\mathbf{M}_{X}}}: {\mathbb{R}^{n\times k}}&\longrightarrow T_{X}\mathrm{iSt}(k,n)_{\mathbf{M}_{X}}^{\perp}\\ Y&\longmapsto \mathcal{P}_{X}^{\perp_{\mathbf{M}_{X}}}(Y) = Y_2. \end{align}\] The following proposition provides formulae for the two projections above.
The orthogonal projections of \(Y\in{\mathbb{R}^{n\times k}}\) with respect to metric \(\mathrm{g}_{\mathbf{M}_{X}}\) onto \(T_{X}\mathrm{iSt}(k,n)\) and \(T_{X}\mathrm{iSt}(k,n)_{\mathbf{M}_{X}}^{\perp}\) are \[\label{eq:orth95projs} \mathcal{P}_{X}^{\mathbf{M}_{X}}(Y) = Y - \mathbf{M}_{X}^{-1}AXU_{X,Y}and\mathcal{P}_{X}^{\perp_{\mathbf{M}_{X}}}(Y) = \mathbf{M}_{X}^{-1}AXU_{X,Y},\tag{18}\] respectively, where \(U_{X,Y}\) is the solution to the Lyapunov equation \[\label{eq:eqLya95gMx} (X^{T}A\mathbf{M}_{X}^{-1}A X)U+U(X^{T}A\mathbf{M}_{X}^{-1}A X) = 2\;\mathrm{sym}(X^{T}AY),\tag{19}\] with unknown \(U\in{\mathbb{R}^{k\times k}}.\)
Proof. Using [@NguyD23], we have that \[\mathcal{P}_{X}^{\mathbf{M}_{X}}(Y) = Y - \mathbf{M}_{X}^{-1}\mathrm{\small D}F^*(X)\left( \mathrm{\small D}F(X)\mathbf{M}_{X}^{-1}\mathrm{\small D}F^*(X)\right)^{-1}\mathrm{\small D}F(X)[Y].\] For \(U\in\mathrm{Sym}(k),\) taking 11 and 13 into account, we obtain \[\mathrm{\small D}F(X)\mathbf{M}_{X}^{-1}\mathrm{\small D}F^{*}(X)[U] = 2X^{T}A\mathbf{M}_{X}^{-1}AXU + 2U X^{T}A\mathbf{M}_{X}^{-1}AX.\] Therefore, \(\left( \mathrm{\small D}F(X)\mathbf{M}_{X}^{-1}\mathrm{\small D}F^*(X)\right)^{-1}\mathrm{\small D}F(X)[Y]\) is the solution to the Lyapunov equation \[\label{eq:orthproj95proof} 2X^{T}A\mathbf{M}_{X}^{-1}AXU + 2U X^{T}A\mathbf{M}_{X}^{-1}AX = \mathrm{\small D}F(X)[Y] = 2\;\mathrm{sym}(X^{T}AY).\tag{20}\] Its existence, uniqueness, and symmetry are ensured by the facts that \((X^{T}A\mathbf{M}_{X}^{-1}A X)\) is spd and the right hand side of 20 is symmetric, see [@Simo16] and references therein. Comparing 20 to 19 implies that \(2\left( \mathrm{\small D}F(X)\mathbf{M}_{X}^{-1}\mathrm{\small D}F^*(X)\right)^{-1}\mathrm{\small D}F(X)[Y] =U_{X,Y}\) is the solution to 19 . Then, by 13 again, we get that \[\mathcal{P}_{X}^{\mathbf{M}_{X}}(Y) = Y - \mathbf{M}_{X}^{-1}\mathrm{\small D}F^*(X)[\frac{1}{2}U_{X,Y}] = Y - \mathbf{M}_{X}^{-1}AXU_{X,Y}.\] The second formula in 18 holds automatically by definition. ◻
Based on the presented derivation of the orthogonal projection onto the tangent space, we examine the Riemannian gradient. Let \(f:\mathrm{iSt}(k,n)\longrightarrow\mathbb{R}\) be a continuously differentiable function. The Riemannian gradient of \(f\) with respect to the tractable metric \(\mathrm{g}_{\mathbf{M}_{X}}\) is the unique vector \(\mathrm{grad}_{\mathbf{M}_{X}}f(X)\) of \(T_X\mathrm{iSt}(k,n)\) satisfying \[\mathrm{g}_{\mathbf{M}_{X}}\left( \mathrm{grad}_{\mathbf{M}_{X}}f(X),Z\right) = \mathrm{\small D}\bar{f}(X)[Z]= \langle\nabla \bar{f}(X),Z\rangle_{{\mathbb{R}^{n\times k}}},\;\forall\;Z\in T_X\mathrm{iSt}(k,n),\] where \(\bar{f}\) is any smooth extension of \(f\) on a neighborhood of \(X\) in \({\mathbb{R}^{n\times k}},\) and \(\nabla \bar{f}(X)\) is the Euclidean gradient of \(\bar{f}\) at \(X.\) This definition is also used for a function defined on the ambient space \({\mathbb{R}^{n\times k}}\) when one wants to refer to its gradient associated with a metric other than the conventional Euclidean one. Next, we will obtain an explicit formula for the Riemannian gradient.
Let \(f\) and \(\bar{f}\) be functions as aforementioned. We have \[\label{eq:gradMx95formula} \mathrm{grad}_{\mathbf{M}_{X}}f(X) = \mathbf{M}_{X}^{-1}\nabla\bar{f}(X) - \mathbf{M}_{X}^{-1}AX U_{\bar{f}},\tag{21}\] where \(U_{\bar{f}}\) is the unique solution to the Lyapunov equation with unknown \(U\): \[(X^{T}A\mathbf{M}_{X}^{-1}A X)U+U(X^{T}A\mathbf{M}_{X}^{-1}A X) = 2\mathrm{sym}\left[ X^{T}A\mathbf{M}_{X}^{-1}\nabla\bar{f}(X)\right].\]
Proof. In view of 17 , the gradient of \(\bar{f}\) at \(X\) with respect to the metric \(\mathrm{g}_{\mathbf{M}_{X}}\) (extended to \({\mathbb{R}^{n\times k}}\)) is determined by \[\langle\mathbf{M}_{X}\mathrm{grad}_{\mathbf{M}_{X}}\bar{f}(X),Z\rangle_{{\mathbb{R}^{n\times k}}} = \mathrm{g}_{\mathbf{M}_{X}}(\mathrm{grad}_{\mathbf{M}_{X}}\bar{f}(X),Z) = \langle\nabla \bar{f}(X),Z\rangle_{{\mathbb{R}^{n\times k}}}\;\forall\; Z\in{\mathbb{R}^{n\times k}}.\] Hence, \(\mathrm{grad}_{\mathbf{M}_{X}}\bar{f}(X) = \mathbf{M}_{X}^{-1}\nabla \bar{f}(X).\) Taking [@AbsiMS08] into account, we obtain that \(\mathrm{grad}_{\mathbf{M}_{X}}f(X) = \mathcal{P}_{X}^{\mathbf{M}_{X}}\left(\mathrm{grad}_{\mathbf{M}_{X}}\bar{f}(X)\right) = \mathcal{P}_{X}^{\mathbf{M}_{X}}\left(\mathbf{M}_{X}^{-1}\nabla \bar{f}(X)\right)\). Finally, in view of 18 , we obtain 21 . ◻
In many practical cases, the matrix \(\mathbf{M}_{X}\) representing the tractable metric is chosen to be constant. We will refer to this case as the weighted Euclidean metric. When \(\mathbf{M}_{X}\) is further set to be the identity matrix \(I_n\), \(\mathrm{g}_{\mathbf{M}_{X}}\) reduces to the popular Euclidean metric.
A specific choice for the metric that can help avoid having to solve the Lyapunov equation and leads to a different geometric structure and optimization tools will be addressed in an ongoing work.
Remark 2. It turns out that the formulations of the normal space [@ShusA2023] and the two orthogonal projections [@ShusA2023] for the generalized Stiefel manifold hold in a broader context, the indefinite Stiefel manifold, see Proposition [prop:normalspace95gM] and 18 ; cf. [@GSS24].
In this section, we present a tool which allows us to update a solution to the problem 9 along a given direction in the tangent space \(T_{X}\mathrm{iSt}(k,n).\) Namely, we define a retraction [@AdleDMMS02; @AbsiMS08] on \(\mathrm{iSt}(k,n)\) to be a smooth mapping \(\mathcal{R}\) from the tangent bundle \(T\mathrm{iSt}(k,n)\mathrel{\vcenter{:}}= \bigcup_{X\in\mathrm{iSt}(k,n)}T_X\mathrm{iSt}(k,n)\) to \(\mathrm{iSt}(k,n)\) satisfying the following conditions for all \(X\in\mathrm{iSt}(k,n)\): \[\begin{align}\; \;\; &\mathcal{R}_X(0) = X, \text{ where } 0 \text{ is the origin of } T_X\mathrm{iSt}(k,n),\tag{22}\\\; \; \;& \left.\frac{\mathrm{d}}{\mathrm{d}t}\mathcal{R}_X\left(tZ\right)\right|_{t=0}= Z \text{ for all } Z\in T_X\mathrm{iSt}(k,n),\tag{23} \end{align}\] where \(\mathcal{R}_X\) is the restriction of \(\mathcal{R}\) to \(T_X\mathrm{iSt}(k,n).\)
In an embedded submanifold, retraction can be formulated based on matrix decomposition [@AbsiMS08] or distance projection [@Boumal23]. In the case of indefinite Stiefel manifold, however, deriving such a retraction does not seem straightforward due to the generality of \(A\) and \(J\). Here, we will construct a retraction based on the Cayley transform for quadratic Lie group [@HairLW06], which will be referred to as the Cayley retraction. This type of retraction has been established for the generalized and the symplectic Stiefel manifolds, see [@WenY2013; @GSAS21; @ShusA2023; @WangDPY2024] for details. To this end, for \(X\in\mathrm{iSt}(k,n)\) and \(Z\in T_{X}\mathrm{iSt}(k,n),\) let us define the matrix \[\label{eq:2identicalSxz} S_{X,Z} = XJZ^{T}AXJX^{T} - XJZ^{T} +ZJX^{T}.\tag{24}\] Taking 14 into account, it can be rewritten as \[\begin{align} \notag S_{X,Z} &=\dfrac{1}{2}XJZ^{T}AXJX^{T}- \dfrac{1}{2}XJX^{T}AZJX^{T}- XJZ^{T} +ZJX^{T}\\ &= \left( I_n - \dfrac{1}{2}XJX^{T}A\right)ZJX^{T} - XJZ^{T}\left( I_n - \dfrac{1}{2}AXJX^{T}\right). \label{eq:2identicalSxz952} \end{align}\tag{25}\] By definition, \(S_{X,Z}\) is skew-symmetric.
Definition 1. The Cayley retraction on \(\mathrm{iSt}(k,n)\) at \(X\) is the map \[\label{eq:retractioncay} \begin{array}{rcl} \mathcal{R}_X^{\mathrm{cay}} : T_X\mathrm{iSt}(k,n)\, &\,\longrightarrow\, &\,\mathrm{iSt}(k,n)\\ Z &\longmapsto& \mathcal{R}_X^{\mathrm{cay}}(Z) \mathrel{\vcenter{:}}= \left( I_n - \frac{1}{2}S_{X,Z}A\right)^{-1}\left( I_n + \frac{1}{2}S_{X,Z}A\right) X, \end{array}\qquad{(3)}\] where \(S_{X,Z}\) is as in 24 .
It is seen that \(\mathcal{R}_X^{\mathrm{cay}}(Z)\) is defined whenever \(\left( I_n - \frac{1}{2}S_{X,Z}A\right)\) is invertible. When applied to an iterative optimization scheme, the update is performed in the direction of the tangent vector \(Z\in T_{X}\mathrm{iSt}(k,n)\) along the curve \[\label{eq:Cayley95curve} Y^{\mathrm{cay}}(t,Z) \mathrel{\vcenter{:}}= \left(I_n - \dfrac{t}{2}S_{X,Z}A\right)^{-1}\left( I_n + \dfrac{t}{2}S_{X,Z}A\right) X =: \mathrm{\mathrm{cay}}\left( \dfrac{t}{2}S_{X,Z}A\right)X,\tag{26}\] for \(t\geq 0\), on \(\mathrm{iSt}(k,n).\) The following proposition verifies Definition 1 for the Cayley retraction.
For each \(X\in\mathrm{iSt}(k,n)\), \(\mathcal{R}_X^{\mathrm{cay}}\) in ?? is well-defined, i.e., \(\left(I_n-\frac{1}{2}S_{X,Z}A\right)^{-1}\left(I_n+\frac{1}{2}S_{X,Z}A\right)X \in \mathrm{iSt}(k,n)\) for any \(Z\in T_X\mathrm{iSt}(k,n)\).
The map \(\mathcal{R}^{\mathrm{cay}}\) described in ?? is a retraction.
Proof. i) Given \(X\in\mathrm{iSt}(k,n)\) and \(Z\in T_X\mathrm{iSt}(k,n)\), we need to show that \(\left( \mathcal{R}_X^{\mathrm{cay}}(Z)\right)^TA\mathcal{R}_X^{\mathrm{cay}}(Z)=J.\) This equality is equivalent to \[\begin{align} &X^T(I_n-\tfrac{1}{2}S_{X,Z}A)^{-T}(I_n+\tfrac{1}{2}S_{X,Z}A)^TA(I_n+\tfrac{1}{2}S_{X,Z}A)(I_n-\tfrac{1}{2}S_{X,Z}A)^{-1}X &=J \end{align}\] since \(\left(I_n+B\right)\left(I_n-B\right)^{-1}=\left(I_n-B\right)^{-1}\left(I_n+B\right)\) for any \(B\in{\mathbb{R}^{n\times n}}\) such that \(I_n-B\) is invertible. This is in turn a necessary condition for \[\left(I_n-\dfrac{1}{2}S_{X,Z}A\right)^{-T}\left(I_n+\dfrac{1}{2}S_{X,Z}A\right)^TA\left(I_n+\dfrac{1}{2}S_{X,Z}A\right)\left(I_n-\dfrac{1}{2}S_{X,Z}A\right)^{-1}=A,\] or \[\begin{align} A+\dfrac{1}{2}(S_{X,Z}A)^TA+&\dfrac{1}{2}AS_{X,Z}A+\dfrac{1}{4}(S_{X,Z}A)^TA(S_{X,Z}A)\\ &=A-\dfrac{1}{2}(S_{X,Z}A)^TA-\dfrac{1}{2}AS_{X,Z}A+\dfrac{1}{4}(S_{X,Z}A)^TA(S_{X,Z}A). \end{align}\] The last equality holds due to the symmetry of \(A\) and the skew-symmetry of \(S_{X,Z}\).
ii) Using 24 , it is clear that \(S_{X,0_X} = S_{X,0} = 0\) which implies that the condition 22 \(\mathcal{R}_X^{\mathrm{cay}}(0)=X\) is fulfilled.
Next, we will verify the condition 23 given \(X\in\mathrm{iSt}(k,n),Z\in T_X\mathrm{iSt}(k,n),\) and \(t\in\mathbb{R}\) such that \((I_n-\frac{t}{2}S_{X,Z}A)\) is invertible. Left-multiplying by \((I_n - \frac{t}{2}S_{X,\,Z}A)\) both sides of \[\mathcal{R}_X^{\mathrm{cay}}(tZ) = \left( I_n - \frac{t}{2}S_{X,\,Z}A\right)^{-1}\left( I_n + \frac{t}{2}S_{X,\,Z}A\right) X,\] taking the derivative, and symplifying the result, we obtain \[\label{retractioncay3} \dfrac{\mathrm{d}}{\mathrm{d}t}\mathcal{R}_X^{\mathrm{cay}}(tZ) =\left(I_{n}-\dfrac{t}{2}S_{X,Z}A\right)^{-1}\dfrac{1}{2}S_{X,Z}A\left(\mathcal{R}_X^{\mathrm{cay}}(tZ) + X\right).\tag{27}\] Specifically at \(t=0,\) \[\begin{align} &\left.\frac{\mathrm{d}}{\mathrm{d}t}\mathcal{R}_X^{\mathrm{cay}}(tZ)\right|_{t=0} = \dfrac{1}{2}S_{X,Z}A\left(\mathcal{R}_X^{\mathrm{cay}}(0)+X\right)=S_{X,Z}AX=Z \end{align}\] which completes the proof. ◻
The well-definedness of the so-called Cayley curve \(Y^{\mathrm{cay}}(t,Z)\) in 26 depends on the fact whether \(2/t\) with \(t>0\) is an eigenvalue of \(S_{X,Z}A\). When \(A = I_n, J = I_k\), i.e., the Stiefel manifold case, since \(S_{X,Z}A\) is skew-symmetric, it admits only pure imaginary eigenvalues. Therefore, \(2/t\) cannot be an eigenvalue of \(S_{X,Z}A\) for any \(t > 0\). While [@GSAS21] provides a condition for the well-definedness of the Cayley curve for the symplectic Stiefel manifold, we cannot find such a discussion for the generalized Stiefel manifold in the literature. Therefore, we present it here as a special case of the indefinite Stiefel manifold for completeness.
The Cayley curve \(Y^{\mathrm{cay}}(t,Z)\) defined in 26 for the generalized Stiefel manifold, i.e., the manifold \(\mathrm{iSt}_{A,J}\) with \(A\) is spd and \(J = I_{k}\), is globally defined.
Proof. As above, we will generally show that the eigenvalues of the product matrix \(SA\), where \(S\) is skew-symmetric and \(A\) is spd, are either purely imaginary or zero. Indeed, the fact \(\lambda\in {\mathbb{C}}\) is an eigenvalue of \(SA\) means that there exists an \(x\in {\mathbb{C}^n}, x\not= 0,\) such that \(SAx = \lambda x\). Applying the conjugate transpose to both sides and then multiplying from the right with \(Ax\), we obtain that \(x^*A(-S)Ax = \bar{\lambda}x^*Ax\). By assumption, it readily leads to \(-\lambda \|x\|^2_A =\bar{\lambda} \|x\|^2_A\) where \(\|\cdot\|^2_A\) is the \(A\)-norm defined by the spd matrix \(A\). This equality implies that if \(\lambda\not = 0\) then \(\lambda + \bar{\lambda} = 0\) or \(\lambda\) is purely imaginary. Hence, \(SA\) does not admit \(2/t\) with \(t>0\) as one of its eigenvalues. ◻
When \(A\) is indefinite, the following counterexample tells us that the Cayley curve \(Y^{\mathrm{cay}}(t,Z)\) is generally not globally defined. Indeed, consider the case when \(A = \left[\begin{smallmatrix} -1&0\\0& 1 \end{smallmatrix}\right], J = -1\). For any \(X = \left[\begin{smallmatrix} \pm\sqrt{\xi^2 + 1}\\\xi \end{smallmatrix}\right]\) with \(\xi\in \mathbb{R}\) and \(Z = \left[\begin{smallmatrix} \xi\\ \pm\sqrt{\xi^2 + 1} \end{smallmatrix}\right] \in T_X\mathrm{iSt}_{A,J}\). Calculation shows that \(S_{X,Z}A = \left[\begin{smallmatrix} 0&1\\1& 0 \end{smallmatrix}\right]\) which admits the eigenvalues \(\pm 1\).
Although the Cayley curve is not defined globally, the following feature is enough for establishing the global convergence of the gradient descent algorithm in section 5.
Lemma 3. For any given \(X\in \mathrm{iSt}_{A,J}\), there exists \(\delta>0\) such that \(\mathcal{R}_X^{\mathrm{cay}}(Z)\) is well-defined for all \(Z\in T_X\mathrm{iSt}_{A,J}\;:\;\|Z\| < \delta\).
Proof. In view of [@GoluV13], it suffices to show that \(\|S_{X,Z}A\| < 1\) with \(\|Z\|<\delta\) for some \(\delta>0\). We have the following simple estimate \[\begin{align} \|S_{X,Z}A\| &= \|XJZ^TAXJX^TA - XJZ^TA + ZJX^TA\|\\ & \leq \|Z\|\left(\|X\|^3\|J\|^2\|A\|^2 + 2\|X\|\|J\|\|A\|\right). \end{align}\] Therefore, the statement holds for \(\delta = 1/\left(\|X\|^3\|J\|^2\|A\|^2 + 2\|X\|\|J\|\|A\|\right)\). ◻
The main computational burden for the Cayley retraction \(\mathcal{R}^{\mathrm{cay}}\) on \(\mathrm{iSt}(k,n)\) is contributed by the term \(\left( I_n - \frac{1}{2}S_{X,Z}A\right)^{-1}\) which means solving a linear system of equations whose coefficient matrix is of size \(n\times n.\) This task principally requires \(O(n^3)\) flops. In some cases, \(k\) is considerably smaller than \(n\) which makes that cost unreasonably high. It is therefore expected to develop a more efficient alternative. In the same framework as in [@OviH23; @BendZ21] for the symplectic Stiefel manifold and [@WangDPY2024] for the generalized Stiefel manifold, we obtain the following result.
Given \(X\in\mathrm{iSt}(k,n)\) and \(Z\in T_{X}\mathrm{iSt}(k,n),\) for any \(t\) such that \(\left( I_n - \frac{t}{2}S_{X,Z}A\right)\) is invertible, we have \[\label{eq:Cayley95econ} \mathcal{R}_X^{\mathrm{cay}}(tZ) = -X + \left(t\Lambda +2X \right) \left( \dfrac{t^2}{4}\Lambda^{+}\Lambda - \dfrac{t}{2}M+I_k\right)^{-1},\tag{28}\] where \(C^+: = JC^{T}A\) for any \(C\in {\mathbb{R}^{n\times k}}\), \(M = X^{+}Z\in{\mathbb{R}^{k\times k}}\) and \(\Lambda = Z -XM.\)
Proof. Set \(K \mathrel{\vcenter{:}}= \left[ \dfrac{1}{2}XM +\Lambda\;\; \;-X\right],\; N^{T} \mathrel{\vcenter{:}}= \begin{bmatrix} X^{+}\\ Z^{+}\left( I_n - \dfrac{1}{2}XX^{+}\right) \end{bmatrix}.\)
From Definition 1 and 25 , we have \[\begin{align}\label{eq:eqKNt} KN^{T} &= \left[ \left(I_n -\dfrac{1}{2}XX^{+} \right)Z \;\;\;\;-X \right]\begin{bmatrix} X^{+}\\ Z^{+}\left( I_n - \dfrac{1}{2}XX^{+}\right) \end{bmatrix} \\ & = \left( I_n - \dfrac{1}{2}XX^{+}\right)ZX^{+}-XZ^{+}\left( I_n - \dfrac{1}{2}XX^{+}\right)\\ & = S_{X,Z}A, \end{align}\tag{29}\] and \[\begin{align}\label{eq:eqNtK} N^{T}K &= \begin{bmatrix} \dfrac{1}{2}M\;& -I_k\\ & \\ \dfrac{1}{2}Z^{+}\left(I_n - \dfrac{1}{2}XX^{+} \right)XM+ Z^{+}\left(I_n - \dfrac{1}{2}XX^{+} \right)\Lambda&\;\; \dfrac{1}{2}M \end{bmatrix}\\ &= \begin{bmatrix} \dfrac{1}{2}M& -I_k\\ Z^{+}\Lambda - \dfrac{1}{4}M^2&\;\;\dfrac{1}{2}M \end{bmatrix}= \begin{bmatrix} \dfrac{1}{2}M& -I_k\\ \Lambda^{+}\Lambda - \dfrac{1}{4}M^2&\;\;\dfrac{1}{2}M \end{bmatrix}. \end{align}\tag{30}\] Here, to get 29 and 30 , we have used the facts that \(X^{+}X =I_k,X^{+}\Lambda = 0\), and \(X^{+}Z =- Z^{+}X.\) The last identity in 30 is deduced from the equalities \[\Lambda^{+}\Lambda = J(Z^{T} - M^{T}X^{T})A\Lambda =Z^{+}(I_n-XX^{+})\Lambda = Z^{+}\Lambda-Z^{+}XX^{+}\Lambda=Z^{+}\Lambda.\]
By ?? , we have \[\begin{align} \notag \mathcal{R}_X^{\mathrm{cay}}(tZ) &= \left( I_n - \dfrac{t}{2}S_{X,Z}A\right)^{-1}\left( I_n + \dfrac{t}{2}S_{X,Z}A\right) X \\ \notag & = \left( I_n - \dfrac{t}{2}KN^{T}\right)^{-1}\left( I_n + \dfrac{t}{2}KN^{T}\right) X \\ \notag & = \left( I_n+\dfrac{t}{2}K\left( I_{2k} -\dfrac{t}{2}N^{T}K\right)^{-1} N^{T}\right)\left( I_n + \dfrac{t}{2}KN^{T}\right) X \\ & = X + \dfrac{t}{2}KN^{T}X + \dfrac{t}{2}K\left(I_{2k} -\dfrac{t}{2}N^{T}K\right)^{-1}N^T\left(I_n + \dfrac{t}{2}KN^{T}\right)X\nonumber\\ & = X + \dfrac{t}{2}KN^{T}X + \dfrac{t}{2}K\left( I_{2k} - \dfrac{t}{2}N^{T}K\right)^{-1}\left( I_{2k} +\dfrac{t}{2}N^{T}K\right)N^{T}X\nonumber\\ & = X + \dfrac{t}{2}KN^{T}X - \dfrac{t}{2}K\left( I_{2k} - \dfrac{t}{2}N^{T}K\right)^{-1}\left( I_{2k} -\dfrac{t}{2}N^{T}K\right)N^{T}X\nonumber\\ &+tK\left( I_{2k} -\dfrac{t}{2}N^{T}K\right)^{-1}N^{T}X\nonumber\\ & = X+tK\left( I_{2k} -\dfrac{t}{2}N^{T}K\right)^{-1}N^{T}X\nonumber\\ & = X+tK\left( I_{2k} -\dfrac{t}{2}N^{T}K\right)^{-1}\begin{bmatrix} I_k\\ -\dfrac{1}{2}M \end{bmatrix}.\label{eq:Rcay2} \end{align}\tag{31}\] Here, the second equality follows from equation 29 meanwhile the third is due to the Sherman-Morrison-Woodbury formula [@GoluV13].
Moreover, a direct inspection using 30 and the Schur complement of block matrices, see, e.g., [@Punta05], yields that \[\begin{align} \left( I_{2k} -\dfrac{t}{2}N^{T}K\right)^{-1} &= \begin{bmatrix} I_{k} -\dfrac{t}{4}M&\dfrac{t}{2}I_k\\ -\dfrac{t}{2}\left( \Lambda^{+}\Lambda-\dfrac{1}{4}M^2\right) &I_k-\dfrac{t}{4}M \end{bmatrix}^{-1}\\ &= \begin{bmatrix} \Gamma^{-1}\left( I_k - \dfrac{t}{4}M\right)&-\dfrac{t}{2}\Gamma^{-1}\\ \dfrac{2}{t}I_k - \dfrac{2}{t}\left( I_k - \dfrac{t}{4}M\right)\Gamma^{-1}\left( I_k - \dfrac{t}{4}M\right)&\left( I_k - \dfrac{t}{4}M\right)\Gamma^{-1} \end{bmatrix} \end{align}\] where \(\Gamma\mathrel{\vcenter{:}}= \left( \dfrac{t^2}{4}\Lambda^{+}\Lambda-\dfrac{t}{2}M+I_k\right)\). Therefore, the second term in equation 31 becomes \[\begin{align} tK&\begin{bmatrix} \Gamma^{-1}\left( I_k - \dfrac{t}{4}M\right)&-\dfrac{t}{2}\Gamma^{-1}\\ \dfrac{2}{t}I_k - \dfrac{2}{t}\left( I_k - \dfrac{t}{4}M\right)\Gamma^{-1}\left( I_k - \dfrac{t}{4}M\right)&\left( I_k - \dfrac{t}{4}M\right)\Gamma^{-1} \end{bmatrix}\begin{bmatrix} I_k\\ -\dfrac{1}{2}M \end{bmatrix}\\ &=tK \begin{bmatrix} \Gamma^{-1}\left( I_k - \dfrac{t}{4}M\right)+\dfrac{t}{4}\Gamma^{-1}M\\ \dfrac{2}{t}I_k - \dfrac{2}{t}\left( I_k - \dfrac{t}{4}M\right)\Gamma^{-1}\left( I_k - \dfrac{t}{4}M\right)-\dfrac{1}{2}\left( I_k - \dfrac{t}{4}M\right)\Gamma^{-1}M \end{bmatrix}\\ &=tK\begin{bmatrix} \Gamma^{-1}\\ \dfrac{2}{t}I_k - \dfrac{2}{t}\left( I_k - \dfrac{t}{4}M\right)\Gamma^{-1}\left[ \left( I_k - \dfrac{t}{4}M\right)+\dfrac{t}{4}M\right] \end{bmatrix}\\ & =tK\begin{bmatrix} \Gamma^{-1}\\ \dfrac{2}{t}I_k - \dfrac{2}{t}\left( I_k - \dfrac{t}{4}M\right)\Gamma^{-1} \end{bmatrix}\\ & = \dfrac{t}{2}XM\Gamma^{-1}+t\Lambda\Gamma^{-1} - 2X+2X\left( I_k - \dfrac{t}{4}M\right)\Gamma^{-1}\\ & = -2X +(t\Lambda +2X)\Gamma^{-1}. \end{align}\] Hence, 31 reduces to \[\mathcal{R}_X^{\mathrm{cay}}(tZ) = -X+(t\Lambda +2X)\Gamma^{-1} = -X +(t\Lambda +2X)\left( \dfrac{t^2}{4}\Lambda^{+}\Lambda - \dfrac{t}{2}M+I_k\right)^{-1}\] which also completes the proof. ◻
Remark 3. The curve 26 is a generalization of [@WenY2013] for the Stiefel manifold and [@ShusA2023] for the generalized Stiefel manifold; cf. [@GSAS21] for the symplectic Stiefel manifold. The intermediate formula 31 reduces to [@WangDPY2024] and [@WenY2013] with the corresponding restrictions on \(A\) and \(J\); cf. [@GSAS21]. Finally, the most efficient formula 28 which involves inversing matrix of size \(k\times k\) only cannot be found in the literature for generalized Stiefel manifold; cf. [@OviH23] and [@BendZ21] for the case of symplectic Stiefel manifold.
Remark 4. The economical formula 28 for the Cayley retraction can also be derived as a special case of Jiang-Dai’s family of retraction proposed in [@JianD15] in the same framework as proceeded in [@OviH23].
To close this section, we discuss the possibility that the Cayley retraction ?? is of second order. It can be interpreted from [@Boumal23] that a retraction \(\mathcal{R}\) is of second order if, for any \(X\) and \(Z\in T_X\mathrm{iSt}_{A,J}\), the second derivative of its curve \(\frac{\mathrm{d}^2}{dt^2}(\mathcal{R}_X(tZ))\) belongs to the normal space \(T_X\mathrm{iSt}_{A,J}^{\perp}\). Second-order retraction helps compute the Riemannian Hessian of the cost function at any point without invoking the Riemannian connection [@Boumal23]. Differentiating the identity 27 yields \[\dfrac{\mathrm{d}^2}{\mathrm{d}t^2}\mathcal{R}_X^{\mathrm{cay}}(tZ) = 2 \left(\left(I_{n}-\dfrac{t}{2}S_{X,Z}A\right)^{-1}\dfrac{1}{2}S_{X,Z}A\right)^2\left(\mathcal{R}_X^{\mathrm{cay}}(tZ) + X\right).\] Particularly at \(t=0\), from 24 and the fact \(S_{X,Z}AX=Z\), we have \[\begin{align} \left.\dfrac{\mathrm{d}^2}{\mathrm{d}t^2}\mathcal{R}_X^{\mathrm{cay}}(tZ)\right|_{t=0} &= S_{X,Z}AS_{X,Z}AX =S_{X,Z}AZ\\ &=\left(XJZ^{T}AXJX^{T} - XJZ^{T} +ZJX^{T}\right)AZ. \end{align}\]
With the example below, we point out that \(\left.\frac{\mathrm{d}^2}{\mathrm{d}t^2}\mathcal{R}_X^{\mathrm{cay}}(tZ)\right|_{t=0}\) is generally not a normal vector at \(X\) which in turn implies that the Cayley retraction is not of second order. Let us consider a point \(X\in \mathrm{iSt}_{A,J}(2,3)\) with \[A = \begin{bmatrix}\begin{array}{ccc} \dfrac{-7}{3} & \dfrac{-2}{3} & \dfrac{4}{3}\\[0.8em] \dfrac{-2}{3} & \dfrac{-23}{15} & \dfrac{-14}{15}\\[0.8em] \dfrac{4}{3} & \dfrac{-14}{15} & \dfrac{-2}{15} \end{array} \end{bmatrix},\; J=\begin{bmatrix} 0&-1\\ -1&0 \end{bmatrix},\; X = \begin{bmatrix}\begin{array}{cc} \dfrac{\sqrt{5}-\sqrt{3}}{6} & \dfrac{\sqrt{5}+\sqrt{3}}{6}\\[0.8em] \dfrac{\sqrt{5}+5\sqrt{3}}{30} & \dfrac{\sqrt{5}-5\sqrt{3}}{30}\\[0.8em] -\dfrac{\sqrt{5}+5\sqrt{3}}{15} & \dfrac{-\sqrt{5}+5\sqrt{3}}{15} \end{array} \end{bmatrix}.\] It follows from 15 that, for \(W= \left[\begin{smallmatrix} 1&0\\ 0&-1 \end{smallmatrix}\right],\,X_{\perp}=\begin{bmatrix} 0&2&1 \end{bmatrix}^T, \text{ and } K=\begin{bmatrix} 1&0 \end{bmatrix},\) \[Z \mathrel{\vcenter{:}}= XW + A^{-1}X_{\perp}K = \begin{bmatrix}\begin{array}{cc} \dfrac{\sqrt{5}-\sqrt{3}}{6} & -\dfrac{\sqrt{5}+\sqrt{3}}{6}\\[1em] \dfrac{\sqrt{5}+5\sqrt{3}-30}{30} & \dfrac{-\sqrt{5}+5\sqrt{3}}{30}\\[1em] -\dfrac{2\sqrt{5}+10\sqrt{3}+15}{30}& \dfrac{\sqrt{5}-5\sqrt{3}}{15} \end{array} \end{bmatrix}\in T_X\mathrm{iSt}_{A,J}.\] Therefore, \[S_{X,Z} AZ= \begin{bmatrix}\begin{array}{cc} \dfrac{-3\sqrt{5}-7\sqrt{3}}{12} & \dfrac{\sqrt{5}+\sqrt{3}}{6}\\[1em] \dfrac{-3\sqrt{5}+35\sqrt{3}-60}{60} & \dfrac{\sqrt{5}-5\sqrt{3}}{30}\\[1em] \dfrac{3\sqrt{5}-35\sqrt{3}-15}{30}& \dfrac{-\sqrt{5}+5\sqrt{3}}{15} \end{array} \end{bmatrix}.\] Since \(JX^TS_{X,Z} AZ= \left[\begin{smallmatrix} 2&-2/3\\ -3/2&1/3 \end{smallmatrix}\right]\) is not symmetric, by contradiction it results in the fact that \(S_{X,Z}AZ\neq AX\hat{W},\) for all \(\hat{W}\in\mathrm{Sym}(2).\) That is, in view of Proposition [prop:normalspace95gM], \(S_{X,Z}AZ\) does not belong to the normal space \(T_X\mathrm{iSt}_{A,J}^{\perp}\) with respect to the Euclidean metric.
As the necessary tools are available, we are now ready to present a Riemannian gradient descent method for solving the problem 9 . Starting with an \(X_0\in \mathrm{iSt}_{A,J}\), this method generates a sequence \(\{X_j\}\) using a line search along the direction \(-\mathrm{grad}_{\mathbf{M}_{X}}f(X_j)\) and updates the solution as \[X_{j+1} = \mathcal{R}_{X_j}^{\mathrm{cay}}(-\tau_j \mathrm{grad}_{\mathbf{M}_{X}}f(X_j)),\] where \(\tau_j >0\) is a carefully chosen step size. The choice for step size undoubtedly has a great impact on the method’s performance. Here, we adopt a combination of a nonmonotone line search technique [@ZhanH2004] with the alternating Barzilai-Borwein [@BarB88] which has been adapted to Riemannian optimization in [@IannP18] and simplified in [@HuLWY2020] for embedded submanifolds, see Algorithm 1 for details and [@GSAS21] for more choices of step size. One can see from [eq:nonmonotone95cond] that if \(\alpha\) is chosen to be zero, this scheme reduces to the popular monotonically decreasing line search with Amijo’s rule.
Given Lemma 3, according to [@GSAS21], the global convergence of Algorithm 1 is guaranteed. Namely, regardless of the initial guess \(X_0\), every accumulation point \(X_*\) of the sequence \(\{X_j\}\) generated by Algorithm 1 is a critical point of the cost function \(f\) in 9 , i.e., \(\mathrm{grad}_{\mathbf{M}_{X}}f(X_*)=0\). The material presented in this section is theoretically known. Nevertheless, to the best of our knowledge, it is the first algorithmic development for Riemannian optimization on the
indefinite Stiefel manifold. Despite of simplicity, the algorithm will prove its efficiency via numerical tests in the next section. To finish this section, we give a rough estimate for the computational complexity of Algorithm 1. To this end, we provide in Table 1 the complexity of its main steps. In the computation of the Riemannian gradient, if we choose the Euclidean metric, the term \(\frac{4}{3}n^3\) will disappear, but it does not necessarily result in a shorter execution time since the total runtime also depends on the number of iterations niter and the number of the backtracking line
searches nls in each of them. If \(A\) is sparse, e.g., diagonal, the \(4n^2k\) becomes \(O(n)\). Meanwhile, the retraction formula 26 always costs \(O(n^3)\) and is obviously more expensive than 31 and 28 . From this table, one can give a rough statement on the
cost of Algorithm 1. For instance, using the retraction 28 , the total cost is \[\begin{align}
\begin{aligned}
\label{eq:roughcost}
&\texttt{niter}\left[\left(\frac{4}{3}n^3 + 4n^2k +8nk^2 -2nk + 18k^3\right) + 6nk\right.\\ &\left. \qquad+ (8nk^2 -nk + 4k^3 - 4k^2)+ \texttt{nls}\left(nk^2 + 4nk +\frac{2}{3}k^3 + 4k^2 + \texttt{fval}\right)\right],
\end{aligned}
\end{align}\tag{32}\] where fval is the cost to evaluate the cost function.
| Computation step | complexity |
|---|---|
| \(\gradm f(X_j)\), given \(\nabla f(X_j)\) | \(\frac{4}{3}n^3 + 4n^2k +8nk^2 -2nk + 18k^3\) |
| \(\gamma_j\) in Algorithm [alg:non-monotone32gradient] | \(6nk\) |
| Retraction [eq:Cayley95curve]: preparation | \(2n^3 + 6n^2k +nk\) |
| Retraction [eq:Cayley95curve]: backtracking loop | \(\frac{2}{3}n^3 + n^2k\) |
| Retraction [eq:Rcay2]: preparation | \(10nk^2 -nk + 6k^3 -3k^2\) |
| Retraction [eq:Rcay2]: backtracking loop | \(2nk^2 + nk + \frac{28}{3}k^3 + 8k^2\) |
| Retraction [eq:Cayley95econ]: preparation | \(8nk^2 -nk + 4k^3 -4k^2\) |
| Retraction [eq:Cayley95econ]: backtracking loop | \(nk^2 + 4nk +\frac{2}{3}k^3 + 4k^2\) |
In this section, we run several examples to verify the theoretical results obtained previously and to better understand the overall numerical behavior of the method. First, the parameters in Algorithm 1 need to be set up. Most of them are fixed for all examples. Namely, for the backtracking search, we set \(\beta = 1\mathrm{e}{-4}\), \(\delta = 5\mathrm{e}{-1}\), \(\gamma_0 = 1\mathrm{e}{-3}\), \(\gamma_{\min} = 1\mathrm{e}{-15}\), \(\gamma_{\max} =1\mathrm{e}{+5}\). Moreover, \(\alpha = 0.85\) is used in the nonmonotone condition. The stopping tolerance \(\texttt{rstop}\), which indicates a convergence when \(\|\mathrm{grad}_{\mathbf{M}_{X}}f(X_j)\|_{X_j}\leq\texttt{rstop}\|\mathrm{grad}_{\mathbf{M}_{X}}f(X_0)\|_{X_0}\), is usually set to be either \(1\mathrm{e}{-9}\) or \(1\mathrm{e}{-6}\) upon example.
For every test, if the Euclidean Hessian of the extended cost function \(\nabla^2 \bar{f}(X)\) is positive-definite, we will take it to define the tractable metric as an adoption of the suggestion in [@DongGGG2022; @GaoPY2024]. The hint from [@ShusA2023] employing \(A\) is not applied here because \(A\) in the context of this paper is generally not spd. We will examine three schemes for the Cayley retraction to see the difference in efficiency and feasibility. We will also compare our proposed method with the augmented
Lagrangian method (ALM) [@NoceW06]. This method has recently been reported to deliver good results when applied to the optimization problem under the symplecticity constraint [@OviedoLara2025]. Specifically applied to our present problem, at step \(j\) of the main iteration, the method approximately solves the subproblem with the stopping criterion \(\|X_j^TAX_j-J\|_F/(j + 10)\) using the spectral gradient method as in [@OviedoLara2025]4. After this step, we update the multiplier and penalty parameter as \(\Lambda_{j+1} = \Lambda_{j}+\mu_j(X_{j+1}^TAX_{j+1}-J)\) and \[\mu_{j+1} = \left\{
\begin{array}{ll} &\mu_j, if\|X_{j+1}^TAX_{j+1}-J\|_F\leq \tau\|X_j^TAX_j-J\|_F or\mu_j\geq 1\mathrm{e}+14,\\ &\rho\mu_{j},
\end{array}\right.\] respectively, where \(\tau\in (0,1), \rho > 1\). Usually, we initialize the parameters as: Lagrange multiplier \(\Lambda_0 = 0, \mu_0 = 1\), and \(X_0\) is the normalized matrix of 1’s and set \(\tau = 0.25, \rho = 10\) as recommended in [@SunYuan2006]. We stop the main iteration when
the Euclidean norm of the associated Lagrangian function meets the relative convergence condition, specified by \(\texttt{rstop}_{ALM}\), in the same manner as the proposed Riemannian gradient descent (RGD) method and the
feasibility violation does not exceed the tolerance feastol. Additionally, we also point out that the step size strategy described in Algorithm 1 is helpful by comparing the result with that using
a fixed step size. The numerical experiments are performed on a laptop with Intel(R) Core(TM) i7-4500U (at 1.8GHz, 5MB Cache, 8GB RAM) running MATLAB R2023a under Windows 10 Home. The main code is made available at https://sites.google.com/view/ntson/code.
We consider in this section the minimization problem 9 where \(f(X) = \mathrm{tr}\left(X^TMX\right)\), \(M\in \mathrm{SPD}(n)\), \(A\in \mathrm{Sym}(n)\) is nonsingular with \(\mathrm{i}_+(A)=p, \mathrm{i}_-(A) = m\), and \(p+m = n\), \(J = \mathrm{diag}(I_{k_p},-I_{k_m})\) and \(k_p+k_m = k, k_p\leq p, k_m \leq m\). In view of [@KovaV95], recalling 6 , a global solution \(X_*\) can be used to compute \(k_p\) positive and \(k_m\) negative eigenvalues having the smallest magnitude of the matrix pencil \((M,A)\). Indeed, it follows that \(MX_* = AX_*\Lambda\) where \(\Lambda = \mathrm{diag}(\Lambda_+,\Lambda_-)\) is determined as in the theorem mentioned. This equality leads to \(X_*^TMX_* = \mathrm{diag}(\Lambda_+,-\Lambda_-)\). Finally, the sought eigenvalues can be determined as that of the \(k_p\times k_p\) matrix \(\Lambda_+\) and \(k_m\times k_m\) matrix \(\Lambda_-\). In each test, we present the value of the objective function (obj.), the norm in the chosen metric of the Riemannian gradient (grad.), the relative error in computing the mentioned eigenvalues (eig. rel. err.) \(\|MV - AVD\|_F/\|AVD\|_F\) in which \(V\) is a matrix of (generalized) eigenvectors associated with the computed eigenvalues listed in the diagonal of the diagonal matrix \(D\), the feasibility (feas.) \(\|X_*^TAX_*-J\|_F\), the number of iterations (\(\#\)iter.), the number of function evaluations (\(\#\)eval.), and the CPU time (CPU) needed to obtain \(X_*\).
In the first context, we choose the Lehmer matrix of size \(n = 200\) as the matrix \(M\), and set \(A = \mathrm{diag}(1,\ldots,p,-m,\ldots,-1)\) with
\(p=150\) and \(m=50\). We consider both Euclidean and weighted Euclidean metrics for two triplets \((k,k_p,k_m) = (5,3,2)\) and \((20,15,5)\) which results in four instances. With rstop\(=1\mathrm{e}-9\), the obtained numerical results, noted as RGD, are given in Table 2.
It is obvious to see that using an appropriately chosen metric can significantly speed up the iterative scheme. Surprisingly, it also helps reduce the error of eigenvalue and eigenvector computations. In the forthcoming tests, we only use an individually
chosen weighted Euclidean metric. We also run the ALM for this model with \(\texttt{rstop}_{ALM} = 1\mathrm{e}-7\) and \(\texttt{feastol} = 1\mathrm{e}-10\). This specific convergence
condition and the maximal numbers of the main and inner iterations, 10 and 5000, respectively, are set so that the accuracy of the obtained result can be comparable to that of the RGD method. Note that the norm of the Riemannian gradient of the cost
function, which is indeed quite the same as the norm of the gradient of the Lagrangian function, is displayed to make the comparison appropriate.
| Meth. | retr. | obj. | grad. | eig. rel. err. | feas. | \(\#\)iter. | \(\#\)eval. | CPU |
|---|---|---|---|---|---|---|---|---|
| \(k = 5\), \(k_p = 3\), \(k_m= 2\), \(\Mx = I_n\) | ||||||||
| [eq:Cayley95curve] | \(2.244\e-4\) | \(3.823\e-9\) | \(2.164\e-6\) | \(2\e-12\) | 13932 | 15016 | 16.7 | |
| RGD | [eq:Rcay2] | \(2.244\e-4\) | \(2.134\e-9\) | \(1.208\e-6\) | \(9\e-14\) | 12463 | 13510 | 3.3 |
| [eq:Cayley95econ] | \(2.244\e-4\) | \(4.458\e-9\) | \(2.524\e-6\) | \(1\e-12\) | 10824 | 11657 | 2.3 | |
| ALM | \(2.294\e-4\) | \(2.021\e-5\) | \(1.135\e-2\) | \(3\e-06\) | \(4\) | \(20695\) | \(1.1\) | |
| \(k = 20\), \(k_p = 15\), \(k_m= 5\), \(\Mx = I_n\) | ||||||||
| [eq:Cayley95curve] | \(9.084\e-4\) | \(7.881\e-9\) | \(2.067\e-6\) | \(5\e-12\) | 17122 | 18493 | 30.8 | |
| RGD | [eq:Rcay2] | \(9.084\e-4\) | \(7.618\e-9\) | \(1.997\e-6\) | \(7\e-13\) | 17649 | 19072 | 14.7 |
| [eq:Cayley95econ] | \(9.084\e-4\) | \(7.920\e-9\) | \(2.078\e-6\) | \(7\e-12\) | 16248 | 17517 | 11.6 | |
| ALM | \(9.130\e-4\) | \(5.848\e-5\) | \(1.510\e-2\) | \(1\e-09\) | \(10\) | \(51020\) | \(7.1\) | |
| \(k = 5\), \(k_p = 3\), \(k_m= 2\), \(\Mx = M\) | ||||||||
| [eq:Cayley95curve] | \(2.244\e-4\) | \(8.405\e-10\) | \(8.207\e-8\) | \(9\e-15\) | 92 | 93 | 0.3 | |
| RGD | [eq:Rcay2] | \(2.244\e-4\) | \(1.258\e-9\) | \(4.397\e-8\) | \(2\e-13\) | 103 | 104 | 0.3 |
| [eq:Cayley95econ] | \(2.244\e-4\) | \(1.211\e-9\) | \(1.215\e-7\) | \(2\e-13\) | 97 | 98 | 0.2 | |
| \(k = 20\), \(k_p = 15\), \(k_m= 5\), \(\Mx = M\) | ||||||||
| [eq:Cayley95curve] | \(9.084\e-4\) | \(1.173\e-9\) | \(3.676\e-8\) | \(2\e-14\) | 109 | 110 | 0.5 | |
| RGD | [eq:Rcay2] | \(9.084\e-4\) | \(1.317\e-9\) | \(5.851\e-9\) | \(1\e-12\) | 127 | 128 | 0.3 |
| [eq:Cayley95econ] | \(9.084\e-4\) | \(9.063\e-10\) | \(1.350\e-8\) | \(1\e-12\) | 121 | 122 | 0.3 | |
We continue with this model to check the scalability of the proposed algorithm. To this end, we let \(n=200, 400,\ldots,6400\), \(p = 3n/4, m = n/4\), while we fix \(k=10, k_p=k_m=5\). In Table 3, we report some measures versus the problem size. One can observe that while the gradient norm and the feasibility violation are quite stable, the number of iterations as well as the function evaluations increase predictably. Specifically, the CPU time indicates that the computational complexity of Algorithm 1 is approximately \(O(n^3)\), which basically matches the estimate given in 32 .
| \(n\) | 200 | 400 | 800 | 1600 | 3200 | 6400 |
|---|---|---|---|---|---|---|
| grad. | \(1.3\e-8\) | \(1.1\e-8\) | \(1.1\e-8\) | \(1.1\e-8\) | \(6.7\e-9\) | \(1.2\e-8\) |
| eig. rel. err. | \(3.2\e-7\) | \(5.7\e-7\) | \(1.9\e-7\) | \(2.7\e-7\) | \(2.6\e-7\) | \(2.5\e-2\) |
| feas. | \(1\e-11\) | \(5\e-12\) | \(1\e-10\) | \(2\e-12\) | \(1\e-11\) | \(6\e-12\) |
| \(\#\)iter. | 108 | 120 | 192 | 201 | 233 | 251 |
| \(\#\)eval. | 109 | 121 | 194 | 205 | 248 | 262 |
| CPU | 0.30 | 0.87 | 5.24 | 28.19 | 201.98 | 1376.28 |
Next, we numerically examine the constant step size strategy for the proposed algorithm using the same model problem with \(n = 5000\) and \(\texttt{rstop} = 1\mathrm{e}-6\). For unconstrained optimization of quadratic functions, it was confirmed in [@Bertsekas1999] that a convergence to a solution is guaranteed for the gradient descent method if the fixed step size is smaller than \(2/\lambda_{\max}\), where \(\lambda_{\max}\) is the largest eigenvalue of the Hessian. Our situation is a bit more involved, but this hint can provide a range for the tests. Since the recommended upper bound in our cases is approximately \(7\mathrm{e}-4\), we run the RGD method with fixed step sizes, namely, \(5\mathrm{e}-6, 1\mathrm{e}-5, 5\mathrm{e}-5, 1\mathrm{e}-4, 5\mathrm{e}-4, 1\mathrm{e}-3, 5\mathrm{e}-3\) and compare the results with our Algorithm 1. As expected, only Algorithm 1 delivers a convergence after 242 iterations. We report the running history in Figure [fig:fixstep]. One can see that, except for a slight loss of feasibility and about 1.5 times slower per iteration, the non-monotone line search strategy in Algorithm 1 is still much more efficient than a fixed step size in reaching a solution.
of the step size strategy used in Algorithm :non-monotone32gradient with different fixed step sizes (specified on the top) on the model problem described in Table :scalability with \(n=5000\) and \(\textttrstop = 1\mathrm{e}-6\). :fixstep
Figure 2: No caption. a — image
Now, we proceed with different positive-definite matrices in the MATLAB gallery with a similar setting. Namely, we consider the cost function 9 determined by different matrices \(M\) with \((n,p,m) = (2000,1000,1000)\) and \((k,k_p,k_m)=(10,5,5)\), \(A = \mathrm{diag}(1,\ldots,p,-1,\ldots,-m)\) and \(\texttt{rstop}=1\mathrm{e}-9\). For ALM, we set \(\texttt{rstop}_{ALM} = 1\mathrm{e}-7\), \(\texttt{feastol} = 1\mathrm{e}-8\), with maximal 20 and 1000 iterations for the main and inner loops, respectively. More details and the obtained results are described in Table 4. One can easily see that the Cayley retraction formulae 31 and 28 are faster in yielding the solution, while the conventional one 26 is always the best in preserving the feasibility. Compared to RGD, the ALM method delivers less acurate result, especially the gradient norm and the relative error in eigenvalue computation, although it consumes more time. Particularly, it does not yield a solution in the case of the \(\texttt{tridiag}\) matrix.
| Meth. | retr. | obj. | grad. | eig. rel. err. | feas. | \(\#\)iter. | \(\#\)eval. | CPU |
|---|---|---|---|---|---|---|---|---|
| \(M=gallery('lehmer',n)\) | ||||||||
| [eq:Cayley95curve] | \(3.940\e-6\) | \(2.717\e-9\) | \(7.282\e-7\) | \(2\e-14\) | 166 | 174 | 90.7 | |
| RGD | [eq:Rcay2] | \(3.940\e-6\) | \(1.146\e-9\) | \(7.228\e-5\) | \(2\e-12\) | 163 | 171 | 40.3 |
| [eq:Cayley95econ] | \(3.940\e-6\) | \(2.920\e-9\) | \(2.392\e-6\) | \(3\e-09\) | 165 | 173 | 41.2 | |
| ALM | \(2.048\e-5\) | \(6.443\e-3\) | \(9.023\e-2\) | \(7\e-16\) | \(20\) | \(21163\) | \(257.5\) | |
| \(M\) = gallery(’gcdmat’,\(\,n\)) | ||||||||
| [eq:Cayley95curve] | \(5.223\e-0\) | \(1.934\e-8\) | \(2.721\e-8\) | \(8\e-14\) | 513 | 530 | 262.4 | |
| RGD | [eq:Rcay2] | \(5.223\e-0\) | \(3.595\e-8\) | \(1.327\e-8\) | \(5\e-11\) | 559 | 564 | 126.5 |
| [eq:Cayley95econ] | \(5.223\e-0\) | \(2.868\e-8\) | \(5.681\e-11\) | \(5\e-11\) | 633 | 666 | 144.4 | |
| ALM | \(5.228\e-0\) | \(8.118\e-2\) | \(3.292\e-4\) | \(9\e-12\) | 20 | 19499 | 232.7 | |
| \(M\) = gallery(’mohler’,\(\, n,\;0.5\)) | ||||||||
| [eq:Cayley95curve] | \(5.716\e-3\) | \(2.130\e-8\) | \(1.531\e-6\) | \(2\e-14\) | 260 | 296 | 137.1 | |
| RGD | [eq:Rcay2] | \(5.716\e-3\) | \(2.393\e-8\) | \(7.323\e-5\) | \(7\e-12\) | 328 | 450 | 75.3 |
| [eq:Cayley95econ] | \(5.716\e-3\) | \(2.337\e-8\) | \(9.779\e-6\) | \(5\e-12\) | 248 | 291 | 56.9 | |
| ALM | \(6.322\e-3\) | \(1.613\e-2\) | \(1.146\e-1\) | \(1\e-13\) | 20 | 22311 | 266.1 | |
| \(M\) = gallery(’minij’, \(n\)) | ||||||||
| [eq:Cayley95curve] | \(2.585\e-3\) | \(8.918\e-8\) | \(1.338\e-6\) | \(3\e-14\) | 203 | 237 | 111.1 | |
| RGD | [eq:Rcay2] | \(2.585\e-3\) | \(4.215\e-8\) | \(2.482\e-6\) | \(2\e-08\) | 199 | 225 | 48.4 |
| [eq:Cayley95econ] | \(2.585\e-3\) | \(7.641\e-8\) | \(2.656\e-6\) | \(3\e-10\) | 202 | 233 | 48.4 | |
| ALM | \(4.033\e-3\) | \(4.164\e-2\) | \(4.368\e-1\) | \(3\e-13\) | 20 | 21725 | 261.2 | |
| \(M\) = gallery(’tridiag’, \(n\)) | ||||||||
| [eq:Cayley95curve] | \(2.039\e-6\) | \(6.377\e-10\) | \(2.703\e-5\) | \(1\e-14\) | 39 | 54 | 12.8 | |
| RGD | [eq:Rcay2] | \(2.039\e-6\) | \(6.940\e-10\) | \(2.702\e-5\) | \(4\e-13\) | 39 | 54 | 0.1 |
| [eq:Cayley95econ] | \(2.039\e-6\) | \(6.604\e-10\) | \(2.702\e-5\) | \(4\e-13\) | 39 | 54 | 0.1 | |
| ALM | failed | |||||||
Now, we move our attention to the LREVP in terms of the minimization problem 8 . Here, we use data of larger sizes, stemming from practice. In the first test, following [@BaiL14], we make use of the University of Florida sparse matrix collection [@DavisHu2011]. Namely, the matrix bcsstk21, which is of size \(3600\times 3600\), and the leading principal submatrix of the same size of the matrix sts4098 are assigned to \(K\) and \(M\), respectively. The
block structure makes the size of the problem 7200. We aim at computing the smallest four positive eigenvalues, and therefore the matrix \(J\) is chosen as \(I_4\). For the RGD method,
parameter setting is as before, while an initial guess \(X_0\) can be simply chosen as \(\left[\begin{smallmatrix} \tilde{V}\\\tilde{V} \end{smallmatrix}\right]\), where \(\tilde{V}\) is any \(n\times k\) random matrix with orthonormal columns divided by \(\sqrt{2}\). In our test, we start with an \(n\times k\) random matrix, preset by rng(1,‘philox’), and then orthogonalize the obtained matrix. With \(\texttt{rstop} = 1\mathrm{e}-9\), the convergence is reached
after 45 iterations. The condition \(\texttt{rstop} = 1\mathrm{e}-11\) is fulfilled at the 108-th iteration. Meanwhile, after trying various sets of paramters and initial guesses, we observe that ALM helps reduce the norm
of the associated Lagrangian function very fast at the beginning and usually stagnates when it reaches \(1\mathrm{e}+1\), which is too far from yielding a reliable approximation for the eigenvalues. Therefore, in Figure [fig:Florida] and Table 5, we report the results obtained using the proposed RGD only. One can see that, with the tolerance \(\texttt{rstop}=1\mathrm{e}-11\), our method can deliver a comparably accurate solution as in [@BaiL14]5
| Retr. | rstop. | obj. | grad. | eig. rel. err. | feas. | \(\#\)iter. | \(\#\)eval. | CPU |
|---|---|---|---|---|---|---|---|---|
| [eq:Cayley95curve] | \(1\e-09\) | 123.9778 | \(1.3520\e-5\) | \(7.766\e-07\) | \(4\e-15\) | 45 | 46 | 393.43 |
| [eq:Rcay2] | \(1\e-09\) | 123.9778 | \(1.3537\e-5\) | \(7.766\e-07\) | \(8\e-14\) | 45 | 46 | 2.91 |
| [eq:Cayley95econ] | \(1\e-09\) | 123.9778 | \(1.3540\e-5\) | \(7.766\e-07\) | \(6\e-14\) | 45 | 46 | 2.32 |
| [eq:Cayley95econ] | \(1\e-11\) | 123.9778 | \(6.1818\e-8\) | \(8.135\e-13\) | \(1\e-13\) | 108 | 109 | 5.39 |
history of the LREVP with data specified in Table :Florida. :Florida
Figure 3: No caption. a — image
Another model for the LREVP is considered next where the matrices \(K\) and \(M\) are derived from electronic structure calculations, which were also used in [@KresPS2014; @Pand2019; @BaiL13]. Here, for the problem of size \(n=11320\), the stopping tolerance rstop is set as \(1\mathrm{e}-6\) while other parameters are the same as before. Results are given in Table 6. Note however that our use of this example is merely as a model with practical data; the eigenvalue
computation scheme proposed in [@KresPS2014] is apparently more efficient. Indeed, a test using the retraction 26 with rstop \(=1\mathrm{e}-8\) delivers four approximate eigenvalues that can match about the first ten digits of the reference eigenvalues \[\begin{align} &\lambda^+_1 \approx 0.541812517132466,\quad
\lambda^+_2 \approx 0.541812517132473,\\ &\lambda^+_3 \approx 0.541812517132498,\quad \lambda^+_4 \approx 0.615143209274579,
\end{align}\] which is a bit worse than the approximation reported in [@KresPS2014].
| Retr. | obj. | grad. | feas. | \(\#\)iter. | \(\#\)eval. | CPU |
|---|---|---|---|---|---|---|
| [eq:Cayley95curve] | 2.240580760678145 | \(1.820\e-6\) | \(1\e-14\) | 89 | 90 | 3679 |
| [eq:Rcay2] | 2.240580760754902 | \(1.820\e-6\) | \(3\e-09\) | 89 | 90 | 1170 |
| [eq:Cayley95econ] | 2.240580760754425 | \(1.821\e-6\) | \(3\e-09\) | 89 | 90 | 1201 |
We consider minimization of the cost function of the form \[\label{eq:fitting} f(X) = \|GX-B\|^2_F.\tag{33}\] This form is an approach for various problems. First, with
suitable specification, it is the well known Procrustes problem [@Scho1966; @High1988; @AndeE1997; @BojaL1999; @BhatC2019]. In this subsection, to intimate the
conventional situation [@Scho1966], we examine the problem on the \(J\)-orthogonal group. That is, given \(G, B\in {\mathbb{R}^{l\times n}},\,
l\geq n\), find a matrix \(X\in \mathrm{iSt}_{J,J}\) with \(J = \mathrm{diag}(\pm 1,\ldots,\pm 1) \in {\mathbb{R}^{n\times n}}\) that minimizes \(f\)
defined in 33 . It is worth noting that in a recent work [@HeYWX2024], a block coordinate descent method was developed. To set up, let us consider \(J = (I_p,-I_m)\) with \(p+m=n\). Then \(G\) is randomly generated with rng default in MATLAB. A global solution is prescribed as \(V = \mathrm{diag}(V_1,V_2),\) where \(V_1\in \mathrm{O}(p), V_2\in \mathrm{O}(m)\) are initialized randomly with rng(1,‘twister’) and then orthogonalized by
orth. This results in the setting that \(B = GV\). The identity matrix \(I_n\) is chosen as the initial guess and \(\texttt{rstop} =
1\mathrm{e}-6\) for the RGD method; naturally, only the Cayley retraction 26 is used. For the ALM method, we set \(\texttt{rstop}_{ALM} = 1\mathrm{e}-9\) and \(\texttt{feastol} = 1\mathrm{e}-12\) while the maximal number of the main and the subproblem iterations are 20 and 100, respectively. Table 7 displays the results for different sizes of problem
with \(p = 3n/4\) in which diff. represents the difference between the prescribed and the numerically obtained solutions. Apparently, the iterate generated by the RGD method converges to the prescribed global minimizer only
in the cases \(l=n=1000\) and \((l,n)=(1500,1000)\); this is normal since the problem can have more than one global solution and/or the obtained solution might not be a global one. Overall,
the generated iterate converges as expected. Surprisingly, the ALM method offers better results in the case of \((l,n)=(1000,500)\).
| Meth. | obj. | grad. | diff. | feas. | \(\#\)iter. | \(\#\)eval. | CPU |
|---|---|---|---|---|---|---|---|
| \(l=500, n = 500\) | |||||||
| RGD | \(1.2912\e+01\) | \(6.9214\e-4\) | \(4.1199\e+0\) | \(1\e-13\) | 55 | 57 | 58.2 |
| ALM | \(3.6771\e-06\) | \(3.8351\e-3\) | \(7.5915\e-3\) | \(9\e-12\) | 20 | 2435 | 106.2 |
| \(l=1000, n = 500\) | |||||||
| RGD | \(1.1373\e+02\) | \(8.5525\e-4\) | \(2.2721\e+0\) | \(1\e-13\) | 66 | 67 | 73.2 |
| ALM | \(5.0538\e-12\) | \(9.8152\e-8\) | \(7.7892\e-7\) | \(1\e-06\) | 5 | 384 | 19.2 |
| \(l=1000, n = 1000\) | |||||||
| RGD | \(1.4532\e-9\) | \(7.6241\e-5\) | \(1.1278\e-6\) | \(1\e-13\) | 18 | 20 | 157.4 |
| ALM | \(1.4499\e-06\) | \(2.4082\e-3\) | \(3.1459\e-3\) | \(1\e-12\) | 20 | 2523 | 717.4 |
| \(l=1500, n = 1000\) | |||||||
| RGD | \(4.0584\e-11\) | \(1.2741\e-5\) | \(1.1278\e-6\) | \(1\e-13\) | 18 | 19 | 158.8 |
| ALM | \(2.2747\e-10\) | \(1.9010\e-6\) | \(5.6926\e-6\) | \(9\e-10\) | 20 | 2523 | 189.3 |
As the second application, we consider a matrix equation \[\label{eq:mateq} GX = B, G\in \mathrm{SPD}(n),\tag{34}\] on the indefinite Stiefel manifold \(\mathrm{iSt}_{A,I_k}\) with nonsingular \(A\in \mathrm{Sym}(n)\). If there is no information about the existence of a solution, a natural idea is to minimize the associated cost function of the form 33 . One can see that if \(B \in \mathrm{iSt}_{G^{-1}AG^{-1},I_k}\) then 34 admits a unique solution \(G^{-1}B\) which is also the unique global solution of the associated optimization problem. When \(G = I_n\), it is the nearest matrix problem considered in [@GSAS21]; some minimal distance and averaging problems can also be converted into this form, see, e.g., [@FioriT2009; @Fior11].
In the first scenario, most of the numerical data are fixed as follows. Let \((n,p,m) = (4000,3000,1000)\) and \(k=10\). First, let MATLAB generate an \(n\times
n\) random matrix with default setting and then this matrix is orthogonalized to yield \(V\) whose columns are denoted by \(v_j,j=1,\ldots,n\). Next, we set \(A = V\mathrm{diag}(1,\ldots,p,-m,\ldots,-1)V^T\). The right hand side is set as \(B = G[v_1,\ldots,v_k]\mathrm{diag}(1/\sqrt{1},\ldots,1/\sqrt{k})\). A set of \(k\) orthogonal eigenvectors corresponding to \(k\) positive eigenvalues of \(A\) divided by the square root of the associated eigenvalue is used as an initial
guess \(X_0.\) Table 8 reports the result of running different matrices \(G\) with the initial guess to be the scaled orthogonal eigenvectors of \(A\) associated with \(k\) eigenvalues of the largest magnitudes obtained by eigs in MATLAB. The same quantities as in the previous examples are displayed.
We try various sets of parameter values and initial guesses with the ALM method, but the obtained result is unsatisfactory and therefore not reported here.
| Retr. | obj. | grad. | diff. | feas. | \(\#\)iter. | \(\#\)eval. | CPU |
|---|---|---|---|---|---|---|---|
| \(G=gallery(lehmer,n)\) | |||||||
| [eq:Cayley95curve] | \(1.333\e-12\) | \(2.309\e-6\) | \(7.660\e-8\) | \(1\e-13\) | 15 | 16 | 129.4 |
| [eq:Rcay2] | \(1.086\e-12\) | \(2.084\e-6\) | \(8.397\e-8\) | \(1\e-14\) | 15 | 16 | 30.5 |
| [eq:Cayley95econ] | \(2.172\e-12\) | \(2.948\e-6\) | \(8.410\e-8\) | \(1\e-14\) | 15 | 16 | 30.4 |
| \(G=gallery(kms,n,0.5)\) | |||||||
| [eq:Cayley95curve] | \(1.596\e-22\) | \(2.527\e-11\) | \(2.164\e-11\) | \(1\e-13\) | 13 | 14 | 148.0 |
| [eq:Rcay2] | \(1.596\e-22\) | \(2.527\e-11\) | \(2.164\e-11\) | \(1\e-14\) | 13 | 14 | 67.4 |
| [eq:Cayley95econ] | \(1.596\e-22\) | \(2.527\e-11\) | \(2.164\e-11\) | \(1\e-14\) | 13 | 14 | 61.7 |
| \(G=gallery(minij,n)\) | |||||||
| [eq:Cayley95curve] | \(4.717\e-7\) | \(1.374\e-3\) | \(5.409\e-9\) | \(1\e-13\) | 111 | 149 | 967.1 |
| [eq:Rcay2] | \(7.224\e-9\) | \(1.700\e-4\) | \(3.069\e-9\) | \(1\e-13\) | 123 | 163 | 236.4 |
| [eq:Cayley95econ] | \(9.846\e-8\) | \(6.275\e-4\) | \(4.456\e-9\) | \(1\e-14\) | 113 | 154 | 216.3 |
In order to practically verify the global convergence of Algorithm 1, we reuse the above model setting with random data. Namely, \(V\) is randomly generated without any
prescribed generator; \(X_0\) is the set of \(k\) randomly picked columns among the first \(p\) columns of \(V\) using
randsample\((p,k)\) in MATLAB. Then, for each model matrix, we run ten tests. The average of quantities obtained from these tests are given in Table 9. Apparently,
the iterate generated by the proposed algorithm always converges to the global minimizer of the cost function which is also the solution to the matrix equation.
| Matr \(G\) | obj. | grad. | err. | feas. | \(\#\)iter. | \(\#\)eval. | CPU |
|---|---|---|---|---|---|---|---|
| lehmer | \(2.856\e-14\) | \(2.687\e-7\) | \(4.627\e-09\) | \(1\e-13\) | 15.9 | 16.9 | 38.0 |
| kms | \(1.090\e-18\) | \(1.249\e-9\) | \(9.963\e-10\) | \(4\e-14\) | 13.3 | 14.3 | 68.5 |
| minij | \(3.146\e-07\) | \(9.162\e-4\) | \(5.676\e-09\) | \(2\e-13\) | 113.4 | 153.6 | 224.2 |
From the examples presented in both two subsections 6.1 and 6.2, it can be concluded that (i) the algorithm with all of its components proposed for minimization on the indefinite Stiefel manifold works as expected: it converges to a solution regardless of the initial guess. In most cases, it apparently delivers better results than that obtained by the classical augmented Lagrangian method for the equality constrained problem. Moreover, (ii) an appropriately chosen metric, enabled by the consideration of a tractable metric, always results in a faster solution: fewer iterations and CPU time. And finally, (iii) the three formulae for the Cayley retraction all work properly: the conventional one 26 is suitable for large \(k\), e.g., the indefinite orthogonal group, while the two others 31 and 28 are advisable for small \(k\) as they help replace inversion of an \(n\times n\) matrix by that of a \(k\)-sized matrix. Using these two schemes can sometimes result in a slight loss of feasibility. This is most probably due to the occasional instability of Sherman-Morrison-Woodbury formula as reported in, e.g., [@FineS2001; @HaoS2021]; it can be restored using a suitable Gram-Schmidt algorithm, upon the individual case.
We addressed the minimization problem subject to a quadratic constraint of the form \(X^TAX = J\) with symmetric, nonsingular matrix \(A\) and the matrix \(J\) satisfying \(J^2 = I\), in the Riemannian framework. Our result provided a unified framework for Riemannian optimization on the orthogonal and generalized Stiefel manifolds, \(J\)-orthogonal group, and more than that.
The numerical examples showed that, on the one hand, the proposed Riemannian gradient descent scheme is a highly capable method, especially for the case that an appropriate metric is used, but on the other hand, it may suffer from slow convergence. More robust algorithms such as conjugate gradient or an efficient way to exploit the second-order information of the cost function beyond the tractable metric might be considered in future work.
The authors would like to thank Dr. Marija Miloloža Pandur for providing the data used in the last example of subsection 6.1. Dinh Van Tiep’s research was supported by Thai Nguyen University of Technology.
Faculty of Fundamental and Applied Sciences, Thai Nguyen University of Technology, 24131 Thai Nguyen, Vietnam (tiep.dv@tnut.edu.vn).↩︎
Department of Mathematics and Informatics, Thai Nguyen University of Sciences, 24118 Thai Nguyen, Vietnam (ntson@tnus.edu.vn).↩︎
There is a mixed use of terms for “Stiefel-type" manifolds. The set \(\mathrm{iSt}_{A,I_k}\), which is a special case of \(\mathrm{iSt}_{A,J}\) in 10 , was named the indefinite Stiefel manifold in [@Kobayashi1992], pseudo-Stiefel manifold in [@Chikuse2003] and generalized Stiefel manifold in [@Li1993; @SenadoMendoza2022]. At the same time, as mentioned previously, the generalized Stiefel manifold means \(\mathrm{iSt}_{A,I_k}\) with \(A\) is spd in the optimization community and in this work. The set \(\{X\in {\mathbb{R}^{n\times k}}:\;X^TX = C\}\), where \(C\) is spd, was called the Stiefel C-manifold in [@Downs1972].↩︎
In fact, we adapt the MATLAB code, provided by the authors at https://www.mathworks.com/matlabcentral/fileexchange/181008, to our problem.↩︎
Note that [@BaiL14] considered the generalized LREVP including the LREVP as a special case.↩︎