arXiv:2610.01572math.OCOct 2026

Manuscript Offprint

arXiv:2610.01572

Optimal Momentum Methods for Stochastic Multilevel Compositional Optimization

Wei Jiang, Rui Yan, Sifan Yang, Yuanyu Wan, Lijun Zhang, Zechao Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

This paper investigates stochastic multi-level optimization where the objective is a nested composition of several smooth non-convex functions. We assume that only stochastic estimates of the gradient and function values for each level are accessible. Consequently, obtaining an accurate estimate of the overall gradient is challenging due to the nested structure. To address this, we employ a momentum-based estimator with mini-batches to track the function values of each level, which are subsequently used to construct momentum gradient estimators. We establish an optimal sample complexity of O(ϵ−4)\mathcal{O}(\epsilon^{-4}) for finding an ϵ\epsilon-stationary point, avoiding the stronger average smoothness assumption commonly relied upon in prior literature. Furthermore, by employing a normalization technique, we attain the same rate without requiring problem-dependent constants to set hyperparameters. To achieve the optimal rate without mini-batches, we further develop a batch-free method that incorporates a first-order approximation and a clipping technique for function value estimation. Finally, we validate the effectiveness of our proposed methods through experiments on risk-averse portfolio optimization and hierarchical tilted empirical risk minimization.

1 INTRODUCTION

In this paper, we study stochastic multi-level compositional optimization (Yang et al., 2019; Chen et al., 2021; Zhang & Xiao, 2021; Balasubramanian et al., 2022; Jiang et al., 2025) of the form

min⁡xF(x)=fT∘⋯∘f1(x).(1)\min_{\mathbf{x}}F(\mathbf{x})=f_{T}\circ\cdots\circ f_{1}(\mathbf{x}). \tag{1}

Here, the objective is a nested composition of TT smooth and non-convex functions. We assume that only unbiased stochastic estimates are available for the function values and gradients at each level ii, denoted as fi(⋅;ξi)f_i(\cdot; \xi_i) and ∇fi(⋅;ξi)\nabla f_i(\cdot; \xi_i), such that Eξi[fi(⋅;ξi)]=fi(⋅)\mathbb{E}_{\xi_i} [f_i(\cdot; \xi_i)] = f_i(\cdot) and Eξi[∇fi(⋅;ξi)]=∇fi(⋅)\mathbb{E}_{\xi_i} [\nabla f_i(\cdot; \xi_i)] = \nabla f_i(\cdot).

Multi-level optimization enjoys broad applications in machine learning, including risk-averse optimization (Bruno et al., 2016; Shapiro et al., 2021), reinforcement learning (Dann et al., 2014), model-agnostic meta-learning (Ji et al., 2020), graph neural network training (Cong et al., 2020), stochastic variational inequalities (Ruszczyński, 2021), adversarial attacks and defenses in deep neural networks (Yuan et al., 2019), risk management (Cole et al., 2017; Dentcheva et al., 2017), and hierarchical tilted empirical risk minimization (Li et al., 2021; 2023). Unlike traditional single-level stochastic optimization, where unbiased stochastic gradient evaluations are readily available, obtaining an unbiased estimate of the overall gradient and function value is generally infeasible in multi-level problems. This difficulty stems from the nested composition structure, specifically:

EξT,⋯ ,ξ2,ξ1[fT(⋯f2(f1(x;ξ1);ξ2)⋯ ;ξT)]≠EξT[fT(⋯Eξ2[f2(Eξ1[f1(x;ξ1)];ξ2)]⋯ ;ξT)].\mathbb{E}_{\xi_{T},\cdots,\xi_{2},\xi_{1}}[f_{T}(\cdots f_{2}(f_{1}(\mathbf{x};\xi_{1});\xi_{2})\cdots;\xi_{T})]\neq\mathbb{E}_{\xi_{T}}[f_{T}(\cdots\mathbb{E}_{\xi_{2}}[f_{2}(\mathbb{E}_{\xi_{1}}[f_{1}(\mathbf{x};\xi_{1})];\xi_{2})]\cdots;\xi_{T})].

Furthermore, estimation errors can accumulate as the composition depth increases, making the problem more challenging. To improve sample complexity, existing literature often imposes additional average smoothness and average Lipschitz conditions (Chen et al., 2021; Zhang & Xiao, 2021; Jiang et al., 2025), which require that stochastic estimates of each layer be smooth and Lipschitz continuous.

However, in single-level stochastic optimization, it is well known that momentum-based methods can achieve the optimal sample complexity of O(ϵ−4)\mathcal{O}(\epsilon^{-4}) under standard smoothness assumptions (rather than the stronger average smoothness condition). This motivates the following question: Is it possible to obtain the optimal rate in stochastic multi-level optimization without these additional assumptions?

In this work, we answer this question affirmatively by proving the optimal O(ϵ−4)\mathcal{O}(\epsilon^{-4}) sample complexity using a simple momentum-based approach with mini-batches. Our analysis avoids the restrictive average smoothness and Lipschitz continuous conditions. Furthermore, we provide a normalized variant that eliminates the need for prior knowledge of problem-dependent constants when setting hyperparameters. Finally, to avoid large batches, we develop a batch-free method that leverages first-order approximation together with clipping, preserving the optimal sample complexity with a constant batch size. To summarize, our main contributions are as follows:

• Our proposed MML method uses momentum-based estimators to track function values and gradients, obtaining the optimal O(ϵ−4)\mathcal{O}(\epsilon^{-4}) sample complexity with mini-batches. Our analysis does not rely on the average smoothness and Lipschitz continuity used in previous literature.

• Employing a normalization technique, our MML-v2 removes the reliance on problem-dependent constants to set hyperparameters while preserving optimal sample complexity.

• To avoid large batches, the proposed MMLFA method uses a first-order approximation for function-value tracking, combined with a clipping operation to control the estimator range. This design allows us to maintain the optimal rate with a constant batch size.

• We validate the effectiveness of the proposed methods through numerical experiments on risk-averse portfolio optimization and hierarchical tilted empirical risk minimization.

References (34)