betaFeedback

WorksComputer Science

Sample-Adaptive Zeroth-Order Post-Training

Abstract

Zeroth-order (ZO) optimization offers a memory-efficient alternative to backpropagation for fine-tuning large language models. However, existing ZO methods typically sample training examples uniformly, overlooking their evolving importance and leaving avoidable estimation variance. To address this limitation, we propose Sample-Adaptive Zeroth-Order Optimization (SAZO), which learns sample importance online and adaptively allocates queries to accelerate convergence. SAZO extracts gradient-norm information from existing directional differences to estimate sample importance without access to true gradients. Furthermore, to track evolving importance from sparse minibatch feedback, SAZO maintains per-example exponential moving averages that aggregate observations across updates. The method requires no additional model evaluations and only O(N)O(N) additional scalar state compared with MeZO. We prove that SAZO asymptotically matches the leading convergence term of the minimum-variance sampling oracle, and achieves a strictly faster convergence rate than standard methods. Extensive experiments across four model families demonstrate improved average downstream performance and up to 6×6\times faster convergence to the same training loss in terms of query count.

Introduction

Fine-tuning adapts pre-trained large language models (LLMs) to diverse downstream tasks, including sentiment analysis, natural language inference, and question answering [10]. However, standard fine-tuning incurs substantial memory overhead from stored activations, gradients, and optimizer states [17], requiring up to 12× the inference memory in the settings evaluated by Malladi et al. [21]. Parameter-efficient fine-tuning (PEFT), including prefix tuning [16] and low-rank adaptation (LoRA) [13], reduces trainable parameters but still stores activations for backpropagation. To overcome this remaining activation-memory bottleneck, zeroth-order (ZO) methods such as MeZO bypass backpropagation and estimate updates from two forward evaluations, achieving a memory footprint close to inference [21]. This memory advantage comes with an optimization challenge: the resulting gradient estimates remain noisy, limiting the convergence speed of ZO fine-tuning [24].

Inspired by first-order adaptive optimizers such as Adam [15], mainstream approaches to accelerating ZO optimization focus on adaptation in parameter space. HiZOO [31] and PaZO (Zhao et al., 2025b) use Hessian-informed preconditioning, ZO-AdamM [6] and R-AdaZO [26] adapt coordinate-wise update scales using historical moment estimates, and LOZO [7] exploits low-rank perturbation subspaces. However, ZO methods face a fundamental information bottleneck: each directional query reveals only a scalar projection rather than a full gradient. Identifying an unrestricted dd-dimensional adaptation vector requires Ω(d)\Omega(d) such observations, so the cost of learning reliable parameter-wise adaptation can offset its intended acceleration. We therefore ask:

A. Is there additional information in ZO queries that current optimizers leave untapped?

B. If so, how can we adaptively exploit this information to accelerate ZO convergence?

Since each update uses only a small subset of the training data, its effectiveness depends in part on which examples are selected. Our empirical analysis identifies an untapped source of information: the evolving importance of individual training examples. Their gradient norms differ substantially and change during training (Figure 1(a); Appendix § 11.§ 5), suggesting that queries need not be equally valuable across examples. Uniform sampling overlooks this heterogeneity, leaving avoidable estimation variance. To use this information for query allocation, a natural approach is importance sampling, inspired by first-order methods ([14, 3, 11]): allocate more queries to examples with larger gradient norms. Although sampling heterogeneity also exists in first-order methods, we argue that zeroth-order algorithms are more sensitive to it, since the estimated gradient variance of zeroth-order methods using only function-value access is much larger than that of first-order methods{^2}.

Figure 1. From sample heterogeneity to allocation regret and optimization. (a) Per-example gradient norms on SST-2 at initialization, 10K, and 30K updates, normalized by the initial median. Points retain the sample order induced by the initial norms, showing both cross-sample heterogeneity and temporal changes. (b) Sampling regret is the excess gradient-estimator variance over the variance-minimizing allocation (see Appendix § 11.§ 5 for definitions and detailed settings); SAZO reduces this quantity versus uniform and fixed initial-oracle sampling. (c) The improved allocation accelerates loss reduction.

However, applying importance sampling principle to ZO fine-tuning presents two challenges. First, sample importance is not directly observable. The variance-minimizing allocation depends on per-example gradient norms, pi,t⋆∝∥∇fi(xt)∥p_{i,t}^{\star} \propto\lVert\nabla f_i(x_t) \rVert, whereas ZO queries reveal only random directional measurements. We therefore use the scaled magnitudes of existing directional differences to estimate these norms; their expectations approach the corresponding gradient norms as the perturbation radius vanishes, requiring no additional queries. Second, evolving importance must be tracked from sparse minibatch feedback. Each update reveals importance information only for examples in the sampled minibatch, while the importance of all examples may change as the model evolves. We therefore maintain per-example exponential moving averages to combine newly observed information with historical estimates, allowing importance tracking across intermittent observations. Uniform exploration provides opportunities to refresh infrequently sampled examples.

Together, these designs yield Sample-Adaptive Zeroth-Order Optimization (SAZO). The learned scores guide sampling, while inverse-probability weighting preserves the expected full-data finite-difference update. SAZO requires no additional model evaluations and only O(N)O(N) scalar state for NN training examples. The benefit of tracking rather than fixing this allocation is visible in Figure 1(b): SAZO incurs lower relative cumulative sampling regret than uniform sampling and an oracle allocation fixed at initialization. This improved allocation also translates into faster training-loss reduction in Figure 1(c), connecting the recovered sample information to optimization progress.

Our main contributions are:

  • We propose SAZO, which estimates sample importance from existing directional differences without extra model evaluations and tracks its evolution from sparse minibatch feedback using per-example exponential moving averages, requiring only O(N)O(N) scalar state.

  • We prove that SAZO asymptotically matches the leading convergence term of the minimum-variance sampling oracle, and achieves a strictly faster convergence rate than standard methods.

  • We conduct extensive experiments across four model families, demonstrating improved average downstream performance at MeZO-like memory and per-update cost. SAZO achieves up to 6× query-count speedup over MeZO at the same training loss.

Related work

Sample-adaptive first-order optimization. Online variance minimization learns importance distributions from sampled feedback [5, 22, 25]. Static-regret analyses treat feedback as general loss sequences [3, 4]; subsequent work connects sampling to Adam [18], federated convergence [28, 30], and joint convex optimization [1]. Avare exploits gradient continuity for dynamic-regret guarantees [11]. SAZO addresses the ZO setting, where gradients are unavailable and directional feedback remains noisy, while accounting for the coupling between sampling and optimization.

Accelerating ZO post-training. MeZO establishes memory-efficient language-model fine-tuning using forward evaluations [21]. Subsequent approaches accelerate optimization through curvature-based preconditioning [31 b], low-rank perturbations [7], variance reduction [12], and directional alignment [20]. Other methods improve update normalization [8], memory-efficient optimizer adaptivity [9], or adaptive layer selection [27]. These studies focus on constructing parameter updates and allocating perturbations within the model, where learning reliable parameter-wise adaptation is intrinsically difficult in high dimensions; SAZO instead adapts query allocation across examples.

Sample-adaptive zeroth-order optimization

Consider the finite-sum problem min⁡x∈RdF(x)=N−1∑i=1Nfi(x)\min_{x \in\mathbb{R}^{d}} F(x) = N^{-1} \sum_{i=1}^{N} f_i(x), where fif_i denotes the loss of training example ii. Given a uniformly sampled index ItI_t and an independent Gaussian direction zt∼N(0,Id)z_t \sim\mathcal{N}(0, I_d), ZO optimization uses the finite difference

si,t=fi(xt+μtzt)−fi(xt−μtzt)2μt.(1)s_{i,t} = \frac{f_i(x_t + \mu_t z_t) - f_i(x_t - \mu_t z_t)}{2\mu_t}. \tag*{(1)}

to update xt+1=xt−ηsIt,tztx_{t+1} = x_t - \eta s_{I_t,t}z_t, with perturbation radius μt>0\mu_t > 0 and step size η>0\eta> 0. Since E[ztztT]=Id\mathbb{E}[z_t z_t^{\mathsf{T}}] = I_d, the estimator satisfies E[sIt,tzt∣xt]=∇F(xt)+O(μt2)\mathbb{E}[s_{I_t,t}z_t \mid x_t] = \nabla F(x_t) + O(\mu_t^2) and is unbiased up to finite-difference error. Let gi,t=∇fi(xt)g_{i,t} = \nabla f_i(x_t) and ai,t=∥di,t∥a_{i,t} = \lVert d_{i,t} \rVert, and let EtE_t denote expectation conditional on the history before the current draws. The estimator’s second moment is

Et[∥sIt,tzt∥2]=d+2N∑i=1Nai,t2+O(μt2).(2)\mathbb{E}_t[\lVert s_{I_t,t}z_t\rVert^2] = \frac{d+2}{N}\sum_{i=1}^{N} a_{i,t}^2 + O(\mu_t^2). \tag*{(2)}

The O(μt2)O(\mu_t^2) terms account for finite-difference error under the Hessian regularity conditions in Assumption 1; their coefficients may depend on the sampling probabilities and gradient norms (Appendix § 9). The maximum perturbation radius is denoted by μ=max⁡t≤Tμt\mu= \max_{t \le T} \mu_t.

Sample-adaptive updates

The update above assigns equal query weight to every example, as does standard first-order SGD [14]. Yet empirical evidence reveals pronounced sample heterogeneity in post-training: gradient norms vary substantially across examples and evolve during optimization (Figure 1(a) and Figure 8). This heterogeneity exhibits interpretable sample-level structure that cannot be explained simply by label class, sequence length, or vocabulary (Appendices § 11.§ 5 and § 11.6). These observations motivate SAZO (Algorithm 1), which uses importance sampling to assign different query weights across examples to reduce update variance and accelerate optimization.

Figure 8. Sample-importance rankings evolve during training. Initial versus 20K normalized gradient norms N∥∇fi(xt)∥/∑j∥∇fj(xt)∥N\lVert\nabla f_i(x_t)\rVert/\sum_j\lVert\nabla f_j(x_t)\rVert on SST-2 and TREC, with one point per example and shared logarithmic axes. The diagonal marks unchanged importance, and ρs\rho_s is the Spearman correlation. A–D identify the SST-2 examples examined in Figure 9. All gradient norms are exact audits at frozen MeZO checkpoints.

Let pi,t>0p_{i,t} > 0 denote the sampling probability of example ii, with ∑ipi,t=1\sum_i p_{i,t} = 1. For It∼ptI_t \sim p_t drawn independently of ztz_t, the importance-weighted update is

q^t=sIt,tNpIt,tzt,xt+1=xt−ηq^t.(3)\hat{q}_t = \frac{s_{I_t,t}}{N p_{I_t,t}}z_t,\qquad x_{t+1} = x_t - \eta\hat{q}_t. \tag*{(3)}

Algorithm 1 Sample-Adaptive Zeroth-Order Optimization

Require: x1x_1, mi,1>0m_{i,1} > 0, step budget TT, radii μt>0\mu_t > 0, learning rate η>0\eta> 0 Require: Exploration ϵ∈(0,12]\epsilon\in(0, \frac{1}{2}] and smoothing coefficient β∈(0,1)\beta\in(0, 1)

  1. for t=1,…,Tt = 1, \ldots, T do

  2. pi,t←(1−ϵ)mi,t∑jmj,t+ϵNp_{i,t} \leftarrow(1-\epsilon)\frac{m_{i,t}}{\sum_j m_{j,t}} + \frac{\epsilon}{N}, for i=1,…,Ni = 1, \ldots, N. ▷ Importance sampling

  3. Draw It∼ptI_t \sim p_t and fresh zt∼N(0,Id)z_t \sim\mathcal{N}(0, I_d).

  4. sIt,t←fIt(xt+μtzt)−fIt(xt−μtzt)2μts_{I_t,t} \leftarrow\frac{f_{I_t}(x_t+\mu_tz_t)-f_{I_t}(x_t-\mu_tz_t)}{2\mu_t}.

  5. xt+1←xt−ηsIt,tNpIt,tztx_{t+1} \leftarrow x_t-\eta\frac{s_{I_t,t}}{Np_{I_t,t}}z_t. ▷ Unbiased gradient estimator

  6. Copy mt+1←mtm_{t+1} \leftarrow m_t.

  7. mIt,t+1←(1−β)mIt,t+βπ2∣sIt,t∣m_{I_t,t+1} \leftarrow(1-\beta)m_{I_t,t}+\beta\sqrt{\frac{\pi}{2}}|s_{I_t,t}|. ▷ Sparse update with EMA smoothing

  8. end for

Importance weighting preserves the expected full-data ZO update, with Etg^t=∇F(xt)+O(μt2)\mathbb{E}_t\widehat{g}_t = \nabla F(x_t) + O(\mu_t^2). Its second moment is

Et∥g^t∥2=d+2N2∑i=1Nai,t2pi,t+O(μt2).(4)\mathbb{E}_t\lVert\widehat{g}_t\rVert^2 = \frac{d+2}{N^2}\sum_{i=1}^{N}\frac{a_{i,t}^2}{p_{i,t}} + O(\mu_t^2). \tag*{(4)}

