Manuscript Offprint
arXiv:2611.03293ENGINE: Endogenous Variational MultiScale Optimization for Zeroth-Order LLM Fine-Tuning
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Zeroth-order (ZO) optimization enables memory-efficient large language model (LLM) fine-tuning, and recent methods incorporate curvature-aware strategies. However, in the high-dimensional parameter space of LLMs, these methods inherently suffer from exploding gradient variance and prohibitive costs. Conversely, confining updates to a low-dimensional subspace reduces variance but discards critical high-dimensional information, degrading performance. This creates a fundamental dilemma: full-space optimization is informative but has high variance, while subspace optimization has low variance but loses information. To break this trade-off, we propose ENGINE (Endogenous Variational MultiScale). Inspired by computational mechanics, we adapt static Variational MultiScale (VMS) theory to dynamic optimization, treating low- and high-dimensional spaces as resolved coarse and unresolved fine scales. Through a multigrid-style V-cycle, ENGINE alternates between spaces, dynamically probing fine-grained information in the high-dimensional space and injecting it to correct the efficient low-dimensional sampling process. Under appropriate assumptions, statistical analysis characterizes variance reduction and correction of curvature-induced bias, and convergence analysis establishes a stationarity bound for the corrected coarse updates. Evaluations on standard LLM benchmarks show that ENGINE achieves higher accuracy and faster convergence than existing ZO methods, achieving up to a speed-up in forward passes with zero additional peak memory overhead. Code is available at https://github.com/AI4Science-WestlakeU/ENGINE.
1 Introduction
Large language model fine-tuning relies on first-order (FO) optimizers [Loshchilov et al., 2017]. However, FO training requires storing activations, gradients, and optimizer states, making it memory-intensive. Zeroth-order (ZO) optimization [Malladi et al., 2023] is therefore an appealing alternative: it uses only forward passes and reduces memory to near inference level. Still, in the full LLM parameter space, ZO methods suffer from high variance and high query cost [Nesterov and Spokoiny, 2017].
Table 1: Trade-offs between full-space and subspace ZO optimization. ✓ denotes a relative strength, and × a weakness.
| Space | Effic. | Var. | Perf. | Curv. |
|---|---|---|---|---|
| Full space | ✗ | ✗ | ✓ | ✓ |
| Subspace | ✓ | ✓ | ✗ | ✗ |
| ENGINE (Ours) | ✓ | ✓ | ✓ | ✓ |
Work done as an intern at Westlake University.
Corresponding author.
40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure 1: Left: Forward-pass and wall-clock speed-up of ENGINE over LOREN to reach LOREN's best accuracy, across four representative (model, task) settings. Right: Validation accuracy convergence on LLaMA-3-8B (CB).
LoRA [Hu et al., 2021] offers a lower-dimensional alternative by restricting updates to a low-rank subspace, improving efficiency and usually reducing variance. But this also discards fine-grained curvature information from the full space, which can slow convergence and degrade performance.
This leads to a central dilemma in zeroth-order optimization (Table 1): full-space optimization is informative but high-variance, while subspace optimization is low-variance but blind. Recent curvature-aware ZO methods, such as LOREN [Seung et al., 2026], reduce estimator variance through anisotropic perturbations [Kool et al., 2019]. Even so, existing methods usually stay in one space only: either the full parameter space or a low-rank subspace such as LoRA. They therefore gain only one side of the trade-off. Full-space methods retain richer information but are statistically costly, while subspace methods are more efficient but inevitably lose part of the curvature structure that is present in the full space. This motivates a simple question: can we keep the efficiency of low-dimensional sampling while still using curvature information from the full space? We approach this question through Variational MultiScale (VMS) theory [Hughes, 1995, Hughes et al., 1998] from computational mechanics. VMS separates a problem into a resolved coarse scale and an unresolved fine scale, then uses a correction term [Hughes et al., 2000] to account for the effect of the unresolved part. This viewpoint suggests a natural way to think about low-dimensional and high-dimensional spaces in zeroth-order optimization.
Based on this idea, we propose ENGINE (Endogenous Variational MultiScale). We treat the low-dimensional LoRA parameterization as the resolved coarse scale and incorporate unresolved full-space curvature through a fine-scale correction. Unlike classical VMS, the optimization operator evolves with the optimization state, so the interaction between the two spaces must be updated dynamically. ENGINE addresses this with an endogenous V-cycle that alternates between the two spaces during training. Through a closed-form subgrid correction, it uses fine-scale information from the high-dimensional space to correct the efficient low-dimensional update.
Experiments on standard LLM optimization benchmarks show that ENGINE consistently improves over state-of-the-art zeroth-order baselines, including LOREN. It achieves better downstream accuracy, faster convergence, and up to a speed-up in forward passes (Figure 1), while keeping peak memory usage unchanged.
Our contributions are summarised as follows.
-
A cross-disciplinary perspective. We introduce the idea of Variational MultiScale (VMS) from computational mechanics into zeroth-order LLM fine-tuning. This perspective clarifies why unresolved fine-scale curvature matters and provides a systematic way to describe the interaction between low-dimensional and high-dimensional optimization spaces.
-
The framework of ENGINE. We propose ENGINE, an endogenous Variational MultiScale framework for zeroth-order optimization that combines low-rank sampling with a closed-form subgrid correction, thereby reintroducing unresolved full-space curvature into the coarse update. Under appropriate assumptions, we rigorously analyze the bias and variance of the corrected estimator. We also establish a stationarity bound for coarse updates.

Figure 2: Test accuracy on all 16 (model, task) combinations. Top row: GPT-2-XL (GLUE, FP32) and OPT-2.7B (GLUE, FP32). Bottom row: LLaMA-3-8B (SuperGLUE, BF16) and OPT-13B (SuperGLUE, BF16). ENGINE is shown in blue hatched. Full numerical values are in Appendix E.1.
• Consistent improvements. Extensive experiments across diverse LLM fine-tuning settings demonstrate that ENGINE improves both downstream performance and convergence speed over state-of-the-art zeroth-order baselines (Figure 2). These gains come with up to a speed-up in forward passes and no additional peak memory overhead.
2.1 Zeroth-Order Setting & Notation Setup
Notation. We denote vectors by lowercase bold and matrices by uppercase bold, where is the Kronecker product and the Euclidean norm. For a weight matrix , let with (multi-layer models are handled block-wise). We minimize using only function-value queries, where is the data distribution.
Rank-1 Kronecker curvature. Full Hessian storage costs memory. K-FAC [Martens and Grosse, 2015] and Shampoo [Gupta et al., 2018] exploit matrix structure to reduce preconditioning costs. Following LOREN, we use the compact vector parameterization:
where captures anisotropy shared across blocks, and damping ensures positive definiteness. Storing costs . The inverse and inverse square root admit closed forms with application cost, avoiding dense matrices. Section 3 extends this approximation to multiple scales.
Curvature as covariance. For and smoothing radius , the symmetric finite-difference estimator [Spall, 1992] is . Its expectation is the gradient of the Gaussian-smoothed loss. Generalized Gaussian smoothing extends this to anisotropic perturbations , and setting yields the NES identity [Wierstra et al., 2014]

