Elucidating Subspace Perturbation in Zeroth-Order Optimization: Theory and Practice at Scale Sihwan Park, Jihun Yun, Sungyub Kim, Souvik Kundu, Eunho Yang Abstract Zeroth-order (ZO) optimization has emerged as a promising alternative to gradient-based backpropagation methods, particularly for black-box optimization and large language model (LLM) fine-tuning. However, ZO methods often suffer from slow convergence due to high-variance stochastic gradient estimators. While subspace perturbations, such as sparsity and low-rank constraints, have been explored to mitigate this issue, their effectiveness remains poorly understood. In this work, we develop a unified theoretical framework that analyzes both the convergence and generalization properties of ZO optimization under subspace perturbations. We show that high dimensionality is the primary bottleneck and introduce the notion of subspace alignment to explain how the subspace perturbations reduce gradient noise and accelerate convergence. Our analysis further shows that a broad class of subspace perturbations exhibits a similar convergence rate, motivating us to prioritize practical considerations in real-world algorithm design. Building on these insights, we propose an efficient ZO method using block coordinate descent (MeZO-BCD), which perturbs and updates only a subset of parameters at each step. Extensive experiments show that MeZO-BCD significantly accelerates optimization, achieving up to × 2.77 \mathbf{\times 2.77} speedup in wall-clock time over MeZO on OPT-13B, while maintaining comparable iteration complexity and fine-tuning performance. 1 Introduction Zeroth-order (ZO) optimization ( Shamir, 2013 ) , sometimes referred to as gradient-free or derivative-free optimization, has emerged as a compelling alternative to traditional gradient-based methods in deep learning. Unlike first- or higher-order approaches that rely on explicit gradient or Hessian information, ZO methods update model parameters solely based on the function evaluations. This property makes them particularly useful in settings where gradients are inaccessible or expensive to compute, such as black-box optimization ( Cai et al., 2021 ; Zhang et al., 2022b ) , adversarial attacks ( Chen et al., 2017 ; Kurakin et al., 2017 ; Papernot et al., 2017 ) , hyperparameter tuning ( Li et al., 2021 ) , neural architecture search ( Wang et al., 2022 ) , and efficient machine learning ( Zhang et al., 2024a ) . Beyond these traditional applications, recently ZO optimization has gained attention for fine-tuning large language models (LLMs) ( Malladi et al., 2023 ; Guo et al., 2024 ; Gautam et al., 2024 ; Liu et al., 2024b ; Zhang et al., 2024e ; Chen et al., 2024 ; Yu et al., 2024 ; Park et al., 2024 ) , primarily due to its significantly lower memory requirements compared to gradient-based optimizations. A pioneering study, MeZO ( Malladi et al., 2023 ) , demonstrated that zeroth-order stochastic gradient descent (SGD) ( Robbins and Monro, 1951 ) can fine-tune language models using memory and computational resources comparable to inference, making it a viable alternative for resource-constrained settings. However, despite its practicality, ZO optimization suffers from notoriously slow convergence and poor generalization, particularly in large-scale fine-tuning scenarios. Unlike first-order methods that benefit from exact gradient updates, ZO approaches rely on stochastic gradient estimates obtained via random perturbations, leading to inherently high variance and inefficient updates. While recent studies have attempted to address this issue by introducing subspace perturbations, such as sparse perturbations ( Liu et al., 2024b ; Guo et al., 2024 ) and low-rank perturbations ( Chen et al., 2024 ; Yu et al., 2024 ) , the underlying principles that govern their effectiveness remain under-explored. Specifically, no unified framework exists to explain why these structures improve ZO efficiency or which structural properties are critical. Furthermore, the generalization properties of ZO optimization also remain elusive, as existing theoretical studies primarily focus on convergence while neglecting its impact on model generalization. In light of these observations, it is natural to pose the following question: “What makes subspace perturbation effective, and how can this guide better algorithms?” In this paper, we answer this question by providing a unified framework to analyze both the convergence and generalization properties of ZO optimization. This analysis shows that diverse perturbation strategies exhibit similar convergence behavior despite their structural differences, motivating algorithm design driven by practical efficiency rather than subspace structure. Building on this insight, we develop a practical ZO method for large-scale optimization. Our main contributions can be summarized as follows: • Unified theoretical framework for subspace perturbation. We introduce a unified analysis of convergence and generalization in ZO optimization under subspace perturbations, based on the notions of subspace alignment and dimensionality . Importantly, our analysis remains valid under finite perturbation magnitude, avoiding the restrictive infinitesimal smoothing assumption commonly adopted in prior works, hence enabling more realistic modeling. • Theoretical criteria for effective subspace perturbation. We show that sparse, low-rank, and other common structures share the same expected subspace alignment, implying equivalent average-case convergence. This enables the design of ZO algorithms that prioritize practical considerations, such as computational and memory efficiency, when choosing subspace perturbation. • MeZO-BCD: a practical and scalable ZO algorithm. Based on our theory, we propose MeZO-BCD, a block coordinate descent method for ZO that perturbs and updates only one block per step. This substantially reduces memory transfer overhead and achieves up to \mathbf{\times 2.77} wall-clock speedup over MeZO on OPT-13B, while maintaining convergence and fine-tuning performance. The approach also enables promising future extensions such as adaptive block selection and integration with stateful optimizers. 2 Preliminaries In this section, we summarize the notations and briefly introduce the fundamental zeroth-order optimization algorithm. Notations. In this paper, we denote vectors by boldface lowercase letters (e.g. \mathbf{x},\mathbf{y} ) and matrices by boldface uppercase letters (e.g. \mathbf{A},\mathbf{B} ). We let \mathcal{L}(\bm{\theta}) denote the loss function with respect to \bm{\theta}=(\theta_{1},\cdots,\theta_{d})\in\mathbb{R}^{d} . Further, for any \mu>0 , we define \mathcal{L}_{\mu}(\bm{\theta})=\mathbb{E}_{\mathbf{u}}\big[\mathcal{L}(\bm{\theta}+\mu\mathbf{u})\big] , where \mathbf{u}\sim\mathcal{N}(\bm{0},\mathbf{I}_{d}) . For a matrix \mathbf{A} , we let \sigma_{i}(\mathbf{A}) / \lambda_{i}(\mathbf{A}) denote i -th singular value/eigenvalue respectively, and \sigma_{\text{max}}(\mathbf{A}) / \lambda_{\text{max}}(\mathbf{A}) represent the maximum singular value/eigenvalue of \mathbf{A} . Also, we use |\!|\!|\mathbf{A}|\!|\!|_{p} to denote the matrix p -norm. Finally, we define two quantities, stable rank and intrinsic dimension of matrix: \mathrm{srank}(\mathbf{A})\coloneqq\frac{\sum_{i}\sigma_{i}(\mathbf{A})^{2}}{\sigma_{\text{max}}(\mathbf{A})^{2}} and \mathrm{intdim}(\mathbf{A})\coloneqq\frac{\mathrm{Tr}(\mathbf{A})}{|\!|\!|\mathbf{A}|\!|\!|_{\mathrm{op}}} ( Ipsen and Saibaba, 2024 ) . Simultaneous Perturbation Stochastic Approximation (SPSA). We consider the following zeroth-order gradient estimator, known to be SPSA, as \displaystyle\mathbf{g}_{t} \displaystyle=\frac{\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{u}_{t};\mathcal{B}_{t})-\mathcal{L}(\bm{\theta}_{t}-\mu\mathbf{u}_{t};\mathcal{B}_{t})}{2\mu}\mathbf{u}_{t} (1) where \mu is the smoothing parameter, \mathbf{u}_{t}\sim\mathcal{N}(\bm{0},\mathbf{I}_{d}) , and \mathcal{B}_{t} denotes minibatch selected at time t . Importantly, the SPSA estimator is an unbiased estimator of \nabla\mathcal{L}_{\mu}(\bm{\theta}) . Zeroth-Order SGD (ZO-SGD). The zeroth-order SGD updates the model parameter \bm{\theta}_{t} via ZO gradient estimate as \bm{\theta}_{t+1}=\bm{\theta}_{t}-\alpha_{t}\mathbf{g}_{t} , where \alpha_{t} is the step-size at time t . 3 Theoretical Foundations on Subspace Perturbation 3.1 Subspace ZO-SGD and Standard Assumptions We begin by formalizing the setup of zeroth-order optimization with structured perturbations. In particular, we describe the subspace ZO-SGD algorithm and introduce standard assumptions that underlie our convergence and generalization analysis. (C- \bf{1} ) The loss function \mathcal{L}_{i}=\mathcal{L}(\cdot;\mathbf{z}_{i}) for all i\in[n] is L -smooth, i.e., \displaystyle\|\nabla\mathcal{L}_{i}(\bm{\theta})-\nabla\mathcal{L}_{i}(\bm{\theta}^{\prime})\|\leq L\|\bm{\theta}-\bm{\theta}^{\prime}\| for all \bm{\theta} and \bm{\theta}^{\prime}\in\mathbb{R}^{d} . (C- \bf{2} ) The stochastic gradient is unbiased and has a bounded variance. Further, we assume that the true gradient is bounded, i.e., \mathbb{E}\left[\nabla\mathcal{L}_{i}(\bm{\theta})\right]=\nabla\mathcal{L}(\bm{\theta}) , \mathbb{E}\big[\|\nabla\mathcal{L}(\bm{\theta})-\nabla\mathcal{L}_{i}(\bm{\theta})\|^{2}\big]\leq\sigma^{2} , and \|\nabla\mathcal{L}(\bm{\theta})\|\leq G for all i\in[n] . The condition (C- 1 ) is standard in non-convex optimization analysis. In condition (C- 2 ) , the unbiasedness of stochastic gradients and bounded variance are fundamental in stochastic optimization literature ( Ghadimi and Lan, 2013 ) . The bounded gradient condition in (C- 2 ) is frequently used in convergence analysis in the context of adaptive gradient methods ( Kingma and Ba, 2015 ; Reddi et al., 2018 ; Chen et al., 2019 ; Yun et al., 2022 ; Ahn and Cutkosky, 2024 ) . Under these assumptions, we consider a ZO-SGD with subspace perturbation: \displaystyle\widehat{\mathbf{g}}_{t} \displaystyle=\frac{\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t};\mathcal{B}_{t})-\mathcal{L}(\bm{\theta}_{t}-\mu\mathbf{M}_{t}\mathbf{u}_{t};\mathcal{B}_{t})}{2\mu}\mathbf{M}_{t}\mathbf{u}_{t}, (2) where \mu is called a smoothing parameter. For simplicity, we assume that \mathbf{M}_{t} is positive semi-definite and its maximum singular value is \sigma_{\text{max}}(\mathbf{M}_{t})=1 since it can be controlled by \mu . Also, we refer to the zeroth-order SGD with subspace perturbation ( 2 ) as subspace ZO-SGD , i.e., the model parameter is updated via \bm{\theta}_{t+1}=\bm{\theta}_{t}-\alpha_{t}\widehat{\mathbf{g}}_{t} . 3.2 Convergence Analysis of Subspace ZO-SGD From this section, we provide the theoretical understanding of subspace ZO-SGD. Toward this, we start from convergence analysis. In recent studies, there have been many attempts to leverage the zeroth-order optimization in fine-tuning large language models due to its memory-efficiency ( Malladi et al., 2023 ) . To address both from-scratch training and fine-tuning scenarios , we propose the following assumption. Assumption 3.1 (Local Intrinsic Dimension) . Under (C- 1 ) and (C- 2 ) , there exists a matrix \mathbf{H}(\bm{\theta}_{t})\preceq L\!\cdot\!\mathbf{I}_{d} such that: 1. For all \bm{\theta} such that \|\bm{\theta}-\bm{\theta}_{t}\|\leq 2\alpha sG+2\mu\sqrt{d} , we have \nabla^{2}\mathcal{L}(\bm{\theta})\preceq\mathbf{H}(\bm{\theta}_{t}) . 2. \mathrm{intdim}\big(\mathbf{H}(\bm{\theta}_{t})\big)\leq r for some constant r\leq d . Remark on Assumption 3.1 . This assumption extends the one originally introduced in MeZO ( Malladi et al., 2023 ) , which assumes a global \mathcal{O}(d) -neighborhood around \bm{\theta}_{t} and takes the limit \mu\to 0 . In contrast, our formulation allows for a strictly positive \mu and only requires a local \mathcal{O}(s) -ball since \mu\sqrt{d} is negligible under \mu=\mathcal{O}(1/\sqrt{dT}) (refer to Theorem 3.3 ). This makes our assumption significantly more practical for large-scale models where d\gg s , and substantially relaxes the regularity conditions on the loss landscape. When \mathbf{H}(\bm{\theta}_{t})=\mathbf{I}_{d} (i.e., r=d ), our assumption reduces to the standard L -smoothness condition (C- 1 ) . Appendix B.1 provides further discussion. By introducing Assumption 3.1 , the subspace perturbation matrix \mathbf{M}_{t} and the local Hessian upper bound inevitably interact with each other. To quantify this interaction, we introduce the following key quantity for our analysis. Definition 3.2 (Subspace Alignment) . For the matrix \mathbf{M}_{t} in ( 2 ) and \mathbf{H}(\bm{\theta}_{t}) in Assumption 3.1 , we define the subspace alignment at time t as \displaystyle\rho_{t}=\frac{\mathrm{Tr}(\mathbf{M}_{t}^{\top}\mathbf{H}(\bm{\theta}_{t})\mathbf{M}_{t})}{\lambda_{\text{max}}(\mathbf{H}(\bm{\theta}_{t}))} (3) Further, we define the mean subspace alignment and maximum subspace alignment as \macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{\rho}=(1/T)\sum_{t=1}^{T}\rho_{t} and \rho_{\text{max}}=\max_{t\in[T]}\rho_{t} respectively. Remark on Subspace Alignment. Intuitively, \mathrm{Tr}(\mathbf{M}_{t}^{\top}\mathbf{H}(\bm{\theta}_{t})\mathbf{M}_{t}) captures “how much the primary directions” of \mathbf{M}_{t} and \mathbf{H}(\bm{\theta}_{t}) align each other, since both matrices are assumed to be PSD and thus act as “weights” on overlapping subspaces. Note that 0\leq\rho_{t}\leq\min\{r,s\} always holds. Theorem 3.3 (Dimension-Free Rate of Subspace ZO-SGD) . Suppose that (C- 1 ) , (C- 2 ) , and Assumption 3.1 hold with \mathrm{srank}(\mathbf{M}_{t})\leq s . Under the following parameter settings \mu=\mathcal{O}\Big(\frac{1}{L\sqrt{\macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{\rho}dT}}\Big) and \alpha\leq\frac{1}{36L\rho_{\textnormal{max}}+336Ls\exp(-s/2)} with \macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{\rho} and \rho_{\textnormal{max}} defined in Def. 3.2 , the subspace ZO-SGD satisfies \displaystyle\mathbb{E}\big[\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2}\big]\leq\mathcal{O}\Big(\frac{r^{2}}{\macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{\rho}T}+\frac{s^{2}}{dT}+\underbrace{\frac{\Delta}{\alpha T}+\frac{\sigma^{2}}{B}}_{\text{Standard SGD Rate}}\Big) where \Delta\coloneqq\mathcal{L}_{\mu}(\bm{\theta}_{1})-\mathcal{L}_{\mu}(\bm{\theta}_{T}) . Novelty. Unlike previous approaches ( Rando et al., 2023b ; Chen et al., 2024 ) that require \mathbf{M}_{t}^{\top}\mathbf{M}_{t}=\mathbf{I}_{d} to ensure the unbiasedness of zeroth-order gradient estimator, our Theorem 3.3 only assumes that \mathbf{M}_{t} is positive semidefinite , which introduces a slight bias while still guaranteeing a valid descent direction. Hence, our analysis can encompass a much broader range of subspace perturbation matrix \mathbf{M}_{t} . Additionally, we are the first to highlight the importance of subspace perturbation by introducing the concept of subspace alignment for all \mu>0 , which sets our analysis totally apart from ( Malladi et al., 2023 ) , which focuses only on \mu\rightarrow 0 . Observation. Theorem 3.3 establishes a convergence of subspace ZO-SGD governed by a trade-off between the parameter s and the subspace alignment \macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{\rho} . As s increases, \macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{\rho} typically grows, which improves \frac{r^{2}}{\macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{\rho}T} term yet make the term \frac{s^{2}}{dT} worse. Consequently, small subspaces (e.g., s=\mathcal{O}(\sqrt{rd}) are limited by suboptimal \macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{\rho} , whereas larger subspaces (e.g., s=\omega(r\sqrt{d}) ) forfeit low-dimensional advantages and may revert to the standard \mathcal{O}(\frac{d}{T}) rate. Hence, a judicious choice of the intermediate parameter s is crucial for maintaining a sufficiently large \macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{\rho} while controlling the dimensional overhead \mathcal{O}(\frac{s^{2}}{dT}) . In the ideal regime where \macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{\rho}=\mathcal{O}(r) , our analysis enjoys a convergence rate of \mathcal{O}(\frac{r}{T}) , offering a marked improvement over standard ZO-SGD. The convergence rate in Theorem 3.3 depends critically on the subspace alignment \rho_{t} , which is governed by the structure of the perturbation matrix \mathbf{M} . This raises a central question: “What constitutes an effective choice of \mathbf{M} for improving convergence via subspace alignment?” The following proposition provides an intriguing preliminary insight. Proposition 3.4 (Expected Subspace Alignment \rho ) . Let \mathbf{H}\in\mathbb{R}^{d\times d} be a fixed symmetric positive semi-definite matrix with \lambda_{\max}(\mathbf{H})>0 . Let \mathbf{M}\in\mathbb{R}^{d\times d} be a random matrix such that (i) \mathbf{M} is (almost surely) an orthogonal projection matrix (i.e., \mathbf{M}^{\top}=\mathbf{M},\mathbf{M}^{2}=\mathbf{M} with probability 1 ), (ii) \mathbb{E}[\mathbf{M}]=\frac{s}{d}\mathbf{I}_{d} holds for given s>0 . Then, the expectation of \rho over distribution of \mathbf{M} is: \mathbb{E}[\rho]=\frac{s\operatorname{Tr}(\mathbf{H})}{d\lambda_{\max}(\mathbf{H})}. (4) Remark. Proposition 3.4 shows that for any random matrix \mathbf{M} satisfying these broad, non-specialized conditions, \mathbb{E}[\rho] remains unchanged. Such conditions accommodate a wide variety of random matrix constructions–ranging from low-rank projections and sparse perturbations to more intricate ensembles–implying that most standard perturbation schemes share the same expected \rho and, thus, exhibit comparable average convergence. This naturally raises a follow-up question: are all such choices of \mathbf{M} effectively interchangeable, or do notable differences arise in practice? To advance our investigation, we first present three canonical instantiations of \mathbf{M} that fulfill the criteria specified in Proposition 3.4 . Definition 3.5 (Three Instantiations of \mathbf{M} ) . Let s\in\mathbb{R} such that 0\mathbb{E}[\rho]=\frac{s\mathrm{Tr}(\mathbf{H})}{d\lambda_{\max}(\mathbf{H})} and \Delta=\widehat{\rho}-\mathbb{E}[\rho]>0 . Then, we have the following upper tail probabilities: 1. Low-Rank Projection : \mathbb{P}(\rho\geq\widehat{\rho})\leq 2\exp\big(-c_{1}\frac{d\Delta^{2}}{s}\big) . 2. Sparse Perturbation : \mathbb{P}(\rho\geq\widehat{\rho})\leq c_{2}\frac{rs}{d\Delta^{2}} . 3. Block Sparse Perturbation : \mathbb{P}(\rho\geq\widehat{\rho})=\frac{1}{N}\big|\big\{j\in[N]:\sum_{i\in B_{j}}\mathbf{H}_{ii}\geq\lambda_{\max}\widehat{\rho}\big\}\big|=\frac{k_{\#}(\widehat{\rho})s}{d} . where c_{1},c_{2}>0 are constants and k_{\#}(\widehat{\rho}) counts “good” (high \rho ) blocks. Observations. Proposition 3.6 highlights a clear distinction: while these methods share the same expected \rho , the probability distribution of \rho differs considerably. In the low-rank projection and sparse perturbation cases, the likelihood of \rho deviating from its mean decays exponentially and quadratically with the size of the deviation (i.e., denoted by \Delta ), indicating a tight concentration around its expectation. In contrast, for block-sparse perturbation, although the mean remains unchanged, the probability becomes at least 1/N if there is any such good block. These observations carry substantial implications. When the subspace defined by \mathbf{M} is chosen purely at random, all three methods exhibit similar convergence in average. However, their distinct \rho distributions become relevant once even modest adaptivity is introduced. In block sparse perturbation, for example, selectively targeting more favorable blocks (or generally identifying subspaces that yield higher \rho ) may produce performance gains not evident from an expectation-based perspective alone. 3.3 Generalization Error Bound of Subspace ZO-SGD All the aforementioned analyses are concerned with the convergence of the zeroth-order SGD. In this section, we aim to provide the generalization error bound of zeroth-order SGD. In pursuit of this, we use the uniform stability framework ( Bousquet and Elisseeff, 2002 ; Hardt et al., 2016 ; Lei, 2023 ) of the randomized optimization algorithm. For analysis, we summarize the notations used in this section. We denote \mathcal{A} by a randomized optimization algorithm such as SGD and S\in\mathcal{Z}^{n} by the training dataset where \mathcal{Z}^{n} represents the collection of datasets with the size n drawn from the data distribution \mathcal{D} . The quantity \mathcal{A}(S) denotes the trained parameter using the algorithm \mathcal{A} on the dataset S . Now, we start with the definition of the generalization error. Definition 3.7 (Generalization Error) . The generalization error \epsilon_{\textnormal{gen}} is defined by the gap between the population risk R(\bm{\theta})=\mathbb{E}_{\mathbf{z}\sim\mathcal{D}}\left[\mathcal{L}(\bm{\theta};\mathbf{z})\right] and the empirical risk R_{S}(\bm{\theta})=(1/n)\sum_{i=1}^{n}\mathcal{L}(\bm{\theta};\mathbf{z}_{i}) evaluated on the dataset S=\{\mathbf{z}_{1},\mathbf{z}_{2},\cdots,\mathbf{z}_{n}\} as \epsilon_{\textnormal{gen}}=\mathbb{E}_{\mathbf{z}\sim\mathcal{D}}\left[R(\mathcal{A}(S))-R_{S}(\mathcal{A}(S))\right] . Owing to previous studies ( Bousquet and Elisseeff, 2002 ; Hardt et al., 2016 ) on the generalization, \epsilon_{\textnormal{gen}} is closely related to the uniform stability of the optimization algorithm. Definition 3.8 (Uniform Stability ( Bousquet and Elisseeff, 2002 ; Hardt et al., 2016 ) ) . The randomized algorithm \mathcal{A} is said to be \epsilon_{\textnormal{stab}} -uniformly stable if for all neighboring datasets S,S^{\prime}\in\mathcal{Z}^{n} such that S and S^{\prime} differ in only one sample, we have \mathbb{E}_{\mathcal{A},S}\left[\mathcal{L}(\mathcal{A}(S);\mathbf{z})-\mathcal{L}(\mathcal{A}(S^{\prime});\mathbf{z})\right]\leq\epsilon_{\textnormal{stab}} . The next lemma provides the connections between the generalization error and the uniform stability. Lemma 3.9 (Theorem 2.2 in ( Hardt et al., 2016 ) ) . If \mathcal{A} is \epsilon_{\textnormal{stab}} -uniformly stable, then the generalization error is bounded by |\epsilon_{\textnormal{gen}}|\leq\epsilon_{\textnormal{stab}} . Hence, bounding the generalization error reduces to proving the uniform stability of subspace ZO-SGD under suitable assumptions. Theorem 3.10 (Generalization of Subspace ZO-SGD) . Suppose that (C- 1 ) , (C- 2 ) , and \mathrm{srank}(\mathbf{M}_{t})\leq s hold. Further, suppose that Assumption 3.1 holds for every \mathcal{L}_{i} and \sup_{\bm{\theta},\mathbf{z}}|\mathcal{L}(\bm{\theta};\mathbf{z})|\leq 1 . Under the following parameter settings \alpha_{t}\leq\frac{C}{t} and \mu\lesssim\frac{1}{nL(\rho_{\text{max}}+s\exp(-s/2))} for some fixed constant C>0 , the generalization error bound of subspace ZO-SGD satisfies \epsilon_{\textnormal{gen}}\leq\mathcal{O}\Big(\frac{T^{1-\frac{1}{1+q}}}{n}\Big) where q=CL\sqrt{s} does not rely on d . On the Constant q . A recent study ( Liu et al., 2024a ) applies the uniform stability to ZO algorithms, thereby deriving generalization error bounds for various ZO gradient estimators. However, in that study, the parameter q=\mathcal{O}(\sqrt{d}) grows polynomially w.r.t. d , which ultimately yields a generalization error bound in the order of \mathcal{O}(T/n) since \frac{1}{1+q}\approx 0 . Moreover, the previous analysis requires \mu=\mathcal{O}(1/nLd) which is tiny in extremely high-dimensional spaces (ex. fine-tuning LLMs). In contrast, under Theorem 3.10 , which exploits the notion of stable rank with local intrinsic dimension, q depends on s while significantly alleviating the order of \mu as \mu=\mathcal{O}(1/nL\rho_{\text{max}}) . Consequently, we achieve much tighter bound than \mathcal{O}(T/n) , especially under s\ll d and Assumption 3.1 . 3.4 Empirical Validation In this section, we empirically substantiate the key theoretical insights from preceding sections using the randomized quadratic minimization problem, \min_{\mathbf{\theta}\in\mathbb{R}^{d}}\frac{1}{2}\mathbf{\theta}^{\top}\mathbf{H}\mathbf{\theta} with a synthetically generated positive semi-definite Hessian \mathbf{H} . This tractable testbed, commonly used in prior theoretical validation studies ( Sun and Ye, 2021 ; Zhang et al., 2024c ) , allows for direct verification of our claims. Details are provided in Appendix E.1 . Figure 1: Empirical validation of theoretical insights on randomized quadratic minimization. Left : Higher \bar{\rho} values yield faster convergence, as predicted ( s is fixed). Middle : Iterations required to reach a fixed loss target decrease proportionally with 1/\bar{\rho} . Right : Distribution of \rho under three \mathbf{M} types shows matching means but different concentration patterns. Horizontal blue dashed lines indicate the \bar{\rho} for each method. Supplementary results are provided in Appendix F.1 . Effect of mean subspace alignment \mathbf{\bar{\rho}} . Our theoretical framework (Theorem 3.3 ) posits a critical role for mean subspace alignment \bar{\rho} in determining convergence speed. We first validate this by modulating \bar{\rho} in a controlled experiment using a rank- 64 dense Hessian with d=256 and a low-rank projection with s=64 as \mathbf{M} . Figure 1 (Left) confirms that higher \bar{\rho} values indeed lead to faster convergence. Consistently, (Middle) demonstrates that the number of iterations required to reach a target loss (set to be the slowest one’s final loss) is inversely proportional to \bar{\rho} , directly corroborating our theory that the convergence rate scales with 1/\bar{\rho} . Distribution of subspace alignment \mathbf{\rho} . Next, we investigate the practical demonstrations of Propositions 3.4 and 3.6 , which concern the expected value and distributional properties of \rho for different instantiations of \mathbf{M} . We consider three canonical instantiations provided in Definition 3.5 . For this, we use a block-diagonal Hessian ( d=1024 , 16 blocks, each rank 64 ) with heterogeneous eigenspectra across blocks, a structure often used to approximate neural network Hessians ( Collobert, 2004 ; Zhang et al., 2024b ; Zhang et al., 2024c ) . Figure 1 (right) presents the empirical distributions of \rho from 1,000 trials, revealing two key observations consistent with our theory. First , for any fixed \mathrm{srank}(\mathbf{M}) , the mean subspace alignment \macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{\rho} (blue dashed lines) is nearly identical across all three methods, confirming Proposition 3.4 and implying comparable average convergence under purely random selection (see Appendix F.2). Second , although their means coincide, the distributions of \rho differ markedly: low-rank projection and sparse perturbation exhibit tight concentration around the mean, whereas block sparse perturbation shows a broader spread owing to heterogeneity in Hessian blocks (a strong block yields large \rho , and a weak block small \rho ). This aligns with Proposition 3.6 ’s assertion regarding differing distributional behaviors. Finally, \rho generally increases with \mathrm{srank}(\mathbf{M}) in all methods, as intuitively expected. 4 Revisiting Block Coordinate Descent for Zeroth-order Optimization Our theoretical analysis showed that many subspace perturbation schemes, despite structural differences, achieve similar convergence in expectation. This intriguing finding prompts a pivotal question regarding method selection: If theory offers no clear winner, what factors matter most in practice, particularly for large-scale optimization? In such scenarios, pragmatic considerations (including memory usage and execution time) emerge as the decisive differentiators. Guided by this imperative for practical efficacy, we revisit the Block Coordinate Descent (BCD) paradigm in this section, an approach rooted in the block sparse perturbation. 4.1 Why Block Coordinate Descent? Memory transfer is the key bottleneck in large-scale ZO. Zeroth-order optimization, by virtue of its forward-only nature, fundamentally shares the memory-bound bottleneck commonly observed in LLM inference ( Kwon et al., 2023 ; Kim et al., 2023 ; Gholami et al., 2024 ) . For large models, the time spent loading parameters to memory can far exceed actual compute time, making memory bandwidth the dominant factor in overall latency. This challenge is even exacerbated in zeroth-order methods: a single iteration requires two forward evaluations, two parameter perturbations, and one parameter update, each involving the entire parameter. As a result, the total parameter loading per step is effectively equivalent to 5\times the inference, a substantial overhead, especially for large-scale models. BCD can reduce the memory transfer. BCD offers a practical solution to this issue by restricting parameter perturbations and updates to a single block at each iteration. While the forward passes still involve the full model, only the selected block is loaded and modified during the perturbation and update phases. If we partition the parameters into N equally sized blocks, the total parameter load per iteration is reduced to 2d+3d/N (two full-model forwards plus block-local perturb and update), compared to the 5d required by other ZO methods. This translates into a tangible reduction in memory transfer, leading to faster wall-clock training and thus improved scalability. Importantly, BCD retains the same convergence guarantees as other qualifying subspace methods ( Liu et al., 2024b ; Chen et al., 2024 ) . With its added practical efficiency, it stands out as a particularly attractive choice when theoretical distinctions are absent. 4.2 MeZO-BCD: Translating Block Sparse Perturbation into a Scalable ZO Method Building on the practical advantages of block-wise perturbation discussed above, we now present MeZO-BCD , a concrete implementation designed to optimize large-scale LLMs under the zeroth-order paradigm. While the theoretical formulation in Section 3 abstracts perturbation as a projection onto a random subspace, MeZO-BCD operationalizes this by applying perturbation and updates to only one block per iteration. Overall Procedure. Let \bm{\theta}_{t}=[\bm{\theta}_{t}^{(1)},\dots,\bm{\theta}_{t}^{(N)}]\in\mathbb{R}^{d} denote model parameters partitioned into N disjoint blocks. Each block typically corresponds to a functional unit of LLMs, such as a transformer decoder layer (comprising attention, FFN, normalization), embedding layer, or output head ( Zhang et al., 2022a ; Touvron et al., 2023 ) . At each iteration t , a block index j_{t} is chosen, and a local perturbation \mathbf{u}_{t}\sim\mathcal{N}(\bm{0},\mathbf{I}_{|\bm{\theta}_{t}^{(j_{t})}|}) is sampled using a fixed seed s_{t} . The block-local SPSA estimator is: \widehat{\mathbf{g}}_{t}=\frac{\mathcal{L}(\bm{\theta}_{t}+\mu\cdot\mathbf{e}_{B_{j_{t}}}(\mathbf{u}_{t});\mathcal{B}_{t})-\mathcal{L}(\bm{\theta}_{t}-\mu\cdot\mathbf{e}_{B_{j_{t}}}(\mathbf{u}_{t});\mathcal{B}_{t})}{2\mu}\mathbf{u}_{t}, where \mathbf{e}_{B_{j_{t}}}(\mathbf{u}_{t}) embeds the block-local perturbation into the full parameter space. In practice, no actual zero-padded vector is instantiated as only the relevant block is accessed and modified. Using the same seed s_{t} , we regenerate \mathbf{u}_{t} for consistency during the update: \bm{\theta}_{t+1}^{(j_{t})}=\bm{\theta}_{t}^{(j_{t})}-\eta_{t}\cdot\widehat{\mathbf{g}}_{t},\quad\bm{\theta}_{t+1}^{(k)}=\bm{\theta}_{t}^{(k)}\text{ for }k\neq j_{t}. This localized update significantly reduces memory transfer overhead, as discussed above, while preserving theoretical convergence behavior. Block selection strategy. While the theory assumes i.i.d. uniform sampling of blocks, such sampling can lead to imbalanced short-term coverage in practice. To address this while preserving the marginal distribution \mathbb{P}(j_{t}=j)=1/N , we adopt a cyclic random permutation strategy, where all blocks are visited exactly once per cycle in a randomly shuffled order. This avoids starvation and maintains the theoretical convergence guarantees. Further details on MeZO-BCD are discussed in Appendix D . 4.3 Experiments on LLM fine-tuning Table 1: Comparison of peak memory usage and iteration time across methods. Peak memory (GB) is reported on different datasets using OPT-13B, and iteration time (seconds) is measured on SST-2 across various model sizes, with speedup relative to MeZO shown in parentheses. All results are averaged over 100 training steps with a batch size of 16, using a single A100 80GB PCIe. Method Iteration Time (s) Peak Memory (GB) OPT-125M OPT-1.3B OPT-13B SST-2 BoolQ MultiRC MeZO 0.0621~(\times 1.00) 0.134~(\times 1.00) 1.04~(\times 1.00) 25.9 33.6 43.8 SparseMeZO 0.0961~(\times 0.66) 0.203~(\times 0.66) 1.60~(\times 0.65) 26.1 33.6 43.8 LoZO 0.0804~(\times 0.77) 0.146~(\times 0.92) 0.966~(\times 1.08) 25.5 33.6 43.8 MeZO-BCD \mathbf{0.0339~(\times 1.83)} \mathbf{0.0637~(\times 2.10)} \mathbf{0.375~(\times 2.77)} 25.3 33.6 43.8 Figure 2: Comparison of training loss curves in terms of iterations ( left ) and wall-clock time ( middle ) on OPT-1.3B ( Zhang et al., 2022a ) fine-tuning with SST-2 ( Socher et al., 2013 ) for different methods. To empirically demonstrate the practical advantages of MeZO-BCD, particularly its enhanced efficiency and competitive performance, we conduct extensive fine-tuning experiments on LLMs. Key results are presented in Figure 2 and Table 1 , 2 . Detailed experimental setups, including datasets, hyperparameters and model specifics are provided in Appendix E.2 . MeZO-BCD exhibits superior wall-clock time efficiency. The most significant empirical validation of our approach is MeZO-BCD’s superior wall-clock time efficiency, as shown in Figure 2 (Right) and Table 1 . Across different model scales, MeZO-BCD consistently has less iteration time compared to other ZO methods like MeZO, LoZO, and SparseMeZO. Notably, as the model size increases, the acceleration gain becomes higher due to the increased parameter loading overhead. This directly substantiates our central argument from Section 4.1 that MeZO-BCD’s design significantly reduces memory loading overhead, translating into tangible training speedups. MeZO-BCD incurs no additional memory compared to MeZO. MeZO-BCD operates under the same forward-only regime as MeZO but perturbs and updates only a single block at each step. As a result, it avoids any increase in memory footprint. This is empirically confirmed in Table 1 , where the peak memory remains effectively identical across different methods 1 1 1 Minor differences in peak memory across methods (e.g., on SST-2) are due to system-level factors such as CUDA memory fragmentation or transient buffer allocation, rather than algorithmic differences. . Table 2: Performance of fine-tuning OPT-13B on 1000 examples across various tasks. ICL denotes in-context learning, while FT denotes full fine-tuning via first-order Adam ( Kingma and Ba, 2015 ) . The best results except FT are highlighted in bold . Results for baselines are taken from LoZO ( Chen et al., 2024 ) . Task SST-2 RTE CB BoolQ WSC WIC MultiRC COPA ReCoRD SQuAD DROP Task type —————————– classification —————————– – multiple choice – — generation — Zero-shot 58.8 59.6 46.4 59.0 38.5 55.0 46.9 80.0 81.0 46.2 14.6 ICL 87.0 62.1 57.1 66.9 39.4 50.5 53.1 87.0 \mathbf{82.3} 75.9 29.5 MeZO 91.3 68.2 66.1 68.1 61.5 59.4 59.4 88.0 81.3 81.8 \mathbf{31.3} LoZO 91.7 \mathbf{70.4} 69.6 71.9 \mathbf{63.5} 60.8 \mathbf{63.0} \mathbf{89.0} 81.3 \mathbf{84.9} 30.7 MeZO-BCD \mathbf{93.0} 70.0 \mathbf{71.4} \mathbf{72.4} \mathbf{63.5} \mathbf{61.9} 62.8 \mathbf{89.0} \mathbf{81.6} 83.7 31.0 FT 91.8 70.9 84.1 76.9 63.5 70.1 71.1 79.0 74.1 84.9 31.3 MeZO-BCD shows competitive convergence and fine-tuning performance. Notably, this efficiency gain does not compromise iteration complexity or fine-tuning performance. As shown by the training loss curves in Figure 2 (left), MeZO-BCD converges on par with baseline ZO methods. Furthermore, Table 2 demonstrates MeZO-BCD’s strong fine-tuning performance on a diverse suite of downstream tasks with an OPT-13B ( Zhang et al., 2022a ) model, where it frequently outperforms other ZO methods ( Malladi et al., 2023 ; Chen et al., 2024 ) 2 2 2 Since SparseMeZO’s official implementation is unavailable, and our implementation cannot fully reproduce its reported performance in ( Liu et al., 2024b ) , we exclude this baseline to maintain a fair comparison. . Additional experimental results are provided in Appendix F.2 . 5 Discussion 5.1 MeZO-BCD as a Scalable Foundation for Zeroth-Order Optimization Adaptive Block Selection. While our theoretical analysis (Propositions 3.4 and 3.6 ) shows that various subspace perturbation schemes share similar expected convergence rates, their subspace alignment \rho can differ substantially in distribution. This highlights a natural opportunity for improvement via adaptive selection of subspaces (specifically, blocks in the case of MeZO-BCD). Compared to low-rank or sparse perturbation, where adaptivity requires searching over continuous subspaces or combinatorial coordinate subsets, MeZO-BCD operates on a small set of architecturally defined, semantically meaningful blocks. This makes adaptive scheduling more tractable and interpretable in practice. Moreover, since blocks often differ in curvature or gradient scale across layers in LLMs ( Zhang et al., 2024b ; Zhang et al., 2024c ) , MeZO-BCD provides a well-suited interface for learning dynamics-aware scheduling. We leave the empirical realization of this idea as promising future work. Integration with Stateful Optimizers. Stateful optimizers such as Adam ( Kingma and Ba, 2015 ) have been instrumental in first-order optimization, but their extension to zeroth-order methods has shown limited benefits. Previous works ( Malladi et al., 2023 ; Zhang et al., 2024e ) found marginal performance improvements and substantial memory overhead due to per-parameter optimizer state storage. MeZO-BCD offers a new path forward: by perturbing and updating only one block at a time, optimizer states can be stored and updated locally for the active block, without incurring full-model memory costs. This enables practical and scalable use of stateful optimizers in ZO settings, potentially opening a new line of research into adaptive gradient-free methods that leverage momentum, variance correction, or block-wise learning rates in a resource-efficient way. Preliminary investigations on the future directions are provided in Appendix G . 5.2 Limitations Despite its scalability and extensibility, MeZO-BCD has several limitations. First, while our theoretical framework provides general insights into the role of subspace perturbations and dimensionality, it does not offer task-specific guidance on optimal perturbation structures or block sizes. Second, although we highlight promising extensions including adaptive block selection and integration with stateful optimizers, this work focuses on establishing the core algorithm and validating its foundational benefits. Empirical investigation of these directions remains an important avenue for future work. 6 Conclusion In this work, we introduced a unified theoretical framework for understanding zeroth-order optimization under subspace perturbations, connecting convergence and generalization through the notion of subspace alignment. Our analysis provides new insights into how different perturbation strategies behave and what distinguishes them beyond that. Building on the theoretical insights, we proposed MeZO-BCD, a block coordinate descent method for zeroth-order optimization that achieves substantial practical speedups. Our experiments on LLM fine-tuning confirm its efficiency and competitiveness, and its structured design opens promising directions for future research, including adaptive block selection and integration with stateful optimizers. Supplementary Materials Broader Impact Statement This work improves the efficiency and scalability of zeroth-order optimization for fine-tuning large language models, offering a practical alternative to gradient-based approaches in resource-constrained settings. By lowering computational and memory demands, it may help reduce the environmental footprint of large-scale AI training and broaden access to advanced machine learning technologies. However, expanding access to powerful fine-tuning tools also raises societal concerns, including the risk of misuse or unintended consequences from customized language models. We advocate for responsible usage, with attention to transparency, fairness, and ongoing evaluation of social impact as such methods are deployed in practice. Appendix A Related Works Convergence and Generalization in Zeroth-order optimization. Theoretical analysis of zeroth-order (ZO) optimization has been an active research area, with extensive work on its convergence properties across various settings. Early studies established fundamental complexity results for both first-order and zeroth-order methods using Gaussian smoothing ( Ghadimi and Lan, 2013 ) . Later, optimal convergence bounds for zeroth-order stochastic gradient descent (SGD) were derived for convex objectives ( Duchi et al., 2015 ) and extended to Gaussian-smoothing-based approaches ( Nesterov and Spokoiny, 2017 ) . In nonconvex settings, variance-reduced ZO optimization methods such as ZO-SVRG and ZO-SPIDER were introduced to improve convergence rates and function query efficiency ( Ji et al., 2019 ) . More recent works have analyzed ZO optimization under finite-difference, linear interpolation, and various smoothing schemes ( Berahas et al., 2022 ) , while others have investigated its behavior in non-smooth regimes, providing sample complexity bounds ( Zhang et al., 2020 ; Davis et al., 2022 ) and demonstrating that non-smooth ZO optimization is not necessarily more difficult than the smooth case ( Rando et al., 2023a ; Kornowski and Shamir, 2024 ) . Beyond convergence, the generalization properties of ZO optimization remain underexplored. While existing theoretical studies primarily focus on convergence rates and complexity bounds, fewer works provide a rigorous understanding of how zeroth-order methods generalize in high-dimensional settings. Recent efforts have applied stability-based analyses to first-order optimization, revealing the role of noise in controlling generalization error ( Hardt et al., 2016 ; Lei, 2023 ) . However, extending such frameworks to ZO optimization poses unique challenges due to the inherently higher variance of zeroth-order gradient estimates. Some studies have begun addressing this issue, examining stability bounds for ZO methods ( Liu et al., 2024a ) , but a comprehensive theoretical framework connecting structured perturbations to both convergence and generalization is still lacking. Fine-tuning Large Language Models with Zeroth-order Optimization. Zeroth-order (ZO) optimization, a long-standing technique in conventional machine learning ( Spall, 1992 ; Ghadimi and Lan, 2013 ) , was first explored for large language model (LLM) fine-tuning by MeZO ( Malladi et al., 2023 ) . By generating perturbations dynamically using random seeds, MeZO eliminates the need to store large perturbation matrices, significantly reducing memory overhead. This allows ZO optimization to operate with memory requirements comparable to inference. While MeZO provides theoretical guarantees, suggesting that scaling the learning rate with respect to the problem dimension ensures dimension-free convergence, this approach inherently results in slow convergence. Several approaches have been proposed to improve the efficiency of ZO optimization. MeZO-SVRG ( Gautam et al., 2024 ) integrates the SVRG algorithm to reduce gradient variance, leading to faster convergence and improved fine-tuning performance. SparseMeZO ( Liu et al., 2024b ) enhances computational efficiency by updating only a subset of parameters, while Fisher-informed sparsity ( Guo et al., 2024 ) prioritizes updates based on Fisher information. A benchmarking study ( Zhang et al., 2024e ) evaluates various ZO methods, including SGD, SignSGD, and Adam. More recently, LOZO ( Chen et al., 2024 ) introduced low-rank perturbations, leveraging the low intrinsic dimensionality of gradients in LLMs to improve convergence and fine-tuning performance. Building on these works, this work develops a unified theoretical framework that explains how structured perturbations improve both convergence and generalization in ZO optimization. Through this perspective, block coordinate descent (BCD) is identified as an effective structured perturbation strategy, and its advantages are validated through theoretical analysis and empirical evaluation. Appendix B Proof for Convergence In this section, we provide the theoretical analysis of Section 3 in detail. B.1 Discussion on the Use of Assumption 3.1 Assumption 3.1 is well-justified in the context of large-scale language model optimization. A closely related, but even stronger, assumption was already adopted in MeZO ( Malladi et al., 2023 ) , where it was supported both theoretically and empirically. Specifically, MeZO justified this condition by noting that the Hessian of the loss for deep neural networks (especially during fine-tuning) often exhibits a remarkably low local effective rank ( Papyan, 2018 ; Papyan, 2020 ; Ghorbani et al., 2019 ; Wu et al., 2020 ; Sagun et al., 2017 ; Zhang et al., 2024c ; Zhang et al., 2024b ) , and that even for billion-parameter models, zeroth-order optimization remains effective, as also evidenced by the rapid convergence observed in practice. These empirical phenomena are further supported by numerous studies demonstrating that the Hessian spectrum is highly concentrated near zero, with only a handful of large outliers providing an effective upper bound on the local rank. Our formulation is strictly less restrictive than MeZO’s, as it only requires the assumption to hold within a local \mathcal{O}(s) -ball and allows for a strictly positive smoothing parameter \mu . Given that the original assumption was already validated in prior work, adopting this weaker version in our analysis is not only natural but also better aligned with the practical realities of large-scale model fine-tuning. B.2 Preliminaries Recall that our zeroth-order gradient estimator and the subspace ZO-SGD. \displaystyle\widehat{\mathbf{g}}_{t} \displaystyle=\frac{\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}-\mu\mathbf{M}_{t}\mathbf{u}_{t})}{2\mu}\mathbf{M}_{t}\mathbf{u}_{t} \displaystyle\bm{\theta}_{t+1} \displaystyle=\bm{\theta}_{t}-\alpha\widehat{\mathbf{g}}_{t} where \mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t})\coloneqq\frac{1}{|\mathcal{B}_{t}|}\sum\limits_{i\in\mathcal{B}_{t}}\mathcal{L}(\bm{\theta}_{t};\mathbf{z}_{i}) is the loss function evaluated over the minibatch sample \mathcal{B}_{t} at time t . Gaussian Smoothing. The zeroth-order gradient estimate \widehat{\mathbf{g}}_{t} is unbiased estimator of the following smoothed loss. \displaystyle\mathcal{L}_{\mu}(\bm{\theta}) \displaystyle\coloneqq\mathbb{E}_{\mathbf{u}\sim\mathcal{N}(\bm{0},\mathbf{I}_{d})}\big[\mathcal{L}(\bm{\theta}+\mu\mathbf{u})\big] \displaystyle\mathcal{L}_{\mu,\mathbf{M}_{t}}(\bm{\theta}) \displaystyle\coloneqq\mathbb{E}_{\mathbf{u}\sim\mathcal{N}(\bm{0},\mathbf{I}_{d})}\big[\mathcal{L}(\bm{\theta}+\mu\mathbf{M}_{t}\mathbf{u})\big] Note that it is clear that \mathcal{L}_{\mu} approaches to the original loss \mathcal{L} as \mu\rightarrow 0 . This indicates that the estimation error between \mathcal{L}_{\mu} and \mathcal{L} or the distance of gradients between \nabla\mathcal{L}_{\mu} and \nabla\mathcal{L} would depend on the smoothing parameter \mu , thus the key point is “how to handle this mismatch”. Lemma B.1 (Alignment of Smoothed Gradients) . The following inner product could be lower-bounded as follows. \displaystyle\big\langle\nabla\mathcal{L}_{\mu}(\bm{\theta}),\nabla\mathcal{L}_{\mu,\mathbf{M}_{t}}(\bm{\theta})\big\rangle \displaystyle\geq\|\nabla\mathcal{L}_{\mu}(\bm{\theta})\|^{2}-\|\nabla\mathcal{L}_{\mu}(\bm{\theta})\|\mu L\sqrt{2(d+s)} Proof. By the definition, we have \displaystyle\|\nabla\mathcal{L}_{\mu,\mathbf{M}_{t}}(\bm{\theta})-\nabla\mathcal{L}_{\mu}(\bm{\theta})\| \displaystyle=\Big\|\mathbb{E}_{\mathbf{u}}\big[\nabla\mathcal{L}(\bm{\theta}+\mu\mathbf{M}_{t}\mathbf{u})-\mathbb{E}_{\mathbf{u}}\big[\nabla\mathcal{L}(\bm{\theta}+\mu\mathbf{u})\big]\Big\| \displaystyle=\Big\|\mathbb{E}_{\mathbf{u}}\big[\nabla\mathcal{L}(\bm{\theta}+\mu\mathbf{M}_{t}\mathbf{u})-\nabla\mathcal{L}(\bm{\theta}+\mu\mathbf{u})\big]\Big\| \displaystyle\leq\mathbb{E}_{\mathbf{u}}\big[\big\|\nabla\mathcal{L}(\bm{\theta}+\mu\mathbf{M}_{t}\mathbf{u})-\nabla\mathcal{L}(\bm{\theta}+\mu\mathbf{u})\big\|\big] \displaystyle\leq\mu L\mathbb{E}_{\mathbf{u}}\big[\|(\mathbf{M}_{t}-\mathbf{I}_{d})\mathbf{u}\|\big] \displaystyle\leq\mu L\sqrt{\mathrm{Tr}\Big((\mathbf{M}_{t}-\mathbf{I}_{d})^{\top}(\mathbf{M}_{t}-\mathbf{I}_{d})\Big)} We let \displaystyle R\coloneqq\mathrm{Tr}\Big((\mathbf{M}_{t}-\mathbf{I}_{d})^{\top}(\mathbf{M}_{t}-\mathbf{I}_{d})\Big) for simplicity. For the positive semi-definite matrix \mathbf{M}_{t} with \mathrm{srank}(\mathbf{M}_{t})\leq s , it follows that \displaystyle R \displaystyle=\mathrm{Tr}\Big((\mathbf{M}_{t}-\mathbf{I}_{d})^{\top}(\mathbf{M}_{t}-\mathbf{I}_{d})\Big) \displaystyle=\|\mathbf{M}_{t}-\mathbf{I}_{d}\|_{F}^{2} \displaystyle\leq(\|\mathbf{M}_{t}\|_{F}+\|\mathbf{I}_{d}\|)^{2} \displaystyle\leq 2\|\mathbf{M}_{t}\|_{F}^{2}+2\|\mathbf{I}_{d}\|_{F}^{2} \displaystyle=2(d+s) Under the maximal difference \mu L\sqrt{2(d+s)} between \nabla\mathcal{L}_{\mu,\mathbf{M}_{t}}(\bm{\theta}) and \nabla\mathcal{L}_{\mu}(\bm{\theta}) , it is easy to derive that the inner product is lower-bounded as \displaystyle\big\langle\nabla\mathcal{L}_{\mu}(\bm{\theta}),\nabla\mathcal{L}_{\mu,\mathbf{M}_{t}}(\bm{\theta})\big\rangle \displaystyle\geq\|\nabla\mathcal{L}_{\mu}(\bm{\theta})\|^{2}-\|\nabla\mathcal{L}_{\mu}(\bm{\theta})\|\mu L\sqrt{2(d+s)} ∎ B.3 Technical Lemmas for Matrix Calculus Lemma B.2 (Trace of Matrix Product) . For positive semi-definite matrices \mathbf{A},\mathbf{B}\in\mathbb{R}^{d\times d} , the following holds. \displaystyle\mathrm{Tr}(\mathbf{AB})\leq\mathrm{Tr}(\mathbf{A})\mathrm{Tr}(\mathbf{B}) Proof. Let \mathbf{v}_{i} be an orthonormal basis for \mathbf{B} and \{\lambda_{i}\}_{i=1}^{d} be corresponding eigenvalues. Then, we have \displaystyle\mathrm{Tr}(\mathbf{AB})=\sum\limits_{i=1}^{d}\langle\mathbf{AB}\mathbf{v}_{i},\mathbf{v}_{i}\rangle=\sum\limits_{i=1}^{d}\lambda_{i}\langle\mathbf{A}\mathbf{v}_{i},\mathbf{v}_{i}\rangle=\max\limits_{i\in[d]}\lambda_{i}\mathrm{Tr}(\mathbf{A})\leq\mathrm{Tr}(\mathbf{A})\mathrm{Tr}(\mathbf{B}) ∎ Lemma B.3 (Lemma 1 in ( Nesterov and Spokoiny, 2017 ) ) . Let \mathbf{u}\sim\mathcal{N}(\bm{0},\mathbf{I}_{d}) . Then, the expectation of the moments satisfies \displaystyle\mathbb{E}\big[\|\mathbf{u}\|] \displaystyle=1 \displaystyle\mathbb{E}\big[\|\mathbf{u}\|^{2}] \displaystyle=d \displaystyle\mathbb{E}\big[\|\mathbf{u}\|^{n}] \displaystyle\leq(d+n)^{n/2} for n\geq 2 . Lemma B.4 ( n -th Moments of Quadratic Forms for n=1,2,3, and 4 ( Magnus et al., 1978 ) ) . Let \mathbf{u}\sim\mathcal{N}(\bm{0},\mathbf{I}_{d}) and \mathbf{A} be a positive semi-definite matrix. Then, the expectation of the folllowings are \displaystyle\mathbb{E}\Big[\mathbf{u}^{\mathsf{T}}\mathbf{A}\mathbf{u}\Big] \displaystyle=\mathrm{Tr}(\mathbf{A}) \displaystyle\mathbb{E}\Big[\big(\mathbf{u}^{\mathsf{T}}\mathbf{A}\mathbf{u}\big)^{2}\Big] \displaystyle=(\mathrm{Tr}(\mathbf{A}))^{2}+2\mathrm{Tr}(\mathbf{A}^{2})\leq 3\mathrm{Tr}(\mathbf{A})^{2} \displaystyle\mathbb{E}\Big[(\mathbf{u}^{\top}\mathbf{A}\mathbf{u})^{3}\Big] \displaystyle=\mathrm{Tr}(A)^{3}+6\mathrm{Tr}(\mathbf{A})\mathrm{Tr}(\mathbf{A}^{2})+8\mathrm{Tr}(\mathbf{A}^{3})\leq 15\mathrm{Tr}(\mathbf{A})^{3} \displaystyle\mathbb{E}\Big[\big(\mathbf{u}^{\mathsf{T}}\mathbf{A}\mathbf{u}\big)^{4}\Big] \displaystyle=(\mathrm{Tr}(\mathbf{A}))^{4}+32\mathrm{Tr}(\mathbf{A})\mathrm{Tr}(\mathbf{A}^{3})+12\big(\mathrm{Tr}(\mathbf{A}^{2})\big)^{2}+12\big(\mathrm{Tr}(\mathbf{A})\big)^{2}\mathrm{Tr}(\mathbf{A}^{2})+48\mathrm{Tr}(\mathbf{A}^{4}) \displaystyle\leq 105\mathrm{Tr}(\mathbf{A})^{4} where the inequalities come from Lemma B.2 . Lemma B.5 . Let \mathbf{u}\sim\mathcal{N}(\bm{0},\mathbf{I}_{d}) and \mathbf{Q}\in\mathbb{R}^{d\times d} be an arbitrary matrix. For any vector \mathbf{a}=(a_{1},a_{2},\cdots,a_{d})\in\mathbb{R}^{d} , it should hold that \displaystyle\mathbb{E}\big[\|\langle\mathbf{a},\mathbf{Qu}\rangle\mathbf{Qu}\|^{2}] \displaystyle=\mathrm{Tr}(\mathbf{Q}\mathbf{Q}^{\mathsf{T}})\|\mathbf{Q}^{\mathsf{T}}\mathbf{a}\|^{2}+2\mathbf{a}^{\mathsf{T}}(\mathbf{Q}\mathbf{Q}^{\mathsf{T}})^{2}\mathbf{a} Proof. Let \mathbf{X}=\mathbf{Qu} and \bm{\Sigma}=\mathbf{Q}\mathbf{Q}^{\mathsf{T}} . Since \mathbf{u}\sim\mathcal{N}(\bm{0},\mathbf{I}_{d}) , we have \mathbf{X}\sim\mathcal{N}(\bm{0},\bm{\Sigma}) . Note that \mathbf{X} is d -dimensional random vector with \mathbf{X}=(X_{1},X_{2},\cdots,X_{d}) . Also, the quantity to be expected could be re-written as \displaystyle\|\langle\mathbf{a},\mathbf{Qu}\rangle\mathbf{Qu}\|^{2} \displaystyle=(\mathbf{a}^{\mathsf{T}}\mathbf{X})^{2}\|\mathbf{X}\|^{2} \displaystyle=\left(\sum\limits_{i,j}a_{i}a_{j}X_{i}X_{j}\right)\left(\sum\limits_{k}X_{k}^{2}\right) \displaystyle=\sum\limits_{i,j,k}a_{i}a_{j}X_{i}X_{j}X_{k}^{2} Note that all we need to derive is \mathbb{E}[X_{i}X_{j}X_{k}^{2}] . Since \mathbf{X} follows \mathcal{N}(\bm{0},\bm{\Sigma}) distribution, it should hold that X_{i} , X_{j} , and X_{k} follow \mathcal{N}(0,\Sigma_{ii}) , \mathcal{N}(0,\Sigma_{jj}) , and \mathcal{N}(0,\Sigma_{kk}) , respectively. Thanks to Isserlis’ theorem ( Isserlis, 1918 ) or also known as Wick’s probability theorem ( Wick, 1950 ) , we have \displaystyle\mathbb{E}\big[X_{i}X_{j}X_{k}^{2}\big] \displaystyle=\mathbb{E}\big[X_{i}X_{j}X_{k}X_{k}\big] \displaystyle=\mathbb{E}\big[X_{i}X_{j}\big]\mathbb{E}\big[X_{k}X_{k}\big]+\mathbb{E}\big[X_{i}X_{k}\big]\mathbb{E}\big[X_{j}X_{k}\big]+\mathbb{E}\big[X_{i}X_{k}\big]\mathbb{E}\big[X_{j}X_{k}\big] \displaystyle=\mathbb{E}\big[X_{i}X_{j}\big]\mathbb{E}\big[X_{k}^{2}\big]+2\mathbb{E}\big[X_{i}X_{k}\big]\mathbb{E}\big[X_{j}X_{k}\big] \displaystyle=\Sigma_{ij}\Sigma_{kk}+2\Sigma_{ik}\Sigma_{jk} due to the fact \mathbf{X}\sim\mathcal{N}(\bm{0},\bm{\Sigma}) and \bm{\Sigma}=[\Sigma_{mn}] for 1\leq m,n\leq d . Arranging all items, we have \displaystyle\mathbb{E}\big[\|\langle\mathbf{a},\mathbf{Qu}\rangle\mathbf{Qu}\|^{2}\big] \displaystyle=\sum\limits_{i,j,k}a_{i}a_{j}\mathbb{E}\big[X_{i}X_{j}X_{k}^{2}\big] \displaystyle=\sum\limits_{i,j,k}a_{i}a_{j}\big(\Sigma_{ij}\Sigma_{kk}+2\Sigma_{ik}\Sigma_{jk}\big) \displaystyle=\underbrace{\sum\limits_{i,j,k}a_{i}a_{j}\Sigma_{ij}\Sigma_{kk}}_{T_{1}}+\underbrace{2\sum\limits_{i,j,k}a_{i}a_{j}\Sigma_{ik}\Sigma_{jk}}_{T_{2}} We first compute T_{1} . Note that \Sigma_{kk} in T_{1} only depends on the index k , thus we have \displaystyle T_{1} \displaystyle=\sum\limits_{i,j,k}a_{i}a_{j}\Sigma_{ij}\Sigma_{kk} \displaystyle=\left(\sum\limits_{k=1}^{d}\Sigma_{kk}\right)\left(\sum\limits_{i,j}a_{i}a_{j}\Sigma_{ij}\right)=\mathrm{Tr}(\bm{\Sigma})\mathbf{a}^{\mathsf{T}}\bm{\Sigma}\mathbf{a} \displaystyle=\mathrm{Tr}\big(\mathbf{Q}\mathbf{Q}^{\mathsf{T}}\big)\mathbf{a}^{\mathsf{T}}\mathbf{Q}\mathbf{Q}^{\mathsf{T}}\mathbf{a}=\mathrm{Tr}\big(\mathbf{Q}\mathbf{Q}^{\mathsf{T}}\big)\big\|\mathbf{Q}^{\mathsf{T}}\mathbf{a}\big\|^{2} Now, we compute T_{2} . Note that for a fixed k\in[d] , \sum_{i=1}^{d}a_{i}\Sigma_{ik}=[\bm{\Sigma}\mathbf{a}]_{k} holds by the definition of matrix multiplication. Hence, we have \displaystyle T_{2} \displaystyle=2\sum\limits_{i,j,k}a_{i}a_{j}\Sigma_{ik}\Sigma_{jk} \displaystyle=2\sum\limits_{k=1}^{d}\sum\limits_{i,j}a_{i}\Sigma_{ik}a_{j}\Sigma_{jk}=2\sum\limits_{k=1}^{d}\left(\sum\limits_{i=1}^{d}a_{i}\Sigma_{ik}\right)\left(\sum\limits_{j=1}^{d}a_{j}\Sigma_{jk}\right) \displaystyle=2\sum\limits_{k=1}^{d}[\bm{\Sigma}\mathbf{a}]_{k}^{2}=2\|\bm{\Sigma}\mathbf{a}\|^{2}=2\mathbf{a}^{\mathsf{T}}\bm{\Sigma}^{2}\mathbf{a} \displaystyle=2\mathbf{a}^{\mathsf{T}}\big(\mathbf{Q}\mathbf{Q}^{\mathsf{T}}\big)^{2}\mathbf{a} Combining T_{1} and T_{2} , we finally obtain \displaystyle\mathbb{E}\big[\|\langle\mathbf{a},\mathbf{Qu}\rangle\mathbf{Qu}\|^{2}] \displaystyle=\mathrm{Tr}(\mathbf{Q}\mathbf{Q}^{\mathsf{T}})\|\mathbf{Q}^{\mathsf{T}}\mathbf{a}\|^{2}+2\mathbf{a}^{\mathsf{T}}(\mathbf{Q}\mathbf{Q}^{\mathsf{T}})^{2}\mathbf{a} ∎ B.4 Technical Lemmas for Gaussian Smoothed Loss For completeness of the paper, we include several lemmas already known in zeroth-order optimization literature. Lemma B.6 . Let \mathcal{L}_{\mu}(\bm{\theta})=\mathbb{E}\big[\mathcal{L}(\bm{\theta}+\mu\mathbf{u})\big] for some positive \mu>0 . Then, the following holds. \displaystyle\|\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t})-\nabla\mathcal{L}(\bm{\theta}_{t})\| \displaystyle\leq\frac{\mu L(d+3)^{3/2}}{2} \displaystyle\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2} \displaystyle\leq\frac{\mu^{2}L^{2}(d+3)^{3}}{2}+2\|\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t})\|^{2} Proof. Since \mathcal{L} is L -smooth, we have for \mathbf{u}\sim\mathcal{N}(\bm{0},\mathbf{I}_{d}) \displaystyle\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{u}) \displaystyle\leq\mathcal{L}(\bm{\theta}_{t})+\mu\nabla\mathcal{L}(\bm{\theta}_{t})^{\mathsf{T}}\mathbf{u}+\frac{\mu^{2}L}{2}\|\mathbf{u}\|^{2}. Thus, the distance between \nabla\mathcal{L}_{\mu}(\bm{\theta}_{t}) and \nabla\mathcal{L}(\bm{\theta}_{t}) can be bounded as \displaystyle\|\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t})-\nabla\mathcal{L}(\bm{\theta}_{t})\| \displaystyle=\frac{1}{Z}\left\|\int_{\mathbf{u}}\left(\frac{\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{u})-\mathcal{L}(\bm{\theta}_{t})}{\mu}-\nabla\mathcal{L}(\bm{\theta}_{t})\right)\mathbf{u}e^{-\frac{1}{2}\|\mathbf{u}\|^{2}}\mathrm{d}\mathbf{u}\right\| \displaystyle=\frac{1}{Z}\left\|\int_{\mathbf{u}}\left(\frac{\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{u})-\mathcal{L}(\bm{\theta}_{t})-\mu\langle\nabla\mathcal{L}(\bm{\theta}_{t}),\mathbf{u}\rangle}{\mu}\right)\mathbf{u}e^{-\frac{1}{2}\|\mathbf{u}\|^{2}}\mathrm{d}\mathbf{u}\right\| \displaystyle\leq\frac{1}{Z}\int_{\mathbf{u}}\left|\frac{\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{u})-\mathcal{L}(\bm{\theta}_{t})-\mu\langle\nabla\mathcal{L}(\bm{\theta}_{t}),\mathbf{u}\rangle}{\mu}\right|\|\mathbf{u}\|e^{-\frac{1}{2}\|\mathbf{u}\|^{2}}\mathrm{d}\mathbf{u} \displaystyle\leq\frac{1}{Z}\int_{\mathbf{u}}\frac{\mu L}{2}\|\mathbf{u}\|^{3}e^{-\frac{1}{2}\|\mathbf{u}\|^{2}}\mathrm{d}\mathbf{u} \displaystyle\leq\frac{\mu L(d+3)^{3/2}}{2} where the second inequality comes from the fact \mathbb{E}[\langle\mathbf{a},\mathbf{u}\rangle\mathbf{u}]=\mathbf{a} for any vector \mathbf{a}\in\mathbb{R}^{d} . By triangle inequality and Young’s inequality, we have \displaystyle\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2} \displaystyle\leq 2\|\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t})-\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2}+\|\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t})\|^{2} \displaystyle\leq\frac{\mu^{2}L^{2}(d+3)^{3}}{2}+2\|\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t})\|^{2} ∎ Lemma B.7 (Expected Norm of \widehat{\mathbf{g}}_{t} ) . Suppose that \mathrm{srank}(\mathbf{M}_{t})\leq s . Then, the expected norm of structured zeroth-order gradient satisfies \displaystyle\mathbb{E}\big[\|\widehat{\mathbf{g}}_{t}\|\big]^{2}\leq\mathbb{E}\big[\|\widehat{\mathbf{g}}_{t}\|^{2}\big] \displaystyle\leq\frac{15\mu^{2}L^{2}s^{3}}{2}+4(s+2)\left(\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2}+\frac{\sigma^{2}}{B}\right) Proof. By the definition of \widehat{\mathbf{g}}_{t} and L -smoothness, we have \displaystyle\|\widehat{\mathbf{g}}_{t}\|^{2} \displaystyle=\left\|\frac{\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}-\mu\mathbf{M}_{t}\mathbf{u}_{t})}{2\mu}\mathbf{M}_{t}\mathbf{u}_{t}\right\|^{2} \displaystyle\leq\frac{2}{\mu^{2}}\left\|\Big(\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t})-\mu\langle\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\rangle\Big)\mathbf{M}_{t}\mathbf{u}_{t}\right\|^{2}+2\big\|\langle\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\rangle\mathbf{M}_{t}\mathbf{u}_{t}\big\|^{2} \displaystyle\leq\frac{\mu^{2}L^{2}}{2}\|\mathbf{M}_{t}\mathbf{u}_{t}\|^{6}+2\big\|\langle\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\rangle\mathbf{M}_{t}\mathbf{u}_{t}\big\|^{2} Note that the first term can be bounded as follows. \displaystyle\mathbb{E}\big[\|\mathbf{M}_{t}\mathbf{u}_{t}\|^{2}\big] \displaystyle=\mathbb{E}\big[\mathbf{u}_{t}^{\top}\mathbf{M}_{t}^{2}\mathbf{u}_{t}\big]=\mathrm{Tr}(\mathbf{M}_{t}^{2})\leq s \displaystyle\mathbb{E}\big[\|\mathbf{M}_{t}\mathbf{u}_{t}\|^{6}\big] \displaystyle=\mathbb{E}\big[(\mathbf{u}_{t}^{\top}\mathbf{M}_{t}^{2}\mathbf{u}_{t})^{3}\big] \displaystyle\leq 15\mathrm{Tr}(\mathbf{M}_{t}^{2})^{3} \displaystyle\leq 15s^{3} under Lemma B.4 and \mathrm{srank}(\mathbf{M}_{t})\leq s . Hence, it follows that \displaystyle\mathbb{E}_{\mathbf{u}_{t}}\big[\|\widehat{\mathbf{g}}_{t}\|^{2}\big] \displaystyle=\frac{\mu^{2}L^{2}}{2}\mathbb{E}\big[\|\mathbf{M}_{t}\mathbf{u}_{t}\|^{6}\big]+2\mathbb{E}\Big[\big\|\langle\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\rangle\mathbf{M}_{t}\mathbf{u}_{t}\big\|^{2}\Big] \displaystyle\leq\frac{15\mu^{2}L^{2}s^{3}}{2}+2(s+2)\|\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t})\|^{2} where we use Lemma B.3 and Lemma B.5 . Lastly, taking the expectations with respect to all randomness, we obtain \displaystyle\mathbb{E}\big[\|\widehat{\mathbf{g}}_{t}\|^{2}\big] \displaystyle\leq\frac{15\mu^{2}L^{2}s^{3}}{2}+2(s+2)\mathbb{E}_{\mathcal{D}}\big[\|\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t})\|^{2}\big] \displaystyle\leq\frac{15\mu^{2}L^{2}s^{3}}{2}+4(s+2)\left(\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2}+\frac{\sigma^{2}}{B}\right), using the condition (C- 2 ) . ∎ From now, we provide some auxiliary lemmas under \mathrm{srank}(\mathbf{M}_{t})\leq s and Assumption 3.1 . Lemma B.8 . The smoothed loss \mathcal{L}_{\mu} under Assumption 3.1 satisfies \displaystyle\|\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t})-\nabla\mathcal{L}(\bm{\theta}_{t})\| \displaystyle\leq\frac{\sqrt{3}\mu Lr\sqrt{d}}{2}+\frac{\mu L(d+4)\sqrt{d}}{2}\exp(-\frac{c_{1}}{2}d), \displaystyle\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2} \displaystyle\leq 3\mu^{2}L^{2}r^{2}d+\mu^{2}L^{2}d(d+4)^{2}\exp(-c_{1}d)+2\|\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t})\|^{2}. Proof. Let \mathcal{E} be the event such that \|\bm{\theta}_{t}+\mu\mathbf{u}-\bm{\theta}_{t}\|\leq 2\alpha sG+2\mu\sqrt{d} . On the event \mathcal{E} , by Assumption 3.1 , there exists some matrix \mathbf{H}(\bm{\theta}_{t}) such that \nabla^{2}\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{u})\preceq\mathbf{H}(\bm{\theta}_{t}) with \mathrm{intdim}(\mathbf{H}(\bm{\theta}_{t}))\leq r . Thus, we have the following inequality \displaystyle\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{u}) \displaystyle\leq\mathcal{L}(\bm{\theta}_{t})+\mu\nabla\mathcal{L}(\bm{\theta}_{t})^{\top}\mathbf{u}+\frac{\mu^{2}}{2}\mathbf{u}^{\top}\mathbf{H}(\bm{\theta}_{t})\mathbf{u} \displaystyle=\mathcal{L}(\bm{\theta}_{t})+\mu\nabla\mathcal{L}(\bm{\theta}_{t})^{\top}\mathbf{u}+\frac{\mu^{2}}{2}\Big\langle\mathbf{H}(\bm{\theta}_{t}),\mathbf{u}\mathbf{u}^{\top}\Big\rangle Likewise, on the event \mathcal{E}^{c} , it should hold that \displaystyle\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{u})\leq\mathcal{L}(\bm{\theta}_{t})+\mu\nabla\mathcal{L}(\bm{\theta}_{t})^{\top}\mathbf{u}+\frac{\mu^{2}L}{2}\|\mathbf{u}\|^{2} By the concentration inequality for (sub-)Gaussian random vector, we have \mathbb{P}[\mathcal{E}^{c}]\leq\exp(-c_{1}d) for some universal constant c_{1}>0 . \displaystyle\|\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t})-\nabla\mathcal{L}(\bm{\theta}_{t})\| \displaystyle=\|\nabla\mathbb{E}\big[\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{u})\big]-\nabla\mathcal{L}(\bm{\theta}_{t})\| \displaystyle\leq\Big\|\mathbb{E}_{\mathbf{u}}\Big[\frac{\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{u})-\mathcal{L}(\bm{\theta}_{t})}{\mu}\mathbf{u}\Big]-\nabla\mathcal{L}(\bm{\theta}_{t})\Big\| \displaystyle=\Big\|\mathbb{E}_{\mathbf{u}}\Big[\frac{\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{u})-\mathcal{L}(\bm{\theta}_{t})-\mu\langle\nabla\mathcal{L}(\bm{\theta}_{t}),\mathbf{u}\rangle}{\mu}\mathbf{u}\Big]\Big\| \displaystyle\leq\mathbb{E}_{\mathbf{u}}\Big[\Big(\frac{\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{u})-\mathcal{L}(\bm{\theta}_{t})-\mu\langle\nabla\mathcal{L}(\bm{\theta}_{t}),\mathbf{u}\rangle}{\mu}\Big)^{2}\Big]^{1/2}\mathbb{E}\big[\|\mathbf{u}\|^{2}\big]^{1/2} The first term could be bounded as \displaystyle\mathbb{E}_{\mathbf{u}}\Big[\Big(\frac{\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{u})-\mathcal{L}(\bm{\theta}_{t})-\mu\langle\nabla\mathcal{L}(\bm{\theta}_{t}),\mathbf{u}\rangle}{\mu}\Big)^{2}\Big] \displaystyle\leq\frac{\mu^{2}}{4}\mathbb{E}_{\mathbf{u}}\Big[\big(\mathbf{u}^{\top}\mathbf{H}(\bm{\theta}_{t})\mathbf{u}\big)^{2}\Big]+\exp(-c_{1}d)\frac{\mu^{2}L^{2}}{4}\mathbb{E}_{\mathbf{u}}\big[\|\mathbf{u}\|^{4}\big] \displaystyle\leq\frac{3\mu^{2}L^{2}r^{2}}{4}+\frac{\mu^{2}L^{2}(d+4)^{2}}{4}\exp(-c_{1}d) where we use Lemma B.3 and Lemma B.4 as \displaystyle\mathbb{E}\Big[\big(\mathbf{u}^{\top}\mathbf{H}(\bm{\theta}_{t})\mathbf{u}\big)^{2}\Big] \displaystyle\leq 3\mathrm{Tr}\big(\mathbf{H}(\bm{\theta}_{t})\big)^{2}\leq 3L^{2}r^{2} \displaystyle\mathbb{E}\big[\|\mathbf{u}\|^{4}\big] \displaystyle\leq(d+4)^{2} Therefore, it follows that \displaystyle\|\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t})-\nabla\mathcal{L}(\bm{\theta}_{t})\| \displaystyle\leq\Big(\frac{\sqrt{3}\mu Lr}{2}+\frac{\mu L(d+4)}{2}\exp(-\frac{c_{1}}{2}d)\Big)\sqrt{d} \displaystyle=\frac{\sqrt{3}\mu Lr\sqrt{d}}{2}+\frac{\mu L(d+4)\sqrt{d}}{2}\exp(-\frac{c_{1}}{2}d) Hence, we finally obtain \displaystyle\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2} \displaystyle\leq 2\|\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t})-\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2}+2\|\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t})\|^{2} \displaystyle\leq 3\mu^{2}L^{2}r^{2}d+\mu^{2}L^{2}d(d+4)^{2}\exp(-c_{1}d)+2|\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t})\|^{2} ∎ Lemma B.9 . The following inequality holds \displaystyle\mathcal{L}_{\mu}(\bm{\theta}_{t+1}) \displaystyle\leq\mathcal{L}_{\mu}(\bm{\theta}_{t})-\alpha\Big\langle\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t}),\nabla\mathcal{L}_{\mu,\mathbf{M}_{t}}(\bm{\theta}_{t})\Big\rangle+\frac{\alpha^{2}}{2}\Big\langle\mathbb{E}\big[\widehat{\mathbf{g}}_{t}\widehat{\mathbf{g}}_{t}^{\top}\big],\mathbf{H}(\bm{\theta}_{t})\Big\rangle \displaystyle\qquad\qquad+\frac{\alpha^{2}}{2}\Big\langle\mathbb{E}\Big[\widehat{\mathbf{g}}_{t}\widehat{\mathbf{g}}_{t}^{\top}\!\cdot\!\mathbb{I}(\mathcal{E}^{c})\Big],L\!\cdot\!\mathbf{I}_{d}-\mathbf{H}(\bm{\theta}_{t})\Big\rangle, and the last term can be bounded by \displaystyle\frac{\alpha^{2}}{2}\Big\langle\mathbb{E}\Big[\widehat{\mathbf{g}}_{t}\widehat{\mathbf{g}}_{t}^{\top}\!\cdot\!\mathbb{I}(\mathcal{E}^{c})\Big],L\!\cdot\!\mathbf{I}_{d}-\mathbf{H}(\bm{\theta}_{t})\Big\rangle\leq\alpha^{2}L\Big(37\mu^{2}L^{2}s^{3}+42s\Big(\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2}+\frac{\sigma^{2}}{B}\Big)\Big)\exp\Big(-\frac{s}{2}\Big) Proof. Let \mathcal{E} be the event that \|\bm{\theta}_{t+1}-\bm{\theta}_{t}\|\leq 2\alpha sG+2\mu\sqrt{d} . On \mathcal{E} , we have \displaystyle\mathcal{L}(\bm{\theta}_{t+1}+\mu\mathbf{u}) \displaystyle\leq\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{u})-\alpha\langle\nabla\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{u}),\widehat{\mathbf{g}}_{t}\rangle+\frac{1}{2}\Big\langle\widehat{\mathbf{g}}_{t}\widehat{\mathbf{g}}_{t}^{\top},\mathbf{H}(\bm{\theta}_{t})\Big\rangle On \mathcal{E}^{c} , we have for L -smooth loss, \displaystyle\mathcal{L}(\bm{\theta}_{t+1}+\mu\mathbf{u}) \displaystyle\leq\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{u})-\alpha\langle\nabla\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{u}),\widehat{\mathbf{g}}_{t}\rangle+\frac{L}{2}\|\widehat{\mathbf{g}}_{t}\|^{2} Combining two inequalities along the expectations with respect to \mathbf{u} and \mathbf{u}_{t} , we have \displaystyle\mathcal{L}_{\mu}(\bm{\theta}_{t+1}) \displaystyle\leq\mathcal{L}_{\mu}(\bm{\theta}_{t})-\alpha\Big\langle\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t}),\nabla\mathcal{L}_{\mu,\mathbf{M}_{t}}(\bm{\theta}_{t})\Big\rangle+\frac{\alpha^{2}}{2}\Big\langle\mathbb{E}\big[\widehat{\mathbf{g}}_{t}\widehat{\mathbf{g}}_{t}^{\top}\!\cdot\!\mathbb{I}(\mathcal{E})\big],\mathbf{H}(\bm{\theta}_{t})\Big\rangle \displaystyle\qquad+\frac{\alpha^{2}L}{2}\mathbb{E}\big[\|\widehat{\mathbf{g}}_{t}\|^{2}\!\cdot\!\mathbb{I}(\mathcal{E}^{c})\big] \displaystyle=\mathcal{L}_{\mu}(\bm{\theta}_{t})-\alpha\Big\langle\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t}),\nabla\mathcal{L}_{\mu,\mathbf{M}_{t}}(\bm{\theta}_{t})\Big\rangle+\frac{\alpha^{2}}{2}\Big\langle\mathbb{E}\big[\widehat{\mathbf{g}}_{t}\widehat{\mathbf{g}}_{t}^{\top}\big],\mathbf{H}(\bm{\theta}_{t})\Big\rangle \displaystyle\qquad+\frac{\alpha^{2}}{2}\Big\langle\mathbb{E}\Big[\widehat{\mathbf{g}}_{t}\widehat{\mathbf{g}}_{t}^{\top}\!\cdot\!\mathbb{I}(\mathcal{E}^{c})\Big],L\!\cdot\!\mathbf{I}_{d}-\mathbf{H}(\bm{\theta}_{t})\Big\rangle The last term could be bounded as \displaystyle\frac{\alpha^{2}}{2}\Big\langle\mathbb{E}\Big[\widehat{\mathbf{g}}_{t}\widehat{\mathbf{g}}_{t}^{\top}\cdot\mathbb{I}(\mathcal{E}^{c})\Big],L\!\cdot\!\mathbf{I}_{d}-\mathbf{H}(\bm{\theta}_{t})\Big\rangle \displaystyle\leq\alpha^{2}L\mathbb{E}\Big[\|\widehat{\mathbf{g}}_{t}\|^{2}\cdot\mathbb{I}(\mathcal{E}^{c})\Big] \displaystyle=\alpha^{2}L\mathbb{E}\Big[\|\widehat{\mathbf{g}}_{t}\|^{4}\Big]^{1/2}\mathbb{P}[\mathcal{E}^{c}]^{1/2}. The first term could be computed as \displaystyle\|\widehat{\mathbf{g}}_{t}\|^{4} \displaystyle\leq\left\|\frac{\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}-\mu\mathbf{M}_{t}\mathbf{u}_{t})}{2\mu}\mathbf{M}_{t}\mathbf{u}_{t}\right\|^{4} \displaystyle\leq\frac{2}{\mu^{4}}\left\|\Big(\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t})-\mu\langle\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\rangle\Big)\mathbf{M}_{t}\mathbf{u}_{t}\right\|^{4}+4\big\|\langle\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\rangle\mathbf{M}_{t}\mathbf{u}_{t}\big\|^{4} \displaystyle\leq\frac{\mu^{4}L^{4}}{8}\|\mathbf{M}_{t}\mathbf{u}_{t}\|^{12}+4\Big\|\langle\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\rangle\mathbf{M}_{t}\mathbf{u}_{t}\Big\|^{4} The expectation of each term could be bounded as \displaystyle\mathbb{E}\big[\|\mathbf{M}_{t}\mathbf{u}_{t}\|^{12}\big] \displaystyle\leq 10395s^{6} \displaystyle\mathbb{E}\big[\|\langle\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\rangle\mathbf{M}_{t}\mathbf{u}_{t}\|^{4}\big] \displaystyle\leq 105s^{2}\|\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t})\|^{4} Thus, we have \displaystyle\mathbb{E}\big[\|\widehat{\mathbf{g}}_{t}\|^{4}\big] \displaystyle\leq\frac{10395\mu^{4}L^{4}s^{6}}{8}+420s^{2}\|\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t})\|^{4} \displaystyle\mathbb{E}\big[\|\widehat{\mathbf{g}}_{t}\|^{4}\big]^{1/2} \displaystyle\leq 37\mu^{2}L^{2}s^{3}+21s\|\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t})\|^{2} \displaystyle\leq 37\mu^{2}L^{2}s^{3}+42s(\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2}+\frac{\sigma^{2}}{B}) Now, we compute the probability of the event \mathcal{E}^{c} . Note that on the event \mathcal{E}^{c} , we have \displaystyle 2\alpha sG+\mu\sqrt{d}\leq\|\bm{\theta}_{t+1}-\bm{\theta}_{t}\| \displaystyle=\alpha\|\widehat{\mathbf{g}}_{t}\|\leq\alpha G\|\mathbf{M}_{t}\mathbf{u}_{t}\|^{2} Therefore, we should compute the probability such that \displaystyle\|\mathbf{M}_{t}\mathbf{u}_{t}\|^{2}\geq 2s+\frac{\mu\sqrt{d}}{\alpha G} Using Hanson-Wright inequality ( Hanson and Wright, 1971 ; Wright, 1973 ) , it is easy to check that \mathbb{P}[\mathcal{E}^{c}]\leq\exp(-s/2) holds. Combining all the items, we finally have \displaystyle\frac{\alpha^{2}}{2}\Big\langle\mathbb{E}\Big[\widehat{\mathbf{g}}_{t}\widehat{\mathbf{g}}_{t}^{\top}\!\cdot\!\mathbb{I}(\mathcal{E}^{c})\Big],L\!\cdot\!\mathbf{I}_{d}-\mathbf{H}(\bm{\theta}_{t})\Big\rangle \displaystyle\leq\alpha^{2}L\Big(37\mu^{2}L^{2}s^{3}+42s\Big(\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2}+\frac{\sigma^{2}}{B}\Big)\Big)\exp\Big(-\frac{s}{2}\Big) ∎ Lemma B.10 . The following inequality holds \displaystyle\mathbb{E}\big[\widehat{\mathbf{g}}_{t}^{\top}\mathbf{H}(\bm{\theta}_{t})\widehat{\mathbf{g}}_{t}\big] \displaystyle\leq 13\mu^{2}L^{3}s^{2}\rho_{t}+9L\rho_{\mathrm{max}}\Big(\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2}+\frac{\sigma^{2}}{B}\Big). Proof. By the definition of \widehat{\mathbf{g}}_{t} , we have \displaystyle\mathbb{E}\Big[\widehat{\mathbf{g}}_{t}^{\top}\mathbf{H}(\bm{\theta}_{t})\widehat{\mathbf{g}}_{t}\Big] \displaystyle=\frac{1}{4\mu^{2}}\mathbb{E}\Big[\Big(\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}-\mu\mathbf{M}_{t}\mathbf{u}_{t})\Big)^{2}\mathbf{u}_{t}^{\top}\mathbf{M}_{t}\mathbf{H}(\bm{\theta}_{t})\mathbf{M}_{t}\mathbf{u}_{t}\Big] \displaystyle\leq\frac{1}{4\mu^{2}}\mathbb{E}\Big[\Big(\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}-\mu\mathbf{M}_{t}\mathbf{u}_{t})\Big)^{4}\Big]^{1/2}\mathbb{E}\Big[\big(\mathbf{u}_{t}^{\top}\mathbf{M}_{t}\mathbf{H}(\bm{\theta}_{t})\mathbf{M}_{t}\mathbf{u}_{t}\big)^{2}\Big]^{1/2} \displaystyle\leq\frac{\sqrt{3}L\rho}{4\mu^{2}}\mathbb{E}\Big[\Big(\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}-\mu\mathbf{M}_{t}\mathbf{u}_{t})\Big)^{4}\Big]^{1/2} The function difference could be handled as \displaystyle\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}-\mu\mathbf{M}_{t}\mathbf{u}_{t}) \displaystyle\leq\mu^{2}L\|\mathbf{M}_{t}\mathbf{u}_{t}\|^{2}+2\mu\big\langle\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\big\rangle Therefore, the fourth exponent of this difference can be bounded by \displaystyle\mathbb{E}\Big[\Big(\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}-\mu\mathbf{M}_{t}\mathbf{u}_{t})\Big)^{4}\Big] \displaystyle\leq\mathbb{E}\Big[\Big(\mu^{2}L\|\mathbf{M}_{t}\mathbf{u}_{t}\|^{2}+2\mu\big\langle\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\big\rangle\Big)^{4}\Big] \displaystyle\leq 8\mathbb{E}\Big[\mu^{8}L^{4}\|\mathbf{M}_{t}\mathbf{u}_{t}\|^{8}+16\mu^{4}\big\langle\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\big\rangle^{4}\Big] \displaystyle\leq 8\mu^{8}L^{4}\mathbb{E}\big[\|\mathbf{M}_{t}\mathbf{u}_{t}\|^{8}\big]+128\mu^{4}\mathbb{E}\big[\langle\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\rangle^{4}\big] \displaystyle\leq 840\mu^{8}L^{4}s^{4}+384\mu^{4}\|\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t})\|^{4} Also, by the definition of subspace alignment in Definition 3.2 , we have \displaystyle\mathrm{Tr}(\mathbf{M}_{t}\mathbf{H}(\bm{\theta}_{t})\mathbf{M}_{t})=L\rho_{t} Hence, we obtain \displaystyle\mathbb{E}\big[\widehat{\mathbf{g}}_{t}^{\top}\mathbf{H}(\bm{\theta}_{t})\widehat{\mathbf{g}}_{t}\big] \displaystyle\leq\frac{\sqrt{3}L\rho_{t}}{4\mu^{2}}\Big(\sqrt{840}\mu^{4}L^{2}s^{2}+\sqrt{384}\mu^{2}\|\nabla\mathcal{L}_{\mathcal{B}_{t}}(\bm{\theta}_{t})\|^{2}\Big) \displaystyle\leq 13\mu^{2}L^{3}s^{2}\rho_{t}+9L\rho_{\mathrm{max}}\Big(\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2}+\frac{\sigma^{2}}{B}\Big) ∎ B.5 Proof of Theorem 3.3 Proof. By Lemma B.9 and Lemma B.10 , it follows that \displaystyle\mathcal{L}_{\mu}(\bm{\theta}_{t+1}) \displaystyle\leq\mathcal{L}_{\mu}(\bm{\theta}_{t})-\frac{\alpha}{2}\|\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t})\|^{2}+\alpha\mu^{2}L^{2}(d+s)+\frac{\alpha^{2}}{2}\Big(13\mu^{2}L^{3}s^{2}\rho_{t}+9L\rho_{\mathrm{max}}\Big(\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2}+\frac{\sigma^{2}}{B}\Big)\Big) \displaystyle\qquad+\alpha^{2}L\Big(37\mu^{2}L^{2}s^{3}+42s(\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2}+\frac{\sigma^{2}}{B})\Big)\exp(-s/2) By Lemma B.8 , the gradient norm w.r.t. to the smoothed loss can be bounded by the gradient norm w.r.t. the original loss \mathcal{L} as \displaystyle\frac{\alpha}{4}\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2} \displaystyle\leq\frac{3\alpha\mu^{2}L^{2}r^{2}d}{16}+\frac{\alpha}{2}\|\nabla\mathcal{L}_{\mu}(\bm{\theta}_{t})\|^{2} \displaystyle\leq\frac{3\alpha\mu^{2}L^{2}r^{2}d}{16}+\mathcal{L}_{\mu}(\bm{\theta}_{t})-\mathcal{L}_{\mu}(\bm{\theta}_{t+1})+\alpha\mu^{2}L^{2}(d+s)+\frac{13\alpha^{2}\mu^{2}L^{3}s^{2}\rho_{t}}{2}+\frac{9\alpha^{2}L\rho_{\mathrm{max}}}{2}\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2} \displaystyle\qquad+\frac{9\alpha^{2}L\rho_{\mathrm{max}}\sigma^{2}}{2B}+37\alpha^{2}\mu^{2}L^{3}s^{3}\exp\big(-s/2\big)+42\alpha^{2}Ls\exp\big(-s/2\big)\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2} \displaystyle\qquad+\frac{42\alpha^{2}Ls\sigma^{2}}{B}\exp\big(-s/2\big) By rearranging inequality, it should hold that \displaystyle\Big(\frac{\alpha}{4}-\frac{9\alpha^{2}L\rho_{\mathrm{max}}}{2}-42\alpha^{2}Ls\exp(-s/2)\Big) \displaystyle\sum\limits_{t=1}^{T}\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2}\leq \displaystyle\frac{3\alpha\mu^{2}L^{2}r^{2}d}{16}+\mathcal{L}_{\mu}(\bm{\theta}_{t})-\mathcal{L}_{\mu}(\bm{\theta}_{t+1})+\alpha\mu^{2}L^{2}(d+s) \displaystyle\qquad+\frac{13\alpha^{2}L^{3}s^{2}\rho_{t}}{2}+\frac{9\alpha^{2}L\rho_{\mathrm{max}}\sigma^{2}}{2B}+37\alpha^{2}\mu^{2}L^{3}s^{3}\exp(-s/2) \displaystyle\qquad+\frac{42\alpha^{2}Ls\sigma^{2}}{B}\exp(-s/2) Under the following parameter condition, \displaystyle\alpha\leq\frac{1}{36L\rho_{\mathrm{max}}+336Ls\exp(-s/2)}, \displaystyle\frac{\alpha}{8}\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2} \displaystyle\leq\frac{3\alpha\mu^{2}L^{2}r^{2}d}{16}+\mathcal{L}_{\mu}(\bm{\theta}_{t})-\mathcal{L}_{\mu}(\bm{\theta}_{t+1})+\alpha\mu^{2}L^{2}(d+s)+\frac{13\alpha^{2}\mu^{2}L^{3}s^{2}\rho_{t}}{2}+\frac{9\alpha^{2}L\rho_{\mathrm{max}}\sigma^{2}}{2B} \displaystyle\qquad+37\alpha^{2}\mu^{2}L^{3}s^{3}\exp(-s/2)+\frac{42\alpha^{2}Ls\sigma^{2}}{B}\exp(-s/2) Therefore, we have \displaystyle\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2} \displaystyle\leq\frac{3\mu^{2}L^{2}r^{2}d}{2}+\frac{8(\mathcal{L}_{\mu}(\bm{\theta}_{t})-\mathcal{L}_{\mu}(\bm{\theta}_{t+1}))}{\alpha}+8\mu^{2}L^{2}(d+s)+52\alpha\mu^{2}L^{3}s^{2}\rho_{t}+\frac{36\alpha L\rho_{\mathrm{max}}\sigma^{2}}{B} \displaystyle\qquad+296\alpha\mu^{2}L^{3}s^{3}\exp(-s/2)+\frac{336\alpha Ls\sigma^{2}}{B}\exp(-s/2) \displaystyle\leq\frac{3\mu^{2}L^{2}r^{2}d}{2}+\frac{8(\mathcal{L}_{\mu}(\bm{\theta}_{t})-\mathcal{L}_{\mu}(\bm{\theta}_{t+1}))}{\alpha}+8\mu^{2}L^{2}(d+s)+\frac{13\mu^{2}L^{2}s^{2}\rho_{t}}{9} \displaystyle\qquad+\frac{37\mu^{2}L^{2}s^{2}}{42}+\frac{\sigma^{2}}{B} Telescoping the inequality from t=1 to T with stepsize condition and \mu=\mathcal{O}(\frac{1}{L\sqrt{\macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{\rho}dT}}) , we obtain \displaystyle\frac{1}{T}\sum\limits_{t=1}^{T}\|\nabla\mathcal{L}(\bm{\theta}_{t})\|^{2} \displaystyle\leq\frac{3r^{2}}{2\macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{\rho}T}+\frac{8\Delta}{\alpha T}+\frac{8(d+s)}{\macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{\rho}dT}+\frac{13s^{2}}{9dT}+\frac{37s^{2}}{42\macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{\rho}dT}+\frac{\sigma^{2}}{B} \displaystyle\leq\mathcal{O}\Big(\frac{1}{\macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{\rho}T}\Big(r^{2}+\frac{s^{2}}{d}+1\Big)+\frac{s^{2}}{dT}+\frac{\Delta}{\alpha T}+\frac{\sigma^{2}}{B}\Big) \displaystyle=\mathcal{O}\Big(\frac{r^{2}}{\macc@depth\char 1\relax\macc@set@skewchar\macc@nested@a 111{\rho}T}+\frac{s^{2}}{dT}+\frac{\Delta}{\alpha T}+\frac{\sigma^{2}}{B}\Big) ∎ B.6 Proof of Proposition 3.4 Proof. For simplicity, we drop the timestep of \mathbf{M}_{t} and \mathbf{H}(\bm{\theta}_{t}) and denote them by simply \mathbf{M} and \mathbf{H} respectively. Since it follows that \mathbb{E}[\mathbf{M}]=\frac{s}{d}\mathbf{I}_{d}(\neq\mathbf{0}) for some s>0 , we have \mathbf{M}\neq\mathbf{0} almost surely. By using \mathrm{Tr}(\mathbf{A}\mathbf{B}\mathbf{C})=\mathrm{Tr}(\mathbf{B}\mathbf{C}\mathbf{A}) , we have \mathrm{Tr}(\mathbf{M}\mathbf{H}\mathbf{M})=\mathrm{Tr}(\mathbf{H}\mathbf{M}\mathbf{M}) . As \mathbf{M}^{2}=\mathbf{M} holds a.s., we have \mathrm{Tr}(\mathbf{H}\mathbf{M}\mathbf{M})=\mathrm{Tr}(\mathbf{H}\mathbf{M}) a.s.. Then, it holds that \rho=\frac{\mathrm{Tr}(\mathbf{M}\mathbf{H}\mathbf{M})}{\lambda_{\mathrm{max}}(\mathbf{H})}=\frac{\mathrm{Tr}(\mathbf{H}\mathbf{M})}{\lambda_{\mathrm{max}}(\mathbf{H})} . By taking the expectation, we obtain \displaystyle\mathbb{E}[\rho] \displaystyle=\mathbb{E}\left[\frac{\mathrm{Tr}(\mathbf{H}\mathbf{M})}{\lambda_{\mathrm{max}}(\mathbf{H})}\right] \displaystyle=\frac{1}{\lambda_{\mathrm{max}}(\mathbf{H})}\mathbb{E}\left[\mathrm{Tr}(\mathbf{H}\mathbf{M})\right]\quad\text{(since }\mathbf{H}\text{ is deterministic)} \displaystyle=\frac{1}{\lambda_{\mathrm{max}}(\mathbf{H})}\mathrm{Tr}(\mathbb{E}\left[\mathbf{H}\mathbf{M}\right])\quad\text{(by the linearity of expectation)} \displaystyle=\frac{1}{\lambda_{\mathrm{max}}(\mathbf{H})}\mathrm{Tr}(\mathbf{H}\mathbb{E}\left[\mathbf{M}\right])\quad\text{(again, since }\mathbf{H}\text{ is deterministic)} \displaystyle=\frac{1}{\lambda_{\mathrm{max}}(\mathbf{H})}\mathrm{Tr}\left(\mathbf{H}\left(\frac{s}{d}\mathbf{I}_{d}\right)\right)=\frac{s}{d\lambda_{\mathrm{max}}(\mathbf{H})}\mathrm{Tr}(\mathbf{H}\mathbf{I}_{d})=\frac{s\mathrm{Tr}(\mathbf{H})}{d\lambda_{\mathrm{max}}(\mathbf{H})}. This completes the proof. ∎ B.7 Proof that Definition 3.5 satisfies the conditions in Proposition 3.4 Proof. We consider a case study. (Case 1) Low-rank Projection \mathbf{M}=\mathbf{U}\mathbf{U}^{\top} . First, we check the condition (i), orthogonality. The symmetry is confirmed by \mathbf{M}^{\top}=(\mathbf{U}\mathbf{U}^{\top})^{\top}=\mathbf{U}^{\top}(\mathbf{U}^{\top})^{\top}=\mathbf{U}\mathbf{U}^{\top} . The idempotency can be shown by \mathbf{M}^{2}=(\mathbf{U}\mathbf{U}^{\top})(\mathbf{U}\mathbf{U}^{\top})=\mathbf{U}(\mathbf{U}^{\top}\mathbf{U})\mathbf{U}^{\top}=\mathbf{U}\mathbf{I}_{s}\mathbf{U}^{\top}=\mathbf{U}\mathbf{U}^{\top} . Since \mathbf{M} is symmetric and idempotent, it is an orthogonal projection matrix, which holds with probability 1 by the definition of \mathbf{U} . Next, let’s check the condition (ii), \mathbb{E}[\mathbf{M}]=\frac{s}{d}\mathbf{I}_{d} . By the definition of \mathbf{M} , the s -dimensional subspace spanned by column vectors of \mathbf{U} is uniformly sampled from the Grassmannian manifold \mathbf{Gr}(s,\mathbb{R}^{d}) . Since \mathbb{E}[\mathbf{M}] is a d\times d matrix and the distribution of \mathbf{M} is invariant to an orthogonal transformation (i.e., for any orthogonal matrix \mathbf{P}\in\mathbb{R}^{d\times d} , \mathbf{M} and \mathbf{P}\mathbf{M}\mathbf{P}^{\top} have the same distribution), its expectation \mathbb{E}[\mathbf{M}] is also invariant to an orthogonal transformation. That means, \displaystyle\text{for any orthogonal matrix }\mathbf{P}\in\mathbb{R}^{d\times d},\mathbf{P}\mathbb{E}[\mathbf{M}]\mathbf{P}^{\top}=\mathbb{E}[\mathbf{P}\mathbf{M}\mathbf{P}^{\top}]=\mathbb{E}[\mathbf{M}] (5) holds. Since the unique matrix \mathbf{M} satisfying 5 is a scalar multiplier of identity matrix \mathbf{I}_{d} , there exists a c\in\mathbb{R} such that \mathbb{E}[\mathbf{M}]=c\mathbf{I}_{d} . To find such a c , let’s take a trace: \mathrm{Tr}(\mathbb{E}[\mathbf{M}])=\mathbb{E}(\mathrm{Tr}(\mathbf{M})) . Since \mathbf{M} is a projection onto s -dimensional subspace of \mathbb{R}^{d} , we have \mathrm{Tr}(\mathbf{M})=\mathrm{rank}(\mathbf{M})=s . Hence, \mathbb{E}[\mathrm{Tr}(\mathbf{M})]=\mathbb{E}[s]=s . Since \mathrm{Tr}(c\mathbf{I}_{d})=cd , by letting them equal, we obtain cd=s , c=s/d . Therefore, we can conclude that \mathbb{E}[\mathbf{M}]=c\mathbf{I}_{d}=\frac{s}{d}\mathbf{I}_{d} . (Case 2) Sparse Perturbation \mathbf{M}=\diag(\mathbf{m}) , where m_{i}\sim\mathrm{Bernoulli}(p=s/d) . Since m_{i} is either 0 or 1, \mathbf{M} is a diagonal matrix with diagonal entries that are either 0 or 1. Therefore, \mathbf{M} is symmetric and idempotent (with probability 1 ), which confirms the condition (i). By the definition of \mathbf{M} , \mathbb{E}[\mathbf{M}] is a diagonal matrix with diagonal entries that are p , i.e., \mathbf{M}=p\mathbf{I}_{d} . Since p=s/d , we have \mathbb{E}[\mathbf{M}]=\frac{s}{d}\mathbf{I}_{d} . (Case 3) Block Sparse Perturbation \mathbf{M}=\diag(\mathbf{m}) , where m_{i}=1 if i\in B_{j},j\sim\mathcal{U}\{1,N\},|B_{j}|=s . Similar to the sparse perturbation, here \mathbf{M} is a diagonal matrix with diagonal entries that are either 0 or 1. Thus, \mathbf{M} satisfies the condition (i). Next, let’s start by letting J~\sim\mathcal{U}\{1,N\} be the random variable representing the block index. Each diagonal entry \mathbf{M}_{kk} is 1 if the k is in the selected block and otherwise, 0. Since the blocks are the partition of \{1,\ldots,d\} , every index k is contained in exactly one block B_{parent(k)} . Since \mathbf{M}_{kk}=1 is equivalent to J=parent(k) and J\sim\mathcal{U}\{1,N\} , \mathbb{P}(J=parent(k))=\frac{1}{N} . Hence, \mathbb{E}[\mathbf{M}]=\frac{1}{N}\mathbf{I}_{d} . Since N=s/d , we finally obtain \mathbb{E}[\mathbf{M}]=\frac{s}{d}\mathbf{I}_{d} . ∎ B.8 Proof of Proposition 3.6 To be self-contained, we first introduce the results from ( Milman, 1988 ) . Lemma B.11 (Example 2.1 in ( Milman, 1988 ) ) . Let \mathbb{S}^{n} be the Euclidean sphere equipped with the geodesic distance \varphi and the rotation-invariant probability measure \nu . Then \displaystyle\alpha(\mathbb{S}^{n+1};\varepsilon)\leq\sqrt{\pi/8}\exp(-n\varepsilon^{2}/2)\rightarrow 0\text{ for }n\rightarrow\infty for any fixed \varepsilon>0 . Here, \alpha(X;\epsilon)=1-\inf\left\{\nu(A_{\epsilon}):A\text{ be a Borel Subset of }X,\nu(A)\geq\frac{1}{2}\right\} where A_{\varepsilon} is the geodesic \varepsilon -neighourhood of A on X , i.e., A_{\epsilon}=\{x\in X:\varphi(x,A)\leq\epsilon\} . Here’s another supporting lemma: Lemma B.12 (Lipschitz constant of f(\mathbf{U})=\operatorname{Tr}(\mathbf{U}^{\top}\mathbf{H}\mathbf{U}) ) . Let \mathbf{H}\in\mathbb{R}^{d\times d} be a symmetric positive semi-definite with maximum eigenvalue \lambda_{\max}(\mathbf{H})>0 . For 1\leq s\leq d , let f:V_{s}(\mathbb{R}^{d})\rightarrow\mathbb{R},f(\mathbf{U})=\operatorname{Tr}(\mathbf{U}^{\top}\mathbf{H}\mathbf{U}) . Then f is \displaystyle L=2\sqrt{s}\lambda_{\max}(\mathbf{H})\text{-Lipschitz on }(V_{s}(\mathbb{R}^{d}),\|\cdot\|_{F}) i.e., \displaystyle|f(\mathbf{U})-f(\mathbf{V})|\leq 2\sqrt{s}\lambda_{\max}(\mathbf{H})\|\mathbf{U}-\mathbf{V}\|_{F},\quad\forall\mathbf{U},\mathbf{V}\in V_{s}(\mathbb{R}^{d}). Proof. Let \mathbf{P}=\mathbf{U}\mathbf{U}^{\top} and \mathbf{Q}=\mathbf{V}\mathbf{V}^{\top} . Since |f(\mathbf{U})-f(\mathbf{V})|=|\operatorname{Tr}(\mathbf{H}(\mathbf{P}-\mathbf{Q}))| and |\operatorname{Tr}(\mathbf{A}\mathbf{B})|\leq\|\mathbf{A}\|_{2\rightarrow 2}\|B\|_{*} for any \mathbf{A},\mathbf{B} , we have |f(\mathbf{U})-f(\mathbf{V})|\leq\lambda_{\max}(\mathbf{H})\|\mathbf{P}-\mathbf{Q}\|_{*}. Then, since \mathbf{P}-\mathbf{Q} has rank at most 2s , we know \|\mathbf{P}-\mathbf{Q}\|_{*}\leq\sqrt{2s}\|\mathbf{P}-\mathbf{Q}\|_{F}. (From the fact that \|\mathbf{A}\|_{*}\leq\sqrt{\mathrm{rank}(\mathbf{A})}\|\mathbf{A}\|_{F} .) By writing \mathbf{P}-\mathbf{Q}=(\mathbf{U}-\mathbf{V})\mathbf{U}^{\top}+\mathbf{V}(\mathbf{U}-\mathbf{V})^{\top} , then apply \|\mathbf{A}\mathbf{B}\|_{F}\leq\|\mathbf{A}\|_{2\rightarrow 2}\|\mathbf{B}\|_{F} and \|\mathbf{U}\|_{2\rightarrow 2}=\|\mathbf{V}\|_{2\rightarrow 2}=1 , we get \|\mathbf{P}-\mathbf{Q}\|_{F}\leq 2\|\mathbf{U}-\mathbf{V}\|_{F}. Combining all the inequalities, we obtain |f(\mathbf{U})-f(\mathbf{V})|\leq\lambda_{\max}(\mathbf{H})\sqrt{2s}(2\|\mathbf{U}-\mathbf{V}\|_{F})=2\sqrt{s}\lambda_{\max}\|\mathbf{U}-\mathbf{V}\|_{F}. Hence, L=2\sqrt{s}\lambda_{\max}(\mathbf{H}) . ∎ Proof. (Case 1) Low-rank Projection. Let V_{s}(\mathbb{R}^{d})=\{\mathbf{U}\in\mathbb{R}^{d\times s}:\mathbf{U}^{\top}\mathbf{U}=\mathbf{I}_{s} be the Stiefel manifold. If \mathbf{U} is drawn uniformly from V_{s}(\mathbb{R}^{d}) (with respect to Haar measure), then \mathbf{U}\mathbf{U}^{\top} be an orthogonal projection matrix onto an s -dimensional subspace chosen uniformly at random from the Grasmannian manifold \mathbf{Gr}(s,\mathbb{R}^{d}) . By Lemma B.11 , if a function F on \mathbb{S}^{d} is L -Lipschitz, then for every \Delta>0 , we have \displaystyle\mathbb{P}(|F-\tilde{F}|\geq\Delta)\leq 2\alpha(\mathbb{S}^{n};\Delta/L) where \tilde{F} is the median of F . Incorporate with the definition of \alpha , we obtain \displaystyle\mathbb{P}(|F-\tilde{F}|\geq\Delta)\leq 2\sqrt{\pi/8}\exp\big(-\frac{n\Delta^{2}}{2L^{2}}\big). (6) Since the Stiefel manifold V_{s}(\mathbb{R}^{d})\subset\sqrt{s}\mathbb{S}^{ds-1} and the Lipschitz constant L for the function F(\mathbf{U})=\mathrm{Tr}(\mathbf{U}^{\top}\mathbf{H}\mathbf{U}) is 2\sqrt{s}\lambda_{\max}(\mathbf{H}) (Lemma B.12 ), by ( 6 ), we obtain \displaystyle\mathbb{P}(\rho\geq\hat{\rho}) \displaystyle=\mathbb{P}(\rho-\mathbb{E}[\rho]\geq\Delta)\leq 2\sqrt{\pi/8}\exp\big(-\frac{(ds-1)(\lambda_{\max}\Delta)^{2}}{4s\lambda_{\max}^{2}}\big) \displaystyle\leq 2\exp\big(-\frac{d\Delta^{2}}{8s\lambda_{\max}^{2}}\big) where in the last inequality we used \sqrt{\pi/8}\leq 1 and ds-1\geq d . Hence, by letting c_{1}=\frac{1}{8\lambda_{\max}^{2}} , this completes the proof. (Case 2) Sparse Perturbation. Given that p=s/d and independent random variables m_{i}\sim\mathrm{Bernoulli}(p) , let \rho-\mathbb{E}[\rho]=\sum_{i=1}^{d}X_{i} where X_{i}\coloneqq\frac{\mathbf{H}_{ii}}{\lambda_{\mathrm{max}}(\mathbf{H})}(m_{i}-p) . Then, by the definition of X_{i} , we have \mathbb{E}[X_{i}]=0 and |X_{i}|\leq 1 since \mathbf{H}_{ii}<\lambda_{\mathrm{max}}(\mathbf{H}) . Also, we have \displaystyle\mathrm{Var}(X_{i})=p(1-p)\big(\frac{\mathbf{H}_{ii}}{\lambda_{\mathrm{max}}(\mathbf{H})}\big)^{2},\sigma^{2}\coloneqq\mathrm{Var}\big(\sum_{i=1}^{d}X_{i}\big)=p(1-p)\sum_{i=1}^{d}\big(\frac{\mathbf{H}_{ii}}{\lambda_{\mathrm{max}}(\mathbf{H})}\big)^{2}. Since \sum_{i=1}^{d}\mathbf{H}_{ii}^{2}\leq(\max_{i}\mathbf{H}_{ii})\sum_{i=1}^{d}\mathbf{H}_{ii}\leq\lambda_{\mathrm{max}}(\mathbf{H})\mathrm{Tr}(\mathbf{H}) , we have \sum_{i=1}^{d}\big(\frac{\mathbf{H}_{ii}}{\lambda_{\mathrm{max}}(\mathbf{H})}\big)^{2}\leq\frac{\lambda_{\mathrm{max}}(\mathbf{H})\mathrm{Tr}(\mathbf{H})}{\lambda_{\mathrm{max}}^{2}(\mathbf{H})}=\mathrm{intdim}(\mathbf{H})\leq r since \mathrm{intdim(\mathbf{H})}\leq r . Thus, \sigma^{2}\leq p(1-p)r . Then, by the Chebyshev’s inequality, we obtain \displaystyle\mathbb{P}(\rho\geq\hat{\rho}) \displaystyle=\mathbb{P}(\rho-\mathbb{E}[\rho]\geq\Delta)=\mathbb{P}(\sum_{i=1}^{d}X_{i}\geq\Delta)\leq\mathbb{P}(|\sum_{i=1}^{d}X_{i}|\geq\Delta)\leq\frac{\sigma^{2}}{\Delta^{2}}\leq c_{2}\frac{sr}{d\Delta^{2}} where c_{2}=1-p<1 , which completes the proof. (Case 3) Block Sparse Perturbation. Given that \{1,\ldots,d\} is partitioned into N=d/s disjoint blocks B_{1},\ldots,B_{N} of size s , choose a block index J\sim\mathcal{U}\{1,\ldots,N\} , we have \displaystyle\rho=\frac{1}{\lambda_{\mathrm{max}}(\mathbf{H})}\sum_{i\in B_{J}}\mathbf{H}_{ii} by the definition of block sparse perturbation \mathbf{M} . By letting h(J)=\frac{1}{\lambda_{\mathrm{max}}(\mathbf{H})}\sum_{i\in B_{J}}\mathbf{H}_{ii} , we have \displaystyle\mathbb{P}(\rho\geq\hat{\rho}) \displaystyle=\mathbb{P}(h(J)\geq\hat{\rho})=\sum_{j=1}^{N}\mathbb{P}(J=j)\mathbf{1}_{\{h(j)\geq\hat{\rho}\}}=\frac{1}{N}\sum_{j=1}^{N}\mathbf{1}_{\{h(j)\geq\hat{\rho}\}} \displaystyle=\frac{1}{N}\big|\big\{j:\sum_{i\in B_{j}}\mathbf{H}_{ii}\geq\hat{\rho}\lambda_{\mathrm{max}}(\mathbf{H})\big\}\big|. since J~\sim\mathcal{U}\{1,\ldots,N\} . This completes the proof. ∎ Appendix C Proof of Generalization Error Bound In this section, we consider the following online update. \displaystyle\widehat{\nabla}\mathcal{L}(\bm{\theta}_{t};\mathbf{z}_{i_{t}}) \displaystyle=\frac{\mathcal{L}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t};\mathbf{z}_{i_{t}})-\mathcal{L}(\bm{\theta}_{t}-\mu\mathbf{M}_{t}\mathbf{u}_{t};\mathbf{z}_{i_{t}})}{2\mu}\mathbf{M}_{t}\mathbf{u}_{t} \displaystyle\bm{\theta}_{t+1} \displaystyle=\bm{\theta}_{t}-\alpha_{t}\widehat{\nabla}\mathcal{L}(\bm{\theta}_{t};\mathbf{z}_{i_{t}}) For generalization error bound, we employ the uniform stability framework. Note that we define some quantities \displaystyle\mathcal{E}_{t_{0}} \displaystyle=\{\bm{\theta}_{t}=\bm{\theta}_{t_{0}}\}~\text{(the event)} \displaystyle\delta_{t} \displaystyle=\|\bm{\theta}_{t}-\bm{\theta}_{t}^{\prime}\|,\quad\Delta_{t}=\mathbb{E}\big[\delta_{t}|\mathcal{E}_{t_{0}}\big] C.1 Auxiliary Lemmas Lemma C.1 . For any t>t_{0} , the distance between the zeroth-order gradients, evaluated on the same datapoint \mathbf{z}_{i_{t}} but on the different parameters \bm{\theta}_{t} and \bm{\theta}_{t}^{\prime} , is bounded as \displaystyle\mathbb{E}\Big[\Big\|\widehat{\nabla}\mathcal{L}(\bm{\theta}_{t};\mathbf{z}_{i_{t}})-\widehat{\nabla}\mathcal{L}(\bm{\theta}_{t}^{\prime};\mathbf{z}_{i_{t}})\Big\|\Big] \displaystyle\leq\sqrt{3s}\big(4L\rho+\mu Ls\exp(-s/2)\big)+L\sqrt{s}\delta_{t} Proof. For simplicity, we denote \mathcal{L}(\bm{\theta}_{t};\mathbf{z}_{i_{t}})\eqqcolon\mathcal{L}_{i_{t}}(\bm{\theta}_{t}) . By the definition of zeroth-order gradient estimator, we have \displaystyle\widehat{\nabla}\mathcal{L}_{i_{t}}(\bm{\theta}_{t}) \displaystyle=\frac{\mathcal{L}_{i_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{i_{t}}(\bm{\theta}_{t}-\mu\mathbf{M}_{t}\mathbf{u}_{t})}{2\mu}\mathbf{M}_{t}\mathbf{u}_{t} \displaystyle=\frac{\mathcal{L}_{i_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\mu\langle\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\rangle}{2\mu}\mathbf{M}_{t}\mathbf{u}_{t} \displaystyle\qquad-\frac{\mathcal{L}_{i_{t}}(\bm{\theta}_{t}-\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\mu\langle\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t}),-\mathbf{M}_{t}\mathbf{u}_{t}\rangle}{2\mu}\mathbf{M}_{t}\mathbf{u}_{t} \displaystyle\qquad+\langle\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\rangle\mathbf{M}_{t}\mathbf{u}_{t} Therefore, the gradient difference is \displaystyle\widehat{\nabla}\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\widehat{\nabla}\mathcal{L}_{i_{t}}(\bm{\theta}_{t}^{\prime}) \displaystyle=\frac{\mathcal{L}_{i_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\mu\langle\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\rangle}{2\mu}\mathbf{M}_{t}\mathbf{u}_{t} \displaystyle\qquad-\frac{\mathcal{L}_{i_{t}}(\bm{\theta}_{t}-\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\mu\langle\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t}),-\mathbf{M}_{t}\mathbf{u}_{t}\rangle}{2\mu}\mathbf{M}_{t}\mathbf{u}_{t} \displaystyle\qquad-\frac{\mathcal{L}_{i_{t}}(\bm{\theta}_{t}^{\prime}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{i_{t}}(\bm{\theta}_{t}^{\prime})-\mu\langle\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t}^{\prime}),\mathbf{M}_{t}\mathbf{u}_{t}\rangle}{2\mu}\mathbf{M}_{t}\mathbf{u}_{t} \displaystyle\qquad+\frac{\mathcal{L}_{i_{t}}(\bm{\theta}_{t}^{\prime}-\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{i_{t}}(\bm{\theta}_{t}^{\prime})-\mu\langle\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t}^{\prime}),-\mathbf{M}_{t}\mathbf{u}_{t}\rangle}{2\mu}\mathbf{M}_{t}\mathbf{u}_{t} \displaystyle\qquad+\langle\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t}^{\prime}),\mathbf{M}_{t}\mathbf{u}_{t}\rangle\mathbf{M}_{t}\mathbf{u}_{t} Let \mathcal{E} be the event that \|\mu\mathbf{M}_{t}\mathbf{u}_{t}\|\leq 2\alpha_{t}sG+2\mu\sqrt{d} . By Hanson-Wright inequality or Gaussian tail bound, it is easy to check \mathbb{P}[\mathcal{E}^{c}]\leq\exp(-c_{3}d) for some universal constant c_{3}>0 . On the event \mathcal{E} , we have \displaystyle\Bigg|\frac{\mathcal{L}_{i_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\mu\big\langle\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\big\rangle}{2\mu}\Bigg|\leq\frac{\mu}{4}\mathbf{u}_{t}^{\top}\mathbf{M}_{t}\mathbf{H}(\bm{\theta}_{t})\mathbf{M}_{t}\mathbf{u}_{t} On the event \mathcal{E}^{c} , with probability at most \exp(-c_{3}d) , it follows that \displaystyle\Bigg|\frac{\mathcal{L}_{i_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\mu\big\langle\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\big\rangle}{2\mu}\Bigg|\leq\frac{\mu L}{4}\|\mathbf{M}_{t}\mathbf{u}_{t}\|^{2} Hence, we have (in fact, c_{3}=1/4 is enough) \displaystyle\mathbb{E}\Bigg[\Bigg(\frac{\mathcal{L}_{i_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\mu\big\langle\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\big\rangle}{2\mu}\Bigg)^{2}\Bigg] \displaystyle\leq\frac{3\mu^{2}L^{2}\rho_{\text{max}}^{2}}{16}+\frac{\mu^{2}L^{2}}{16}\mathbb{E}\big[\|\mathbf{M}_{t}\mathbf{u}_{t}\|^{4}\big]\exp(-s/4) \displaystyle\leq\frac{3\mu^{2}L^{2}\rho_{\text{max}}^{2}}{16}+\frac{3\mu^{2}L^{2}s^{2}}{16}\exp(-s/4) Combining two inequalities, we obtain \displaystyle\mathbb{E}\Bigg[\Bigg\|\frac{\mathcal{L}_{i_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\mu\langle\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\rangle}{2\mu}\mathbf{M}_{t}\mathbf{u}_{t}\Bigg\|\Bigg] \displaystyle\leq~ \displaystyle\mathbb{E}\Bigg[\Bigg(\frac{\mathcal{L}_{i_{t}}(\bm{\theta}_{t}+\mu\mathbf{M}_{t}\mathbf{u}_{t})-\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\mu\langle\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t}),\mathbf{M}_{t}\mathbf{u}_{t}\rangle}{2\mu}\Bigg)^{2}\Bigg]^{1/2}\mathbb{E}\big[\|\mathbf{M}_{t}\mathbf{u}_{t}\|^{2}\big]^{1/2} \displaystyle\leq~ \displaystyle\Big(\frac{3\mu^{2}L^{2}\rho_{\text{max}}^{2}}{16}+\frac{3\mu^{2}L^{2}s^{2}}{16}\exp(-s/4)\Big)^{1/2}s^{1/2} \displaystyle\leq~ \displaystyle\frac{\sqrt{3s}}{4}\Big(\mu L\rho_{\text{max}}+\mu Ls\exp(-s/2)\Big) Hence, the expected distance can be bounded as \displaystyle\mathbb{E}\Big[\|\widehat{\nabla}\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\widehat{\nabla}\mathcal{L}_{i_{t}}(\bm{\theta}_{t}^{\prime})\|\Big] \displaystyle\leq\sqrt{3s}\Big(\mu L\rho_{\text{max}}+\mu Ls\exp(-s/2)\Big)+\mathbb{E}\big[\|\langle\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t}^{\prime}),\mathbf{M}_{t}\mathbf{u}_{t}\rangle\mathbf{M}\mathbf{u}_{t}\|] \displaystyle\leq\sqrt{3s}\Big(\mu L\rho_{\text{max}}+\mu Ls\exp(-s/2)\Big)+\|\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\nabla\mathcal{L}_{i_{t}}(\bm{\theta}_{t}^{\prime})\|\sqrt{s} \displaystyle\leq\sqrt{3s}\Big(\mu L\rho_{\text{max}}+\mu Ls\exp(-s/2)\Big)+L\sqrt{s}\|\bm{\theta}_{t}-\bm{\theta}_{t}^{\prime}\| \displaystyle=\sqrt{3s}\Big(\mu L\rho_{\text{max}}+\mu Ls\exp(-s/2)\Big)+L\sqrt{s}\delta_{t} ∎ Lemma C.2 . The following recursive relation \displaystyle\Delta_{t} \displaystyle\leq(1+\alpha_{t}L\sqrt{s})\Delta_{t}+\alpha_{t}\sqrt{3s}(\mu L\rho_{\text{max}}+\mu Ls\exp(-s/2))+\alpha_{t}\frac{4G\sqrt{s}}{n} Proof. For any t>t_{0} , we have \displaystyle\delta_{t+1} \displaystyle=\big\|\bm{\theta}_{t}-\alpha_{t}\widehat{\nabla}\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\bm{\theta}_{t}^{\prime}+\alpha_{t}\widehat{\nabla}\mathcal{L}_{i_{t}^{\prime}}(\bm{\theta}_{t}^{\prime})\big\| \displaystyle\leq\|\bm{\theta}_{t}-\bm{\theta}_{t}^{\prime}\|+\alpha_{t}\underbrace{\big\|\widehat{\nabla}\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\widehat{\nabla}\mathcal{L}_{i_{t}^{\prime}}(\bm{\theta}_{t}^{\prime})\big\|}_{R_{t}} \displaystyle=\delta_{t}+\alpha_{t}R_{t} We consider two cases for recursive relation for R_{t} (in fact, for \mathbb{E}[R_{t}] ). Case 1: With probability 1-\dfrac{1}{n} , we have i_{t}=i_{t}^{\prime} where the same datapoint is sampled at time t . By Lemma C.1 , we have \displaystyle E[R_{t}] \displaystyle=\mathbb{E}\big[\|\widehat{\nabla}\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\widehat{\nabla}\mathcal{L}_{i_{t}}(\bm{\theta}_{t}^{\prime})\|\big] \displaystyle\leq\sqrt{3s}\Big(\mu L\rho_{\text{max}}+\mu Ls\exp(-s/2)\Big)+L\sqrt{s}\Delta_{t}. Case 2: With probability \dfrac{1}{n} , we have i_{t}\neq i_{t}^{\prime} . Therefore, we obtain \displaystyle\mathbb{E}[R_{t}] \displaystyle=\mathbb{E}\big[\|\widehat{\nabla}\mathcal{L}_{i_{t}}(\bm{\theta}_{t})-\widehat{\nabla}\mathcal{L}_{i_{t}^{\prime}}(\bm{\theta}_{t}^{\prime})\|\big] \displaystyle\leq\mathbb{E}\big[\|\widehat{\nabla}\mathcal{L}_{i_{t}}(\bm{\theta}_{t})\|\big]+\mathbb{E}\big[\widehat{\nabla}\mathcal{L}_{i_{t}^{\prime}}(\bm{\theta}_{t}^{\prime})\|\big] \displaystyle\leq\sqrt{3s}\Big(\mu L\rho_{\text{max}}+\mu Ls\exp(-s/2)\Big)+4G\sqrt{s} From two cases, we can derive the recursive relation for \Delta_{t} as \displaystyle\Delta_{t+1} \displaystyle\leq\Delta_{t}+\alpha_{t}\Big(1-\frac{1}{n}\Big)\Big(\sqrt{3s}\Big(\mu L\rho_{\text{max}}+\mu Ls\exp(-s/2)\Big)+L\sqrt{s}\Delta_{t}\Big) \displaystyle\qquad+\frac{\alpha_{t}}{n}\Big(\sqrt{3s}\Big(\mu L\rho_{\text{max}}+\mu Ls\exp(-s/2)\Big)+4G\sqrt{s}\Big) \displaystyle\leq(1+\alpha_{t}L\sqrt{s})\Delta_{t}+\alpha_{t}\sqrt{3s}(\mu L\rho_{\text{max}}+\mu Ls\exp(-s/2))+\alpha_{t}\frac{4G\sqrt{s}}{n} ∎ C.2 Proof of Theorem 3.10 Proof. Under the following parameter condition \displaystyle\mu\leq\frac{1}{nL(\rho_{\text{max}}+s\exp(-s/2))},\quad\alpha_{t}\leq\frac{C}{t}, (7) we have simpler recursive relation as \displaystyle\Delta_{t+1} \displaystyle\leq\Big(1+\alpha_{t}L\sqrt{s}\Big)\Delta_{t}+\alpha_{t}\Big(\sqrt{3s}\mu L\rho_{\text{max}}+\sqrt{3s}\mu Ls\exp(-s/2)+\frac{4G\sqrt{s}}{n}\Big) Solving this inequality yields that \displaystyle\Delta_{T} \displaystyle\leq\Big(\sqrt{3s}\mu L\rho_{\text{max}}+\sqrt{3s}\mu Ls\exp(-s/2)+\frac{4G\sqrt{s}}{n}\Big)\sum\limits_{t=t_{0}+1}^{T}\alpha_{t}\prod_{j=t+1}^{T}(1+\alpha_{j}L\sqrt{s}) \displaystyle\leq C\Big(\sqrt{3s}\mu L\rho_{\text{max}}+\sqrt{3s}\mu Ls\exp(-s/2)+\frac{4G\sqrt{s}}{n}\Big)\sum\limits_{t=t_{0}+1}^{T}\frac{1}{t}\prod_{j=t+1}^{T}\Big(1+\frac{CL\sqrt{s}}{j}\Big) \displaystyle\leq C\Big(\sqrt{3s}\mu L\rho_{\text{max}}+\sqrt{3s}\mu Ls\exp(-s/2)+\frac{4G\sqrt{s}}{n}\Big)\sum\limits_{t=t_{0}+1}^{T}\frac{1}{t}\prod_{j=t+1}^{T}\exp\Big(\frac{CL\sqrt{s}}{j}\Big) \displaystyle\leq C\Big(\sqrt{3s}\mu L\rho_{\text{max}}+\sqrt{3s}\mu Ls\exp(-s/2)+\frac{4G\sqrt{s}}{n}\Big)\sum\limits_{t=t_{0}+1}^{T}\frac{1}{t}\exp\Big(CL\sqrt{s}\sum\limits_{j=t+1}^{T}\frac{1}{j}\Big) \displaystyle\leq C\Big(\sqrt{3s}\mu L\rho_{\text{max}}+\sqrt{3s}\mu Ls\exp(-s/2)+\frac{4G\sqrt{s}}{n}\Big)\sum\limits_{t=t_{0}+1}^{T}\frac{1}{t}\exp\Big(CL\sqrt{s}\big(\log T-\log t\big)\Big) \displaystyle\leq CT^{CL\sqrt{s}}\Big(\sqrt{3s}\mu L\rho_{\text{max}}+\sqrt{3s}\mu Ls\exp(-s/2)+\frac{4G\sqrt{s}}{n}\Big)\sum\limits_{t=t_{0}+1}^{T}\frac{1}{t^{CL\sqrt{s}+1}} \displaystyle\leq\frac{1}{L\sqrt{s}}\Big(\sqrt{3s}\mu L\rho_{\text{max}}+\sqrt{3s}\mu Ls\exp(-s/2)+\frac{4G\sqrt{s}}{n}\Big)\Big(\Big(\frac{T}{t_{0}}\Big)^{CL\sqrt{s}}-1\Big) \displaystyle=\underbrace{\Big(\frac{\sqrt{3}+4G}{nL}\Big)}_{D}\Big[\Big(\frac{T}{t_{0}}\Big)^{CL\sqrt{s}}-1\Big] (Apply ( 7 )) Let q\coloneqq CL\sqrt{s} and the optimal value t_{0}^{*} which minimizes the RHS of the following inequality \displaystyle\mathbb{E}\big[\|\mathcal{L}(\bm{\theta}_{T};\mathbf{z})-\mathcal{L}(\bm{\theta}_{T}^{\prime};\mathbf{z})\|\big] \displaystyle\leq\frac{t_{0}}{n}\sup_{\bm{\theta},\mathbf{z}}\mathcal{L}(\bm{\theta};\mathbf{z})+G\Delta_{T} \displaystyle\leq\frac{t_{0}}{n}+GD\Big[\Big(\frac{T}{t_{0}}\Big)^{q}-1\Big] is given by t_{0}^{*}=\min\{(nqGDT^{q})^{\frac{1}{1+q}},T\} . Under the smoothing parameter condition \mu\leq\frac{1}{nL\rho_{\text{max}}} , we have \displaystyle\epsilon_{\textnormal{gen}} \displaystyle\leq\frac{q+1}{nq}(nqGDT^{q})^{\frac{1}{1+q}}-GD \displaystyle=\frac{q+1}{nq}\Big[\frac{qG(\sqrt{3}+4G)}{L}\Big]^{\frac{1}{1+q}}T^{1-\frac{1}{1+q}}-\frac{G(\sqrt{3}+4G)}{nL} \displaystyle=\frac{q+1}{nq^{\frac{q}{1+q}}}\Big(\frac{G(\sqrt{3}+4G)}{L}\Big)^{\frac{1}{1+q}}T^{1-\frac{1}{1+q}}-\frac{G(\sqrt{3}+4G)}{nL} \displaystyle=\mathcal{O}\Bigg(\frac{T^{1-\frac{1}{1+q}}}{n}\Bigg), where q=CL\sqrt{s} . ∎ Appendix D Detailed Description of MeZO-BCD This section provides a comprehensive description of our proposed method, MeZO-BCD, including its core design choices, the rationale for each, empirical comparisons, and algorithmic details. We focus on two critical dimensions: (1) how to define blocks for block-wise updates , and (2) how to select the active block at each iteration . For both, we describe the main alternatives considered, summarize supporting experiments, and justify our final recommendations. D.1 Defining Blocks in MeZO-BCD We primarily consider decoder-only Transformer architectures, which underlie most modern large language models (LLMs) ( Zhang et al., 2022a ; Touvron et al., 2023 ) . These consist of an embedding layer (mapping input tokens to vectors; ( embedding ), a sequence of L decoder layers (each with self-attention, feed-forward networks, and normalization layers), and a language model head ( lm_head ) projecting to token logits. We evaluate three natural block partitioning strategies: • Layer-wise: The embedding , the lm_head , and each decoder layer are treated as individual blocks. • Linear-wise: The embedding , the lm_head , and each linear layer within every decoder block are treated as separate blocks. • Multi-layer: The embedding , the lm_head , and each block formed by grouping every two consecutive decoder layers together. The layer-wise scheme aligns with functional modularity: decoder layers represent the principal processing units in LLMs, as recognized by both architectural conventions and empirical studies ( Ju et al., 2024 ; Langedijk et al., 2024 ; Skean et al., 2025 ; Zhang et al., 2024d ) . This definition maintains interpretability and matches the typical tensor organization of model parameters. The linear-wise strategy increases block granularity by splitting each decoder layer into its constituent linear submodules, potentially enabling finer updates but at the cost of increased fragmentation. The multi-layer scheme, motivated by the sequential nature of hidden state propagation in transformers, merges every two consecutive decoder layers into a single block, reducing the number of blocks and further coarsening the update granularity. It is important to note that defining blocks as arbitrary sub-tensors within a weight matrix ( e.g. , slicing a linear layer’s weight matrix) may appear to increase flexibility. However, it is impractical in modern deep learning frameworks since the entire tensor must still be loaded into memory for perturbation and update, negating any gain in memory transfer or efficiency. Empirical Insights. To empirically assess the effect of block partitioning, we conduct experiments on OPT-1.3B across representative classification tasks (SST-2, RTE, and WIC). To isolate the effect of block definition, we fix the block selection strategy to cyclic random permutation (see Appendix D.2 ), train for 20K steps, and evaluate every 4K steps, reporting the best test accuracy for each run. Learning rates are adapted to account for the varying block sizes, reflecting the general trend that finer-grained partitions require larger learning rates ( Kim et al., 2024 ; Zhang and Pilanci, 2024 ; Lialin et al., 2023 ) . The search spaces used are: linear-wise : \{1\times 10^{-5},\ 2\times 10^{-5},\ 3\times 10^{-5}\} ; layer-wise : \{5\times 10^{-6},\ 1\times 10^{-5}\} ; multi-layer : \{1\times 10^{-6},\ 2\times 10^{-6},\ 5\times 10^{-6}\} . Table 3: Test accuracy of MeZO-BCD with different block partitioning schemes on OPT-1.3B. Results are the best accuracy across 20K steps, where test accuracies are evaluated every 4K steps. Block Definition SST-2 RTE WIC Linear-wise 88.1 57.4 58.2 Layer-wise 92.3 65.0 60.2 Multi-layer (2-layer) 91.2 65.0 58.2 Table 3 presents the results, showing that the linear-wise strategy consistently underperforms, even after hyperparameter tuning, whereas both layer-wise and multi-layer deliver similar results given appropriate learning rates. While smaller blocks reduce memory usage per step, excessively fine granularity can harm convergence. The layer-wise scheme offers the best trade-off between empirical accuracy and practical overhead, and is therefore adopted as the default in MeZO-BCD. D.2 Block Selection Strategies in MeZO-BCD Our theoretical analysis in the main text assumes that the active block is chosen i.i.d. uniformly at random at each step. However, in practical training, this can cause short-term “block starvation” periods where some blocks are updated much more or less frequently than others, which may hinder convergence stability. To mitigate this, while preserving the marginal selection probability of 1/N for each block, we evaluate four block selection strategies: • Ascending order : 1\rightarrow 2\rightarrow\ldots\rightarrow N\rightarrow 1\rightarrow\ldots • Descending order : N\rightarrow N-1\rightarrow\ldots\rightarrow 1\rightarrow N\rightarrow\ldots • Flip-flop order : 1\rightarrow 2\rightarrow\ldots\rightarrow N\rightarrow N-1\rightarrow\ldots\rightarrow 2\rightarrow 1\rightarrow 2\rightarrow\ldots • Cyclic random permutation : At the start of every N steps, a random permutation of the N blocks is generated and followed for the subsequent N updates. Here, a lower block index corresponds to layers closer to the input, and a higher index to layers closer to the output. While all strategies yield the same marginal probability of updating each block, they differ in their local ordering and thus in their short-term update patterns. Empirical Insights. To isolate the effect of block selection strategy, we conduct experiments with OPT-1.3B on SST-2, RTE, and WIC, fixing the block definition to layer-wise and searching over learning rates \{5\times 10^{-6},1\times 10^{-5}\} . The experimental protocol mirrors that in Table 3 , ensuring comparability. Table 4 presents the results. The flip-flop and cyclic random permutation strategies exhibit robust and consistently strong performance across all tasks, whereas the ascending and descending orderings show larger variance and less favorable results, particularly on RTE and WIC. Based on these findings, we adopt flip-flop and cyclic random permutation as our default block selection strategies, treating the choice between them as a discrete design parameter subject to tuning. Table 4: Test accuracy of MeZO-BCD with different block selection strategies on OPT-1.3B. Results are the best accuracy across 20K steps, where test accuracies are evaluated every 4K steps Block Selection SST-2 RTE WIC Ascending order 91.9 61.7 58.0 Descending order 92.8 59.6 58.5 Flip-flop order 92.7 62.9 58.2 Cyclic random permutation 92.3 65.0 60.2 D.3 Theoretical Memory Consumption Analysis To rigorously compare the memory consumption efficiency of zeroth-order methods, we analyze the theoretical peak memory requirements during training, as summarized in Table 5 . Here, “peak” refers to the maximum instantaneous memory usage ( e.g. , VRAM) at any point during optimization, including temporary allocations for perturbations, but excluding activations or any other intermediate byproducts such as temporary forward buffers, dataloader prefetch, or I/O buffer. Let the model consist of L layers, with \mathbf{W}_{\ell}\in\mathbb{R}^{m_{\ell}\times n_{\ell}} denoting the weight matrix of the \ell -th layer and r the low-rank perturbation rank. For simplicity, we denote |\mathbf{W}_{\ell}|\coloneqq m_{\ell}n_{\ell} by the total dimension of \mathbf{W}_{\ell} . Also, we refer to held perturbation as a segment of memory that is not continuously resident in the system but is instead allocated transiently in response to a Gaussian perturbation. Table 5: Theoretical peak memory requirements (in number of parameters) during training, excluding activations or any other intermediate byproducts such as temporary forward buffers, dataloader prefetch, or I/O buffer. The max operator reflects instantaneous memory usage due to temporarily held perturbations. Method Peak Memory Requirement MeZO ( Malladi et al., 2023 ) \underbrace{\sum_{\ell=1}^{L}|\mathbf{W}_{\ell}|}_{\text{model weights}}+\underbrace{\max_{\ell}|\mathbf{W}_{\ell}|}_{\text{held perturbation}} SparseMeZO ( Liu et al., 2024b ) \underbrace{\sum_{\ell=1}^{L}|\mathbf{W}_{\ell}|}_{\text{model weights}}+\underbrace{\max_{\ell}|\mathbf{W}_{\ell}|}_{\text{held perturbation}}+\underbrace{\max_{\ell}|\mathbf{W}_{\ell}|}_{\text{sparse mask}} LoZO ( Chen et al., 2024 ) \underbrace{\sum_{\ell=1}^{L}|\mathbf{W}_{\ell}|}_{\text{model weights}}+\underbrace{\max_{\ell}m_{\ell}r}_{\text{instant low-rank perturbation}}+\underbrace{\sum_{\ell=1}^{L}n_{\ell}r}_{\text{persistent low-rank factor}} MeZO-BCD (Ours) \underbrace{\sum_{\ell=1}^{L}|\mathbf{W}_{\ell}|}_{\text{model weights}}+\underbrace{\max_{\ell\in B}|\mathbf{W}_{\ell}|}_{\text{held perturbation}} All methods must store the full set of model parameters ( \sum_{\ell=1}^{L}|\mathbf{W}_{\ell}| ) in memory throughout training. The additional held perturbation term represents the transient memory usage needed to apply weight perturbations within each training step. For MeZO ( Malladi et al., 2023 ) and SparseMeZO ( Liu et al., 2024b ) , this extra allocation never exceeds the size of a single layer’s weights at any moment, as perturbations are generated, used, and discarded immediately. SparseMeZO also incurs overhead from an additional mask of the same size. In contrast, LoZO ( Chen et al., 2024 ) ’s low-rank scheme involves both instant memory for sampled low-rank factors and persistent memory for factors reused across steps. MeZO-BCD, on the other hand, requires perturbing only the currently active block, so its peak auxiliary memory is, by construction, at most the largest weight size within any block B . Importantly, although MeZO-BCD perturbs only one block at a time, every block is eventually selected during training. Therefore, the peak memory usage still corresponds to the largest block, and the effective bound matches that of MeZO. As a result, the true peak is determined by the largest layer across all blocks, making the effective memory bound identical to that of MeZO. Therefore, the use of the \max operator in the analysis reflects that, while only one block is perturbed at a time, the overall peak is dictated by the largest such allocation encountered over all steps. Consequently, MeZO-BCD (like MeZO) achieves the theoretical minimum peak memory for zeroth-order optimization, essentially matching inference-time requirements, whereas alternative methods may require substantially more memory. This guarantees that MeZO-BCD’s temporary perturbations never incur a memory usage exceeding the size of the largest individual block or layer. Remark on the experimental results in Table 1 . On SST-2, where activation buffers are relatively small, the reduction in auxiliary perturbation memory afforded by MeZO-BCD is large enough to lower the overall peak VRAM usage slightly, hence the small differences observed between methods on this dataset. By contrast, BoolQ and MultiRC use much longer input sequences, so their activation tensors dominate the GPU footprint. In those cases, the extra memory for perturbations or masks becomes negligible, and all methods converge to essentially the same peak memory. Pseudocode for the full MeZO-BCD procedure is provided in Algorithm 1 . We conclude this section with the following remark. Why BCD is Particularly Effective in Zeroth-Order Optimization. It is worth emphasizing why BCD, despite its classical status in first-order (FO) optimization, is particularly advantageous in the zeroth-order (ZO) context. In FO optimization, updating a single block still incurs the cost of computing and storing gradients for all downstream layers via backpropagation, resulting in substantial computational and memory overhead (especially for blocks closer to the input). In contrast, ZO optimization leverages only forward evaluations, so updating a block affects solely its own parameters with no added cost for the rest of the network. As a result, ZO-BCD achieves genuine reductions in memory transfer and computational overhead per step, avoiding the bottlenecks that limit the efficiency of BCD in first-order regimes. This distinction underlies the scalability and efficiency of MeZO-BCD for large-scale LLM fine-tuning. Algorithm 1 MeZO-BCD 0: block partitioning \{B_{i}\}_{i=1}^{N} , block ordering order , parameters \mathbf{\theta}\in\mathbb{R}^{d} is partitioned into [\theta_{B_{1}},\ldots,\theta_{B_{N}}] , loss function \mathcal{L}:\mathbb{R}^{d}\rightarrow\mathbb{R} , step budget T , perturbation scale \mu , learning rate schedule \{\eta_{t}\}_{t=1}^{T} 0: for t=1,\ldots,T do Sample minibatch \mathcal{B}\subset\mathcal{D} and random seed s Update current active block index j\leftarrow\mathrm{\texttt{UpdateBlockIdx}}(\texttt{order},t,N) \mathbf{\theta}_{B_{j}}\leftarrow\mathrm{\texttt{PerturbParameters}}(\mathbf{\theta}_{B_{j}},\mu,s) \ell_{+}\leftarrow\mathcal{L}(\mathbf{\theta};\mathcal{B}) \mathbf{\theta}_{B_{j}}\leftarrow\mathrm{\texttt{PerturbParameters}}(\mathbf{\theta}_{B_{j}},-2\mu,s) \ell_{-}\leftarrow\mathcal{L}(\mathbf{\theta};\mathcal{B}) \mathbf{\theta}_{B_{j}}\leftarrow\mathrm{\texttt{PerturbParameters}}(\mathbf{\theta}_{B_{j}},\mu,s) projected_grad \leftarrow(\ell_{+}-\ell_{-})/2\mu Reset random number generator with seed s for \theta_{i}\in\mathbf{\theta}_{B_{j}} do u\sim\mathcal{N}(0,1) \theta_{i}\leftarrow\theta_{i}-\eta_{t} * projected_grad * u end for end for Algorithm 2 PerturbParameters( \mathbf{\theta},\mu,s ) 0: parameters \mathbf{\theta}\in\mathbb{R}^{n} , perturbation scale \mu , random seed s 0: Reset random number generator with seed s for \theta_{i}\in\mathbf{\theta} do u\sim\mathcal{N}(0,1) \theta_{i}\leftarrow\theta_{i}+\mu u end for return \mathbf{\theta} Algorithm 3 UpdateBlockIdx(order, t,N ) 0: block ordering order , current time step t , number of blocks N 0: if order is ascending then i\leftarrow((t-1)\bmod N)+1 else if order is descending then i\leftarrow N-((t-1)\bmod N) else if order is flip-flop then i\leftarrow N-|((t-1)\bmod(2N-2))-(N-1)| else if order is random then if t\bmod N=0 then Reset the random permutation \pi\leftarrow\texttt{Shuffle}([N]) end if i\leftarrow\pi[(t\bmod N)] end if return i Appendix E Experimental Details E.1 Randomized Quadratic Minimization For the experiments in Section 3.4 , the perturbation scale is globally set to \mu=10^{-4} unless stated otherwise. The Hessian-like matrix \mathbf{H} is generated as follows. The matrix is constructed as a block-diagonal structure, where each block is a randomly generated positive semi-definite matrix. Specifically, the d\times d matrix \mathbf{H} is divided into B non-overlapping blocks, each of size \frac{d}{B}\times\frac{d}{B} . For each block, a random \frac{d}{B}\times\frac{d}{B} matrix is sampled, and an orthogonal matrix \mathbf{Q}_{i} is obtained via QR decomposition. Given a predefined maximum eigenvalue \lambda_{\max}^{(i)} for each block, the diagonal matrix \mathbf{\Lambda}^{(i)} is constructed as: \mathbf{\Lambda}^{(i)}=\mathrm{diag}(\underbrace{\lambda_{\max}^{(i)},\ldots,0.1\times\lambda_{\max}^{(i)}}_{r},\underbrace{0,\ldots,0}_{\frac{d}{B}-r}), where eigenvalues decay linearly. Each block of the Hessian-like matrix is then formed as: \mathbf{H}_{i}=\mathbf{Q}_{i}\mathbf{\Lambda}^{(i)}\mathbf{Q}_{i}^{\top}. The final Hessian-like matrix \mathbf{H} is assembled by placing these block matrices along the diagonal: \mathbf{H}=\begin{bmatrix}\mathbf{H}_{1}&0&\cdots&0\\ 0&\mathbf{H}_{2}&\cdots&0\\ \vdots&\vdots&\ddots&\vdots\\ 0&0&\cdots&\mathbf{H}_{B}\end{bmatrix}. This process ensures that \mathbf{H} maintains a block-diagonal structure while preserving the spectral properties within each block. The following function constructs \mathbf{H} according to the above procedure: ⬇ def generate_hessian_like_matrix ( dim =256, rank =64, num_blocks =1, max_eigenvals =[10]): block_size = dim // num_blocks H = torch . zeros (( dim , dim )) for i in range ( num_blocks ): start = i * block_size end = start + block_size Q , _ = torch . linalg . qr ( torch . randn ( block_size , block_size )) max_eigenval = max_eigenvals [ i ] eigenvalues = torch . cat ([ torch . linspace ( max_eigenval , 0.1 * max_eigenval , steps = rank ), torch . zeros ( block_size - rank ) ]) S = torch . diag ( eigenvalues ) block = Q @ S @ Q . T H [ start : end , start : end ] = block return H E.1.1 Configuration for Figure 1 To examine the influence of the subspace alignment \rho , we use a dense Hessian matrix (i.e., B=1 ). The subspace alignment \rho is controlled by introducing a parameter \gamma\in[0,1] , which determines the proportion of Hessian eigenvectors incorporated into the low-rank projection matrix \mathbf{M} . Specifically, \lceil s\gamma\rceil eigenvectors (where s=\mathrm{srank}(\mathbf{M}) ) are randomly selected, while the remaining vectors are randomly generated and orthogonalized against the selected ones. Formally, let the Hessian matrix \mathbf{H} have rank r , and let s denote the stable rank of \mathbf{M} . Denote the eigenvectors of \mathbf{H} corresponding to nonzero eigenvalues as \{\mathbf{q_{1}},\mathbf{q_{2}},\dots,\mathbf{q_{r}}\} . To construct \mathbf{M} with a controlled alignment \rho : 1. Randomly selected s\gamma eigenvectors are set as columns of \mathbf{M}_{1} (assuming s\gamma is an integer for simplicity). 2. A random d\times(1-s\gamma) matrix \mathbf{R} is generated. 3. The QR decomposition is applied to \mathbf{R}-\mathbf{M}_{1}\mathbf{M}_{1}^{\top}\mathbf{R} to obtain an orthogonal matrix \mathbf{M}_{2} of size d\times(1-s\gamma) . 4. The final projection matrix is constructed as \mathbf{M}=[\mathbf{M}_{1},\mathbf{M}_{2}] . Experimental Setup for the Left Panel of Figure 1 . For this experiment, we set d=256 , the Hessian rank to 64, and the stable rank s of \mathbf{M} to 64. This ensures that when \gamma=1.0 , the projection matrix fully captures the Hessian eigenvectors. We use a learning rate of \eta=10^{-3} , a maximum of 1000 steps, and test five values of \gamma : \gamma=\{0,0.2,0.4,0.7,1.0\}. Experimental Setup for the Middle Panel of Figure 1 . The configuration is the same as in the left panel, except: • The maximum number of iterations is increased to 10,000. • The number of \gamma values is expanded to 12: \gamma=\{0.0,0.05,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0\}. • The target loss is defined as the minimum loss achieved during training under \gamma=0.0 . • The number of required iterations is computed as the minimum number of steps needed for the loss curve to reach this target value. E.1.2 Configuration for the Right Panel of Figure 1 To evaluate the subspace alignment \rho across different methods, we conduct randomized quadratic minimization experiments using a block-diagonal Hessian matrix with heterogeneous eigenspectra. To ensure a broader range of \mathrm{srank}(\mathbf{M}) values, the problem dimension is set to d=1024 , with the Hessian consisting of 16 diagonal blocks, each of rank 16. To introduce heterogeneity in the eigenspectrum across blocks, the eigenvalues in each block are set by randomly choosing a reference from \{10,40,70,100\} and sampling each eigenvalue as an integer within \pm 2 of it. Measuring subspace alignment. Since the subspace alignment \rho depends only on the projection matrix \mathbf{M} and not on the parameter \theta , we measure \rho without performing actual optimization. Instead, we randomly sample \mathbf{M} 1000 times for each method and compute \rho accordingly. The projection matrices \mathbf{M} are generated as follows: • Low-rank Projection : The projection matrix is defined as \mathbf{M}=\mathbf{U}\mathbf{U}^{\top} , where \mathbf{U} is obtained by performing QR decomposition on a randomly generated d\times s matrix. • Sparse Perturbation : A binary mask vector \mathbf{m}=(m_{1},\ldots,m_{d}) is created by randomly permuting [d] and selecting the first (1-\frac{s}{d}) fraction of indices. • Block Sparse Perturbation : Given a predefined number of blocks N , each block is defined as: B_{i}=\left\{(i-1)\times\frac{d}{N}+1,\dots,i\times\frac{d}{N}\right\}. A block index j is selected uniformly at random, and the mask vector is set such that m_{i}=1 for i\in B_{j} , while all other entries are set to 0. Experimental Setup. To examine the distribution of \rho across different values of \mathrm{srank}(M) , we conduct experiments with: s\in\{16,32,64,128,256\}. For each s , the distribution of \rho is computed over 1000 trials. E.2 Fine-tuning Large Language Models We now describe the experimental details for our large-scale fine-tuning experiments on LLMs. To ensure a fair comparison, we strictly adhere to the experimental setup of LoZO ( Chen et al., 2024 ) , maintaining consistency in the training environment. Model and Datasets. For fine-tuning OPT-13B ( Zhang et al., 2022a ) , we conduct experiments on a diverse set of datasets, including SST-2 ( Socher et al., 2013 ) , RTE ( Dagan et al., 2005 ; Bar-Haim et al., 2006 ; Giampiccolo et al., 2007 ; Bentivogli et al., 2009 ) , CB ( De Marneffe et al., 2019 ) , BoolQ ( Clark et al., 2019 ) , WSC ( Levesque et al., 2012 ) , WIC ( Pilehvar and Camacho-Collados, 2018 ) , MultiRC ( Khashabi et al., 2018 ) , COPA ( Roemmele et al., 2011 ) , ReCoRD ( Zhang et al., 2018 ) , SQuAD ( Rajpurkar et al., 2018 ) , and DROP ( Dua et al., 2019 ) . For OPT-1.3B, we focus exclusively on SST-2 to evaluate convergence speed and optimization efficiency. Licenses for Models and Datasets All models and datasets used in this work are publicly released and available for academic research. Specifically, we use the OPT-125M, OPT-1.3B, and OPT-13B language models released by Meta AI under a custom non-commercial research-only license. 3 3 3 https://huggingface.co/facebook/opt-13b For all fine-tuning and evaluation tasks, we rely on standard NLP benchmarks: SST-2, RTE, CB, COPA, WSC, WIC, BoolQ, SQuAD, DROP, ReCoRD, and MultiRC. These datasets are part of the GLUE/SuperGLUE benchmark suite or other widely used QA corpora, and are distributed under permissive open-source or research-friendly licenses, including Apache 2.0, CC BY 4.0, CC BY-SA 4.0, and similar. We cite all relevant sources and have ensured that our usage adheres to each asset’s licensing terms. Where applicable, non-commercial restrictions have been strictly observed. Prompts. In all our experiments, we use the same prompt templates as MeZO ( Malladi et al., 2023 ) (and thus LoZO ( Chen et al., 2024 ) ) for every dataset, ensuring strict comparability and reproducibility. The prompt templates are provided in Table 6 Hyperparameters. Tables 7 and 8 outline the hyperparameter search spaces used for OPT-13B and OPT-1.3B, respectively, ensuring reproducibility. All experiments utilize a constant learning rate schedule, and training is conducted for 20K steps. The test accuracy is evaluated for every 4K steps, and we report the best one. The wall-clock time for OPT-1.3B experiments is measured on a single NVIDIA RTX 3090 GPU with an Intel Xeon Gold 5215 Processor. Notes on the statistical significance. Table 2 reports results for a single random seed: 0 (here, the random seed refers to the overall seed that controls the entire training process, including dataset sampling and super seeds for ZO perturbations, rather than just the per-iteration ZO seed). This choice was made to ensure a fair comparison with our main baseline, LoZO ( Chen et al., 2024 ) , which did not report any measures of statistical significance in their original paper. Analyzing their released code, we inferred that their published results were also obtained with a single run using random seed 0 . To maintain consistency and fairness in our comparisons, we therefore adopted the same experimental protocol for Table 2 . While this approach enables a direct comparison, we acknowledge that statistical significance is essential for a robust evaluation. Accordingly, for completeness, we report additional results averaged over three random seeds in Section F.2 , providing a more comprehensive assessment of performance variability. Notes on the reproducibility of SparseMeZO ( Liu et al., 2024b ) . We attempted to reproduce SparseMeZO ( Liu et al., 2024b ) using our own implementation, as the official code is not publicly released. However, on fine-tuning OPT-13B for the RTE task, our best reproduction achieved only 57.0\% test accuracy, which is substantially lower than the 77.6\% reported in the original paper (Table 4 in ( Liu et al., 2024b ) ). Despite extensive tuning efforts, we were unable to close this gap. Due to this substantial gap and the unavailability of reference code for verification, we refrained from including our reproduction to avoid unfairly disadvantaging the original method. We therefore exclude SparseMeZO from our main experiments to preserve the integrity of cross-method comparisons. Table 6: Prompt templates and evaluation formats for all datasets. Prompt templates are identical to those used in MeZO ( Malladi et al., 2023 ) , ensuring strict consistency across methods. Dataset Task Type Prompt Format SST-2 Classification It was terrible/great RTE Classification Does this mean that “ ” is true? Yes or No? CB Classification Suppose Can we infer that “ ”? Yes, No, or Maybe? BoolQ Classification ? Yes/No WSC Classification In the previous sentence, does the pronoun “ ” refer to ? Yes or No? WIC Classification Does the word “ ” have the same meaning in these two sentences? Yes, No? MultiRC Classification Q: I found this answer “ ”. Is that correct? Yes/No COPA Multiple Choice so/because ReCoRD Multiple Choice .replace("@placeholder", ) SQuAD QA Title: Context: <context> Q: <question> A: DROP QA Passage: <context> Q: <question> A: Table 7: The hyperparameter configurations utilized for OPT-13B experiments. Method Hyperparameters Values MeZO Batch size 16 Learning rate \{1\mathrm{e}{-6},1\mathrm{e}{-7}\} \mu 1\mathrm{e}{-3} LOZO Batch size 16 Learning rate \{1\mathrm{e}{-6},1\mathrm{e}{-7}\} \mu 1\mathrm{e}{-3} Rank ( r ) \{1,2,4\} Interval ( \nu ) \{50\} MeZO-BCD Batch size 16 Learning rate \{1\mathrm{e}{-5},5\mathrm{e}{-6}\} \mu 1\mathrm{e}{-3} Block Update Order {random, flip-flop} Table 8: The hyperparameter configurations utilized for OPT-1.3B experiments Method Hyperparameters Values MeZO Batch size 16 Learning rate \{1\mathrm{e}{-6},1\mathrm{e}{-7}\} \mu 1\mathrm{e}{-3} LOZO Batch size 16 Learning rate \{1\mathrm{e}{-6},1\mathrm{e}{-7}\} \mu 1\mathrm{e}{-3} Rank ( r ) \{1,2,4\} Interval ( \nu ) \{50\} SparseMeZO Batch size 16 Learning rate \{1\mathrm{e}{-7},2\mathrm{e}{-7},5\mathrm{e}{-7}\} \mu 1\mathrm{e}{-3} Sparsity \{0.75,0.8\} MeZO-BCD Batch size 16 Learning rate \{1\mathrm{e}{-5},5\mathrm{e}{-6}\} \mu 1\mathrm{e}{-3} Block Update Order {random, flip-flop} Appendix F Supplementary Experimental Results F.1 Supplementary Results on Empirical Study To complement the empirical observations from Figure 1 and further validate our theoretical insights in Section 3.4 , we present additional visualizations and convergence curves under varying subspace perturbations. These results reinforce the role of the subspace alignment \rho and offer a deeper view into the distributional behavior of different subspace perturbation schemes. (a) Log-scaled boxen plot of distribution of \rho (b) Strip plot of distribution of \rho Figure 3: Comparative visualization of the distribution of subspace alignment \rho under varying \mathrm{srank}(\mathbf{M}) across three perturbation types: low-rank projection, sparse perturbation, and block sparse perturbation. (a) The log-scaled boxen plot visualizes the lower tail behavior of \rho . (b) The strip plot highlights the discrete nature of block sparse perturbations. Figure 3 provides alternative visualizations of the subspace alignment \rho for different subspace perturbation schemes. While the mean alignment \bar{\rho} remains similar across all cases (consistent with Proposition 3.4 ), the distributional patterns differ significantly. In particular, block sparse perturbation displays a discrete and more dispersed distribution compared to the tightly concentrated low-rank projection and sparse perturbation, aligning with the predictions of Proposition 3.6 . (a) \mathrm{srank}(M)=16 (b) \mathrm{srank}(M)=32 (c) \mathrm{srank}(M)=64 (d) \mathrm{srank}(M)=128 (e) \mathrm{srank}(M)=256 Figure 4: Training loss curves for varying \mathrm{srank}(\mathbf{M}) across low-rank, sparse, and block sparse perturbation methods. Each plot corresponds to a fixed \mathrm{srank}(\mathbf{M}) . The reported \bar{\rho} values indicate the mean subspace alignment for each method. Learning rate \eta=10^{-4} is used throughout. Figure 4 shows that all three subspace perturbation schemes lead to comparable convergence rates under random subspace selection. This confirms that in the absence of adaptivity (in subspace selection), the convergence is largely governed by the mean subspace alignment \bar{\rho} , rather than the structural form of the perturbation itself. F.2 On the Statistical Significance of LLM Fine-tuning As mentioned in Appendix E.2 , our main results in Table 2 were reported using a single random seed (seed 0 ) to ensure fair comparison with the primary baseline, LoZO ( Chen et al., 2024 ) , whose results were also obtained using the same seed. To provide a more comprehensive evaluation of performance variability and robustness, we conduct additional experiments using three random seeds: \{0,42,100\} . We emphasize that performance considerations did not influence the choice of seeds but instead reflect common practice in the literature. Due to the high computational cost of fine-tuning OPT-13B, we restrict the evaluation to four representative datasets (SST-2, RTE, WIC, and SQuAD) covering both classification and generation tasks. Table 9: Mean ( \pm standard deviation) performance of fine-tuning OPT-13B on 1000 examples, averaged over three seeds { 0 , 42 , 100 }. Tasks include classification (SST-2, RTE, WIC) and generation (SQuAD). Task SST-2 RTE WIC SQuAD Task type —————— classification —————— generation MeZO 91.14\scriptstyle\pm 0.30 64.58\scriptstyle\pm 3.71 58.93\scriptstyle\pm 0.90 82.18\scriptstyle\pm 0.47 LoZO 92.72\scriptstyle\pm 0.89 66.73\scriptstyle\pm 3.28 59.51\scriptstyle\pm 2.53 \mathbf{84.55}\scriptstyle\pm 1.11 MeZO-BCD \mathbf{92.81}\scriptstyle\pm 0.53 \mathbf{69.56}\scriptstyle\pm 0.45 \mathbf{60.92}\scriptstyle\pm 0.99 84.31\scriptstyle\pm 0.53 Overall, the results in Table 9 suggest that MeZO-BCD achieves consistently strong performance across tasks. In particular, it outperforms or matches LoZO on most benchmarks despite using a slightly smaller tuning grid (Table 7 ). Although LoZO performs competitively on SST-2 and SQuAD, its relatively high variance and occasional degradation (e.g., on RTE and WIC) highlight the importance of tuning stability. These findings reinforce our main message: MeZO-BCD delivers competitive fine-tuning performance while offering favorable robustness and lower tuning sensitivity. (a) Mean loss curve of OPT-13B on SST-2 (b) Mean loss curve of OPT-13B on SQuAD Figure 5: Training loss curves averaged over three seeds { 0 , 42 , 100 } for OPT-13B on SST-2 and SQuAD. The shaded region indicates the standard deviation. To further support the claim that MeZO-BCD retains comparable iteration complexity to other ZO methods, we present additional training loss curves averaged over the three random seeds (Figure 5 ). These results corroborate the claim in Section 4.3 that MeZO-BCD converges at a similar rate to other subspace methods, further confirming that it maintains comparable iteration complexity while reducing overall wall-clock time. Appendix G Preliminary Exploration on Future Directions We supplement our main discussion with preliminary explorations of two promising extensions of MeZO-BCD: (1) adaptive block selection for dynamically prioritizing parameter updates, and (2) integration with stateful optimizers such as Adam. For each, we provide the motivation, methodological formulation, and initial empirical findings. Comprehensive evaluation and further algorithmic refinement remain as future work. G.1 MeZO-BCD with Adaptive Block Selection The convergence rate of zeroth-order optimization under subspace perturbation is governed by the subspace alignment \rho_{t} (see Theorem 3.3 ). Our theoretical analysis (Propositions 3.4 , 3.6 ) shows that while various subspace schemes (e.g., low-rank, sparse, block sparse) share the same expected alignment, their probability distributions differ significantly. In particular, block sparse perturbation admits “good” blocks with substantially higher alignment, suggesting that adaptively prioritizing such blocks can yield practical convergence gains beyond expectation-based analysis. In practice, however, directly computing \rho for each block is infeasible, especially in large-scale or black-box settings. As a practical alternative, we consider using the norm of the projected zeroth-order gradient for each block as a proxy for its alignment and importance. This quantity is both easy to compute and naturally highlights blocks that are either far from stationary or particularly sensitive to updates, making it a convenient and effective surrogate for guiding adaptive block selection. Method. Let the model parameters be partitioned into N disjoint blocks \bm{\theta}=[\bm{\theta}^{(1)},\dots,\bm{\theta}^{(N)}] . At each iteration t , for each block j\in\{1,\dots,N\} , define the projected gradient norm z_{t}^{(j)}:=\frac{\mathcal{L}(\bm{\theta}_{t}+\mu\cdot\mathbf{e}_{B_{j}}(\mathbf{u}_{t}^{(j)});\mathcal{B}_{t})-\mathcal{L}(\bm{\theta}_{t}-\mu\cdot\mathbf{e}_{B_{j}}(\mathbf{u}_{t}^{(j)});\mathcal{B}_{t})}{2\mu}\in\mathbb{R}, where \mathbf{u}_{t}^{(j)}\sim\mathcal{N}(0,I_{|B_{j}|}) and \mathbf{e}_{B_{j}} embeds the block-local vector into the full parameter space. We use the z_{t}^{(j)} as a block importance metric. To avoid excessive computation, all z_{t}^{(j)} are not evaluated at every iteration. Instead, during a warmup period T_{\mathrm{warm}} , blocks are updated in random cycle order to collect statistics. For each block, we maintain an exponential moving average (EMA) of the projected gradient norm: \bar{z}_{t}^{(j)}=\alpha\cdot z_{t}^{(j)}+(1-\alpha)\bar{z}_{t-1}^{(j)}, with \bar{z}_{0}^{(j)}=0 and \alpha\in(0,1] . After warmup, we convert EMA values into a sampling probability via softmax: p_{t}^{(j)}=\frac{\exp(\bar{z}_{t}^{(j)}/\tau)}{\sum_{k=1}^{N}\exp(\bar{z}_{t}^{(k)}/\tau)}, where \tau is a softmax temperature. At each iteration, block j_{t} is sampled from this distribution and updated using the corresponding ZO projected gradient. Also, \bar{z}_{t}^{(j)} is updated. Pseudocode for the full procedure is provided in Algorithm 4 . Preliminary Experiments and Analysis. To assess the effectiveness of our adaptive block selection strategy, we conduct a preliminary fine-tuning experiment using OPT-1.3B on the SST-2 dataset. We use a learning rate of \eta=5\times 10^{-6} and run experiments over three random seeds: \{0,42,100\} . We run each experiment for 20K steps, and evaluate the test accuracy for every 4K steps. The adaptive selection hyperparameters are set as follows: \alpha=0.1 , \tau=1 , and warmup period T_{\text{warm}}=10N=270 (since N=27 for OPT-1.3B). Figure 6: Loss curves for MeZO-BCD under adaptive vs random block selection strategies on OPT-1.3B, SST-2. Each curve represents the average \pm one standard deviation over three seeds. Figure 6 presents the training loss curves of MeZO-BCD under three configurations: random (cyclic permutation) with \eta=5\times 10^{-6} , random with \eta=7\times 10^{-6} , and adaptive selection with \eta=5\times 10^{-6} . The results show that, at the same learning rate, the adaptive strategy leads to faster convergence compared to random selection. However, this advantage is largely offset when a slightly higher learning rate is used for the random baseline. This suggests that the effect of current adaptive selection is not substantially different from that of simple learning rate tuning. Table 10: Comparison of MeZO-BCD test accuracy (%) under different block selection strategies and learning rates of OPT-1.3B fine-tuning on SST-2. Each value is mean \pm std over 3 runs. Block Selection Random Adaptive \eta=5\times 10^{-6} \eta=7\times 10^{-6} \eta=5\times 10^{-6} MeZO-BCD 91.32{\scriptstyle\pm 1.10} 91.28{\scriptstyle\pm 0.83} 91.17{\scriptstyle\pm 0.41} Table 10 summarizes the best test accuracies under each setting. All methods achieve statistically comparable performance, with no significant differences across selection strategies or learning rates. These observations imply that the current form of adaptive block selection, though conceptually appealing, yields limited improvement in either convergence speed or fine-tuning performance. Therefore, further investigation is necessary to realize its full potential. Figure 7: Statistics of adaptive block selection. Left: The heatmap shows the p_{t}^{(j)} for each block as training progresses. For heatmap visualization, the probability distribution is averaged every 100 steps. The line plot below the heatmap shows the block index with the highest selection probability ( i.e. , the \mathrm{argmax} ) at each step. Right: The sampled ratio of block indices over all training steps, simulated by drawing samples from the per-step probabilities at each step and aggregating across 1000 trials. The shaded region indicates the 95% confidence interval. To verify that the adaptive mechanism behaves as intended, we analyze its sampling behavior in more detail. Figure 7 provides a diagnostic visualization. The left panel shows how the per-block sampling probabilities p_{t}^{(j)} evolve over time, averaged every 100 steps. The line plot below tracks the block index with the highest selection probability at each step. We observe that the distribution varies throughout training, indicating that no single block or small set of blocks dominates selection persistently. This confirms that the selection mechanism, driven by the projected gradient norm and modulated through softmax, effectively balances exploration and exploitation by prioritizing informative blocks without collapsing to a single choice. The right panel shows the overall sampling ratio of each block, obtained by sampling 1000 trajectories from the per-step distributions \{p_{t}^{(j)}\}_{j=1}^{N} . We find that most blocks are selected with reasonable frequency, although some (e.g., blocks 1 and 26) appear less frequently. These results validate that the mechanism functions as designed and achieves nontrivial adaptivity. Taken together, this analysis demonstrates that our proposed adaptive selection mechanism operates correctly and provides a sound basis for further research. While its current form does not deliver substantial performance gains over random selection, we believe that it provides a solid foundation for exploring more sophisticated adaptive scheduling strategies. Algorithm 4 MeZO-BCD with Adaptive Block Selection 0: block partitioning \{B_{i}\}_{i=1}^{N} , parameters \mathbf{\theta}\in\mathbb{R}^{d} is partitioned into [\theta_{B_{1}},\ldots,\theta_{B_{N}}] , loss function \mathcal{L}:\mathbb{R}^{d}\rightarrow\mathbb{R} , step budget T , perturbation scale \mu , learning rate schedule \{\eta_{t}\}_{t=1}^{T} , warm-up budget T_{\mathrm{warm}}=10N<T , decay rate \alpha=0.1 , temperature \tau=1 0: Initialize: \bar{z}_{0}^{(i)}\leftarrow 0 for all i=1,\ldots,N for t=1,\ldots,T do Sample minibatch \mathcal{B}\subset\mathcal{D} and random seed s if t\leq T_{\mathrm{warm}} then Update current active block index j\leftarrow\texttt{UpdateBlockIdx}(\text{ascending},t,N) (Algorithm 3 ) else Compute probabilities p_{t}^{(i)}=\frac{\exp(\bar{z}_{t}^{(i)}/\tau)}{\sum_{k=1}^{N}\exp(\bar{z}_{t}^{(k)}/\tau)} for all i=1,\ldots,N Update current active block index j\sim\mathrm{Categorical}(p_{t}^{(1)},\ldots,p_{t}^{(N)}) end if \mathbf{\theta}_{B_{j}}\leftarrow\mathrm{\texttt{PerturbParameters}}(\mathbf{\theta}_{B_{j}},\mu,s) (Algorithm 2 ) \ell_{+}\leftarrow\mathcal{L}(\mathbf{\theta};\mathcal{B}) \mathbf{\theta}_{B_{j}}\leftarrow\mathrm{\texttt{PerturbParameters}}(\mathbf{\theta}_{B_{j}},-2\mu,s) \ell_{-}\leftarrow\mathcal{L}(\mathbf{\theta};\mathcal{B}) \mathbf{\theta}_{B_{j}}\leftarrow\mathrm{\texttt{PerturbParameters}}(\mathbf{\theta}_{B_{j}},\mu,s) projected_grad \leftarrow(\ell_{+}-\ell_{-})/2\mu for i=1,\ldots,N do if i=j then \bar{z}_{t}^{(j)}\leftarrow\alpha\cdot\texttt{projected\_grad}+(1-\alpha)\bar{z}_{t-1}^{(j)} else \bar{z}_{t}^{(j)}\leftarrow\bar{z}_{t-1}^{(j)} end if end for Reset random number generator with seed s for \theta_{i}\in\mathbf{\theta}_{B_{j}} do u\sim\mathcal{N}(0,1) \theta_{i}\leftarrow\theta_{i}-\eta_{t} * projected_grad * u end for end for G.2 MeZO-BCD with Adam Stateful optimizers such as Adam ( Kingma and Ba, 2015 ) are widely used in first-order optimization, but their application in zeroth-order methods has been limited by high memory overhead and only marginal gains ( Malladi et al., 2023 ; Zhang et al., 2024e ) . MeZO-BCD provides a practical alternative: since only a single block is perturbed and updated at each step, optimizer states can be stored and updated locally for the active block, eliminating the need for full-model state storage. This enables scalable use of stateful optimizers in zeroth-order settings. To fully leverage Adam’s adaptivity, it is important that the optimizer state for each block is updated across multiple consecutive steps. If the active block were switched every step, the optimizer state would not accumulate meaningful historical information, and Adam would degenerate into vanilla SGD. Thus, we introduce an interval parameter \nu , ensuring that each selected block is optimized for \nu consecutive steps before switching. This design allows the optimizer state to capture meaningful trends within each block, unlocking the potential benefits of stateful optimization in the MeZO-BCD framework. Note that this design closely resembles the BAdam ( Luo et al., 2024 ) . Method. For the active block j , and at interval step t^{\prime}=1,\dots,\nu , let g_{t^{\prime}} be the block-local ZO gradient at step t^{\prime} . Adam’s state (momentum m_{t^{\prime}} and variance v_{t^{\prime}} ) is updated and used according to: m_{t^{\prime}}=\beta_{1}m_{t^{\prime}-1}+(1-\beta_{1})g_{t^{\prime}},\quad v_{t^{\prime}}=\beta_{2}v_{t^{\prime}-1}+(1-\beta_{2})g_{t^{\prime}}^{2} \widehat{m}_{t^{\prime}}=m_{t^{\prime}}/(1-\beta_{1}^{t^{\prime}}),\quad\widehat{v}_{t^{\prime}}=v_{t^{\prime}}/(1-\beta_{2}^{t^{\prime}}) \theta^{(j)}_{t^{\prime}+1}=\theta^{(j)}_{t^{\prime}}-\eta\frac{\widehat{m}_{t^{\prime}}}{\sqrt{\widehat{v}_{t^{\prime}}}+\varepsilon} where \beta_{1},\beta_{2} are the Adam decay rates. After \nu iterations, the optimizer state for block j is discarded, and the next block is selected. Pseudocode for the full procedure is provided in Algorithm 5 . Preliminary Experiments and Analysis. To empirically assess the effectiveness of MeZO-BCD when integrated with Adam, we conduct preliminary experiments. Experiments are carried out using OPT-1.3B across five representative tasks: SST-2, RTE, WIC, BoolQ, and SQuAD. Following the same protocol as in prior sections, models are trained for 20K steps with evaluation every 4K steps. The block selection strategy is fixed to cyclic random permutation, and we set the consecutive update interval to \nu=50 to allow the Adam state to accumulate meaningfully within each block. We perform hyperparameter tuning over two learning rates for each method. For MeZO-BCD, we consider \eta\in\{5\times 10^{-6},1\times 10^{-5}\} , while for MeZO-BCD (+Adam), we explore \eta\in\{5\times 10^{-5},1\times 10^{-4}\} . We found that the Adam variant tends to require a higher learning rate for stable convergence. While not rigorously analyzed here, one possible reason is the normalization effect of Adam, which scales updates by the inverse square root of the accumulated variance. All experiments are repeated over three random seeds \{0,42,100\} . Table 11: Mean ( \pm standard deviation) test accuracy of fine-tuning OPT-1.3B on 1000 examples across five tasks, averaged over three seeds {0, 42, 100}. MeZO-BCD is compared against its variant with Adam. Task SST-2 RTE WIC BoolQ SQuAD Task type ———————— classification ———————— generation MeZO-BCD 91.32\scriptstyle\pm 1.10 63.78\scriptstyle\pm 2.73 59.98\scriptstyle\pm 0.24 63.53\scriptstyle\pm 0.86 76.58\scriptstyle\pm 0.58 MeZO-BCD (+Adam) 91.40\scriptstyle\pm 0.69 62.82\scriptstyle\pm 4.00 59.51\scriptstyle\pm 0.33 62.83\scriptstyle\pm 1.07 76.28\scriptstyle\pm 0.92 (a) Mean loss curve of OPT-1.3B on SST-2 (b) Mean loss curve of OPT-1.3B on SQuAD Figure 8: Training loss curves for MeZO-BCD and MeZO-BCD (+Adam) on SST-2 and SQuAD. Each curve shows the average over three seeds {0, 42, 100}, with shaded regions denoting standard deviation. Both methods display similar convergence trajectories over 20K training steps. Table 11 reports the best test accuracy across all tasks, and Figure 8 shows the corresponding loss trajectories on SST-2 and SQuAD. In line with earlier studies ( Malladi et al., 2023 ; Zhang et al., 2024e ) , we observe that integrating Adam does not yield meaningful improvements in convergence speed or fine-tuning accuracy. While this outcome is expected, a more meaningful insight emerges when we examine the memory requirements and iteration time shown in Figure 9 . Figure 9: Comparison of per-step iteration time ( left ) and peak memory consumption ( right ) for MeZO and MeZO-BCD with and without Adam, across model sizes for fine-tuning on SST-2 (averaged over 100 training steps). MeZO-BCD (+Adam) achieves significantly lower memory usage compared to MeZO (+Adam), while maintaining comparable iteration time to MeZO-BCD. All results are measured using a single A100 80GB PCIe. Most notably, MeZO-BCD (+Adam) achieves a drastic reduction in memory consumption compared to MeZO (+Adam). For instance, on OPT-13B, MeZO (+Adam) requires \mathbf{73.4} GB of memory due to full-model optimizer states, whereas MeZO-BCD (+Adam) only requires \mathbf{26.5} GB, almost identical to the non-Adam version of MeZO-BCD ( 25.3 GB). This result is significant: it demonstrates that MeZO-BCD enables the use of stateful optimizers in large-scale zeroth-order settings where such methods were previously impractical due to prohibitive memory costs. Equally important, this memory saving is achieved without sacrificing wall-clock efficiency. As shown in the left panel of Figure 9 , MeZO-BCD (+Adam) maintains iteration time nearly identical to MeZO-BCD, while MeZO (+Adam) exhibits increased latency caused by additional memory transfer overhead involved by optimizer states. Thus, MeZO-BCD not only makes the use of Adam feasible from a memory standpoint but also preserves the low iteration cost critical to large-scale deployment. These results collectively position MeZO-BCD as a scalable and practical foundation for extending zeroth-order optimization with adaptive and momentum-based techniques. Although Adam does not yield significant gains in our setting, the block-wise structure of MeZO-BCD makes stateful optimization both memory-efficient and computationally viable, thus opening the door to more sophisticated strategies that were previously infeasible at scale. Algorithm 5 MeZO-BCD with Adam 0: block partitioning \{B_{i}\}_{i=1}^{N} , block ordering order , parameters \mathbf{\theta}\in\mathbb{R}^{d} is partitioned into [\mathbf{\theta}_{B_{1}},\ldots,\mathbf{\theta}_{B_{N}}] , loss function \mathcal{L}:\mathbb{R}^{d}\rightarrow\mathbb{R} , step budget T , perturbation scale \mu , learning rate schedule \{\eta_{t}\}_{t=1}^{T} , block update interval \nu , (\beta_{1},\beta_{2},\varepsilon)=(0.9,0.999,10^{-8}) 0: for t_{b}=1,\ldots,\lceil T/\nu\rceil do Update current active block index j\leftarrow\mathrm{\texttt{UpdateBlockIdx}}(\texttt{order},t_{b},N) (Algorithm 3 ) \mathbf{m}_{0}\leftarrow\mathbf{0} , \mathbf{v}_{0}\leftarrow\mathbf{0} for t=1,\ldots,\nu do Sample minibatch \mathcal{B}\subset\mathcal{D} and random seed s \mathbf{\theta}_{B_{j}}\leftarrow\mathrm{\texttt{PerturbParameters}}(\mathbf{\theta}_{B_{j}},\mu,s) \ell_{+}\leftarrow\mathcal{L}(\mathbf{\theta};\mathcal{B}) \mathbf{\theta}_{B_{j}}\leftarrow\mathrm{\texttt{PerturbParameters}}(\mathbf{\theta}_{B_{j}},-2\mu,s) \ell_{-}\leftarrow\mathcal{L}(\mathbf{\theta};\mathcal{B}) \mathbf{\theta}_{B_{j}}\leftarrow\mathrm{\texttt{PerturbParameters}}(\mathbf{\theta}_{B_{j}},\mu,s) Reset random number generator with seed s \mathbf{u}\sim\mathcal{N}(\mathbf{0},\mathbf{I}_{|B_{j}|}) \widehat{\mathbf{g}}_{t}\leftarrow((\ell_{+}-\ell_{-})/2\mu)\mathbf{u} \mathbf{m}_{t}\leftarrow\beta_{1}\mathbf{m}_{t-1}+(1-\beta_{1})\widehat{\mathbf{g}}_{t} \mathbf{v}_{t}\leftarrow\beta_{2}\mathbf{v}_{t-1}+(1-\beta_{2})\widehat{\mathbf{g}}_{t}^{\odot 2} \widehat{\mathbf{m}}_{t},\widehat{\mathbf{v}}_{t}\leftarrow\frac{\mathbf{m}_{t}}{1-\beta_{1}^{t}},\frac{\mathbf{v}_{t}}{1-\beta_{2}^{t}} \mathbf{\theta}_{B_{j}}\leftarrow\mathbf{\theta}_{B_{j}}-\eta_{\nu(t_{b}-1)+t}\frac{\widehat{\mathbf{m}}_{t}}{\sqrt{\widehat{\mathbf{v}}}_{t}+\varepsilon} end for end for Subroutine: PerturbParameters (\mathbf{\theta},\mu,s) Reset random number generator with seed s \mathbf{u}\sim\mathcal{N}(\mathbf{0},\mathbf{I}_{n}) \mathbf{\theta}\leftarrow\mathbf{\theta}+\mu\mathbf{u} return \mathbf{\theta}