Under uniform sampling, pi,t=1/Np_{i,t}=1/N, this second moment reduces to Eq. (2). For positive gradient norms, the distribution that minimizes the leading term and the resulting second moment are

pi,t⋆=ai,t∑jaj,t,Et∥g^t∥2∣pt=pt⋆=d+2N2(∑i=1Nai,t)2+O(μt2).(5)p_{i,t}^{\star}=\frac{a_{i,t}}{\sum_j a_{j,t}}, \qquad\mathbb{E}_t\lVert\widehat{g}_t\rVert^2\big|_{p_t=p_t^\star}=\frac{d+2}{N^2}\left(\sum_{i=1}^{N}a_{i,t}\right)^2+O(\mu_t^2). \tag*{(5)}

Estimating sample importance from directional differences

The ideal allocation in Eq. (5) requires the current per-example gradient norms. As identified in the Introduction, SAZO addresses two obstacles to learning them in ZO optimization.

Unobserved gradients. ZO optimization cannot access ai,t=∥∇fi(xt)∥a_{i,t}=\lVert\nabla f_i(x_t)\rVert, but the directional difference si,ts_{i,t} already computed for the model update is approximately a one-dimensional Gaussian projection of the gradient. Its scaled absolute value therefore gives a gradient-norm estimator that is unbiased up to finite-difference error, without additional queries:

Yi,t=π2∣si,t∣,EtYi,t=ai,t+O(μt2).(6)Y_{i,t}=\sqrt{\frac{\pi}{2}}|s_{i,t}|,\qquad\mathbb{E}_tY_{i,t}=a_{i,t}+O(\mu_t^2). \tag*{(6)}

Sparse feedback. Each update reveals Yi,tY_{i,t} only for the sampled example, even though the importance of every example may evolve as optimization proceeds. SAZO therefore maintains a separate exponential moving average for every example, carrying historical estimates across the intervals between observations:

mi,t+1={(1−β)mi,t+βYi,t,i=It,mi,t,i≠It.(7)m_{i,t+1}= \begin{cases} (1-\beta)m_{i,t}+\beta Y_{i,t}, & i=I_t,\\ m_{i,t}, & i\ne I_t. \end{cases} \tag*{(7)}

A larger β\beta responds faster to changing importance, while a smaller β\beta places more weight on accumulated observations and suppresses directional noise.

Finally, SAZO normalizes these smoothed estimates and adds uniform exploration, following the exploration–exploitation principle in EXP3 [2]:

pi,t=(1−ϵ)mi,t∑jmj,t+ϵN.(8)p_{i,t}=(1-\epsilon)\frac{m_{i,t}}{\sum_jm_{j,t}}+\frac{\epsilon}{N}. \tag*{(8)}

Exploration refreshes stale scores, while the learned distribution guides the next queries. This creates a coupled estimation–optimization loop, analyzed under Assumption 1 in § 3.3.

Query and storage cost. SAZO reuses the directional differences already computed for the model update and therefore requires no additional ZO queries. It stores only one scalar importance estimate per example, for O(N)O(N) additional space; with 1,000 training examples and FP64 scores, this is 8,000 bytes, or less than 8 KiB, and is negligible relative to the inference-memory footprint measured in § 4.3.

Initialization and minibatch implementation. We initialize each mim_i by averaging its directional-magnitude observations over four complete, stable-order burn-in passes without replacement, using ordinary MeZO updates; these updates and queries count toward the training budget. We then switch to adaptive sampling with replacement and EMA tracking. Each minibatch shares one perturbation direction, as in MeZO [21]; repeated draws are evaluated once, with their multiplicities retained in the weighted update (Appendix § 10).

Recommended hyperparameters. We recommend β=0.05\beta= 0.05 and ε=0.1\varepsilon= 0.1, which are used for all main SAZO results. This single setting performs robustly across tasks and datasets and across masked and autoregressive models of different scales; the controlled sweeps in § 4.4 further show low sensitivity over broad ranges of both parameters.

Convergence analysis

This section analyzes convergence under the following continuity assumptions. Smoothness conditions of this type are standard in zeroth-order optimization and are routinely used to analyze ZO fine-tuning of language models [24, 21]. They are also well matched to our setting: Lipschitz gradients enable descent and stable tracking as the parameters evolve, while Lipschitz Hessians control the error of SAZO’s symmetric finite differences.

Assumption 1. Each ∇fi\nabla f_i is globally LiL_i-Lipschitz, and FF is LFL_F-smooth and bounded below by F∗F_*. Each Hessian is globally HiH_i-Lipschitz. The positive radii μt\mu_t are deterministic, and the initialization and finite-time moments appearing below are finite. Let L22=N−1∑iLi2L_2^2 = N^{-1} \sum_i L_i^2.

At the step-tt parameters, ignoring finite-difference error, the optimal allocation has second moment Vt∗=d+2N2(∑i=1Nai,t)2V_t^* = \frac{d+2}{N^2}\left(\sum_{i=1}^{N} a_{i,t}\right)^2. Under the sampling distribution ptp_t in Algorithm 1, the corresponding second moment is Vt(pt)=d+2N2∑i=1Nai,t2pi,tV_t(p_t) = \frac{d+2}{N^2}\sum_{i=1}^{N}\frac{a_{i,t}^2}{p_{i,t}}. Their cumulative difference,

Regret⁡T=∑t=1TE[Vt(pt)−Vt∗]≥0,(9)\operatorname{Regret}_T = \sum_{t=1}^{T} \mathbb{E}\left[V_t(p_t)-V_t^*\right] \ge0, \tag*{(9)}

satisfies the following bound.

Theorem 1 (Sampling regret). Under Assumption 1, run Algorithm 1 with fixed x1x_1 and constant η\eta, ε\varepsilon, β\beta within the horizon. Let μ=max⁡t≤Tμt≤1\mu= \max_{t\le T}\mu_t \le1, σG2=π/2−1\sigma_G^2 = \pi/2 - 1, E0=E∥m1−a1∥2E_0 = \mathbb{E}\lVert m_1-a_1\rVert^2, r=βε/Nr = \beta\varepsilon/N, Λd=(d+2)L22\Lambda_d = (d+2)L_2^2, and

AT=1T∑t=1T∑iEai,t2,DT=1T∑t=1TEVt∗.(10)A_T = \frac{1}{T}\sum_{t=1}^{T}\sum_i \mathbb{E}a_{i,t}^2,\qquad D_T = \frac{1}{T}\sum_{t=1}^{T}\mathbb{E}V_t^*. \tag*{(10)}

If κ=192Λdη2/(εr2)<1\kappa= 192\Lambda_d\eta^2/(\varepsilon r^2) < 1, then

Regret⁡TT≤11−κ[16(d+2)E0TNεr+24(d+2)σG2β2NεrAT+(κ+4ε)DT]+O(μ4).(11)\frac{\operatorname{Regret}_T}{T} \le\frac{1}{1-\kappa}\left[\frac{16(d+2)E_0}{TN\varepsilon r}+\frac{24(d+2)\sigma_G^2\beta^2}{N\varepsilon r}A_T+(\kappa+4\varepsilon)D_T\right]+O(\mu^4). \tag*{(11)}

The bound separates initialization, observation noise, target drift, and exploration, with finite differences contributing an additive remainder. The condition κ<1\kappa< 1 requires the feedback amplification of tracking error through sampling and parameter updates to be weaker than the error contraction induced by the EMA. Theorem 1 shows that our importance tracking method can asymptotically achieve the minimum sampling variance.

Substituting this result into the descent lemma Lemma 1.2.3 Nesterov, [23] yields the following convergence bound.

Theorem 2 (Convergence). Under Assumption 1, fix NN, dd, LiL_i and positive schedule coefficients; use

η=cηT−1/2,ε=cεT−1/10,β=cβT−3/10.\eta= c_\eta T^{-1/2},\qquad\varepsilon= c_\varepsilon T^{-1/10},\qquad\beta= c_\beta T^{-3/10}.

Let ΔF=F(x1)−F∗\Delta_F = F(x_1)-F_* and define

KT=(d+2)σG2βcε2AT+(N2Λdcη2cε2cβ2+cε)DT.K_T = \frac{(d+2)\sigma_G^2\beta}{c_\varepsilon^2}A_T+\left(\frac{N^2\Lambda_d c_\eta^2}{c_\varepsilon^2c_\beta^2}+c_\varepsilon\right)D_T.

For ΔF,DT>0\Delta_F,D_T>0, take cη=2ΔF/(LFDT)c_\eta=\sqrt{2\Delta_F/(L_FD_T)}, which minimizes the leading expression for fixed DTD_T. If the parameters are feasible and κ≤1/2\kappa\le1/2, then

1T∑t=1TE∥∇F(xt)∥2≤2LFΔFDTT+O(LFcηKTT3/5+LFcη(d+2)E0cε2cβT)+O(μ2).(12)\frac{1}{T}\sum_{t=1}^{T}\mathbb{E}\lVert\nabla F(x_t)\rVert^2 \le\sqrt{\frac{2L_F\Delta_FD_T}{T}}+O\left(\frac{L_Fc_\eta K_T}{T^{3/5}}+\frac{L_Fc_\eta(d+2)E_0}{c_\varepsilon^2c_\beta T}\right)+O(\mu^2). \tag*{(12)}

The first O(⋅)O(\cdot) hides only universal numerical constants; finite-difference coefficients are detailed in Appendix § 9.

The first term is the leading optimization term; under fixed problem and schedule coefficients and uniformly bounded trajectory moments, the adaptation correction is o(T−1/2)o(T^{-1/2}). Here DT\mathcal{D}_T is the expected horizon average of Vt∗V_t^* defined above. The choice of cηc_\eta is conditional on this trajectory-dependent quantity; proofs and parameter qualifications appear in Appendices A and B.

Table 1 compares the leading convergence terms for uniform sampling (MeZO), the best fixed allocation in hindsight, and the optimal allocation at each step, which governs the SAZO bound. With punif=(1/N,…,1/N)p^{\mathrm{unif}} = (1/N,\ldots,1/N) and ΔN\Delta_N the probability simplex, define

Table 1: Leading convergence terms on a common trajectory. The SAZO bound additionally includes the adaptation and finite-difference terms in Theorem 2; hindsight allocation is a comparator.

Sampling allocationAverage second momentLeading term
Uniform (MeZO)UT\mathcal{U}_T2LFΔFUT/T\sqrt{2L_F\Delta_F\mathcal{U}_T/T}
Best fixed in hindsightHT\mathcal{H}_T2LFΔFHT/T\sqrt{2L_F\Delta_F\mathcal{H}_T/T}
Optimal at each step (SAZO leading term)DT\mathcal{D}_T2LFΔFDT/T\sqrt{2L_F\Delta_F\mathcal{D}_T/T}

Table 1.

UT=1T∑tEVt(punif)=d+2NAT,HT=E[inf⁡p∈ΔN1T∑tVt(p)].\mathcal{U}_T = \frac{1}{T}\sum_t \mathbb{E}V_t(p^{\mathrm{unif}}) = \frac{d+2}{N}A_T,\qquad\mathcal{H}_T = \mathbb{E}\left[\inf_{p\in\Delta_N}\frac{1}{T}\sum_t V_t(p)\right].

Cauchy–Schwarz and minimization over the allocations give UT≥HT≥DT\mathcal{U}_T \ge\mathcal{H}_T \ge\mathcal{D}_T, and hence

2LFΔFUTT≥2LFΔFHTT≥2LFΔFDTT.(13)\sqrt{\frac{2L_F\Delta_F\mathcal{U}_T}{T}} \ge\sqrt{\frac{2L_F\Delta_F\mathcal{H}_T}{T}} \ge\sqrt{\frac{2L_F\Delta_F\mathcal{D}_T}{T}}. \tag*{(13)}

In particular, the gap between the uniform and optimal horizon-averaged second moments is

UT−DT=d+2T∑t=1TE[1N∑i=1N(ai,t−1N∑j=1Naj,t)2]≥0.(14)\mathcal{U}_T-\mathcal{D}_T=\frac{d+2}{T}\sum_{t=1}^{T}\mathbb{E}\left[\frac{1}{N}\sum_{i=1}^{N}\left(a_{i,t}-\frac{1}{N}\sum_{j=1}^{N}a_{j,t}\right)^2\right]\ge0. \tag*{(14)}

Equality holds if and only if all examples have the same gradient norm at every step, almost surely. This comparison uses a common parameter trajectory and does not rank the separate trajectories generated by different samplers.

Experiments

We evaluate SAZO from five complementary perspectives: downstream performance on masked and generative language models, convergence across model scales, scaling with the training-population size, computational efficiency, and robustness to its sampling hyperparameters. Appendix E provides the detailed experimental settings and additional diagnostics.

Performance and convergence across model families

Masked language models

We first examine whether SAZO’s optimization strategy translates into downstream accuracy. Using RoBERTa-large (350M) [19] with k=512k = 512 examples per class, we consider six tasks spanning sentiment classification, natural language inference, and question classification. Table 2 compares zero-shot learning, LP, and full-parameter and parameter-efficient FT, MeZO, HiZOO, and SAZO; across tasks, SAZO outperforms zero-shot and LP and approaches FT.

MethodSentimentNatural language inferenceQuestion typeAvg.
SST-2SST-5SNLIMNLIRTETREC
Zero-shot79.035.550.248.851.432.049.5
LP91.3±0.591.3_{\pm0.5}51.7±0.551.7_{\pm0.5}80.9±1.080.9_{\pm1.0}71.5±1.171.5_{\pm1.1}73.1±1.573.1_{\pm1.5}89.4±0.589.4_{\pm0.5}76.3
FT93.9±0.793.9_{\pm0.7}55.9±0.955.9_{\pm0.9}88.7±0.888.7_{\pm0.8}84.4±0.884.4_{\pm0.8}82.7±1.482.7_{\pm1.4}97.3±0.297.3_{\pm0.2}83.8
FT (PEFT)94.2±0.294.2_{\pm0.2}55.3±0.755.3_{\pm0.7}88.3±0.588.3_{\pm0.5}83.9±0.683.9_{\pm0.6}83.2±1.383.2_{\pm1.3}97.4±0.297.4_{\pm0.2}83.7
MeZO93.3±0.793.3_{\pm0.7}53.2±1.453.2_{\pm1.4}83.0±1.083.0_{\pm1.0}78.3±0.578.3_{\pm0.5}78.6±2.078.6_{\pm2.0}94.3±1.394.3_{\pm1.3}80.1
MeZO (PEFT)93.4±0.493.4_{\pm0.4}53.6±0.553.6_{\pm0.5}84.8±1.184.8_{\pm1.1}79.8±1.279.8_{\pm1.2}77.6±1.377.6_{\pm1.3}95.0±0.795.0_{\pm0.7}80.7
HiZOO93.5±0.493.5_{\pm0.4}53.5±1.253.5_{\pm1.2}83.3±1.483.3_{\pm1.4}77.2±1.577.2_{\pm1.5}79.1±1.279.1_{\pm1.2}94.9±1.794.9_{\pm1.7}80.3
HiZOO (PEFT)94.3±0.594.3_{\pm0.5}54.2±0.454.2_{\pm0.4}85.7±0.785.7_{\pm0.7}79.7±1.079.7_{\pm1.0}80.9±1.680.9_{\pm1.6}93.1±0.593.1_{\pm0.5}81.3
SAZO94.3±0.594.3_{\pm0.5}53.6±0.853.6_{\pm0.8}85.3±0.485.3_{\pm0.4}79.6±0.379.6_{\pm0.3}82.3±2.482.3_{\pm2.4}96.4±0.696.4_{\pm0.6}81.9
SAZO (PEFT)94.0±0.894.0_{\pm0.8}54.5±0.554.5_{\pm0.5}86.5±0.486.5_{\pm0.4}81.6±1.481.6_{\pm1.4}80.9±1.780.9_{\pm1.7}96.6±0.596.6_{\pm0.5}82.4

Table 2. Experiments on RoBERTa-large (350M parameters) with k=512k = 512 examples per class. LP: linear probing; FT: fine-tuning with Adam; PEFT: the better result between LoRA and prefix tuning for each task. MeZO and HiZOO results are reproduced. All tuning results report mean test accuracy, with standard deviations in subscripts. Bold: best ZO result.

SAZO improves both full-parameter and parameter-efficient ZO tuning. Relative to the stronger of MeZO and HiZOO, SAZO raises the average accuracy by 1.6 percentage points under full-parameter tuning and by 1.1 points under PEFT. The same pattern appears on individual tasks: the gains on TREC are 1.5 and 1.6 points for full-parameter tuning and PEFT, respectively, while those on MNLI are 1.3 and 1.8 points.

Generative language models

We then test whether the benefits extend to generative language models (GLMs). Table 3 compares full-parameter SAZO, MeZO, and HiZOO on OPT-1.3B [29], Phi-2 (2.7B), and Llama3-8B across eight classification, multiple-choice, and question-answering tasks.

ModelMethodClassificationMultiple choiceQuestion answeringAvg.
SST-2BoolQCBWiCCOPAMultiRCSQuADDROP
OPT-1.3BMeZO88.364.069.657.476.061.973.123.764.2
HiZOO90.764.071.458.275.060.176.621.364.7
SAZO90.865.071.460.877.061.976.623.365.9
Phi-2MeZO86.672.475.054.486.078.285.737.872.0
HiZOO88.972.075.259.286.079.285.736.272.8
SAZO88.578.276.857.289.079.286.041.174.5
Llama3-8BMeZO92.276.769.657.888.077.686.757.175.7
HiZOO94.377.169.657.789.077.987.749.475.3
SAZO94.480.880.456.691.078.889.365.579.6

Table 3. Full-parameter generative-LM results. MeZO and HiZOO results are reproduced.

SAZO achieves SOTA average performance compared with other ZO optimizers. On OPT-1.3B, Phi-2, and Llama3-8B, SAZO improves the average over the stronger of MeZO and HiZOO by 1.2, 1.7, and 3.9 percentage points, respectively. The gains are especially large on Llama3-8B CB and DROP, where SAZO exceeds the stronger baseline by 10.8 and 8.4 points.

Convergence across model scales

SAZO accelerates optimization across model scales. Figure 2 compares SST-2 training-loss trajectories on RoBERTa-large, Phi-2, and Llama 3 at a common forward-pass budget of 24K. Each method uses its optimal learning rate from the same search grid for each model; detailed settings are provided in Appendices § 11.§ 1 and § 11.§ 2. SAZO reaches MeZO’s endpoint losses in 4K, 6K, and 6K passes, while HiZOO requires 10.5K, 9K, and 6K passes, respectively.

Figure 2. SAZO substantially accelerates convergence across model scales. At 24K forward passes, SAZO reaches MeZO’s endpoint loss 6×6 \times, 4×4 \times, and 4×4 \times faster in (a)–(c), respectively; HiZOO achieves 2.29×2.29 \times, 2.66×2.66 \times, and 4×4 \times.

Scaling with training-population size

SAZO remains effective as the training population grows. Having established gains across model scales, we vary the amount of training data. Figure 3 compares SST-2 test accuracy as the RoBERTa-large training population increases from N=1,024N = 1{,}024 to 4N4N. SAZO outperforms MeZO at every scale, with gains of 0.6, 1.1, 1.4, and 1.5 percentage points at NN, 2N2N, 3N3N, and 4N4N, respectively.

Figure 3. RoBERTa-large SST-2 test accuracy as the training population scales from N=1,024N = 1{,}024 to 4N4N. Curves show mean ±\pm standard deviation over three seeds. See Appendix § 11.§ 3 for details.

Memory and wall-clock efficiency

We finally examine whether the gains above preserve the computational advantages of ZO optimization. SAZO retains MeZO’s memory footprint. Across the OPT configurations in Figure 4, the measured GB values for SAZO match those of MeZO. Compared with first-order methods, SAZO reduces memory requirements by factors of 6.86.8–12.2×12.2 \times for full FT and 3.33.3–6.1×6.1 \times for prefix FT (26 versus 316 GB at 13B for full FT). Thus, the downstream improvements do not sacrifice the low-memory advantage that makes ZO post-training attractive.

Figure 4. Peak GPU memory on MultiRC (mean length 400 tokens; batch size 1/device), summed across GPUs. Arrows show FT/SAZO ratios.

SAZO also maintains low per-update latency. Table 4 shows that its per-update time remains comparable to MeZO across the evaluated models. Together with faster loss reduction, this yields more effective updates at MeZO-like cost.

MethodRoBERTa-largeOPT-1.3BPhi-2Llama3-8B
MeZO0.11530.18360.42350.9490
HiZOO0.27380.47931.05192.4798
SAZO0.11280.18390.42980.9805

Table 4. Wall-clock time per update (seconds).

Ablation studies

We conclude by examining sensitivity to the importance-score update. SAZO is robust to the smoothing coefficient. Figure 5 varies this coefficient on SST-2. Across β∈{0.005,0.05,0.5}\beta\in\{0.005, 0.05, 0.5\}, the trajectories remain stable and reach closely clustered endpoint losses, with β=0.05\beta= 0.05 performing best. In contrast, β=1\beta= 1 discards the accumulated history, relies only on the latest directional observation, and diverges. This contrast highlights the importance of per-example moving averages for tracking evolving importance from intermittent feedback while smoothing directional noise. SAZO is similarly robust to the exploration coefficient ϵ\epsilon over a broad range; Appendix § 11.§ 4 provides the full sweep and experimental details.

Figure 5. Smoothing coefficient ablation on SST-2. Detailed settings are provided in Appendix § 11.§ 4.

Conclusion

In this work, we propose SAZO, a sample-adaptive zeroth-order optimizer that reuses existing directional differences to estimate sample importance without additional model evaluations. Per-example exponential moving averages track how this importance evolves from sparse minibatch feedback and require only O(N)O(N) scalar state. Our analysis asymptotically matches the variance-optimal dynamic oracle’s leading convergence term, yielding a smaller convergence coefficient than uniform sampling when sample importance is heterogeneous. Extensive experiments demonstrate improved average downstream performance and up to 6×6\times faster convergence to the same training loss in terms of query counts.

AI use statement

Generative AI assisted with research organization, literature retrieval, mathematical derivation, manuscript drafting, LaTeX preparation, numerical identity checks, and a separate adversarial review of this draft. It did not generate the reported training measurements.

Proofs of the main results

Let Ft\mathcal{F}_t denote the history before the current draws, so xt,mt,ptx_t,m_t,p_t are Ft\mathcal{F}_t-measurable and Et\mathbb{E}_t is conditional expectation. For the proofs, it is convenient to remove the common Gaussian factor from the second moments in Section 3.3. Throughout the appendices, define

V~t(p)=Vt(p)d+2=1N2∑iai,t2pi,aˉt=1N∑iai,t,V~t∗=Vt∗d+2=aˉt2.\widetilde{V}_t(p)=\frac{V_t(p)}{d+2}=\frac{1}{N^2}\sum_i\frac{a_{i,t}^2}{p_i},\qquad\bar{a}_t=\frac{1}{N}\sum_i a_{i,t},\qquad\widetilde{V}_t^*=\frac{V_t^*}{d+2}=\bar{a}_t^2.

Writing ρt=Vt(pt)−Vt∗\rho_t=V_t(p_t)-V_t^*, use ρ~t=ρt/(d+2)\widetilde{\rho}_t=\rho_t/(d+2), Regret⁡~T=Regret⁡T/(d+2)\widetilde{\operatorname{Regret}}_T=\operatorname{Regret}_T/(d+2), D~T=DT/(d+2)\widetilde{D}_T=D_T/(d+2), U~T=UT/(d+2)\widetilde{U}_T=U_T/(d+2), H~T=HT/(d+2)\widetilde{H}_T=H_T/(d+2), and K~T=KT/(d+2)\widetilde{K}_T=K_T/(d+2). Also set Cd=LF(d+2)C_d=L_F(d+2). These are exact rescalings of the main-text quantities.

For the explicit radius calculations below, set D6=d(d+2)(d+4)D_6=d(d+2)(d+4), D8=d(d+2)(d+4)(d+6)D_8=d(d+2)(d+4)(d+6), H22=N−1∑iHi2H_2^2=N^{-1}\sum_i H_i^2, Ji,t=πHi2D6μt4/72J_{i,t}=\pi H_i^2D_6\mu_t^4/72, and Wt=H22D8μt4/36W_t=H_2^2D_8\mu_t^4/36. Write W‾T=T−1∑tWt\overline{W}_T=T^{-1}\sum_t W_t and BT=T−1∑t,iE[β2pi,tJi,t]B_T=T^{-1}\sum_{t,i}\mathbb{E}[\beta^2p_{i,t}J_{i,t}]. With r=βε/Nr=\beta\varepsilon/N, define

Rμ,T=BT+NL22η2W‾T/εNεr2,Ωμ,T=D~TW‾T+LFηε(d+2)ATW‾TN+LFηεW‾T.R_{\mu,T}=\frac{B_T+NL_2^2\eta^2\overline{W}_T/\varepsilon}{N\varepsilon r^2},\qquad\Omega_{\mu,T}=\sqrt{\widetilde{D}_T\overline{W}_T+\frac{L_F\eta}{\varepsilon}\sqrt{\frac{(d+2)A_T\overline{W}_T}{N}}+\frac{L_F\eta}{\varepsilon}\overline{W}_T}.

These quantities expand the compact radius errors used in the main text. At a fixed horizon and fixed algorithm parameters, Rμ,T=O(μ4)R_{\mu,T}=O(\mu^4) and Ωμ,T=O(μ2)\Omega_{\mu,T}=O(\mu^2) for μ=max⁡tμt≤1\mu=\max_t\mu_t\le1, with moment dependencies retained here. For local observation variance statements, the hidden coefficient also contains ai,ta_{i,t} through ai,tJi,ta_{i,t}\sqrt{J_{i,t}}.

Supporting moment and descent bounds

The following results use the normalized quantities defined above. Multiplying the normalized regret bound by d+2d+2 gives Theorem 1; substituting Cd=LF(d+2)C_d=L_F(d+2) and D~T=DT/(d+2)\widetilde{D}_T=D_T/(d+2) gives Theorem 2.

Proposition 1 (Feedback and update moments). For σG2=π/2−1\sigma_G^2=\pi/2-1, the finite-difference observations satisfy

EtYi,t=ai,t+O(μ2),\mathbb{E}_tY_{i,t}=a_{i,t}+O(\mu^2),
Var⁡t(Yi,t)=σG2ai,t2+O(μ2).(15)\operatorname{Var}_t(Y_{i,t})=\sigma_G^2a_{i,t}^2+O(\mu^2). \tag*{(15)}

The corresponding update satisfies

∥Etg^t−∇F(xt)∥=O(μ2),\left\|\mathbb{E}_t\widehat{g}_t-\nabla F(x_t)\right\|=O(\mu^2),
Et∥g^t∥2≤2(d+2)V~t(pt)+O(μ4).(16)\mathbb{E}_t\|\widehat{g}_t\|^2\le2(d+2)\widetilde{V}_t(p_t)+O(\mu^4). \tag*{(16)}

Lemma 1 (Descent decomposition). Under Assumption 1, let ΨT=T−1∑tE∥∇F(xt)∥2\Psi_T=T^{-1}\sum_t\mathbb{E}\|\nabla F(x_t)\|^2. Then

ΨT≤ΔFηT+Cdη2D~T+Cdη2Regret⁡~TT+O(μ2),(17)\Psi_T\le\frac{\Delta_F}{\eta T}+\frac{C_d\eta}{2}\widetilde{D}_T+\frac{C_d\eta}{2}\frac{\widetilde{\operatorname{Regret}}_T}{T}+O(\mu^2), \tag*{(17)}

where Cd=LF(d+2)C_d=L_F(d+2) and ΔF=F(x1)−F∗.\Delta_F=F(x_1)-F_*.

Schedules and finite-difference accuracy. The schedules in Theorem 2 are constant within each run and indexed by the horizon. The leading-term choice of cηc_\eta requires DTD_T and ΔF\Delta_F; since DTD_T depends on the resulting trajectory, this is a conditional tuning result. The finite-time bounds retain the trajectory moments without imposing a global gradient bound, convexity, or a strong-growth condition. For fixed problem and schedule coefficients and uniformly bounded trajectory moments, the O(μ2)O(\mu^2) constant can be taken uniformly over feasible horizons. A run-wise radius μ=μ0T−α\mu=\mu_0T^{-\alpha} with α>3/10\alpha>3/10 makes this correction o(T−3/5)o(T^{-3/5}); a fixed radius retains an additive error floor. Appendix C gives the explicit bounds.

Gaussian identities and the sampling oracle

In this appendix only, write si,tμ=si,ts_{i,t}^{\mu}=s_{i,t} for the actual difference used in the main text and introduce si,t0=ztTgi,ts_{i,t}^0=z_t^\mathsf{T}g_{i,t} as a Taylor expansion term at the same current parameter vector. There is no auxiliary optimization trajectory. Condition on Ft\mathcal{F}_t and suppress tt. For any fixed gg, zTgz^\mathsf{T}g has distribution ∥g∥Z\|g\|Z with Z∼N(0,1)Z\sim\mathcal{N}(0,1). Since E∣Z∣=2/π\mathbb{E}|Z|=\sqrt{2/\pi} and EZ2=1,\mathbb{E}Z^2=1, the Gaussian moments of Yi0=π/2∣si0∣Y_i^0 = \sqrt{\pi/2}|s_i^0| follow. Adding the Taylor remainder bounded in Appendix C gives Eq. (15). To compute the update moment, rotate gg onto the first coordinate:

Ez∥zz⊤g∥2=∥g∥2E[z12∑j=1dzj2]=(3+d−1)∥g∥2.\mathbb{E}_z\left\|zz^\top g\right\|^2 = \|g\|^2\mathbb{E}\left[z_1^2\sum_{j=1}^{d}z_j^2\right] = (3+d-1)\|g\|^2.

Also Ezz⊤=Id\mathbb{E}zz^\top= I_d. Averaging over the selected index gives the leading moment (d+2)V~t(pt)(d+2)\widetilde{V}_t(p_t). Adding the Taylor remainder gives Eq. (16). Finally,

(∑iai)2=(∑iaipipi)2≤∑iai2pi.\left(\sum_i a_i\right)^2 = \left(\sum_i \frac{a_i}{\sqrt{p_i}}\sqrt{p_i}\right)^2 \leq\sum_i \frac{a_i^2}{p_i}.

Equality holds for pi∝aip_i \propto a_i on the positive-norm support. Infima on the boundary are understood by limits, with zero-norm terms contributing zero.

Stationary variance of the EMA

Fix the parameter vector and index ii, and enumerate its visits by kk. At a fixed radius, with fresh independent Gaussian directions, let aiμ=EYi(k)a_i^\mu= \mathbb{E}Y_i^{(k)} and viμ=Var⁡(Yi(k))v_i^\mu= \operatorname{Var}(Y_i^{(k)}). The central-difference estimates obey aiμ=ai+O(μ2)a_i^\mu= a_i + O(\mu^2) with the explicit coefficients in Proposition 1. For deterministic initial score mi(0)m_i^{(0)}, the recursion mi(k)=(1−β)mi(k−1)+βYi(k)m_i^{(k)} = (1-\beta)m_i^{(k-1)}+\beta Y_i^{(k)} gives

E(mi(k)−aiμ)2=(1−β)2k(mi(0)−aiμ)2+β2−β[1−(1−β)2k]viμ.\mathbb{E}(m_i^{(k)}-a_i^\mu)^2=(1-\beta)^{2k}(m_i^{(0)}-a_i^\mu)^2+\frac{\beta}{2-\beta}\left[1-(1-\beta)^{2k}\right]v_i^\mu.

This follows by centering the recursion and summing a geometric series. At visit times, the variance converges to βviμ/(2−β)\beta v_i^\mu/(2-\beta). Averaging reduces variance but retains the finite-difference bias in aiμa_i^\mu. The result concerns a fixed target; it does not remove the drift term on an evolving optimization trajectory.

A global normalization bound

Lemma 2. For a≥0a \geq0, m>0m > 0, 0<ε≤1/20 < \varepsilon\leq1/2, and p=(1−ε)m/(∑imi)+ε1/Np=(1-\varepsilon)m/(\sum_i m_i)+\varepsilon1/N, let G=N−1∑iaiG=N^{-1}\sum_i a_i and e=m−ae=m-a. Then

V~(p)−G2≤8Nε∥e∥2+4εG2.(18)\widetilde{V}(p)-G^2 \leq\frac{8}{N\varepsilon}\|e\|^2+4\varepsilon G^2. \tag*{(18)}

Proof. Let S=∑iaiS=\sum_i a_i, M=∑imiM=\sum_i m_i, q=m/Mq=m/M, and u=1/Nu=1/N. To retain the normalization by N2N^2, work directly with the weighted squared norm ∥v∥p−12=∑ivi2/pi\|v\|_{p^{-1}}^2=\sum_i v_i^2/p_i. Expanding the square gives

N2[V~(p)−G2]=∥a−Sp∥p−12.N^2\left[\widetilde{V}(p)-G^2\right]=\|a-Sp\|_{p^{-1}}^2.

Write δ=a−Sq=−e+(M−S)q\delta=a-Sq=-e+(M-S)q. Since pi≥ε/Np_i\geq\varepsilon/N, pi≥(1−ε)qip_i\geq(1-\varepsilon)q_i, and (M−S)2≤N∥e∥2(M-S)^2\leq N\|e\|^2,

∥δ∥p−12≤2∑iei2pi+2(M−S)2∑iqi2pi\|\delta\|_{p^{-1}}^2\leq2\sum_i\frac{e_i^2}{p_i}+2(M-S)^2\sum_i\frac{q_i^2}{p_i}
≤(2Nε+2N1−ε)∥e∥2=2Nε(1−ε)∥e∥2.\leq\left(\frac{2N}{\varepsilon}+\frac{2N}{1-\varepsilon}\right)\|e\|^2 =\frac{2N}{\varepsilon(1-\varepsilon)}\|e\|^2.

The exploration contribution also admits a weighted bound:

ε2∥q−u∥p−12=∥q−p∥p−12=∑iqi2pi−1≤ε1−ε.\varepsilon^2\|q-u\|_{p^{-1}}^2=\|q-p\|_{p^{-1}}^2=\sum_i\frac{q_i^2}{p_i}-1\leq\frac{\varepsilon}{1-\varepsilon}.

Using a−Sp=δ+Sε(q−u)a-Sp=\delta+S\varepsilon(q-u) therefore yields

V~(p)−G2≤4Nε(1−ε)∥e∥2+2ε1−εG2\widetilde{V}(p)-G^2\leq\frac{4}{N\varepsilon(1-\varepsilon)}\|e\|^2+\frac{2\varepsilon}{1-\varepsilon}G^2
≤8Nε∥e∥2+4εG2.\leq\frac{8}{N\varepsilon}\|e\|^2+4\varepsilon G^2.

The argument includes S=0S=0 and requires no closeness condition between MM and SS.

Sparse EMA with correlated target drift

The following lemma allows dependent inclusions and shared directional observations. Given the current history, let OiO_i be an inclusion indicator independent of the fresh Gaussian direction, with πi=EtOi\pi_i = \mathbb{E}_t O_i. The indicators for different coordinates may be dependent. For this local lemma, let Yi=Yi0Y_i = Y_i^0 denote the leading Gaussian observation and update mi+=mi+βOi(Yi−mi)m_i^+ = m_i + \beta O_i(Y_i - m_i), and suppose βπi≥r>0\beta\pi_i \ge r > 0 for all steps and coordinates. Define δai,t=ai,t+1−ai,t\delta a_{i,t} = a_{i,t+1} - a_{i,t}.

Lemma 3 (Visited-coordinate tracking). With E0=E∥m1−a1∥2E_0 = \mathbb{E}\lVert m_1-a_1\rVert^2 and QT=∑t<TE∥at+1−at∥2Q_T = \sum_{t<T}\mathbb{E}\lVert a_{t+1}-a_t\rVert^2,

∑tE∥mt−at∥2≤2E0r+3σG2β2r∑t,iE[πi,tai,t2]+12QTr2.(19)\sum_t \mathbb{E}\lVert m_t-a_t\rVert^2 \le\frac{2E_0}{r}+\frac{3\sigma_G^2\beta^2}{r}\sum_{t,i}\mathbb{E}[\pi_{i,t}a_{i,t}^2]+\frac{12Q_T}{r^2}. \tag*{(19)}

Proof. For ei=mi−aie_i = m_i-a_i and νi=Yi−ai\nu_i = Y_i-a_i, write

Xi=(1−βOi)ei+βOiνi,ei,t+1=Xi−δai,t.X_i=(1-\beta O_i)e_i+\beta O_i\nu_i,\qquad e_{i,t+1}=X_i-\delta a_{i,t}.

Conditional centering and independence of OiO_i and the new direction imply

EtXi2=[1−(2β−β2)πi]ei2+β2πiσG2ai2≤(1−r)ei2+β2πiσG2ai2.\mathbb{E}_tX_i^2=[1-(2\beta-\beta^2)\pi_i]e_i^2+\beta^2\pi_i\sigma_{G}^2a_i^2\le(1-r)e_i^2+\beta^2\pi_i\sigma_G^2a_i^2.

Young’s inequality with parameter r/2r/2 gives

Etei,t+12≤(1−r/2)ei2+32β2πiσG2ai2+3rEt(δai,t)2,\mathbb{E}_te_{i,t+1}^2\le(1-r/2)e_i^2+\frac{3}{2}\beta^2\pi_i\sigma_G^2a_i^2+\frac{3}{r}\mathbb{E}_t(\delta a_{i,t})^2,

because (1+r/2)(1−r)≤1−r/2(1+r/2)(1-r)\le1-r/2 and 1+2/r≤3/r1+2/r\le3/r. Summing for t<Tt<T and over ii, including the terminal contribution using r/2≤1r/2\le1, gives Eq. (19), in fact with 6 instead of 12 for the drift constant. We retain 12 to use common constants with the finite-difference extension. The argument never assumes that XiX_i and δai,t\delta a_{i,t} are independent.

For Algorithm 1, πi=pi\pi_i=p_i and r=βε/Nr=\beta\varepsilon/N. Use T−1∑t,iE[pi,tai,t2]≤ATT^{-1}\sum_{t,i}\mathbb{E}[p_{i,t}a_{i,t}^2]\le A_T. Adding the finite-difference observation remainder as in Appendix § 9 gives, with et=mt−ate_t=m_t-a_t,

∑tE∥et∥2≤2E0r+3σG2β2rTAT+12QTr2+O(Tμ4).(20)\sum_t\mathbb{E}\lVert e_t\rVert^2\le\frac{2E_0}{r}+\frac{3\sigma_G^2\beta^2}{r}TA_T+\frac{12Q_T}{r^2}+O(T\mu^4). \tag*{(20)}

Closing the drift and proving stationarity

All quantities are evaluated on the actual finite-difference trajectory. The perturbed sparse-EMA inequality and normalization give

Regret⁡~T≤16E0Nεr+24σG2β2NεrTAT+96Nεr2(QT+TBT)+4εTD~T.\widetilde{\operatorname{Regret}}_T\le\frac{16E_0}{N\varepsilon r}+\frac{24\sigma_G^2\beta^2}{N\varepsilon r}TA_T+\frac{96}{N\varepsilon r^2}(Q_T+TB_T)+4\varepsilon T\widetilde D_T.

Gradient continuity and the second-moment bound imply

QT≤NL22∑t<TE∥xt+1−xt∥2≤2NΛdη2(TD~T+Regret⁡~T)+2NL22η2TW~T/ε.Q_T\le NL_2^2\sum_{t<T}\mathbb{E}\lVert x_{t+1}-x_t\rVert^2\le2N\Lambda_d\eta^2(T\widetilde D_T+\widetilde{\operatorname{Regret}}_T)+2NL_2^2\eta^2T\widetilde W_T/\varepsilon.

Substitution and absorption prove Theorem 1 after multiplication by d+2d+2, with additive remainder at most 192(d+2)Rμ,T/(1−κ)192(d+2)R_{\mu,T}/(1-\kappa).

For descent, write g^t=g^t0+ht\widehat g_t=\widehat g_t^0+h_t at the same parameters, selected index, and direction, and let Mt=(d+2)V~t(pt)M_t=(d+2)\widetilde V_t(p_t). The Taylor bounds give

∥Etht∥2≤Wt,Et∥g^t∥2≤Mt+2MtWt/ε+Wt/ε.\lVert\mathbb{E}_th_t\rVert^2\le W_t,\qquad\mathbb{E}_t\lVert\widehat g_t\rVert^2\le M_t+2\sqrt{M_tW_t/\varepsilon}+W_t/\varepsilon.

Smoothness implies

EtF(xt+1)≤F(xt)−η∥∇F(xt)∥2+η∥∇F(xt)∥Wt+LFη22(Mt+2MtWt/ε+Wt/ε).\mathbb{E}_tF(x_{t+1})\le F(x_t)-\eta\lVert\nabla F(x_t)\rVert^2+\eta\lVert\nabla F(x_t)\rVert\sqrt{W_t}+\frac{L_F\eta^2}{2}\left(M_t+2\sqrt{M_tW_t/\varepsilon}+W_t/\varepsilon\right).

Using ΨT≤D~T\Psi_T\le\widetilde D_T and T−1∑tEMt≤(d+2)AT/(Nε)T^{-1}\sum_t\mathbb{E}M_t\le(d+2)A_T/(N\varepsilon), Cauchy–Schwarz over time and randomness bounds the additional terms by Ωμ,T\Omega_{\mu,T}. Summation proves Lemma 1 without multiplying its leading term by the coarse moment bound’s factor two.

For Theorem 2, substitution of the schedules and r=βε/Nr=\beta\varepsilon/N gives, when κ≤1/2\kappa\le1/2,

Regret⁡~T/T≤32E0cε2βT1/2+384K~TT1/10+384Rμ,T.\widetilde{\operatorname{Regret}}_T/T \le\frac{32E_0}{c_\varepsilon^2\beta T^{1/2}}+\frac{384\widetilde K_T}{T^{1/10}}+384R_{\mu,T}.

Insert this into the descent lemma. Holding D~T\widetilde D_T fixed, the leading expression is minimized at cη=2ΔF/(CdD~T)c_\eta=\sqrt{2\Delta_F/(C_d\widetilde D_T)}. Before collecting radius terms, the result is

ΨT≤2CdΔFD~TT+192(CdcηK~TT3/5+CdcηE0cε2βT+CdcηRμ,TT+Ωμ,T).\Psi_T\le\sqrt{\frac{2C_d\Delta_F\widetilde D_T}{T}}+192\left(\frac{C_dc_\eta\widetilde K_T}{T^{3/5}}+\frac{C_dc_\eta E_0}{c_\varepsilon^2\beta T}+\frac{C_dc_\eta R_{\mu,T}}{\sqrt{T}}+\Omega_{\mu,T}\right).

This gives Eq. (12) after rescaling, with the radius-error convention stated in the main text. The general descent lemma covers undefined or infeasible oracle coefficients; the choice is conditional on the resulting trajectory quantity.

Parameter balance and comparator qualifications

The radius-independent noise, drift, and exploration contributions have scales

βATε2,N2Λdη2D~Tε3β2,εD~T.\frac{\beta A_T}{\varepsilon^2},\qquad\frac{N^2\Lambda_d\eta^2\widetilde D_T}{\varepsilon^3\beta^2},\qquad\varepsilon\widetilde D_T.

For positive moments and smoothness, their formal balance is

ε≍N1/5Λd1/10η1/5(AT/D~T)1/5.(21)\varepsilon\asymp N^{1/5}\Lambda_d^{1/10}\eta^{1/5}\left(A_T/\widetilde D_T\right)^{1/5}. \tag*{(21)}
β≍N3/5Λd3/10η3/5(D~T/AT)2/5.(22)\beta\asymp N^{3/5}\Lambda_d^{3/10}\eta^{3/5}\left(\widetilde D_T/A_T\right)^{2/5}. \tag*{(22)}

If these choices and the resulting trajectory satisfy feasibility and κ≤1/2\kappa\le1/2, then

Regret⁡~T/T≲N1/5Λd1/10η1/5AT1/5D~T4/5+E0TNΛdη+O(Rμ,T).(23)\widetilde{\operatorname{Regret}}_T/T\lesssim N^{1/5}\Lambda_d^{1/10}\eta^{1/5}A_T^{1/5}\widetilde D_T^{4/5}+\frac{E_0}{TN\sqrt{\Lambda_d}\eta}+O(R_{\mu,T}). \tag*{(23)}

Only universal constants are suppressed. These choices require ATA_T, D~T\widetilde D_T, which depend on the parameters and resulting trajectory; this is a conditional balance, not an online tuning rule or an existence theorem for self-consistent parameters. The initialization term follows from ε2β≍NΛdη\varepsilon^2\beta\asymp N\sqrt{\Lambda_d}\eta. The finite-difference correction remains additive.

Balancing noise and drift alone gives βε1/3/η2/3≍(N2ΛdD~T/AT)1/3\beta\varepsilon^{1/3}/\eta^{2/3}\asymp(N^2\Lambda_d\widetilde D_T/A_T)^{1/3}. A common numerical value across tasks is an empirical tuning constraint; the right side is problem-dependent.

Three fixed and dynamic costs

In addition to H~T\widetilde H_T and U~T\widetilde U_T, define

G~T=inf⁡p∈ΔN1T∑tEV~t(p)=(1N∑i1T∑tEai,t2)2.\widetilde G_T=\inf_{p\in\Delta_N}\frac{1}{T}\sum_t\mathbb{E}\widetilde V_t(p)=\left(\frac{1}{N}\sum_i\sqrt{\frac{1}{T}\sum_t\mathbb{E}a_{i,t}^2}\right)^2.

For each realized trajectory,

inf⁡p1T∑tV~t(p)=(1N∑i1T∑tai,t2)2.\inf_p\frac{1}{T}\sum_t\widetilde V_t(p)=\left(\frac{1}{N}\sum_i\sqrt{\frac{1}{T}\sum_t a_{i,t}^2}\right)^2.

Pointwise minimization, Einf⁡≤inf⁡E\mathbb{E}\inf\le\inf\mathbb{E}, and evaluation at the uniform distribution establish

D~T≤H~T≤G~T≤U~T.(24)\widetilde D_T\le\widetilde H_T\le\widetilde G_T\le\widetilde U_T. \tag*{(24)}

H~T\widetilde H_T is the expected hindsight cost, while G~T\widetilde G_T chooses a fixed distribution before taking the trajectory expectation. Interchanging them would change the comparator. For at=ctva_t=c_tv with fixed v≥0v\ge0, the dynamic and hindsight fixed costs coincide. For the deterministic two-step example a1=(1,0)a_1=(1,0), a2=(0,1)a_2=(0,1), D~T=1/4\widetilde D_T=1/4 while H~T=G~T=U~T=1/2\widetilde H_T=\widetilde G_T=\widetilde U_T=1/2. This example illustrates a cost hierarchy and is not asserted to be a realized training trajectory.

Equation (14) follows by expanding the squared deviations around aˉt\bar a_t and multiplying by d+2d+2. Consequently, D~T<U~T\widetilde D_T<\widetilde U_T whenever the example norms differ at some step with positive probability. The balanced expressions in Table 1 follow by minimizing ΔF/c+CdcX/2\Delta_F/c+C_d cX/2 over c>0c>0 for each fixed positive normalized comparator quantity XX. This is an algebraic comparison on the same trajectory; it does not require treating a hindsight-selected distribution as an implementable sampler.

Finite-difference error

This appendix retains the original, unsmoothed gradients as the reference quantities. It covers Algorithm 1 and the with-replacement minibatch update in Appendix D.

The Hessian regularity is included in Assumption 1; set H22=N−1∑iHi2H_2^2 = N^{-1}\sum_i H_i^2. Let D6=d(d+2)(d+4)D_6 = d(d+2)(d+4) and D8=d(d+2)(d+4)(d+6)D_8 = d(d+2)(d+4)(d+6). Taylor’s integral remainder gives

bi,t=si,tμ−ztTgi,t,∣bi,t∣≤Hiμt26∥zt∥3.b_{i,t} = s_{i,t}^{\mu} - z_t^{\mathsf{T}}g_{i,t}, \qquad\lvert b_{i,t}\rvert\le\frac{H_i\mu_t^2}{6}\lVert z_t\rVert^3.

For δi,t=π/2(∣si,tμ∣−∣ztTgi,t∣)\delta_{i,t} = \sqrt{\pi/2}(\lvert s_{i,t}^{\mu}\rvert-\lvert z_t^{\mathsf{T}}g_{i,t}\rvert), define

Ji,t=πHi2D672μt4,Wt=Hi2D836μt4,W‾T=T−1∑tWt.J_{i,t} = \frac{\pi H_i^2D_6}{72}\mu_t^4,\qquad W_t = \frac{H_i^2D_8}{36}\mu_t^4,\qquad\overline{W}_T = T^{-1}\sum_t W_t.

The reverse triangle inequality and Gaussian radial moments imply

Etδi,t2≤Ji,t,Et∥bi,tzt∥2≤Hi2D8μt4/36.(25)\mathbb{E}_t\delta_{i,t}^2 \le J_{i,t},\qquad\mathbb{E}_t\lVert b_{i,t}z_t\rVert^2 \le H_i^2D_8\mu_t^4/36. \tag*{(25)}

In this appendix take B=1B=1 for Algorithm 1, or B>1B>1 for the experimental implementation. Let πi,t\pi_{i,t} denote the corresponding inclusion probability and let r>0r>0 lower-bound βπi,t\beta\pi_{i,t} uniformly. Define

χB=1Bε+1−1B,Aπ,T=1T∑t,iE[πi,tai,t2],BT=1T∑t,iE[β2πi,tJi,t].\chi_B = \frac{1}{B\varepsilon}+1-\frac{1}{B},\qquad A_{\pi,T}=\frac{1}{T}\sum_{t,i}\mathbb{E}[\pi_{i,t}a_{i,t}^2],\qquad B_T=\frac{1}{T}\sum_{t,i}\mathbb{E}[\beta^2\pi_{i,t}J_{i,t}].

For the main algorithm, take r=βε/Nr=\beta\varepsilon/N and πi=pi\pi_i=p_i. For the batch extension, πi,t=1−(1−pi,t)B\pi_{i,t}=1-(1-p_{i,t})^B and r=β[1−(1−ε/N)B]r=\beta[1-(1-\varepsilon/N)^B].

Lemma 4 (Outer perturbation). Let htμ=g^tμ−g^t0h_t^\mu=\widehat{g}_t^\mu-\widehat{g}_t^0, where the two estimators use the same current parameters, indices, and direction, with finite or ideal differences. Then

∥Ethtμ∥2≤Wt,Et∥htμ∥2≤χBWt.\lVert\mathbb{E}_t h_t^\mu\rVert^2 \le W_t,\qquad\mathbb{E}_t\lVert h_t^\mu\rVert^2\le\chi_BW_t.

Proof. Conditional on zz, the with-replacement sample average has expectation N−1∑ibizN^{-1}\sum_i b_i z. Jensen’s inequality and (N−1∑iHi)2≤H22(N^{-1}\sum_i H_i)^2\le H_2^2 prove the first bound. For BB independent with-replacement indices, the conditional second moment consists of B−1N−2∑i∥biz∥2/piB^{-1}N^{-2}\sum_i\lVert b_i z\rVert^2/p_i plus (1−1/B)∥N−1∑ibiz∥2(1-1/B)\lVert N^{-1}\sum_i b_i z\rVert^2. Use pi≥ε/Np_i\ge\varepsilon/N and Eq. (25).

Theorem 3 (Explicit finite-radius bound). Under Assumption 1, use the with-replacement update in Eq. (28) and the once-per-included-example EMA in Eq. (29), with 0<ε≤1/20<\varepsilon\le1/2 and 0<β<10<\beta<1. Let

κμ=192Λdη2Bεr2<1.\kappa_\mu=\frac{192\Lambda_d\eta^2}{B\varepsilon r^2}<1.

Along the actual finite-difference trajectory, define Regret⁡~T,D~T\widetilde{\operatorname{Regret}}_T,\widetilde{D}_T using the original gradient norms using the normalization above and Eq. (10). Then

Regret⁡~TT≤11−κμ[16E0TNεr+24σG2β2NεrAπ,T+96BTNεr2+(192Λdη2εr2+4ε)D~T+192L2η2χBεr2W‾T].(26)\frac{\widetilde{\operatorname{Regret}}_T}{T}\le\frac{1}{1-\kappa_\mu}\left[\frac{16E_0}{TN\varepsilon r}+\frac{24\sigma_G^2\beta^2}{N\varepsilon r}A_{\pi,T}+\frac{96B_T}{N\varepsilon r^2}+\left(\frac{192\Lambda_d\eta^2}{\varepsilon r^2}+4\varepsilon\right)\widetilde{D}_T+\frac{192L^2\eta^2\chi_B}{\varepsilon r^2}\overline{W}_T\right]. \tag*{(26)}

If Cdη(1−1/B)≤1/4C_d\eta(1-1/B)\le1/4, then

ΨT≤4ΔFηT+4CdηB(D~T+Regret⁡~T/T)+(2+4LFηχB)W‾T.(27)\Psi_T\le\frac{4\Delta_F}{\eta T}+\frac{4C_d\eta}{B}\left(\widetilde{D}_T+\widetilde{\operatorname{Regret}}_T/T\right)+(2+4L_F\eta\chi_B)\overline{W}_T. \tag*{(27)}

Proof. In Lemma 3, the new error is Xi+βOiδi−δaiX_i+\beta O_i\delta_i-\delta a_i. Apply Young’s inequality with parameter r/2r/2, then bound the square of the last two terms by twice the sum of their squares. This gives

∑tE∥mt−at∥2≤2E0r+3σG2β2rTAπ,T+12r2(TBT+QT).\sum_t\mathbb{E}\lVert m_t-a_t\rVert^2\le\frac{2E_0}{r}+\frac{3\sigma_G^2\beta^2}{r}TA_{\pi,T}+\frac{12}{r^2}(TB_T+Q_T).

@bibliography

No centering of δi\delta_i is assumed. By the ideal batch second moment, Lemma 4, and the two-term square inequality,

Et∥g^tμ∥2≤2(d+2)[V~t(pt)B+(1−1B)∥∇F(xt)∥2]+2χBWt.\mathbb{E}_t\lVert\widehat{g}_t^\mu\rVert^2 \le2(d+2)\left[\frac{\widetilde{V}_t(p_t)}{B}+\left(1-\frac{1}{B}\right)\lVert\nabla F(x_t)\rVert^2\right]+2\chi_B W_t.

Consequently,

QT≤2NΛdη2(TD~T+Regret⁡TB)+2NL22η2χBTW‾T.Q_T \le2N\Lambda_d\eta^2\left(T\widetilde{D}_T+\frac{\operatorname{Regret}_T}{B}\right)+2NL_2^2\eta^2\chi_B T\overline{W}_T.

Substitute into Lemma 2 and absorb the regret coefficient to prove (26). For descent, use Etg^tμ=∇F(xt)+bt\mathbb{E}_t\widehat{g}_t^\mu=\nabla F(x_t)+b_t with ∥bt∥2≤Wt\lVert b_t\rVert^2\le W_t, and −⟨∇F,bt⟩≤∥∇F∥2/2+Wt/2-\langle\nabla F,b_t\rangle\le\lVert\nabla F\rVert^2/2+W_t/2. The coefficient of ΨT\Psi_T is at least 1/2−Cdη(1−1/B)≥1/41/2-C_d\eta(1-1/B)\ge1/4, giving (27).

Radius dependence in the main theorem. For M4,T=T−1∑tμt4M_{4,T}=T^{-1}\sum_t\mu_t^4, the explicit bounds are

BT≤πNβ2H22D672M4,T,W‾T=H22D836M4,T.B_T\le\frac{\pi N\beta^2H_2^2D_6}{72}M_{4,T},\qquad\overline{W}_T=\frac{H_2^2D_8}{36}M_{4,T}.

For the main algorithm, with fixed problem and schedule coefficients, bounded trajectory moments, and the horizon schedules in Theorem 2, one has r=Θ(T−2/5)r=\Theta(T^{-2/5}), χB=O(T1/10)\chi_B=O(T^{1/10}), and

Rμ,T=O(T3/10M4,T+M4,T),Ωμ,T=O(M4,T+T−2/5M4,T).R_{\mu,T}=O(T^{3/10}M_{4,T}+M_{4,T}),\qquad\Omega_{\mu,T}=O(\sqrt{M_{4,T}}+T^{-2/5}M_{4,T}).

The constants in these two order summaries depend on the fixed coefficients explicitly displayed above and in the main definitions. The radius-independent remainder in the main theorem hides only universal constants. Its separate O(μ2)O(\mu^2) hides the radius coefficients displayed here. Under the stated fixed-parameter and bounded-moment conditions, ηRμ,T=O(T−1/5μ44+T−1/2μ44)\eta R_{\mu,T}=O(T^{-1/5}\mu_4^4+T^{-1/2}\mu_4^4) and Ωμ,T=O(μ2)\Omega_{\mu,T}=O(\mu^2) uniformly in feasible TT; thus the collected O(μ2)O(\mu^2) is uniform in those horizons. Choosing μt=μ0T−α\mu_t=\mu_0T^{-\alpha} for every step of a run gives M4,T=μ04T−4αM_{4,T}=\mu_0^4T^{-4\alpha}. For α>3/10\alpha>3/10, both Ωμ,T\Omega_{\mu,T} and ηRμ,T\eta R_{\mu,T} are o(T−3/5)o(T^{-3/5}). This condition applies to a horizon-dependent radius and does not assert the same conclusion for μt=μ0t−α\mu_t=\mu_0t^{-\alpha} with a fixed initial radius. The earlier coarse outer bound remains useful if one prefers squared-radius errors at the price of larger leading constants. Evaluation randomness and numerical rounding are not represented by these Taylor bounds.

With-replacement minibatches and shared directions

All experiments use with-replacement minibatch sampling. This appendix specifies the implementation and derives the effect of sharing one Gaussian direction within a batch. Algorithm 1 and the main convergence results are its B=1B=1 case.

Minibatch update and reused evaluations

At step tt, form ptp_t from the stored scores and draw BB indices independently with replacement, It,1,…,It,B∼ptI_{t,1},\ldots,I_{t,B}\sim p_t, independently of zt∼N(0,Id)z_t\sim\mathcal{N}(0,I_d). Let

Ki,t=∑b=1B1{It,b=i},St={i:Ki,t>0}.K_{i,t}=\sum_{b=1}^{B}\mathbf{1}\{I_{t,b}=i\},\qquad S_t=\{i:K_{i,t}>0\}.

For each i∈Sti\in S_t, evaluate the two-sided difference only once, using the common perturbations xt±μtztx_t\pm\mu_tz_t. If an example is drawn repeatedly, its stored difference is reused: it does not trigger another forward evaluation or a replacement draw. The model update is

g^t=ztB∑b=1BsIt,b,tNpIt,b,t=ztBN∑i∈StKi,tsi,tpi,t,xt+1=xt−ηg^t.(28)\widehat{g}_t=\frac{z_t}{B}\sum_{b=1}^{B}\frac{s_{I_{t,b},t}}{Np_{I_{t,b},t}}=\frac{z_t}{BN}\sum_{i\in S_t}\frac{K_{i,t}s_{i,t}}{p_{i,t}},\qquad x_{t+1}=x_t-\eta\widehat{g}_t. \tag*{(28)}

Thus evaluation reuse preserves the multiplicities of the original BB draws. Each included example updates its score once:

mi,t+1={(1−β)mi,t+βπ2∣si,t∣,i∈St,mi,t,i∉St.(29)m_{i,t+1}= \begin{cases} (1-\beta)m_{i,t}+\beta\sqrt{\frac{\pi}{2}}\lvert s_{i,t}\rvert, & i\in S_t,\\ m_{i,t}, & i\notin S_t. \end{cases} \tag*{(29)}

The distribution remains fixed within a batch; the new scores determine pt+1p_{t+1}. No inverse-probability factor is applied to the EMA. The two perturbed batches contain ∣St∣\lvert S_t\rvert examples each, requiring 2∣St∣≤2B2\lvert S_t\rvert\le2B example-level function evaluations. The expected number of distinct examples is ∑i[1−(1−pi,t)B]\sum_i[1-(1-p_{i,t})^B].

Effect of the shared direction on variance

For fixed xtx_t, ptp_t, ztz_t, let sˉt=N−1∑isi,t\bar{s}_t=N^{-1}\sum_i s_{i,t}. Independence of the index draws gives the exact finite-difference identities

EI∣ztg^t=sˉtzt,(30)\mathbb{E}_{I\mid z_t}\widehat{g}_t=\bar{s}_t z_t, \tag*{(30)}
EI∣zt∥g^t∥2=∥zt∥2[1BN2∑isi,t2pi,t+(1−1B)sˉt2].(31)\mathbb{E}_{I\mid z_t}\|\widehat{g}_t\|^2=\|z_t\|^2\left[\frac{1}{BN^2}\sum_i\frac{s_{i,t}^2}{p_{i,t}}+\left(1-\frac{1}{B}\right)\bar{s}_t^2\right]. \tag*{(31)}

Hence sharing a direction and reusing duplicate evaluations preserve the expected full-data finite-difference update. The differences for different examples need not be independent.

Write gˉt=∇F(xt)\bar{g}_t=\nabla F(x_t). Under Assumption 1, integrating over the shared Gaussian direction yields

Proposition 2 (Shared-direction minibatch moments). For the update in Eq. (28).

Etg^t=gˉt+O(μ2),(32)\mathbb{E}_t\widehat{g}_t=\bar{g}_t+O(\mu^2), \tag*{(32)}
Et∥g^t∥2=(d+2)[V~t(pt)B+(1−1B)∥gˉt∥2]+O(μ2).\mathbb{E}_t\|\widehat{g}_t\|^2=(d+2)\left[\frac{\widetilde{V}_t(p_t)}{B}+\left(1-\frac{1}{B}\right)\|\bar{g}_t\|^2\right]+O(\mu^2).

Its total variance is

Et∥g^t−Etg^t∥2=(d+1)∥gˉt∥2+d+2B[V~t(pt)−∥gˉt∥2]+O(μ2).(33)\mathbb{E}_t\|\widehat{g}_t-\mathbb{E}_t\widehat{g}_t\|^2=(d+1)\|\bar{g}_t\|^2+\frac{d+2}{B}\left[\widetilde{V}_t(p_t)-\|\bar{g}_t\|^2\right]+O(\mu^2). \tag*{(33)}

The radius terms follow the convention in Appendix § 9; the displayed leading terms are exact for directional derivatives.

Proof. The central-difference remainder satisfies si,t=ztTgi,t+bi,ts_{i,t}=z_t^{\mathsf{T}}g_{i,t}+b_{i,t} with ∣bi,t∣≤Hiμt2∥zt∥3/6|b_{i,t}|\le H_i\mu_t^2\|z_t\|^3/6. Applying this expansion directly to Eqs. (30)–(31), the Gaussian identities

E[zzT]=Id,E[∥z∥2(zTv)2]=(d+2)∥v∥2\mathbb{E}[zz^{\mathsf{T}}]=I_d,\qquad\mathbb{E}[\|z\|^2(z^{\mathsf{T}}v)^2]=(d+2)\|v\|^2

give the displayed leading terms. Cross terms involving bi,tb_{i,t} are O(μ2)O(\mu^2) by Cauchy–Schwarz and the finite-radius moment bounds; squared remainders are O(μ4)O(\mu^4). Subtracting ∥Etg^t∥2=∥gˉt∥2+O(μ2)\|\mathbb{E}_t\widehat{g}_t\|^2=\|\bar{g}_t\|^2+O(\mu^2) gives Eq. (33).

Advantage over MeZO under the same shared direction. MeZO also shares one Gaussian direction across a minibatch. Its leading directional variance is therefore the same (d+1)∥gˉt∥2(d+1)\|\bar{g}_t\|^2 as SAZO’s; the allocation controls the remaining term. At the same parameter vector and batch size, write punif=1/Np^{\mathrm{unif}}=1/N. The variance reduction relative to MeZO is

Var⁡t(g^tMeZO)−Var⁡t(g^tSAZO)=d+2B[V~t(punif)−V~t(pt)]+O(μ2),(34)\operatorname{Var}_t(\widehat{g}^{\mathrm{MeZO}}_t)-\operatorname{Var}_t(\widehat{g}^{\mathrm{SAZO}}_t)=\frac{d+2}{B}\left[\widetilde{V}_t(p^{\mathrm{unif}})-\widetilde{V}_t(p_t)\right]+O(\mu^2), \tag*{(34)}

where Var⁡t(X)=Et∥X−EtX∥2\operatorname{Var}_t(X)=\mathbb{E}_t\|X-\mathbb{E}_tX\|^2. For the norm-proportional oracle, the leading gain is

d+2B[V~t(punif)−aˉt2]=d+2BN∑i(ai,t−aˉt)2.(35)\frac{d+2}{B}\left[\widetilde{V}_t(p^{\mathrm{unif}})-\bar{a}_t^2\right]=\frac{d+2}{BN}\sum_i(a_{i,t}-\bar{a}_t)^2. \tag*{(35)}

Thus unequal gradient norms give a strictly positive leading variance reduction. The common direction term cancels from the comparison: sharing a direction does not introduce an additional variance penalty for SAZO relative to MeZO. For the learned allocation, the leading gain equals the oracle gain minus (d+2)ρ~t/B(d+2)\widetilde{\rho}_t/B, directly connecting the benefit to the tracking analysis.

Larger batches reduce both methods’ sampling variance by 1/B1/B, while norm-proportional allocation minimizes this term for every batch size. SAZO exploits sample heterogeneity within the same two perturbed model states used by MeZO, and duplicate evaluation reuse reduces the work needed for its BB draws.

Consequences for tracking and convergence

Because an included example updates its EMA once, its refresh event is Oi,t=1{Ki,t>0}O_{i,t}=1\{K_{i,t}>0\}. Conditional on the history, the probability that all BB independent draws miss example ii is (1−pi,t)B(1-p_{i,t})^B. Thus its inclusion probability and the resulting uniform refresh bound are

πi,t=1−(1−pi,t)B,rB=β[1−(1−ϵN)B].(36)\pi_{i,t}=1-(1-p_{i,t})^B,\qquad r_B=\beta\left[1-\left(1-\frac{\epsilon}{N}\right)^B\right]. \tag*{(36)}

The floor πi,t≥ε/N\pi_{i,t} \ge\varepsilon/N gives βπi,t≥rB\beta\pi_{i,t} \ge r_B. Relative to the B=1B=1 rate r=βε/Nr=\beta\varepsilon/N, one has r≤rB≤min⁡{Br,β}r \le r_B \le\min\{Br,\beta\} and rB=Br[1+O(Bε/N)]r_B=Br[1+O(B\varepsilon/N)] when Bε/NB\varepsilon/N is small.

To connect inclusion to tracking contraction, set ei,t=mi,t−ai,te_{i,t}=m_{i,t}-a_{i,t} and use the leading Gaussian observation Yi,t0Y_{i,t}^{0} from Appendix A. Independence of the index draws and the fresh direction gives

Et[(ei,t+βOi,t(Yi,t0−mi,t))2]≤(1−rB)ei,t2+β2πi,tσi,t2Gai,t2.\mathbb{E}_t\left[\left(e_{i,t}+\beta O_{i,t}(Y_{i,t}^{0}-m_{i,t})\right)^2\right]\le(1-r_B)e_{i,t}^2+\beta^2\pi_{i,t}\sigma_{i,t}^2G_{a_{i,t}}^2.

since (2β−β2)πi,t≥βπi,t≥rB(2\beta-\beta^2)\pi_{i,t}\ge\beta\pi_{i,t}\ge r_B. Sharing ztz_t correlates the observations across examples, but Lemma 3 controls a sum of coordinatewise squared errors and does not require independence across examples. Its argument therefore applies with r=rBr=r_B; the moving target and finite-difference remainder are included in Theorem 3. Each included example receives only one directional observation, and updating its EMA once avoids treating duplicate draws as fresh evidence.

To see how the shared-direction term enters optimization, average Eq. (32) in the smoothness descent inequality. With Cd=LF(d+2)C_d=L_F(d+2) and ΨT=T−1∑tE∥∇F(xt)∥2\Psi_T=T^{-1}\sum_t\mathbb{E}\|\nabla F(x_t)\|^2, this gives

[1−Cdη2(1−1B)]ΨT≤ΔFηT+Cdη2B(D~T+Regret⁡~TT)+O(μ2).(37)\left[1-\frac{C_d\eta}{2}\left(1-\frac{1}{B}\right)\right]\Psi_T\le\frac{\Delta_F}{\eta T}+\frac{C_d\eta}{2B}\left(\widetilde{D}_T+\frac{\widetilde{\operatorname{Regret}}_T}{T}\right)+O(\mu^2). \tag*{(37)}

For Cdη(1−1/B)<2C_d\eta(1-1/B)<2, the coefficient on the left is positive. This coefficient is common to SAZO and a uniform shared-direction update. Along a given parameter trajectory, uniform sampling contributes U~T/B\widetilde{U}_T/B to the right-hand sampling term, whereas SAZO contributes (D~T+Regret⁡~T/T)/B(\widetilde{D}_T+\widetilde{\operatorname{Regret}}_T/T)/B. The same dynamic-oracle improvement established in the main analysis therefore persists in the minibatch bound. Setting B=1B=1 recovers the main descent lemma.

The same distinction matters for target drift. The coarse moment bound with an O(μ4)O(\mu^4) remainder gives

QT≤2NΛdη2(TD~T+Regret⁡~TB)+O(Tμ4),Q_T\le2N\Lambda_d\eta^2\left(T\widetilde{D}_T+\frac{\widetilde{\operatorname{Regret}}_T}{B}\right)+O(T\mu^4),

using ∥gˉt∥2≤aˉt2\|\bar{g}_t\|^2\le\bar{a}_t^2. Combining this inequality with the 12QT/rB212Q_T/r_B^2 term in Lemma 3 and the factor 8/(Nε)8/(N\varepsilon) in Lemma 2, the coefficient of regret on the right-hand side is

κB=192Λdη2BεrB2,κBκ=1B[ε/N1−(1−ε/N)B]2.(38)\kappa_B=\frac{192\Lambda_d\eta^2}{B\varepsilon r_B^2},\qquad \frac{\kappa_B}{\kappa}=\frac{1}{B}\left[\frac{\varepsilon/N}{1-(1-\varepsilon/N)^B}\right]^2. \tag*{(38)}

Here κ\kappa is the B=1B=1 coefficient at the same η\eta, ε\varepsilon, β\beta. Thus κB/κ=B−3[1+O(Bε/N)]\kappa_B/\kappa=B^{-3}[1+O(B\varepsilon/N)] when Bε/NB\varepsilon/N is small: sampling reduces the regret-dependent update moment by 1/B1/B, and the increased refresh rate reduces its tracking contribution by a further factor of approximately B2B^2. Theorem 3, with r=rBr=r_B and κμ=κB\kappa_\mu=\kappa_B, combines these effects with the remaining noise, exploration, and finite-difference terms. Its B=1B=1 specialization recovers the main convergence analysis.

Experimental settings

Detailed experiments on RoBERTa-large

We use the hyperparameters in Table 5 for SAZO experiments on RoBERTa-large. Regarding learning-rate scheduling and early stopping, we use a constant learning rate for all SAZO experiments. All SAZO experiments use β=0.05\beta=0.05, ε=0.1\varepsilon=0.1, and four burn-in passes. For Figure 2(a), we select the optimal constant learning rate for each method from {1,5}×{10−7,10−6,10−5}\{1,5\}\times\{10^{-7},10^{-6},10^{-5}\}; all other settings match the corresponding full-parameter experiments in Table 2.

ExperimentHyperparameterValues
SAZOBatch size64
Learning rate{10−7,10−6,10−5}\{10^{-7}, 10^{-6}, 10^{-5}\}
Perturbation radius μ\mu10−310^{-3}
Weight decay0
SAZO (prefix)Batch size64
Learning rate{10−2,5×10−3,10−3}\{10^{-2}, 5 \times10^{-3}, 10^{-3}\}
Perturbation radius μ\mu10−110^{-1}
Weight decay0
Prefix tokens5
SAZO (LoRA)Batch size64
Learning rate{10−5,5×10−5,10−4}\{10^{-5}, 5 \times10^{-5}, 10^{-4}\}
Perturbation radius μ\mu10−310^{-3}
Weight decay0.1
(r,α)(r, \alpha)(8,16)(8, 16)

Table 5. Hyperparameter grids used for SAZO experiments on RoBERTa-large.

Detailed results on various LLMs

We use the hyperparameters in Table 6 for SAZO experiments on GLMs. For Figure 2(b,Figure 2c), we select the optimal constant learning rate for each method and model from {1,5}×{10−7,10−6,10−5}\{1,5\}\times\{10^{-7},10^{-6},10^{-5}\}; all other settings match the corresponding experiments in Table 3.

ExperimentHyperparameterValues
SAZOBatch size16
Learning rate{10−6,5×10−7,10−7}\{10^{-6}, 5 \times10^{-7}, 10^{-7}\}
Perturbation radius μ\mu10−310^{-3}

Table 6. Hyperparameter grids used for GLM experiments. All weight decay is set to 0. SAZO uses 20K steps and constant learning rates.

Training-population scaling settings

Figure 3 uses full-parameter RoBERTa-large on SST-2 with training populations N=1,024N = 1{,}024, 2N=2,0482N = 2{,}048, 3N=3,0723N = 3{,}072, and 4N=4,0964N = 4{,}096. MeZO and SAZO use batch size 16, constant learning rate 10−610^{-6}, and 100K optimization steps. All learning-rate and checkpoint choices are fixed or validation-only; the test set is never used for selection. We report test accuracy averaged over seeds 13, 21, and 42, with population standard deviations as error bars.

Ablation experiment details

The ablations use one seed of full-parameter RoBERTa-large on SST-2 with k=512k = 512, a fixed 1,024-example training population, batch size 64, constant learning rate 3×10−63 \times10^{-6}, perturbation radius 10−310^{-3}, and zero weight decay. We initialize the importance scores by averaging directional magnitudes over four passes, then use sampling with replacement and inverse-probability-weighted parameter updates. The β\beta sweep in Figure 5 uses β∈{0.005,0.05,0.5,1}\beta\in\{0.005, 0.05, 0.5, 1\} at fixed ε=0.1\varepsilon= 0.1. The exploration sweep uses ε∈{0.05,0.1,0.5,1}\varepsilon\in\{0.05, 0.1, 0.5, 1\} at fixed β=0.05\beta= 0.05. Each plotted point is a forward-only mean-loss audit over the complete training population; audit queries are excluded from the update count. We retain every measured audit and apply neither curve smoothing nor extrapolation.

Figure 6 shows stable optimization across ε∈{0.05,0.1,0.5}\varepsilon\in\{0.05, 0.1, 0.5\}, indicating that SAZO is robust to substantial changes in the exploration rate. At the extreme ε=1\varepsilon= 1, the adaptive component vanishes and sampling becomes uniform; this trajectory eventually diverges under the same learning rate.

Figure 6. Exploration-coefficient ablation on SST-2. SAZO remains stable over ε∈{0.05,0.1,0.5}\varepsilon\in\{0.05, 0.1, 0.5\}, whereas ε=1\varepsilon= 1, which reduces to uniform sampling, becomes unstable.

Sample-importance diagnostics

The heterogeneity experiments use full-parameter RoBERTa-large under uniform MeZO training, with k=512k = 512, batch size 64, learning rate 10−610^{-6}, perturbation radius 10−310^{-3}, and zero weight decay. At frozen checkpoints, we compute exact per-example gradient norms over the trainable parameters. These gradients are used only for diagnostics. The oracle allocation is pi,t⋆=ai,t/∑jaj,tp^\star_{i,t} = a_{i,t}/\sum_j a_{j,t}, and relative importance is Npi,t⋆N p^\star_{i,t}. Top-10% sets are recomputed at each checkpoint; temporal changes are measured using Spearman rank correlation. For the SST-2 examples, the prompt appends It was <mask>., with great and terrible as the positive and negative verbalizers.

Figure 1(a) reports the exact audits at initialization, 10K, and 30K updates. We divide all three checkpoints by the median initial norm and fix the horizontal order using the initial norms, so a given position refers to the same training example at every checkpoint. Every example is shown as a point, without smoothing or aggregation.

Figure 7. Gradient-norm concentration across tasks. The top 10% of examples account for an increasing share of the total gradient norm across six tasks. The top set is recomputed at each checkpoint; the dashed line marks the approximately 10% uniform reference. Exact gradients are measured at frozen RoBERTa-large MeZO checkpoints.

Length and label controls. We group examples by label or by the joint pair of prompt token count and label, and optimize the allocation subject to equal probabilities within each group. For a partition G\mathcal{G}, the optimal group-restricted distribution is

bG,t=(1∣G∣∑i∈Gai,t2)1/2,pi,tg=bG(i),t∑G∈G∣G∣bG,t.b_{G,t}=\left(\frac{1}{|G|}\sum_{i\in G}a_{i,t}^{2}\right)^{1/2},\qquad p_{i,t}^{g}=\frac{b_{G(i),t}}{\sum_{G\in\mathcal{G}}|G|b_{G,t}}.

The fraction of the uniform-to-oracle variance gap remaining is [V~t(ptg)−V~t(pt⋆)]/[V~t(1/N)−V~t(pt⋆)][\widetilde{V}_{t}(p_{t}^{g})-\widetilde{V}_{t}(p_{t}^{\star})]/[\widetilde{V}_{t}(1/N)-\widetilde{V}_{t}(p_{t}^{\star})], evaluated at 20K updates.

Online versus fixed sampling. The SST-2 comparison uses a common initial model, batch size 64, perturbation radius 10−310^{-3}, and 30K updates. We scan constant learning rates in {10−6,3×10−6}\{10^{-6}, 3\times10^{-6}\}. SAZO uses β∈{0.025,0.05,0.075}\beta\in\{0.025,0.05,0.075\} and ε=0.1\varepsilon=0.1. The fixed sampler retains the initial exact gradient-norm-proportional distribution p0⋆p_{0}^{\star} without an exploration mixture; uniform sampling uses 1/N1/N. At each audit, the normalized instantaneous regret is

rt=V~t(pt)−V~t(pt⋆)V~t(pt⋆).(39)r_{t}=\frac{\widetilde{V}_{t}(p_{t})-\widetilde{V}_{t}(p_{t}^{\star})}{\widetilde{V}_{t}(p_{t}^{\star})}. \tag*{(39)}

Figure 1(b) reports relative cumulative regret,

∫0T[V~t(pt)−V~t(pt⋆)] dt∫0TV~t(pt⋆) dt.(40)\frac{\int_{0}^{T}[\widetilde{V}_{t}(p_{t})-\widetilde{V}_{t}(p_{t}^{\star})]\,dt}{\int_{0}^{T}\widetilde{V}_{t}(p_{t}^{\star})\,dt}. \tag*{(40)}

We integrate the numerator and denominator separately using the trapezoidal rule on all 61 recorded audits, spaced 500 updates apart from 0 to 30K, and then take their ratio. This differs from integrating rtr_t. The undefined ratio at T=0T=0 is omitted from the plot. Exact gradients at each method’s current parameters define its reference oracle. Loss is evaluated over the complete training population.

Interpretable sample-level structure

Figures 8 and 9 connect population-level changes in sample importance to the model’s predictions on individual inputs. Importance is measured by the normalized exact gradient norm N∥∇fi(xt)∥/∑j∥∇fj(xt)∥N\lVert\nabla f_i(x_t)\rVert/\sum_j\lVert\nabla f_j(x_t)\rVert at frozen RoBERTa-large MeZO checkpoints; a value of 1 corresponds to uniform allocation. These are diagnostic oracle quantities, rather than SAZO’s estimated scores. Detailed audit settings are given in Appendix § 11.§ 5.

Sample rankings change during training. Figure 8 compares each example’s importance at initialization and after 20K updates on SST-2 and TREC. Points above the diagonal gain relative importance, while those below lose it. The initial-to-20K Spearman correlations are 0.52 and 0.12, respectively, showing that the initial ranking does not reliably preserve subsequent allocation priorities.

Importance changes have interpretable sample-level structure. The four SST-2 cases A–D in Figure 9 link the scatter plot to predictions at initialization, 5K, and 20K updates. A (“a great cast”) stays correct and has low importance throughout. B (“over-dramatic at times”) becomes correct as its normalized importance falls from 3.113 to 0.230. C (“smug grin”) remains incorrect, while its importance rises from 2.863 to 11.170. D, containing both “amateurish” and “a minor treat,” becomes incorrect and rises from 0.805 to 10.930. For D, the absolute gradient norm also increases, so the rise is not solely due to other examples’ shrinking gradients.

Figure 9. Representative examples reveal interpretable importance changes. A–D correspond to the SST-2 points marked in Figure 8. Robot lights and status labels indicate correctness at each checkpoint. Numbers above the blue bars give the correct-class probability exp⁡(−fi(xt))\exp(-f_i(x_t)); numbers below give normalized gradient norms. Bars share a linear scale from 0 to 12, with 1 corresponding to uniform allocation. All gradient norms are exact audits at frozen MeZO checkpoints. The input template appends It was <mask>. Appendix § 11.§ 5 provides detailed settings and sample identities.

Together, the population shifts and these illustrative cases show that sample importance reflects the model’s evolving response to an input. Words, length, and labels remain fixed, yet predictions and gradient contributions change. An allocation based only on initial importance can therefore become stale, motivating continued tracking during optimization.

References

  1. [1]Liviu Aolaritei, Bart P. G. Van Parys, Henry Lam, and Michael I. Jordan. Stochastic optimization with optimal importance sampling. arXiv preprint arXiv:2504.03560, 2025. URL https://arxiv.org/abs/2504.03560.
  2. [2]Peter Auer, Nicolò Cesa-Bianchi, Yoav Freund, and Robert E. Schapire. The nonstochastic multiarmed bandit problem. SIAM Journal on Computing, 32(1):48–77, 2002. doi: 10.1137/S0097539701398375. URL https://doi.org/10.1137/S0097539701398375.
  3. [3]Zalan Borsos, Andreas Krause, and Kfir Y. Levy. Online variance reduction for stochastic optimization. In Conference On Learning Theory, volume 75, pages 324–357. PMLR, 2018. URL https://proceedings.mlr.press/v75/borsos18a.html.arxiv.org/abs/1802.04715
  4. [4]Zalán Borsos, Sebastian Curi, Kfir Yehuda Levy, and Andreas Krause. Online variance reduction with mixtures. In International Conference on Machine Learning, volume 97, pages 705–714. PMLR, 2019. URL https://proceedings.mlr.press/v97/borsos19a.html.arxiv.org/abs/1903.12416
  5. [5]Guillaume Bouchard, Théo Trouillon, Julien Perez, and Adrien Gaidon. Online learning to sample. arXiv preprint arXiv:1506.09016, 2016. URL https://arxiv.org/abs/1506.09016v2.
  6. [6]Xiangyi Chen, Sijia Liu, Kaidi Xu, Xingguo Li, Xue Lin, Mingyi Hong, and David Cox. ZO-AdaMM: Zeroth-order adaptive momentum method for black-box optimization. In Advances in Neural Information Processing Systems, 2019.
  7. [7]Yiming Chen, Yuan Zhang, Liyuan Cao, Kun Yuan, and Zaiwen Wen. Enhancing zeroth-order fine-tuning for language models with low-rank structures. In International Conference on Learning Representations, volume 2025, pages 62581–62607, 2025.
  8. [8]Sizhe Dang, Yangyang Guo, Yanjun Zhao, Xiaodong Zheng, Guang Dai, Ivor Tsang, and Haishan Ye. FZOO: Fast zeroth-order optimizer for fine-tuning large language models towards adam-scale speed. In International Conference on Learning Representations, 2026. URL https://arxiv.org/abs/2506.09034.
  9. [9]Hassan Dbouk, Nidham Gazagnadou, Matthias Reisser, and Christos Louizos. On adaptivity in zeroth-order optimization. arXiv preprint arXiv:2605.03869, 2026. URL https://arxiv.org/abs/2605.03869.
  10. [10]Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers), pages 4171–4186, 2019.
  11. [11]Ayoub El Hanchi and David A. Stephens. Adaptive importance sampling for finite-sum optimization and sampling with decreasing step-sizes. In Advances in Neural Information Processing Systems, volume 33, 2020. URL https://proceedings.neurips.cc/paper/2020/hash/b58f7d184743106a8a66028b7a28937c-Abstract.html.
  12. [12]Tanmay Gautam, Youngsuk Park, Hao Zhou, Parameswaran Raman, and Wooseok Ha. Variance-reduced zeroth-order methods for fine-tuning language models. arXiv preprint arXiv:2404.08080, 2024.
  13. [13]Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. LoRA: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685, 2021.
  14. [14]Angelos Katharopoulos and François Fleuret. Not all samples are created equal: Deep learning with importance sampling. In International Conference on Machine Learning, volume 80, pages 2525–2534. PMLR, 2018. URL https://proceedings.mlr.press/v80/katharopoulos18a.html.
  15. [15]Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015. URL https://arxiv.org/abs/1412.6980.
  16. [16]Xiang Lisa Li and Percy Liang. Prefix-tuning: Optimizing continuous prompts for generation. In Proceedings of the 59th annual meeting of the association for computational linguistics and the 11th international joint conference on natural language processing (volume 1: Long papers), pages 4582–4597, 2021.
  17. [17]Yanyi Li, Yimu Zhang, and Cong Fang. Prac: Principal-random subspace for llm activation compression and memory-efficient training. arXiv preprint arXiv:2602.23111, 2026.
  18. [18]Rui Liu, Tianyi Wu, and Barzan Mozaffari. Adam with bandit sampling for deep learning. In Advances in Neural Information Processing Systems, volume 33, 2020. URL https://arxiv.org/abs/2010.12986.
  19. [19]Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. RoBERTa: A robustly optimized BERT pretraining approach. arXiv preprint arXiv:1907.11692, 2019. URL https://arxiv.org/abs/1907.11692.
  20. [20]Shaocong Ma and Heng Huang. Revisiting zeroth-order optimization: Minimum-variance two-point estimators and directionally aligned perturbations. In International Conference on Learning Representations, volume 2025, pages 13267–13293, 2025.arxiv.org/abs/2510.19975
  21. [21]Sadhika Malladi, Tianyu Gao, Eshaan Nichani, Alex Damian, Jason D. Lee, Danqi Chen, and Sanjeev Arora. Fine-tuning language models with just forward passes. In Advances in Neural Information Processing Systems, 2023. URL https://arxiv.org/abs/2305.17333.
  22. [22]Hongseok Namkoong, Aman Sinha, Steve Yadlowsky, and John C. Duchi. Adaptive sampling probabilities for non-smooth optimization. In International Conference on Machine Learning, volume 70, pages 2574–2583. PMLR, 2017. URL https://proceedings.mlr.press/v70/namkoong17a.html.
  23. [23]Yurii Nesterov. Introductory Lectures on Convex Optimization: A Basic Course, volume 87 of Applied Optimization. Kluwer Academic Publishers, 2004. doi: 10.1007/978-1-4419-8853-9. URL https://doi.org/10.1007/978-1-4419-8853-9.
  24. [24]Yurii Nesterov and Vladimir Spokoiny. Random gradient-free minimization of convex functions. Foundations of Computational Mathematics, 17(2):527–566, 2017.
  25. [25]Farnood Salehi, L. Elisa Celis, and Patrick Thiran. Stochastic optimization with bandit sampling. arXiv preprint arXiv:1708.02544, 2017. URL https://arxiv.org/abs/1708.02544.
  26. [26]Yao Shu, Qixin Zhang, Kun He, and Zhongxiang Dai. Refining adaptive zeroth-order optimization at ease. In Proceedings of the International Conference on Machine Learning, 2025.arxiv.org/abs/2502.01014
  27. [27]Fei Wang, Li Shen, Liang Ding, Chao Xue, Ye Liu, and Changxing Ding. Universally empowering zeroth-order optimization via adaptive layer-wise sampling. In Findings of the Association for Computational Linguistics: ACL 2026, pages 40218–40239. Association for Computational Linguistics, 2026. URL https://aclanthology.org/2026.findings-acl.1999/.
  28. [28]Dun Zeng, Zenglin Xu, Yu Pan, Xu Luo, Qifan Wang, and Xiaoying Tang. Enhanced federated optimization: Adaptive unbiased client sampling with reduced variance. arXiv preprint arXiv:2310.02698, 2024. URL https://arxiv.org/abs/2310.02698v3.
  29. [29]Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shouhui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, Todor Mihaylov, Myle Ott, Sam Shleifer, Kurt Shuster, Daniel Simig, Punit Singh Koura, Anjali Sridhar, Tianlu Wang, and Luke Zettlemoyer. OPT: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068, 2022. URL https://arxiv.org/abs/2205.01068.
  30. [30]Boxin Zhao, Lingxiao Wang, Ziqi Liu, Zhiqiang Zhang, Jun Zhou, Chaochao Chen, and Mladen Kolar. Adaptive client sampling in federated learning via online learning with bandit feedback. Journal of Machine Learning Research, 26 (8):1–67, 2025a. URL https://jmlr.org/papers/v26/24-0385.html.
  31. [31]Yanjun Zhao, Sizhe Dang, Haishan Ye, Guang Dai, Yi Qian, and Ivor W. Tsang. Second-order fine-tuning without pain for LLMs: A hessian informed zeroth-order optimizer. In International Conference on Learning Representations, 2025c. URL https://arxiv.org/abs/2402.15173.

Paper details

vlnc:W_tuer2pqc
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Generative AI

View statement
Looking for related papers…
Contents