Figure 3: ENGINE overview. Left: the gap between the restricted fine direction and the coarse direction defines the subgrid correction . Middle: V-cycle alternates Coarse () and Fine () phases, with every steps a fine probe refreshing and (Hessian refresh), while VMS-EO () injects the subgrid correction into each coarse step. Right: classical VMS uses a fixed operator , while ENGINE uses the dynamic Hessian .
, so preconditioning by corresponds to larger ZO perturbations along directions of lower estimated curvature.
2.2 Variational MultiScale Method
The Variational MultiScale (VMS) method decomposes problems into resolved (coarse) and unresolved (fine) scales. Let be a bounded domain, a function space over with dual , and a linear operator, where the symmetric bilinear form uses the inner product . The weak problem seeks such that for all test functions . VMS decomposes into coarse and fine subspaces, so that and with and . The fine scale is driven by the coarse residual . Following the sign convention of Hughes [1995], the fine-scale solution operator includes the negative sign, so . Substitution yields the closed coarse equation:
where is the adjoint of , and the second term in (2) is the subgrid correction encoding unresolved-scale feedback. In our setting, , , and correspond to the LoRA-space update, unresolved full-space curvature, and endogenous Hessian operator , respectively. The subgrid correction corresponds to the VMS-EO fine-scale curvature injection developed in Sec. 3.
3 Method
Building on the rank-1 curvature primitive (, ) from Eq. (1) and the VMS formulation coupling coarse and fine scales from Eq. (2), this section develops and analyzes ENGINE (Figure 3). §3.1 contrasts the rigid linear operator of classical VMS with the dynamic Hessian of optimization, motivating why classical VMS cannot be ported verbatim. §3.2 derives the central correction and its rank-1 LoRA-branch surrogate. §3.3 embeds VMS-EO into a V-cycle so that the endogenous state is refreshed across phases. §3.4 then quantifies how coarse sampling and exact subgrid correction affect variance and bias relative to a common target.
The multiscale state is carried by three rank-1 curvature vectors: the full-space and the two LoRA-branch curvatures , . We instantiate the resolved coarse scale by a rank- LoRA factorization with , and , so the coarse parameter has dimension , much smaller than . Fine-scale information is obtained from the full parameter space and used to correct curvature effects not captured by the coarse model.
3.1 Endogenous Operator: Why Classical VMS Fails?
Classical VMS starts from a linear problem with operator fixed by the underlying physics, which is what allows the unresolved component to be eliminated analytically in closed form (Figure 3 Right, top). In optimization the analogous linear equation is the Newton step , giving the correspondence . Unlike , however, co-evolves with the iterate (Figure 3 Right, bottom), so the closure cannot be derived once and for all but must be refreshed periodically by the V-cycle of §3.3. We call this state-dependent operator an endogenous operator and the resulting subgrid correction VMS-EO.
Coarse increments are represented by changes in the LoRA factors. The prolongation operator lifts a coarse update to the full space (the differential of the LoRA product), and the restriction operator with and maps a full-space matrix to the two LoRA gradient blocks. The two operators are formal adjoints under the Frobenius inner product, , i.e., for all .
At LLM scale, cannot be formed, so ENGINE inherits LOREN's rank-1 Kronecker as the practical operator with preconditioner . Given parameter and curvature , LOREN draws anisotropic perturbations where to simultaneously form RLOO estimators for both parameter and curvature gradients:
where , , and the closed form of the score function is given in LOREN Eq. (10). The two estimators share the same batch , so each step costs only forward passes. ENGINE samples in LoRA coordinates with (3) to avoid -scale variance, while injecting full-space curvature feedback as a subgrid correction back into the coarse phase.
3.2 VMS-EO Subgrid Correction
To construct the correction in Figure 3 (Left), we first identify where coarse and fine directions differ. Lemma 3.1 establishes exact restriction of first-order gradients. Proposition 3.2 then gives the curvature mismatch introduced by preconditioning. This residual supplies the corrected LoRA updates in Eqs. (7) and (8).
Closed-Form Curvature Correction. Let denote a full-space gradient-like matrix. Deterministically , while in the ZO implementation it is replaced by the RLOO estimator.
Lemma 3.1 (chain rule). LoRA restriction commutes with first-order differentiation: . Proof in Appendix B.1.
Lemma 3.1 shows that restricting the exact fine-space gradient gives the coarse-space gradient. Curvature preconditioning introduces a mismatch between the two directions. Let be the rank-1 Kronecker covariances built from (Sherman-Morrison forms in Appendix B.2), and . In general , so the two preconditioned directions can differ in both magnitude and orientation. This gap defines the subgrid residual:
with branch components and . The following result expresses each branch residual through the rank-1 curvature vectors.
Proposition 3.2 (closed-form subgrid residual). Under the rank-1 surrogates above with , the branch residuals are:
Proof in Appendix B.2.
Lemma 3.1 and Proposition 3.2 together identify as the second-order curvature gap that VMS-EO must inject. We now describe the corrected coarse update.
Rank-1 Surrogate for LoRA Branches. Let be the pure coarse preconditioned direction, which equals the LoRA-space LOREN direction without any VMS-EO correction. VMS-EO simply adds a branch-weighted subgrid correction , where recovers LoRA-space LOREN and a larger injects more fine-grid curvature feedback. The two branches carry independent weights .
VMS-EO corrected updates. Let and denote the preconditioned RLOO directions for the two LoRA branches from Eq. (3). With branch step sizes , the corrected updates are:
Implementation details are given in Appendix D.1.
Adaptive mixing weights. Proposition C.7 characterizes an oracle mixing weight that minimizes the estimation MSE. Since it depends on unknown correction and error statistics, we use normalized angular disagreement between coarse and fine curvature directions as a practical proxy for selecting . For the B-branch we use the formula below, and the A-branch is analogous after replacing with and the projection with :
When approaches zero the two curvature directions become aligned, so falls to and the correction receives its minimum mixing weight. When approaches one the directions diverge, so rises to and injects more fine-grid feedback.
3.3 ENGINE: V-cycle Coupling
ENGINE alternates between -epoch coarse () and -epoch fine () phases (Figure 3 Middle), updating the base in only at phase boundaries. A cyclic schedule couples them, using and operators to transfer parameters, momentum, and curvature.
Two-phase schedule. Coarse phase. ENGINE updates via Eqs. (7) and (8) and uses (3) to take one curvature step per branch with learning rate (Algorithm 1, line 6). Crucially, the RLOO samples are reused from those already drawn for , so this curvature step costs no additional forward passes. The operator is endogenous, however, so goes stale across coarse steps and causes to inject outdated information through its dependence. We therefore trigger a Hessian refresh every coarse steps as illustrated in Algorithm 1, where extra full-space perturbations update using (3) with learning rate together with the projection scalars in Proposition 3.2 while , , and remain unchanged. This refresh-and-reuse strategy parallels Lazy Hessian [Doikov et al., 2023], which also recomputes curvature every steps and reuses it in between to cut arithmetic cost without sacrificing convergence.
Fine phase. ENGINE returns to the full parameter space and applies -preconditioned LOREN steps from Eq. (3) to , simultaneously refreshing for the next coarse phase.
Prolongation from coarse to fine. The coarse update BA is absorbed into the base weight . We save the current as before reinitialization. This cached matrix maps vectors from to during the next transition from fine to coarse. Branch momenta combine into via the LoRA product rule, and curvature is EMA-blended with weight . Algorithm 1 specifies the transfers.
Restriction from fine to coarse. We set the base weight to , rescale , and reset to zero so that holds exactly at cycle start. Momentum is projected onto the two branches via with default damping factor , and the two branch curvatures use the cached basis . Algorithm 1 gives these transfer formulas.
Algorithm 1 ENGINE (see Appendix D for details).
Require: frozen , dataset , rank , cycles , coarse/fine epochs , queries , smoothing , damping , learning rates , mixing range , transfer weight , fine-probe interval (every coarse steps, refresh and ).
1: Initialize randomly, set , and initialize .
2: for do
3: Coarse phase ( epochs in ): Coarse space
4: for steps/epoch do
5: Draw LoRA perturbations and estimate via (3).
6: , on the same samples.
7: if then
8: via (3). Hessian refresh, extra fwd
9: Update via (9).
10: end if
11: Compute via Prop. 3.2 (Eqs. (5) and (6)). VMS-EO
12: Update via Eqs. (7) and (8).
13: end for
14: Prolongation (): , , , .
15: Fine phase ( epochs in ): LOREN on with , queries via (3), updating . Fine space
16: Restriction (): , rescale , , , , , .
17: end for
18: return .
ENGINE maintains only the LoRA factors and the rank-1 curvature vectors , never explicitly storing a full Hessian. Algorithm 1 summarizes the procedure, and implementation details are in Appendix D.
3.4 Statistical and Convergence Analysis
We provide a detailed analysis of the trade-off between bias and variance in ENGINE. Under appropriate assumptions, coarse sampling reduces the dimension-dependent variance bound and exact correction eliminates structural bias in the local-linear limit. We also establish convergence bounds for coarse updates.
Fix the current weights, LoRA factors, and covariances. Subscripts and denote fine and coarse spaces. In row-wise vector coordinates, let be the full-space gradient and the gradient with respect to . The coarse direction is , and the common comparison target is . Thus Eq. (4) gives .
We use a Gaussian estimator with independent directions and smoothing radius . Write and draw independently. Define:
Here stacks B- and A-branch perturbations of dimensions and , with . The covariance has blocks of sizes and , respectively. Implementation uses RLOO from Eq. (3). The next result isolates the effect of exact correction in the local-linear limit, where the smoothing bias vanishes.
Proposition 3.3 (Common-target error with exact correction). Suppose has a Lipschitz continuous gradient and is fixed and positive definite. As with fixed, Eq. (10) converges in mean square to . Its mean is and its trace variance is:
With exact deterministic correction and both branch weights equal to one, the common-target errors satisfy:
Theorem C.3 proves the stated mean-square limit of the Gaussian estimator . Lemma C.2 gives Eq. (11), and Proposition C.4 yields Eqs. (12) and (13) in the limit. Proof in Appendix C.3.3.
Variance reduction and bias correction. For isotropic sampling with , Eq. (11) reduces to , compared with the fine-space factor . For anisotropic sampling with fixed positive-definite and , the same equation gives the upper bound . Under comparable gradient and spectral scales, reduces the dimension-dependent variance bound. In the local-linear limit, Proposition C.4 shows that exact correction eliminates the structural bias relative to while preserving the coarse sampling variance, decreasing MSE by . Ideal ENGINE thus combines coarse-space variance reduction with structural-bias elimination. Appendix C.3 gives finite-radius bounds and a common-target comparison in Table 4.
For finite smoothing radius and -smooth , Theorem C.3 in Appendix C.2 gives with and held fixed. Here is the residual smoothing bias. Proposition C.4 gives the MSE reduction , quantifying the effect of this remaining bias. For approximate corrections, Proposition C.5 accounts for their bias, variance, and dependence on the coarse estimate. Proposition C.6 in Appendix C.4 separates row compression error from scalar coefficient mismatch.
Convergence analysis. Consider the ideal Gaussian update on a fixed coarse objective . Under the assumptions in Appendix C.6, Theorem C.9 gives the following bound for the prescribed :
Here T counts iterations. The bound separates optimization decay from the smoothing residual, with coarse-dimensional sampling constants. Corollary C.10 extends the bound to approximate corrections, with correction bias affecting the residual and correction variance affecting the sampling constants.
4 Experiments
We evaluate ENGINE on 16 (model, task) combinations, assessing accuracy, efficiency, and the contributions of V-cycle and VMS-EO.
4.1 Experimental Setup and Main Results
Setup. We evaluate four autoregressive LLMs of size 1.5B to 13B, namely GPT-2-XL [Radford et al., 2019], OPT-2.7B and OPT-13B [Zhang et al., 2022], and LLaMA-3-8B [Grattafiori et al., 2024], on 16 prompt-free classification tasks drawn from GLUE [Wang et al., 2018] and SuperGLUE [Wang et al., 2019]. We compare ENGINE against LOREN together with five other ZO baselines, whose full list and background appear in Appendix A. All baselines are independently reproduced under LOREN's setup. On top of this protocol, ENGINE introduces only two new hyperparameters. The C60F60 V-cycle alternates 60 coarse epochs with 60 fine epochs, and the curvature refresh interval S is set per (model, task) combination as listed in Table 8. The LoRA rank r scales with model size. We report mean accuracy (%) over five seeds for all tasks. See Appendices E and F for details.
Main results. Table 2 and Figure 2 show that ENGINE outperforms LOREN and other baseline methods on every (model, task) cell. Representative training curves appear in Figure 4.
Efficiency and memory. Figure 1 further shows that on every setting, ENGINE reaches LOREN's best accuracy with substantially fewer forward passes and less wall-clock time, achieving up to a forward-pass speed-up and a wall-clock speed-up on LLaMA-3-8B (CB). Meanwhile,
Table 2: Main results using accuracy (%) for all tasks. Bold and cyan mark the best and second best per column. Highlighted rows give ENGINE and its absolute gain over LOREN. Full results in Appendix E.1.
| GLUE (FP32)Method | GPT-2-XL (1.5B) | OPT-2.7B | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| MNLI | QNLI | SST-2 | CoLA | Avg. | MNLI | QNLI | SST-2 | CoLA | Avg. | |
| MeZO | 38.4 | 59.2 | 74.3 | 65.8 | 59.4 | 50.4 | 75.2 | 88.7 | 68.4 | 70.7 |
| MeZO-Adam | 50.8 | 71.9 | 91.2 | 71.4 | 71.3 | 45.9 | 72.3 | 86.9 | 68.5 | 68.4 |
| MeZO-SVRG | 49.8 | 65.5 | 84.5 | 65.6 | 66.4 | 41.5 | 59.8 | 62.9 | 66.5 | 57.7 |
| LOZO | 42.9 | 60.6 | 80.0 | 66.2 | 62.4 | 43.2 | 59.5 | 66.2 | 66.3 | 58.8 |
| HiZOO | 48.4 | 66.8 | 88.9 | 71.2 | 68.8 | 50.9 | 74.7 | 88.2 | 66.3 | 70.0 |
| LOREN | 50.6 | 74.1 | 89.0 | 72.0 | 71.4 | 54.1 | 72.6 | 88.2 | 68.1 | 70.8 |
| ENGINE (Ours) | 52.0 | 77.0 | 91.8 | 72.7 | 73.4 | 55.5 | 75.4 | 91.0 | 69.5 | 72.9 |
| Δ vs LOREN | +1.4 | +2.9 | +2.8 | +0.7 | +2.0 | +1.4 | +2.8 | +2.8 | +1.4 | +2.1 |
| SuperGLUE (BF16)Method | LLaMA-3-8B | OPT-13B | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| RTE | BoolQ | WiC | CB | Avg. | RTE | BoolQ | WiC | CB | Avg. | |
| MeZO | 59.1 | 64.0 | 59.3 | 71.5 | 63.5 | 59.0 | 64.4 | 57.1 | 72.7 | 63.3 |
| MeZO-Adam | 58.7 | 63.2 | 57.1 | 68.9 | 62.0 | 60.8 | 63.4 | 55.7 | 70.2 | 62.2 |
| MeZO-SVRG | 58.2 | 63.1 | 58.0 | 64.9 | 61.1 | 59.3 | 65.2 | 56.8 | 69.4 | 62.7 |
| LOZO | 57.8 | 63.6 | 57.2 | 71.1 | 62.4 | 58.2 | 63.4 | 57.7 | 68.8 | 62.0 |
| HiZOO | 58.2 | 63.6 | 59.2 | 67.1 | 62.0 | 59.5 | 63.7 | 57.0 | 72.7 | 63.2 |
| LOREN | 58.4 | 64.5 | 58.9 | 72.4 | 63.6 | 59.5 | 63.2 | 57.0 | 73.7 | 63.4 |
| ENGINE (Ours) | 59.8 | 66.0 | 59.8 | 73.2 | 64.7 | 62.1 | 65.2 | 59.0 | 79.1 | 66.4 |
| Δ vs LOREN | +1.4 | +1.5 | +0.9 | +0.8 | +1.1 | +2.6 | +2.0 | +2.0 | +5.4 | +3.0 |

