---
title: Riemannian Bilevel Optimization (RBLO)
url: https://www.emergentmind.com/topics/riemannian-bilevel-optimization-rblo
type: topic
---

# Riemannian Bilevel Optimization (RBLO)

Riemannian bilevel optimization (RBLO) generalizes classical bilevel optimization by incorporating variables constrained to Riemannian manifolds. This extension is motivated by modern machine learning and signal processing tasks, where constraints such as orthogonality, positive definiteness, or low-rankness naturally equip variables with manifold structures. Formally, RBLO addresses hierarchical problems of the form:
\[
\min_{x \in \mathcal{M}_x} F(x) = f(x, y^*(x)) \quad \text{where} \quad y^*(x) = \arg\min_{y \in \mathcal{M}_y} g(x, y)
\]
where $\mathcal{M}_x$ and $\mathcal{M}_y$ are differentiable manifolds equipped with Riemannian metrics, and $f,g$ are smooth functions. This framework requires novel algorithmic tools for hypergradient computation, manifold-adapted optimization, and convergence analysis to manage the geometric and bilevel structure simultaneously.

## 1. Mathematical Formulation and Problem Structure

RBLO formalizes a two-level optimization problem where both the upper-level ($x$) and lower-level ($y$) variables are elements of possibly distinct Riemannian manifolds. The lower-level objective $g(x, y)$ is typically assumed to be geodesically strongly convex in $y$, ensuring uniqueness and continuous dependence of $y^*(x)$ on $x$. The upper-level problem then becomes minimizing the composite function $F(x) = f(x, y^*(x))$. The implicit dependence of $F$ on $x$ through $y^*(x)$, together with the non-Euclidean geometry, necessitates careful analysis of optimality conditions and differentiability.

The key quantity for first-order RBLO algorithms is the Riemannian hypergradient of $F(x)$. By applying the Riemannian implicit function theorem and chain rule, it is established (see, e.g., [2402.02019], [2402.03883]) that:
\[
\operatorname{grad}_x F(x) = \operatorname{grad}_x f(x, y^*(x)) 
  - \nabla^2_{y,x} g(x, y^*(x)) \Big[H_y(g(x, y^*(x)))^{-1} \operatorname{grad}_y f(x, y^*(x))\Big]
\]
where $H_y(g)$ is the Riemannian Hessian of $g$ in $y$, and $\nabla^2_{y,x} g$ denotes the Riemannian cross-derivative operator. These differential geometric objects capture parallel transport, projections to tangent spaces, and the local curvature of the manifold.

## 2. Hypergradient Estimation and Algorithmic Strategies

Efficient computation of the hypergradient is central to RBLO. Due to the lack of closed-form solutions for $y^*(x)$ and the computational cost of Hessian inverses, several practical strategies have been proposed [2402.02019], [2402.03883], [2504.06042]. These include:

- The Hessian Inverse (HINV) approach computes the hypergradient using an explicit or iteratively approximated inversion of the lower-level Hessian.
- Tangent-space Conjugate Gradient (CG) solves the required linear systems implicitly, relying on Hessian–vector products without forming the full Hessian.
- Truncated Neumann Series (NS) approximates the inverse Hessian via a power series summing terms of the form $(I - \gamma H)^k$, controlled by the Lipschitz constant and step size.
- Automatic Differentiation (AD), using unrolled lower-level iterations, enables gradient computation by differentiating through the sequence of manifold operations such as retractions or exponential maps.

These methods trade off between computational efficiency and hypergradient estimation fidelity. For instance, CG-based estimators are scalable and accurate when equipped with proper stopping criteria on inner loops, while AD is generally simpler to implement but potentially suffers from curvature-induced errors.