Figure 4: Visualization of validation accuracy on GPT-2-XL across three GLUE tasks (MNLI, QNLI, SST-2). ENGINE reaches higher peak accuracy than all baselines on every task. See Appendix E.2 for training loss curves and all four models.
ENGINE's peak GPU memory matches LOREN's, because the fine phase is equivalent to vanilla LOREN and determines the peak, while the coarse phase only stores LoRA-scale optimizer and curvature states. Table 11 compares all methods at common target accuracies.
4.2 Ablation: Where does ENGINE's gain originate from?
Setup and design. We compare LOREN, ENGINE w/o VMS-EO, and ENGINE on the same 16 settings, with other settings matched (Appendix F). The variant without VMS-EO retains the V-cycle and disables the correction. Its comparison with LOREN isolates the V-cycle's contribution, while its comparison with full ENGINE isolates the correction's contribution to performance.
Table 3: Ablation accuracy (%) on all 16 settings. Bold marks the best per column, and cyan marks the second best. The highlighted row is our method, with the green vs LOREN row showing the absolute gain. Full results in Appendix E.
| GLUE (FP32)Method | GPT-2-XL (1.5B) | OPT-2.7B | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| MNLI | QNLI | SST-2 | CoLA | Avg. | MNLI | QNLI | SST-2 | CoLA | Avg. | |
| LOREN | 50.6 | 74.1 | 89.0 | 72.0 | 71.4 | 54.1 | 72.6 | 88.2 | 68.1 | 70.8 |
| ENGINE w/o VMS-EO | 48.8 | 72.7 | 90.2 | 71.5 | 70.8 | 54.7 | 73.8 | 89.5 | 69.1 | 71.8 |
| ENGINE (Ours) vs LOREN | 52.0+1.4 | 77.0+2.9 | 91.8+2.8 | 72.7+0.7 | 73.4+2.0 | 55.5+1.4 | 75.4+2.8 | 91.0+2.8 | 69.5+1.4 | 72.9+2.1 |
| SuperGLUE (BF16)Method | LLaMA-3-8B | OPT-13B | ||||||||
| RTE | BoolQ | WiC | CB | Avg. | RTE | BoolQ | WiC | CB | Avg. | |
| LOREN | 58.4 | 64.5 | 58.9 | 72.4 | 63.6 | 59.5 | 63.2 | 57.0 | 73.7 | 63.4 |
| ENGINE w/o VMS-EO | 58.2 | 65.2 | 57.8 | 71.4 | 63.2 | 59.0 | 64.1 | 57.8 | 75.0 | 64.0 |
| ENGINE (Ours) vs LOREN | 59.8+1.4 | 66.0+1.5 | 59.8+0.9 | 73.2+0.8 | 64.7+1.1 | 62.1+2.6 | 65.2+2.0 | 59.0+2.0 | 79.1+5.4 | 66.4+3.0 |
4.3 Analysis: Attributing the Dual-Scale Benefits of ENGINE
Result. Table 3 yields two observations. First, ENGINE w/o VMS-EO has a mix of wins and losses against LOREN across the 16 settings. Second, ENGINE achieves higher accuracy than both LOREN and ENGINE w/o VMS-EO across all four models. Table 6 gives the full meanstd results, and Figure 9 shows the ablation convergence curves.
Analysis. The two observations identify distinct contributions.
- The V-cycle alone achieves mixed gains against LOREN. Coarse sampling in dimensions reduces the variance bound under comparable gradient and spectral scales (Proposition 3.3). The second-order restriction mismatch in Proposition 3.2 biases the uncorrected coarse direction and can offset this variance benefit. Alternating fine phases retain full-space curvature-aware optimization, while coarse phases reduce per-step cost.
- Incorporating VMS-EO yields consistent performance gains. By feeding full-space curvature information back into the subspace through Eqs. (7) and (8), VMS-EO corrects the structural bias. Proposition 3.3 shows that exact correction eliminates this bias without increasing coarse sampling variance in the local-linear limit. Combining coarse sampling with curvature correction thus helps explain ENGINE's gains over LOREN and the uncorrected V-cycle.
5 Conclusions
In this paper, we propose ENGINE, a zeroth-order LLM fine-tuning framework inspired by Variational MultiScale (VMS) theory from computational mechanics. From the VMS perspective, we treat the LoRA parameter space as the coarse space and the full parameter space as the fine space. By reformulating VMS with an endogenous, state-dependent Hessian, we derive the VMS-EO subgrid correction to incorporate fine-space curvature information into coarse updates. ENGINE integrates this correction into an alternating V-cycle that couples the two spaces through mutual feedback. Our statistical analysis shows that, under the stated assumptions, coarse sampling reduces the dimension-dependent variance bound and exact subgrid correction eliminates curvature-mismatch bias in the local-linear limit. We further derive nonconvex stationarity bounds for corrected coarse updates. Across 16 model-task settings, ENGINE consistently outperforms state-of-the-art ZO baselines, achieving substantial forward-pass and wall-clock speed-ups with no additional peak memory overhead. More broadly, this work provides a multiscale perspective on optimization, showing how efficient low-dimensional updates can be guided by full-space curvature information. We hope this perspective inspires further connections between multiscale modeling and optimization. Appendix H discusses limitations and future work.
Acknowledgments and Disclosure of Funding
We gratefully acknowledge the support of Westlake University Research Center for Industries of the Future and Westlake University Center for High-performance Computing.
The authors declare no competing interests.
References
Yiming Chen, Yuan Zhang, Liyuan Cao, Kun Yuan, and Zaiwen Wen. Enhancing zeroth-order fine-tuning for language models with low-rank structures. arXiv preprint arXiv:2410.07698, 2024.
Nikita Doikov, Martin Jaggi, et al. Second-order optimization with lazy hessians. In International Conference on Machine Learning, pages 8138–8161. PMLR, 2023.
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.
Aaron Grattafori, Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Alex Vaughan, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024.
Vineet Gupta, Tomer Koren, and Yoram Singer. Shampoo: Preconditioned stochastic tensor optimization. In International Conference on Machine Learning, pages 1842–1850. PMLR, 2018.
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.
Thomas JR Hughes. Multiscale phenomena: Green's functions, the dirichlet-to-neumann formulation, subgrid scale models, bubbles and the origins of stabilized methods. Computer methods in applied mechanics and engineering, 127(1-4):387–401, 1995.
Thomas JR Hughes, Gonzalo R Feijóo, Luca Mazzei, and Jean-Baptiste Quincy. The variational multiscale method—a paradigm for computational mechanics. Computer methods in applied mechanics and engineering, 166(1-2):3–24, 1998.
Thomas JR Hughes, Luca Mazzei, and Kenneth E Jansen. Large eddy simulation and the variational multiscale method. Computing and visualization in science, 3(1):47–59, 2000.
Wouter Kool, Herke van Hoof, and Max Welling. Buy 4 reinforce samples, get a baseline for free! 2019.
Vladislav Lialin, Sherin Muckatira, Namrata Shivagunde, and Anna Rumshisky. ReloRA: High-rank training through low-rank updates. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=DLJznSp6X3.
Ilya Loshchilov, Frank Hutter, et al. Fixing weight decay regularization in adam. arXiv preprint arXiv:1711.05101, 5(5):5, 2017.
Sadhika Malladi, Tianyu Gao, Eshaan Nichani, Alex Damian, Jason D Lee, Danqi Chen, and Sanjeev Arora. Fine-tuning language models with just forward passes. Advances in Neural Information Processing Systems, 36:53038–53075, 2023.
James Martens and Roger Grosse. Optimizing neural networks with kronecker-factored approximate curvature. In International conference on machine learning, pages 2408–2417. PMLR, 2015.
Yurii Nesterov and Vladimir Spokoiny. Random gradient-free minimization of convex functions. Foundations of Computational Mathematics, 17(2):527–566, 2017.
Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
Hyunseok Seung, Jaewoo Lee, and Hyunsuk Ko. Low-rank curvature for zeroth-order optimization in llm fine-tuning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 40, pages 25235–25242, 2026.
James C Spall. Multivariate stochastic approximation using a simultaneous perturbation gradient approximation. IEEE transactions on automatic control, 37(3):332–341, 1992.
Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. Glue: A multi-task benchmark and analysis platform for natural language understanding. In Proceedings of the 2018 EMNLP workshop BlackboxNLP: Analyzing and interpreting neural networks for NLP, pages 353–355, 2018.
Alex Wang, Yada Pruksachatkun, Nikita Nangia, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel Bowman. Superglue: A stickier benchmark for general-purpose language understanding systems. Advances in neural information processing systems, 32, 2019.
Daan Wierstra, Tom Schaul, Tobias Glasmachers, Yi Sun, Jan Peters, and Jürgen Schmidhuber. Natural evolution strategies. The Journal of Machine Learning Research, 15(1):949–980, 2014.
Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui 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, 2022. URL https://arxiv.org/abs/2205.01068.
Yanjun Zhao, Sizhe Dang, Haishan Ye, Guang Dai, Yi Qian, and Ivor Tsang. Second-order fine-tuning without pain for llms: A hessian informed zeroth-order optimizer. In International Conference on Learning Representations, volume 2025, pages 43496–43520, 2025.
Appendix — Table of Contents
A Related Work 14
B Structural Derivations and Proofs 14
B.1 Proof of Lemma 3.1 (LoRA chain rule) ..... 14
B.2 Proof of Proposition 3.2 (subgrid residual) ..... 15
C Theoretical Analysis 15
C.1 Setup and assumptions ..... 15
C.2 Bias and variance of Gaussian estimators ..... 16
C.3 Common-target MSE and exact correction ..... 18
C.4 Scalar approximation error ..... 21
C.5 Oracle-optimal mixing ..... 21
C.6 Convergence under positive alignment ..... 22
D Implementation Details 25
D.1 Scalar correction and update ..... 25
E Detailed Experiments and Results 26
E.1 Full Results and Ablation ..... 26
E.2 Additional Convergence Curves ..... 26
F Experimental Setup and Hyperparameters 29
F.1 Hyperparameter Sensitivity ..... 30
G Efficiency Analysis 31
H Limitations and Future Work 31
A Related Work
ENGINE connects research on zeroth-order optimization, low-rank adaptation, and Variational MultiScale theory. These three lines of research motivate its sampling strategy, parameter spaces, and correction mechanism.
Zeroth-order LLM fine-tuning. Zeroth-order methods estimate gradients from function evaluations and reduce the memory required for LLM fine-tuning. MeZO uses in-place parameter perturbations to achieve memory usage comparable to inference. Its gradient estimates have high variance, which can slow optimization. MeZO-SVRG [Gautam et al., 2024] uses periodic reference gradients to reduce this variance, with additional memory for stored parameters and gradients. LOZO [Chen et al., 2024] exploits the low-rank structure of gradients to reduce the dimension of gradient estimation. Curvature information provides another way to improve the search direction. HiZOO [Zhao et al., 2025] estimates the diagonal Hessian and uses it to precondition the update. LOREN uses a low-rank Kronecker approximation to incorporate curvature into perturbation sampling. ENGINE builds on this curvature representation, combining LoRA sampling with full-parameter updates. Its subgrid correction injects full-space curvature information into coarse updates.
Low-rank adaptation. LoRA represents a weight update as the product of two small matrices and optimizes their entries while keeping the base weight fixed. This reduces the number of trainable parameters and provides the coarse coordinates used by ENGINE. ReLoRA [Lialin et al., 2024] periodically merges the low-rank update into the base weight and reinitializes the low-rank factors. Successive updates can therefore accumulate in the full weight matrix. ReLoRA uses this procedure within first-order training. ENGINE combines parameter merging with alternating LoRA and full-space ZO updates, transferring momentum and curvature between the two spaces.
Variational MultiScale theory. Variational MultiScale (VMS) theory originates in computational mechanics. It separates a problem into resolved coarse scales and unresolved fine scales. The effect of the fine scales enters the coarse equation through a subgrid correction. In the classical linear formulation, the governing operator is fixed by the physical problem and determines this correction. ENGINE brings this perspective into zeroth-order optimization. The LoRA coordinates define the coarse space, and the correction accounts for curvature information lost when forming the coarse update. The curvature operator is estimated online and evolves during optimization. This state dependence motivates VMS with an Endogenous Operator.
B Structural Derivations and Proofs
In this appendix, we prove the LoRA chain rule and derive the subgrid residual formulas.
B.1 Proof of Lemma 3.1 (LoRA chain rule)
Proof. With fixed, differentiating gives:
The Frobenius inner product and cyclic trace identity give:
Matching the coefficients of the independent differentials gives the components of :
□
B.2 Proof of Proposition 3.2 (subgrid residual)
Proof. For and , the Sherman-Morrison identity gives:
The Kronecker structure of applies independently to each row of . Equation (B.1) therefore gives:
Applying yields:
For the coarse direction, apply Eq. (B.1) with and to each row of to obtain:
Subtracting the coarse direction from the restricted fine direction cancels the terms and gives:
which proves Eq. (5).
The same calculation with and the A-branch covariance gives:
which proves Eq. (6).
C Theoretical Analysis
This appendix presents the statistical and convergence analysis of ENGINE. Section C.1 defines the notation and estimation setting. Section C.2 derives Gaussian bias and variance bounds. Section C.3 compares estimation errors at a common target. Section C.4 bounds scalar projection errors. Section C.5 derives the optimal mixing weight. Section C.6 establishes convergence bounds for exact and approximate correction.
C.1 Setup and assumptions
Fine and coarse spaces. Subscripts and denote fine and coarse spaces, corresponding to full parameters and LoRA factors, respectively. Write , with fixed , and . Using row-wise vectorization, define and , where and . The fine-space loss is , and its LoRA parameterization is . We omit boldface on matrices and directions in this appendix.
Gradients and restriction. The superscript raw denotes exact gradients before preconditioning. We write and . Let and represent prolongation and restriction. The chain rule gives . For , restriction acts as . For the gradient matrix , we have .
Preconditioned directions and correction. Let and be symmetric positive-definite preconditioners and perturbation covariances. The branch blocks have sizes and , respectively. Define the preconditioned directions and , the common target , and the exact subgrid residual . The common target applies fine-space preconditioning before restriction, while applies coarse-space preconditioning after restriction. Here and are vector forms of and .
Estimation setting and errors. Let denote the preconditioned coarse estimate and the corrected direction. The mean squared error and bias relative to are and , respectively. For a random vector , denotes trace variance. Vector norms are Euclidean. Expectations condition on current parameters and preconditioners and average over fresh perturbations. For simplicity, we analyze Gaussian estimators with perturbation radius and independent directions, where plays the role of in the method. Exact correction uses conditionally deterministic and a fixed mixing weight shared by both branches. Section C.6 specifies the conditions for history-dependent weights.
C.2 Bias and variance of Gaussian estimators
Consider an -smooth objective on , , a fixed SPD covariance with , and independent . With deterministic function evaluations, define:
For fixed , , and , define the actual trace variance by . This quantity is defined at every positive smoothing radius. The subscript 0 below refers to the estimator obtained in the limit , with the number of random directions held fixed. We first derive the mean and bound the smoothing bias separately from sampling variance.
Lemma C.1 (Gaussian smoothing identity). Under the setting above, the estimator has mean . Its bias obeys .
Proof. Write with . Since , the constant baseline contributes zero to the mean. Gaussian integration by parts, applied componentwise, gives:
Global L-smoothness bounds gradient growth linearly and function growth quadratically, justifying integration by parts and differentiation under the Gaussian expectation. Therefore, we have:
Averaging samples preserves this mean. Subtracting and using the Lipschitz continuity of the gradient yields:
Using and completes the bias bound.
The next identity gives the moments of the linear term in the finite-difference estimator. These moments enter the finite-radius variance bound.
Lemma C.2 (Gaussian covariance identity). For and fixed , let . Then we have:
The covariance of the average of b independent copies is .
Proof. Since and is fixed, the mean is . For coordinates , expand the second moment and use the Gaussian fourth-moment identity to obtain:
Subtracting gives the stated covariance. For independent copies , cross-covariances vanish, so . Taking its trace yields:
□
These identities and a Taylor remainder bound yield the finite-radius estimation error bound.
Theorem C.3 (Gaussian estimation error). The mean is and its bias relative to satisfies . For finite , the MSE satisfies:
For fixed , , and , the estimator converges in mean square as to .
Proof. The mean and bias bound follow from Lemma C.1. We use Lemma C.2 to control the linear term and bound the remaining finite-difference error below.
Step 1. Control the Taylor remainder. For one sample, let and write:
The smoothness inequality gives , and consequently:
Here we use and the Gaussian moment . Using the same sampled directions, Jensen's inequality gives:
For fixed , this proves mean-square convergence to and as .
Step 2. Bound the centered variance. Applying to the centered and gives:
Here , , and . Averaging independent samples divides this variance bound by .
Step 3. Add the squared smoothing bias. Write . The centered term has zero mean, so:
This is (16). The variance decreases with b, while the smoothing-bias term is controlled by .
Local-linear limit. By Theorem C.3, and in mean square as with fixed. Applying Lemma C.2 to this limiting estimator gives . Its covariance and trace variance are:
(17)
The limiting MSE relative to is therefore . For , substitution gives . All constants here concern the Gaussian estimator in Eq. (15).
C.3 Common-target MSE and exact correction
Section C.3.1 treats finite perturbations with exact correction, and Section C.3.2 includes correction error. Section C.3.3 then specializes these results to the local-linear limit.
Which estimators and which targets? We distinguish isotropic LoRA ZO from LoRA+LOREN. The former samples with covariance and targets , whereas the latter samples with covariance and targets . Full-space LOREN samples with covariance and targets . Ideal ENGINE uses the same coarse estimator as LoRA+LOREN, shifted by the exact residual . The comparison uses the Gaussian estimator models of (15), which isolate the effects of sampling covariance and subgrid correction. For , superscripts iso and ani denote sampling covariances and , respectively. We abbreviate the Gaussian coarse estimator as , suppressing and . This is from Eq. (10).
C.3.1 Finite-radius analysis
We first keep . Let and have smoothness constants , and let for . Theorem C.3 gives the variance and smoothing-bias bounds:
For isotropic sampling, set and , with target . All comparisons use the same direction count b and radius .
For any deterministic target a, expanding the centered error gives:
(20) since makes the cross term vanish. For isotropic full-space and coarse estimators, use targets and , respectively. Full-space anisotropic sampling targets . To compare coarse updates with and without correction, we use the common target below.
For fixed and , the variance bound contains a term linear in and a remainder of order . With comparable gradient, covariance, and smoothness scales bounded independently of dimension, coarse sampling reduces these dimension factors from to when .
Exact correction at a common target. We next quantify how exact correction changes the bias and MSE while preserving the coarse sampling variance. Let denote the finite-radius coarse estimator, with smoothing bias and trace variance . For fixed , the corrected direction is .
Proposition C.4 (Exact-correction benefit). The ideal estimator satisfies:
The MSE reduction relative to the uncorrected estimator is:
Proof. Conditional on the state, and are deterministic, so:
Applying the bias-variance identity in Eq. (20) proves Eq. (21). Subtracting the result at from that at gives:
For finite and full correction , the same identity gives:
The inequality follows from Cauchy-Schwarz and Eq. (19). Thus is sufficient for strictly smaller squared bias and MSE, with unchanged coarse sampling variance.
C.3.2 Approximate correction
At finite , an approximate correction can add bias and sampling noise. The following decomposition includes their dependence on the coarse estimate and provides the objective for choosing the mixing weight. Here denotes the finite-radius coarse estimator, with trace variance , smoothing bias , and centered fluctuation .
For a general correction , define and , so . Let and .
Proposition C.5 (MSE with an approximate correction). For fixed and square-integrable estimates, the MSE is:
(22)
Proof. The error splits into a centered fluctuation and a deterministic bias:
The first two terms sum to a zero-mean vector. Their squared norm has expectation:
The expected cross term vanishes, so adding the squared bias yields (22).
The covariance term accounts for dependence between the two estimates. For history-measurable weights, the formula applies conditional on that history. For weights computed from the same samples, the analysis applies directly to the joint quantity .
C.3.3 Local-linear limit and exact comparisons
All estimators and variances in this subsection refer to the limit with fixed.
Proof of Proposition 3.3. Apply Theorem C.3 with and to obtain mean-square convergence and . Lemma C.2 gives the limiting mean and trace variance in Eq. (11). Setting in Proposition C.4 gives:
Here denotes in the main text. Setting gives Eq. (12), and gives Eq. (13).
More generally, the MSE reduction is , which is positive for and . For approximate corrections with mean-square limits, substituting and the limiting correction moments into Proposition C.5 gives the corresponding local result.
Dimension dependence of sampling variance. For fixed and comparable gradient and covariance scales bounded independently of dimension, the local-linear variance bounds give and . Here is the variance measured in full parameter coordinates. The linear dimension factor explains the sampling advantage of . We next restrict the full-space output to compare all estimators in the same coarse coordinates.
Bias and variance at a common target. To compare full-space LOREN with coarse estimators, first restrict its output to the same coordinates using . Define . Let and denote the trace variances of and , respectively, and let denote that of . Substituting the coarse gradients and covariances into Eq. (17) gives the first two expressions below. For the third, apply the same identity with the fine-space quantities and use . Their exact expressions are:
Here , and taking the trace of the restricted covariance gives .
Table 4: Exact comparison in the local-linear limit , with held fixed, against the same target , conditional on the current state. Bias is mean minus target. All methods use independent directions. ENGINE rows use exact, conditionally deterministic correction.
| Estimator | Bias | Trace variance | MSE |
|---|---|---|---|
| Isotropic LoRA RGE | |||
| LoRA+LOREN | |||
| Restricted full-space LOREN | 0 | ||
| Ideal ENGINE () | |||
| Ideal ENGINE () | 0 |
Table 4 follows by inserting the respective means , , , and into (20). Ideal ENGINE with has smaller MSE than restricted full-space LOREN precisely when , and smaller MSE than isotropic LoRA precisely when . These conditions account for gradients, covariances, and restriction in each comparison.
Combined benefit of ideal ENGINE. The two benefits act on separate terms of the MSE decomposition. Coarse sampling reduces the dimension-dependent variance under the stated scale assumptions. Exact correction recovers and removes the structural bias, reducing to .
C.4 Scalar approximation error
The exact branch residual has the form , where , , , , and is the same damping parameter as in the rank-1 preconditioner. Here , , and denote the method's curvature vectors , , and , respectively. The branch residual is the matrix form of , for . Specifically:
These are the exact coefficients of Proposition 3.2. Their row averages define the scalar-broadcast approximation studied below. Let be the all-ones vector, and . For , define the arithmetic coefficient means and .
The next proposition separates row compression error from scalar coefficient mismatch.
Proposition C.6 (Row compression and scalar approximation error). For , the row mean is the unique closest matrix to among matrices with identical rows, in the Frobenius norm. Let . For any matrix with identical rows, orthogonality gives:
In particular, for scalar coefficients , set . Then we have:
Proof. Row averaging gives . The rows of sum to zero, so this residual is orthogonal to every matrix with identical rows. Therefore, we have:
The second term vanishes exactly at , proving optimality and uniqueness. For , its value is:
since . Substitution proves Eq. (27).
The two branches have minimum total compression error . For general scalar coefficients, the total squared correction error is the sum of both right-hand sides of Eq. (27). Appendix D.1 specifies how the implementation's normalization and scaling determine these coefficients.
C.5 Oracle-optimal mixing
The MSE is quadratic in . Define .
Proposition C.7 (Oracle-optimal mixing weight). If , minimizing (22) over fixed gives:
If the denominator vanishes, almost surely and every feasible weight is optimal.
Proof. Set and . Expanding the squared bias in Eq. (22) gives:
For , this strictly convex quadratic is minimized at on , and clipping gives the minimum on . The same argument applies to any closed subinterval . If , then almost surely and is independent of .
For unbiased estimators with uncorrelated noise, set , , and . When , substituting these conditions into Proposition C.7 and Eq. (22) gives:
For fixed positive correction energy, this optimal weight decreases as the correction variance grows.
C.6 Convergence under positive alignment
We analyze updates on the fixed coarse objective with held fixed. Stationarity is measured by the gradient with respect to the stacked LoRA factors, . Let be the history before fresh step-t perturbations, and . All current parameters, preconditioners, and exact targets are -measurable.
Assumptions for ENGINE convergence. The following assumptions hold uniformly over the coarse steps under analysis.
(A1) Smoothness and lower boundedness. The coarse objective is -smooth with and .
(A2) Bounded positive-definite preconditioning. The coarse preconditioner satisfies for constants .
(A3) Target alignment and norm control. The restricted full-space target satisfies:
(A4) Predictable mixing. The weight is -measurable, so it is fixed before the fresh step-t perturbations are sampled.
(A5) Controlled estimator bias and variance. For nonnegative constants , the coarse estimator satisfies:
Empirical alignment proxy. In our diagnostic runs, the cosine between the raw gradient estimate and the deployed pre-momentum direction after correction and clipping was positive at every measured coarse step. This measures alignment with the estimated gradient, while Assumption A3 concerns uniform alignment and norm control of the exact target.
The following descent lemma provides a common bound for exact and approximate correction.
Lemma C.8 (Conditional descent with a biased stochastic direction). Suppose is -smooth, , and . Let an -measurable reference direction satisfy:
Assume and , where are nonnegative constants. Set and . For , the one-step bound is:
Proof. Step 1. Lower-bound the mean descent term. Let . The Cauchy-Schwarz inequality and imply:
Young's inequality in the form gives:
Step 2. Upper-bound the second moment. Separating conditional variance from the squared conditional mean yields:
Step 3. Apply smoothness and the step-size condition. The update and -smoothness imply:
Since , the coefficient of the squared gradient is at least . This proves (30).
For ideal ENGINE, use the exact correction . Set , , and .
Let be the number of optimization steps. The next theorem bounds the average squared coarse gradient after these steps and identifies the residual error due to estimator bias.
Theorem C.9 (Ideal ENGINE stationarity). Under Assumptions A1 to A5, for , and , the iterates satisfy:
Proof. Step 1. Verify alignment and the norm bound for the mixed target. The mixed target satisfies:
Since , the spectral lower bound and (29) give:
Similarly, the triangle inequality and the upper bounds yield:
Both comparisons use .
Step 2. Apply the exact-correction result conditionally. Predictability makes fixed conditional on . The same holds for , so Proposition C.4 gives:
Thus Lemma C.8 applies with , , and . The chosen step size is admissible since .
Step 3. Sum the expected descent inequalities. Take unconditional expectations in (30), use the tower property, and rearrange to get:
Summing from to telescopes the objective terms. For a fixed initial state and this gives:
Dividing by gives the general constant-step bound:
Substituting into Eq. (32) proves Eq. (31).
For Gaussian RGE with independent coarse-space directions, Theorem C.3 permits:
Hence the ideal model has stationarity, with coarse-dimensional sampling constants. Here T is the number of optimization steps, and S is the curvature refresh interval used in the method.
We now extend the same descent argument to approximate corrections. Their mean error changes the residual term, while their variance changes the sampling constants in the stationarity bound.
Additional assumption for approximate correction
(A6) Controlled correction error. The predictable weight satisfies , and the correction estimate obeys, uniformly in :
for nonnegative constants .
Corollary C.10 (Convergence with an approximate correction). Under Assumptions A1 to A6, update with . Define:
For , the bound is:
Proof. The reference direction remains , so its alignment and norm bounds are unchanged. The conditional mean error is:
Its norm is at most . Let and be the two centered estimates, and denote their trace variances by and . Then we have:
The first inequality is conditional Cauchy-Schwarz, and the second uses . Together they control the cross-covariance for jointly sampled estimators. Lemma C.8 now applies with the approximate constants. Summing its inequality and substituting the new step size exactly as in the preceding theorem gives (33).
For a deterministic scalar-broadcast correction, the squared mean error is the sum over the two branches of (27) and the conditional correction variance is zero. A uniform upper bound on that sum therefore supplies in the corollary. For random scalar estimates, their mean error and variance must instead be bounded separately as in Proposition C.5. Thus the projection result supplies a correction-error bound, while the descent lemma explains how this error enters the stationarity bound.
D Implementation Details
This appendix specifies the scalar correction used by ENGINE and its relation to the approximation error in Section C.4.
D.1 Scalar correction and update
Branch notation. Boldface denotes the exact per-row coefficients in Section C.4, while denote scalar surrogates. For , define and . For the B-branch, , , , , and . For the A-branch, , , , , and . Here defines the reference contractions. The matrices and have the same shape as .
Scalar coefficients. The denominator-adjusted reference scalars are:
These scalars differ from the arithmetic row means and in Section C.4. For the exact preconditioned direction , Eq. (B.1) gives:
When , the ratio of this contraction to is , which approaches when . For the preconditioned RLOO estimate, we use:
For a fine probe, let be the perturbation matrix for this weight block, the loss at the -th perturbed model, and , with . Let denote the curvature vector when the -th contribution is accumulated, before its next curvature update. The sampled fine coefficients used in the correction are:
Here is an exponential moving average with decay 0.9, initialized at zero and divided by after fine probes in the current coarse phase. Its state is reset at each new coarse phase and retained between probes. The term stabilizes the sampled-coefficient denominators. The superscript impl identifies the coefficients used in the update, including their estimation, normalization, and smoothing errors.
Correction and update. The scalar-corrected step, before clipping and momentum processing, is:
With the current-basis directions defined above, this correction has the form in Proposition C.6 with and . These factors account for the in the exact residual. Substituting them into Eq. (27) includes both coefficient normalization and correction scaling in the error decomposition.
Initialization safeguards. When A is reset to zero, B-branch feedback uses if a cached basis is available and . Transferred curvature vectors are normalized only when their norms exceed . Otherwise, their initialized values are retained. The cached-basis fallback introduces a directional approximation in addition to the scalar coefficient error analyzed above.
E Detailed Experiments and Results
This appendix reports complete results and learning curves. Experimental settings and hyperparameters are collected in Appendix F.
E.1 Full Results and Ablation
Tables 5 and 6 expand the main results and ablation in Tables 2 and 3, reporting five-seed means and standard deviations. All results use accuracy (%). Baselines are independently reproduced under the LOREN protocol. The ablation compares ENGINE with the same V-cycle without VMS-EO correction. Bold and cyan bold mark the best and second-best results in each column. The highlighted rows report ENGINE and its absolute accuracy gain over LOREN.
E.2 Additional Convergence Curves
Figures 5 to 8 extend Figure 4 to all 16 model-task settings, reporting validation accuracy and training loss. Figure 9 shows how the ablation results in Table 6 evolve with the forward-pass budget.
Table 5: Full results over five seeds, reported as mean accuracy (%) ± standard deviation. Avg. averages the four task means.
| GLUE (FP32)Method | GPT-2-XL (1.5B) | OPT-2.7B | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| MNLI | QNLI | SST-2 | CoLA | Avg. | MNLI | QNLI | SST-2 | CoLA | Avg. | |
| MeZO | 38.4 ± 1.0 | 59.2 ± 0.2 | 74.3 ± 1.0 | 65.8 ± 0.3 | 59.4 | 50.4 ± 3.3 | 75.2 ± 1.0 | 88.7 ± 0.2 | 68.4 ± 2.3 | 70.7 |
| MeZO-Adam | 50.8 ± 1.4 | 71.9 ± 4.4 | 91.2 ± 0.5 | 71.4 ± 0.8 | 71.3 | 45.9 ± 1.2 | 72.3 ± 3.2 | 86.9 ± 2.8 | 68.5 ± 1.0 | 68.4 |
| MeZO-SVRG | 49.8 ± 1.1 | 65.5 ± 1.0 | 84.5 ± 1.5 | 65.6 ± 0.4 | 66.4 | 41.5 ± 0.2 | 59.8 ± 1.0 | 62.9 ± 1.9 | 66.5 ± 0.2 | 57.7 |
| LOZO | 42.9 ± 0.9 | 60.6 ± 1.1 | 80.0 ± 1.0 | 66.2 ± 0.5 | 62.4 | 43.2 ± 1.1 | 59.5 ± 0.8 | 66.2 ± 3.0 | 66.3 ± 0.3 | 58.8 |
| HiZOO | 48.4 ± 0.2 | 66.8 ± 3.4 | 88.9 ± 0.2 | 71.2 ± 0.9 | 68.8 | 50.9 ± 1.0 | 74.7 ± 1.0 | 88.2 ± 0.6 | 66.3 ± 0.2 | 70.0 |
| LOREN | 50.6 ± 0.5 | 74.1 ± 1.2 | 89.0 ± 0.9 | 72.0 ± 0.8 | 71.4 | 54.1 ± 0.7 | 72.6 ± 1.8 | 88.2 ± 0.8 | 68.1 ± 0.2 | 70.8 |
| ENGINE (Ours) | 52.0 ± 0.5 | 77.0 ± 1.0 | 91.8 ± 0.5 | 72.7 ± 0.6 | 73.4 | 55.5 ± 0.5 | 75.4 ± 1.2 | 91.0 ± 0.4 | 69.5 ± 0.2 | 72.9 |
| Δ vs LOREN | +1.4 | +2.9 | +2.8 | +0.7 | +2.0 | +1.4 | +2.8 | +2.8 | +1.4 | +2.1 |
| SuperGLUE (BF16)Method | LLaMA-3-8B | OPT-13B | ||||||||
| RTE | BoolQ | WiC | CB | Avg. | RTE | BoolQ | WiC | CB | Avg. | |
| MeZO | 59.1 ± 1.5 | 64.0 ± 0.8 | 59.3 ± 1.9 | 71.5 ± 1.5 | 63.5 | 59.0 ± 0.5 | 64.4 ± 1.1 | 57.1 ± 0.6 | 72.7 ± 1.5 | 63.3 |
| MeZO-Adam | 58.7 ± 1.0 | 63.2 ± 0.2 | 57.1 ± 1.0 | 68.9 ± 0.8 | 62.0 | 60.8 ± 1.5 | 63.4 ± 1.3 | 55.7 ± 1.0 | 70.2 ± 1.7 | 62.2 |
| MeZO-SVRG | 58.2 ± 1.5 | 63.1 ± 0.2 | 58.0 ± 1.1 | 64.9 ± 3.1 | 61.1 | 59.3 ± 1.0 | 65.2 ± 0.8 | 56.8 ± 0.8 | 69.4 ± 3.0 | 62.7 |
| LOZO | 57.8 ± 1.2 | 63.6 ± 0.7 | 57.2 ± 2.0 | 71.1 ± 4.2 | 62.4 | 58.2 ± 0.7 | 63.4 ± 0.2 | 57.7 ± 1.6 | 68.8 ± 3.0 | 62.0 |
| HiZOO | 58.2 ± 0.5 | 63.6 ± 0.2 | 59.2 ± 1.6 | 67.1 ± 3.9 | 62.0 | 59.5 ± 1.2 | 63.7 ± 0.4 | 57.0 ± 1.1 | 72.7 ± 1.8 | 63.2 |
| LOREN | 58.4 ± 1.2 | 64.5 ± 1.3 | 58.9 ± 1.3 | 72.4 ± 2.7 | 63.6 | 59.5 ± 0.7 | 63.2 ± 0.6 | 57.0 ± 0.9 | 73.7 ± 1.2 | 63.4 |
| ENGINE (Ours) | 59.8 ± 1.1 | 66.0 ± 1.0 | 59.8 ± 1.2 | 73.2 ± 2.3 | 64.7 | 62.1 ± 0.8 | 65.2 ± 0.6 | 59.0 ± 0.8 | 79.1 ± 1.2 | 66.4 |
| Δ vs LOREN | +1.4 | +1.5 | +0.9 | +0.8 | +1.1 | +2.6 | +2.0 | +2.0 | +5.4 | +3.0 |
Table 6: VMS-EO ablation over five seeds, reported as mean accuracy (%) ± standard deviation.
| GLUE (FP32)Method | GPT-2-XL (1.5B) | OPT-2.7B | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| MNLI | QNLI | SST-2 | CoLA | Avg. | MNLI | QNLI | SST-2 | CoLA | Avg. | |
| LOREN | 50.6 ± 0.5 | 74.1 ± 1.2 | 89.0 ± 0.9 | 72.0 ± 0.8 | 71.4 | 54.1 ± 0.7 | 72.6 ± 1.8 | 88.2 ± 0.8 | 68.1 ± 0.2 | 70.8 |
| ENGINE w/o VMS-EO | 48.8 ± 0.6 | 72.7 ± 1.1 | 90.2 ± 0.5 | 71.5 ± 0.7 | 70.8 | 54.7 ± 0.8 | 73.8 ± 1.3 | 89.5 ± 0.4 | 69.1 ± 1.0 | 71.8 |
| ENGINE (Ours) | 52.0 ± 0.5 | 77.0 ± 1.0 | 91.8 ± 0.5 | 72.7 ± 0.6 | 73.4 | 55.5 ± 0.5 | 75.4 ± 1.2 | 91.0 ± 0.4 | 69.5 ± 0.2 | 72.9 |
| Δ vs LOREN | +1.4 | +2.9 | +2.8 | +0.7 | +2.0 | +1.4 | +2.8 | +2.8 | +1.4 | +2.1 |
| SuperGLUE (BF16)Method | LLaMA-3-8B | OPT-13B | ||||||||
| RTE | BoolQ | WiC | CB | Avg. | RTE | BoolQ | WiC | CB | Avg. | |
| LOREN | 58.4 ± 1.2 | 64.5 ± 1.3 | 58.9 ± 1.3 | 72.4 ± 2.7 | 63.6 | 59.5 ± 0.7 | 63.2 ± 0.6 | 57.0 ± 0.9 | 73.7 ± 1.2 | 63.4 |
| ENGINE w/o VMS-EO | 58.2 ± 1.3 | 65.2 ± 1.0 | 57.8 ± 1.2 | 71.4 ± 2.5 | 63.2 | 59.0 ± 0.9 | 64.1 ± 0.7 | 57.8 ± 0.9 | 75.0 ± 1.5 | 64.0 |
| ENGINE (Ours) | 59.8 ± 1.1 | 66.0 ± 1.0 | 59.8 ± 1.2 | 73.2 ± 2.3 | 64.7 | 62.1 ± 0.8 | 65.2 ± 0.6 | 59.0 ± 0.8 | 79.1 ± 1.2 | 66.4 |
| Δ vs LOREN | +1.4 | +1.5 | +0.9 | +0.8 | +1.1 | +2.6 | +2.0 | +2.0 | +5.4 | +3.0 |

Figure 5: GPT-2-XL (1.5B) training dynamics on four GLUE tasks (MNLI, QNLI, SST-2, CoLA). Top row: validation accuracy. Bottom row: training loss.

Figure 6: OPT-2.7B training dynamics on four GLUE tasks (MNLI, QNLI, SST-2, CoLA). Top row: validation accuracy. Bottom row: training loss.

Figure 7: LLaMA-3-8B training dynamics on four SuperGLUE tasks (RTE, BoolQ, WiC, CB). Top row: validation accuracy. Bottom row: training loss.

Figure 8: OPT-13B training dynamics on four SuperGLUE tasks (RTE, BoolQ, WiC, CB). Top row: validation accuracy. Bottom row: training loss.

Figure 9: VMS-EO ablation across four models and 16 tasks. Validation accuracy versus forward passes for ENGINE (red), ENGINE w/o VMS-EO (grey), and LOREN (orange). From top to bottom, the rows show LLaMA-3-8B, OPT-13B, GPT-2-XL, and OPT-2.7B. In the first two rows, columns show RTE, BoolQ, WiC, and CB. In the last two rows, columns show MNLI, QNLI, SST-2, and CoLA.
F Experimental Setup and Hyperparameters
Tasks and metrics. We follow the LOREN protocol for datasets, splits, and training. GPT-2-XL and OPT-2.7B use FP32 on MNLI, QNLI, SST-2, and CoLA. LLaMA-3-8B and OPT-13B use BF16 on RTE, BoolQ, WiC, and CB. All tasks use accuracy (%) for the main results, ablation, learning curves, and sensitivity analyses. Avg. is the arithmetic mean of the four task accuracies for each model.
Training budget. Each run uses one NVIDIA A100 80GB GPU. All methods use batch size 64, perturbation radius , and direction count . Training lasts 8,000 steps for GPT-2-XL and OPT-2.7B and 4,000 steps for LLaMA-3-8B and OPT-13B.
Method configurations. Across models, MeZO-Adam uses betas (0.9, 0.999). MeZO-SVRG uses full-batch update interval 2. LOZO searches ranks and intervals . HiZOO uses Hessian smoothing . LOREN uses curvature learning rate and damping .
Tables 7 and 8 give the baseline and ENGINE settings. Baseline settings follow LOREN, and bold entries mark selected values. The ablation uses the same ENGINE settings with .
Table 7: Specific hyperparameters for the baselines. Learning rate search grids are listed by model, with selected values in bold. The two MeZO-SVRG rows give full-batch and mini-batch rates.
| Method | GPT-2-XL | OPT-2.7B | LLaMA-3-8B, OPT-13B |
|---|---|---|---|
| MeZO | {1e-4, 5e-5, 1e-5, 5e-6, 1e-6} | {1e-4, 5e-5, 1e-5, 5e-6, 1e-6} | {1e-5, 5e-6, 1e-6, 5e-7, 1e-7} |
| MeZO-Adam | {1e-3, 5e-4, 1e-4, 5e-5, 1e-5} | {1e-3, 5e-4, 1e-4, 5e-5, 1e-5} | {1e-3, 5e-4, 1e-4, 5e-5, 1e-5} |
| MeZO-SVRG full | {1e-4, 5e-5, 1e-5, 5e-6, 1e-6} | {1e-4, 5e-5, 1e-5, 5e-6, 1e-6} | {1e-5, 5e-6, 1e-6, 5e-7, 1e-7} |
| MeZO-SVRG mini | {1e-5, 5e-6, 1e-6, 5e-7, 1e-7} | {1e-5, 5e-6, 1e-6, 5e-7, 1e-7} | {1e-6, 5e-7, 1e-7, 5e-8, 1e-8} |
| LOZO | {1e-4, 5e-5, 1e-5, 5e-6, 1e-6} | {1e-4, 5e-5, 1e-5, 5e-6, 1e-6} | {1e-5, 5e-6, 1e-6, 5e-7, 1e-7} |
| HIZOO | {1e-3, 5e-4, 1e-4, 5e-5, 1e-5} | {1e-4, 5e-5, 1e-5, 5e-6, 1e-6} | {1e-5, 5e-6, 1e-6, 5e-7, 1e-7} |
| LOREN | {1e-5, 5e-6, 1e-6, 5e-7, 1e-7} | {1e-5, 5e-6, 1e-6, 5e-7, 1e-7} | {1e-5, 5e-6, 1e-6, 5e-7, 1e-7} |
| ENGINE | {1e-5, 5e-6, 1e-6, 5e-7, 1e-7} | {1e-5, 5e-6, 1e-6, 5e-7, 1e-7} | {1e-5, 5e-6, 1e-6, 5e-7, 1e-7} |
Table 8: Specific hyperparameters for ENGINE. Each row gives a model's learning rate, rank, and refresh intervals in coarse steps. All four models use , , C60F60, and mixing bounds [0.3, 0.8].
| Model | Refresh interval | |||||
|---|---|---|---|---|---|---|
| MNLI | QNLI | CoLA | SST-2 | |||
| GPT-2-XL | 1e-5 | 16 | 5 | 20 | 20 | 20 |
| OPT-2.7B | 1e-5 | 32 | 20 | 20 | 20 | 5 |
| Model | CB | RTE | BoolQ | WiC | ||
| LLaMA-3-8B | 5e-7 | 32 | 20 | 20 | 20 | 20 |
| OPT-13B | 5e-7 | 64 | 20 | 20 | 10 | 100 |
F.1 Hyperparameter Sensitivity
Let be the candidate refresh intervals. The index identifies one of the 16 model and task settings, and denotes its raw validation accuracy at refresh interval . For a positive accuracy range across the candidates, we define the normalized score:
Table 9 reports these per-setting Min-Max scores. At , they range from 0.91 to 1.00 across all 16 settings, supporting a common default of 20 coarse steps. The per-task intervals used for the main results are listed in Table 8.
We also vary the coarse and fine phase lengths epochs, following Algorithm 1. In this schedule, each epoch comprises eight minibatch updates, so C60F60 allocates 480 coarse and 480 fine updates per cycle. For each schedule, we average validation accuracy over the 16 model and task settings, then apply Min-Max normalization across the nine schedules. Table 10 shows that C60F60 achieves the highest average validation accuracy.
Table 9: Sensitivity to the refresh interval in coarse steps. Entries are the normalized scores in Eq. (34). Bold marks the highest score for each model and task.
| GPT-2-XL | OPT-2.7B | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| MNLI | QNLI | CoLA | SST-2 | MNLI | QNLI | CoLA | SST-2 | ||
| 5 | 1.00 | 1.00 | 0.94 | 1.00 | 5 | 1.00 | 1.00 | 1.00 | 1.00 |
| 10 | 0.95 | 1.00 | 1.00 | 0.94 | 10 | 1.00 | 0.92 | 0.94 | 0.91 |
| 20 | 0.92 | 1.00 | 1.00 | 1.00 | 20 | 1.00 | 1.00 | 1.00 | 0.91 |
| 100 | 0.34 | 0.27 | 0.35 | 0.38 | 100 | 0.31 | 0.36 | 0.45 | 0.22 |
| 1000 | 0.00 | 0.00 | 0.00 | 0.00 | 1000 | 0.00 | 0.00 | 0.00 | 0.00 |
| LLaMA-3-8B | OPT-13B | ||||||||
| RTE | BoolQ | WiC | CB | RTE | BoolQ | WiC | CB | ||
| 5 | 1.00 | 1.00 | 0.96 | 1.00 | 5 | 1.00 | 1.00 | 1.00 | 1.00 |
| 10 | 0.96 | 1.00 | 0.93 | 0.91 | 10 | 0.92 | 1.00 | 1.00 | 1.00 |
| 20 | 1.00 | 1.00 | 1.00 | 1.00 | 20 | 1.00 | 0.92 | 0.93 | 1.00 |
| 100 | 0.41 | 0.53 | 0.61 | 0.57 | 100 | 0.61 | 0.67 | 1.00 | 0.77 |
| 1000 | 0.00 | 0.00 | 0.00 | 0.00 | 1000 | 0.00 | 0.00 | 0.00 | 0.00 |
Table 10: Sensitivity to the V-cycle schedule. Rows give coarse phase length and columns give fine phase length , both in epochs. Scores are Min-Max normalized averages over 16 model and task settings. Bold marks the best schedule.
| 1.00 | 0.65 | 0.44 | |
| 0.91 | 0.76 | 0.34 | |
| 0.82 | 0.71 | 0.00 |
G Efficiency Analysis
In Table 11, ENGINE has the highest query efficiency in all four settings and the highest wall-clock efficiency on GPT-2-XL and OPT-2.7B.
Table 11: Query and wall-clock speed-ups at common target accuracies. Each entry divides the largest query count or time in its column by that method's value, assigning the least efficient method . Higher is better, and bold marks the best result.
| Method | GPT-2-XLSST-2 (70%) | OPT-2.7BQNLI (70%) | LLaMA-3-8BCB (65%) | OPT-13BCB (65%) | ||||
|---|---|---|---|---|---|---|---|---|
| Queries | Time | Queries | Time | Queries | Time | Queries | Time | |
| MeZO | 1.0 | 1.0 | 1.0 | 1.0 | 1.2 | 1.2 | 2.3 | 2.5 |
| MeZO-Adam | 10.3 | 9.8 | 9.7 | 9.2 | 1.0 | 1.0 | 1.0 | 1.0 |
| MeZO-SVRG | 3.9 | 2.1 | 4.1 | 4.5 | 2.1 | 1.8 | 3.2 | 2.9 |
| LOZO | 1.6 | 4.7 | 2.2 | 6.2 | 2.2 | 6.4 | 3.5 | 7.3 |
| HiZOO | 7.5 | 3.2 | 8.0 | 3.7 | 1.6 | 1.3 | 1.9 | 1.5 |
| LOREN | 12.7 | 9.5 | 11.7 | 8.3 | 4.6 | 2.0 | 5.0 | 3.4 |
| ENGINE | 16.5 | 11.4 | 22.2 | 16.7 | 10.0 | 4.1 | 5.3 | 4.0 |
H Limitations and Future Work
Adaptive query allocation. The refresh interval and coarse/fine phase lengths are fixed in advance. Curvature drift can make cached fine-space information stale, while the relative benefit of each phase can change during training. Adapting refreshes and phase lengths to curvature drift or validation-loss plateaus could improve query allocation.
Learning-rate selection. The branch learning rates , , and share one value to limit tuning, leaving separate rates to be explored.
Access requirements and task coverage. ENGINE requires access to model parameters to perturb weights and transfer states between spaces, limiting its use through prediction-only APIs. Our experiments cover classification fine-tuning across four models and 16 model-task settings. Evaluation on generation tasks would establish whether the observed benefits extend to other fine-tuning objectives.