A spectrum of RBLO algorithms leverages these estimators:
- RieBO (deterministic gradient-based; [2402.02019])
- RieSBO (stochastic setting, uses Neumann series; [2402.02019])
- RHGD (Riemannian hypergradient descent with options for HINV/CG/NS/AD; [2402.03883])
- AdaRHD (Adaptive Riemannian Hypergradient Descent; parameter-free step size adaptation; [2504.06042])
- FBDA (Full Bilevel Descent Aggregation; aggregates upper- and lower-level gradients; [2510.15305])
- RF²SA (first-order approximation using a Lagrangian multiplier; avoids second-order information; [2405.15816])

These algorithms utilize retractions (as computationally efficient surrogates for exponential maps), parallel transport for tangent space alignment, and hybrid step size strategies (e.g., Barzilai–Borwein followed by diminishing steps) to respect manifold geometry.

## 3. Convergence Analysis and Oracle Complexity

Convergence guarantees for RBLO algorithms require blending Riemannian optimization theory with bilevel-specific complexity analysis. Under standard assumptions—geodesic strong convexity and Lipschitz smoothness, bounded sectional curvature, and the global injectivity radius—it is established that:

- For deterministic schemes (e.g., RHGD, AdaRHD), an $\epsilon$-stationary point (defined by $\|\operatorname{grad} F(x)\| \leq \epsilon$) is attainable in $\mathcal{O}(1/\epsilon)$ outer iterations, with total gradient complexity for the upper-level function scaling as $\mathcal{O}(1/\epsilon)$ and that for the lower-level function as $\mathcal{O}(1/\epsilon^2)$ [2504.06042].
- CG-based hypergradient computation further refines the second-order complexity to nearly logarithmic in $1/\epsilon$ by exploiting the quadratic convergence of conjugate gradient methods on manifolds [2504.06042].
- Stochastic variants (e.g., RieSBO, stochastic RHGD) admit complexity bounds with variance-dependent terms; e.g., $\mathcal{O}(\kappa^5/\epsilon^2)$ for upper-level gradient evaluations, where $\kappa$ denotes the condition number of the lower-level problem [2402.03883].
- The use of general retraction mappings, as opposed to exponential maps, does not affect the overall convergence rates but influences constants in the Lyapunov/complexity bounds, provided the approximation error is suitably controlled [2402.03883], [2504.06042].

Convergence is further supported by Lyapunov-based arguments and stationarity/optimality gap analyses. These results are robust to manifold curvature up to moderate levels, and additional terms in complexity (e.g., factors involving curvature constants $\zeta$) are often explicit in the derived bounds.

## 4. Adaptive and First-Order Approaches

The development of parameter-free and fully first-order methods has removed restrictive requirements on prior knowledge of problem constants or explicit calculation of second-order derivatives. AdaRHD [2504.06042] is notable in this context—each loop adapts its step size using an "inverse cumulative gradient norm" rule, yielding sufficient descent without explicit curvature or Lipschitz constants. This adaptive methodology retains $\mathcal{O}(1/\epsilon)$ complexity and supports retraction-based manifold updates for scalability.

Additionally, fully first-order schemes such as RF²SA [2405.15816] leverage Lagrangian reformulations with a ramping multiplier. The main insight is that, for sufficiently large multipliers, the solution to the penalized Lagrangian approaches that of the original bilevel problem, and the gradient discrepancy shrinks at the rate $\mathcal{O}(1/\lambda)$. The entire procedure circumvents Hessian computation, and convergence rates range from $\tilde{\mathcal{O}}(K^{-2/7})$ to $\tilde{\mathcal{O}}(K^{-2/3})$ depending on gradient noise levels.

Bilevel descent aggregation (BDA; [2510.15305]) co-optimizes upper- and lower-level variables in tandem, using a convex combination of their Riemannian gradients. This strategy accelerates objective descent, especially in practical problems with complex manifold geometry.

## 5. Applications and Empirical Results

RBLO has seen successful application in varied domains, leveraging the ability to model hierarchical problems with intrinsic geometric constraints. Key applications from recent literature include:

- **Robust Karcher mean estimation** on $\mathrm{SPD}(n)$: lower level solves for a robust mean of symmetric positive definite matrices; upper level adapts sample weights. Both RieBO and AdaRHD demonstrate decreasing objective value and stationarity metrics [2402.02019], [2504.06042].
- **Hyper-representation learning**: bilevel structure for learning discriminative embeddings of SPD matrices, crucial for downstream regression/classification; empirical results corroborate improved generalization from manifold-aware bilevel optimization [2402.03883], [2504.06042].
- **Meta-learning on the Stiefel manifold**: common base parameters are optimized on orthogonality-constrained spaces; RBLO methods surpass extrinsic (project-and-correct) baselines [2402.03883].
- **Multi-view hypergraph spectral clustering**: using the Grassmannian to encode subspace constraints, the FBDA algorithm achieves improved clustering accuracy, NMI, ARI, and F1 scores compared to Euclidean and naive RBLO approaches on the 3sources dataset [2510.15305].
- **Unsupervised domain adaptation via optimal transport**: a Riemannian bilevel formulation over doubly stochastic and SPD manifolds enhances domain transfer performance [2402.03883].
- **Robust MLE of covariance matrices** and **data hypercleaning tasks**: several works report superior convergence speed, robustness, and final accuracy using the proposed Riemannian techniques, both in synthetic and real data regimes.

## 6. Theoretical and Practical Implications

The extension of bilevel optimization to Riemannian manifolds significantly broadens the scope of hierarchical modeling. Several implications are evident:

- **Transferability of Euclidean results**: Many key complexity bounds and convergence rates port from flat to curved spaces, often "almost without loss," provided appropriate manifold conditions hold [2402.02019], [2402.03883].
- **Curvature adaptivity**: Modern algorithms either explicitly adapt to or are robust against manifold curvature, and the use of retractions makes the approach practical even for large-scale, high-dimensional problems [2504.06042], [2402.03883].
- **Coordination of upper/lower levels**: Gradient aggregation mechanisms and hybrid step sizes provide effective means to leverage structural information from both problem levels, improving both convergence and empirical accuracy [2510.15305].
- **Scalability**: Single-loop, first-order, and inversion-free variants make RBLO feasible for real-world data and computational constraints [2405.15816].
- **Robustness to parameter mis-specification**: Adaptive step size frameworks obviate the need for problem-specific tuning, enabling black-box deployment of RBLO solvers in diverse contexts.

On a broader scientific level, RBLO provides a natural language for meta-learning with geometric priors, hierarchical statistical inference, and physics-based modeling where coordinate invariance is requisite.

## 7. Future Directions

Open challenges and prospective extensions in RBLO include:

- **Curvature-independent convergence**: Efforts to further attenuate or eliminate curvature-dependent terms in complexity bounds would enhance generality and performance on highly curved manifolds.
- **Non-smooth and non-strongly convex lower-level problems**: Extensions to settings where geodesic convexity fails would broaden the utility of RBLO, though foundational results highlight increased difficulty in these regimes.
- **Stochastic and distributed RBLO**: Large-scale learning demands algorithms robust to mini-batch noise and suitable for parallel architectures, motivating further algorithmic and theoretical work [2402.03883], [2405.15816].
- **Unifying hypergradient computation**: Developing more unified automatic differentiation frameworks for Riemannian settings remains an active area, aiming at seamless integration with deep learning toolchains.
- **Application expansion**: The RBLO paradigm is poised for impact in graph neural networks with geometric constraints, decentralized multi-agent systems, and scientific computing where manifold-valued data abound.

In summary, recent advances in RBLO have produced a mature suite of algorithms, supported by rigorous convergence analysis and robust empirical validations. By faithfully accounting for geometric structure at both problem levels, RBLO serves as a foundation for hierarchical decision-making in modern geometric machine learning and allied disciplines.

Source: https://www.emergentmind.com/topics/riemannian-bilevel-optimization-rblo