Manuscript Offprint
arXiv:2611.08712An Educated Guess: Deriving Statistically Aligned Gradient Estimates for Zeroth-Order Optimisation
Abstract
As novel hardware architectures are explored for the purposes of machine learning, including neuromorphic chips, asynchronous systems, and ASICs, effective learning algorithms are highly desirable. While backpropagation is the standard for differentiation on standard hardware, its requirement for global synchrony and exact differentiability limits the exploration of exotic algorithms on non-traditional substrates and devices. Zeroth-order (ZO) optimisation methods, such as SPSA and weight perturbation, offer a compelling alternative by estimating gradients through inference-only passes; however, these methods have historically suffered due to the 'curse of dimensionality', where random perturbations become increasingly misaligned with the true gradient in high-dimensional spaces. In this work, we move beyond blind random noise by deriving zeroth-order search directions from activation geometry available during the forward pass. This leads to a family of Spectral Zeroth-Order methods, SZO-, whose directions solve local response-based gradient-guessing objectives under explicit stochastic assumptions. These methods explore feature-supported directions that are more likely to produce informative loss responses. Using multilayer and convolutional networks, we analyse gradient alignment, bias-variance structure, and training stability of these methods relative to standard perturbation baselines and backpropagation.
1 Introduction
Backpropagation is the workhorse of modern deep learning [Rumelhart et al., 1986, Werbos, 1990, Baydin et al., 2018]. Its success, however, comes with a specific computational constraint: the model must be described through a differentiable graph, with stored or reconstructable intermediate state, and a backward computation that is structurally different from inference. This is acceptable on conventional multipurpose hardware, but it is less natural for neuromorphic and physical substrates, asynchronous or event-driven systems, networks with non-differentiable components, and memory-limited settings [Roy et al., 2019, Schuman et al., 2022, Gu et al., 2021, van Gerven, 2026]. Forward-only and local-credit alternatives have therefore been explored as ways to avoid global backpropagation [Silver et al., 2022, Baydin et al., 2022, Hinton, 2022]. Recent interest in forward-only training for large models gives the same issue a second, more practical motivation: if learning can be reduced to inference-like evaluations, the memory footprint and hardware applicability improves substantially [Malladi et al., 2023, Zhang et al., 2024].
Zeroth-order (ZO) optimisation and perturbation learning propose a solution. Instead of differentiating a model, they perturb parameters or activities, observe the change in a scalar objective, and correlate that change with the injected perturbation. This idea appears in stochastic approximation,
Preprint.
finite-difference ZO methods, simultaneous perturbation stochastic approximation (SPSA), weight perturbation, node perturbation, and evolution strategies [Kiefer and Wolfowitz, 1952, Barto et al., 1983, Mazzoni et al., 1991, Jabri and Flower, 1991, Spall, 1992, Cauwenberghs, 1992, Seung, 2003, Werfel et al., 2003, Fiete and Seung, 2006, Legenstein et al., 2010, Salimans et al., 2017, Such et al., 2018, Nesterov and Spokoiny, 2017]. The attraction of being able to use the same computational steps as inference but instead for training is significant. Not to mention the applicability of these methods to systems in which the exact derivatives are expensive to compute or even unknown. There also, however, exists an equally clear obstacle: randomly searching through the parameter space of a model scales terribly in high dimensions. Any perturbations or search directions are usually a bad gradient guess in high dimensions and therefore the estimated gradients have high variance (noise). These sources of error are a central reason that classical perturbation learning becomes unstable or sample-inefficient as networks widen, deepen, or share parameters [Flaxman et al., 2005, Ghadimi and Lan, 2013, Shamir, 2017, Nesterov and Spokoiny, 2017, Hiratani et al., 2022, Züge et al., 2023].
This paper asks whether perturbation learning can choose better search directions using information already present during the forward pass. Our starting point is that neural network layers have local feature geometry: inputs to a layer are not uniformly distributed in all directions, and perturbations that respect this structure should produce more informative loss responses than blind isotropic noise. We formalise this observation as a local stochastic gradient-guessing problem and we derive a family of Spectral Zeroth-Order estimators, SZO-, which are explicitly derived as a solution to the ideal gradient search direction if one has only local information from the forward-pass.
This SZO- family also captures standard weight perturbation on one end and recovers node-like perturbations at the other end of a particular choice in . This perspective also gives a practical bridge to new node-level perturbation methods, where activity-level credit is induced by realisable parameter noise rather than by independently perturbing every node. After deriving SZO-, we collect some practical stabilisers from the literature that address its remaining finite-sampling errors (Appendix D). This connects these corrections to established ideas in gradient guessing, preconditioning, and natural-gradient learning [Amari, 1998, Martens and Grosse, 2015, Ren et al., 2023, Singhal et al., 2023, Vyas et al., 2025], while keeping the main contribution focused on feature-geometric zeroth-order search.
2.1 Setup and Notation
Let denote an arbitrary parametric function with flattened parameters , prediction , and scalar loss . For compactness we write when and are fixed, and for the row-gradient. Backpropagation computes by differentiating the computational graph using reverse accumulation; zeroth-order methods instead estimate it from changes in the scalar loss after perturbing the system, which may be a neural network, a recurrent or physical system, or a module containing non-differentiable components. Estimating gradients well is therefore heavily dependent on the statistical design of search directions [Kiefer and Wolfowitz, 1952, Flaxman et al., 2005, Ghadimi and Lan, 2013, Shamir, 2017, Nesterov and Spokoiny, 2017].
A probe refers to one perturbed forward evaluation along with the (one) corresponding scalar loss observation. We focus throughout on one-sided estimators (a clean baseline plus perturbed evaluations), since they double the number of directions explored per compute budget relative to two-sided SPSA-style schemes. Perturbations may be applied simultaneously across layers or layer-by-layer [Dalm et al., 2026], and credit may be assigned globally or per-example when sample-wise losses are available.
2.2 Finite-Difference Approaches
For a perturbation direction and scale , a small-step Taylor expansion gives
(1) so a single forward difference measures the directional derivative, . Given sampled directions , the one-sided estimator and its empirical covariance are
Here is the per-coordinate perturbation variance; in all experiments we take , so that is the per-coordinate perturbation standard deviation. Substituting the linearisation, Equation 1's first term, gives , and for iid isotropic directions , so the population estimator recovers up to the finite-difference remainder. For any finite the error is controlled by how close is to . When the sampled directions, , are iid isotropic over all parameters, this estimator is weight perturbation (WP) [Jabri and Flower, 1991, Cauwenberghs, 1992, Werfel et al., 2003]; the two-sided variant is SPSA [Spall, 1992]. Both treat every parameter direction as equally plausible.
2.3 Bias, Variance, and the Curse of Dimensionality
For a finite number of probes , there is a deviation of from identity: , where is some error. The linearised estimator therefore satisfies . The total mean squared estimation error then decomposes into two terms such that,
For probes with iid zero-mean, unit-variance coordinates (e.g. Gaussian, uniform, or Rademacher perturbations), is an average of independent mean-zero terms, and a direct fourth-moment calculation gives
where is the number of parameters, the number of probes, and the fourth moment of a probe coordinate ( for Gaussian, for uniform, and 1 for Rademacher probes). Consequently,
This shows the ‘curse of dimensionality’ for perturbation learning. Specifically, maintaining a given estimation error requires the number to grow with . In wide networks much of this search is spent on directions with little effect on the current input, producing a blind diffusion of parameters with WP [Züge et al., 2023].
The classical response is to perturb at a different locus. Node perturbation (NP) injects noise into a layer’s activity rather than its parameters, estimating loss sensitivity at the activations and assigning credit through the local Jacobian. For a linear pre-activation with input activity , an injected perturbation yields a perturbed output . Similarly to weight perturbation, directional exploration across sampled perturbations estimates the activation gradient via
which satisfies for isotropic . By the chain rule, the gradient with respect to the weights is . Substituting the activation estimate yields the weight update:
where forms a rank-one outer product corresponding to the transpose Jacobian [Barto et al., 1983, Mazzoni et al., 1991, Seung, 2003, Werfel et al., 2003, Fiete and Seung, 2006].
Because exploration is confined to the activation manifold rather than the parameter space , the estimation variance depends on the activation dimension instead of the parameter count . For sample-wise losses, the resulting error scales as
which translates to an estimation variance reduction of factor over weight perturbation – a substantial improvement in wide, overparameterised layers. However, this dimensional advantage weakens under aggregate batch rewards, simultaneous multi-layer perturbation [Hiratani et al., 2022], or extensive weight sharing (such as in convolutions), where the effective ratio of parameters to nodes is altered.
This covariance view separates two kinds of error: linearisation error, affected by the finite-difference scale , and search-direction bias and variance, controlled by the statistics of . Since is positive semidefinite, a biased search does not flip the descent direction, but it can leave the estimate weakly aligned, high variance, or nearly blind to important directions, which motivates shaping .
3 Spectral Zeroth-Order Perturbations
3.1 Gradient Searches Should Align with Feature Geometry
One way to pose the core question of a zeroth-order method is to ask: how should a search direction be selected which is most likely to return the gradient? In this work, we consider answering this question for a neural network layer with observed inputs. This shares the conceptual goal of Covariance Matrix Adaptation [Hansen and Ostermeier, 2001], but explicitly constructs the search geometry from forward-pass feature statistics rather than historical search paths.
Consider a single layer with weights . For a mini-batch of examples, one may collect the layer inputs during a forward pass as columns of . For convolutional layers, collects the flattened receptive-field patches across all spatial positions and batch elements, treating each patch as an independent example. The pre-activations produced by the layer are
where column is the activity for example (or patch ). The remaining downstream network maps to the batch loss . We assume, as is common for ZO methods, that the downstream computation is differentiable at the current , and perturbations are small enough that the loss change is well approximated by its linearisation.
For analysis, let denote the downstream error signal at this layer. We shall not make use of directly, but it is informative to introduce it to explore the problem of finding gradient directions. With this notation, the layer gradient factors as
Thus, the gradient is not arbitrary in , in truth its right-hand geometry is determined by the batch activations . From another perspective, one can observe that a weight perturbation induces the activity perturbation , so directions orthogonal to the row space of use perturbation budget without changing the layer output. Our contribution is to turn this observation into an explicit spectral perturbation family for realisable weight noise, with controlling the tradeoff between isotropic coverage and feature-concentrated response.
This observation allows us to turn zeroth-order learning away from a blind random search using information available locally during a forward pass. In particular, even before the downstream error is known, the forward pass reveals which parameter directions can causally move the network's response to the current data. We therefore ask the question: of all possible weight perturbations with a fixed norm , which directions maximise the squared change in the loss? Formally, this is the problem of gradient descent and can be written as
Maximising this squared directional derivative is equivalent to finding the true gradient direction, i.e. the direction of steepest descent. Since the exact downstream error is unknown during the forward pass, we assume that is isotropic and revisit this assumption later. The expected squared loss response would therefore, under the assumption of an isotropic downstream network sensitivity, be directly proportional to the induced activity energy . In other words, maximising the activity change at the output of this layer would be the best guess for finding a gradient direction!
More formally,
Here is the uncentred activation second-moment matrix. Appendix A provides in greater detail the isotropic downstream-gradient assumption that justifies this as our surrogate optimisation. Under this local surrogate, the response-maximising, and therefore best gradient search-direction problem reduces to a constrained optimisation problem, namely
This problem is optimised when , which corresponds to the case in which every row of our perturbation lies in an eigenspace of the matrix , returning a response . To specifically maximise this optimisation problem, and to have our layer respond maximally to our perturbation, we must therefore place the whole budget on the leading eigenvector of (with largest eigenvalue ), giving the rank-1 perturbation
with response (Appendix B). The output-side direction is left free to be chosen and randomising it isotropically corresponds to the SZO- estimator that we show below.
3.2 From Rank-1 Search to Matched Filters
The rank-1 solution is a consequence of the squared Frobenius energy rewarding singular values quadratically. The same induced-activity energy can be evaluated under a reweighting of its singular spectrum: replacing every by gives , the nuclear norm. In this way, every induced singular direction is valued linearly rather than quadratically, encouraging rank coverage instead of only focusing on a single direction. Under the same budget, , the corresponding matched-filter problem is
which provides a solution such that where has orthonormal columns (exact for ; an isotropic random satisfies this in expectation, ) and shapes each draw by the square root of the activation spectrum (see Appendix B for both the rank-1 and matched-filter derivations).
3.3 The SZO- Family
Having derived the rank-1 and the matched-filter solutions, we can bring these together under a single family of solutions. We can do so by defining Spectral Zeroth-Order estimation, SZO- , which takes a random output-side matrix and shapes its input-side spectrum by the activation second-moment matrix:
The factor at the beginning fixes the expected size of the perturbation ( , matching the budget, independent of and of the scale of the inputs), the matrix is a mean-zero isotropic random matrix with iid entries of variance (e.g. Gaussian), so that , and is our previously defined activation second-moment matrix. The parameter directly controls how much more strongly we search along high-variance feature directions than low-variance ones: along the eigendirection of , the perturbation variance is proportional to . The resulting finite-difference estimator is still forward-only, but it is no longer ‘blind’ to the input data; instead it is intentionally aligned with the feature geometry revealed by the current batch. The power family is a natural way to interpolate between these solutions: rescaling the inputs multiplies every power of by a single constant, which the normaliser removes, so the relative emphasis on each feature direction does not depend on the scale of the inputs. With the scale fixed by the normaliser, acts purely as a bias-variance dial: is unbiased isotropic random search (equivalent to WP), is a matched filter which equalises signal-to-noise across feature directions, larger trades shrinking variance for growing bias (Appendix H), and collapses to a rank-1 search along the leading eigenvector of . Because the bias is explicit and built from the known input geometry, it can be handled after the fact: whitening by the input factor recovers an unbiased gradient estimate, or the bias can be kept and treated as a preconditioned step, which optimisers such as Shampoo/SOAP or Muon then account for (Appendices D and E).
In this work, we specifically consider, compare and simulate and for the SZO family, all of which have interpretable relationships to existing perturbation methods. A sweep over (Appendix K) shows that alignment with backpropagation improves steadily from to and saturates by .
Equivalences between SZO and other Perturbation Methods The SZO family recovers the standard perturbation methods in two key cases, and a recently proposed novel method in a third:
-
SZO-0 WP. With , is isotropic parameter noise: a random search without preferred directions. The limit differs only for rank-deficient (Appendix C).
-
SZO-1 Node Through Weight Perturbation (NTWP). The perturbation rule introduced as a heuristic by Züge et al. [2023] pairs WP's isotropic weight perturbation with NP-style credit assignment via the induced activity perturbation. This was originally referred to as a 'hybrid' perturbation. Under per-batch credit, the NTWP estimator recovers SZO-1 in expectation () without requiring a matrix square root. See Appendix C for the derivation and full algorithm.
-
SZO- (with ) sample-wise NP For a single sample , the matrix is rank-1 with leading eigenvalue and unit eigenvector . For any , the matrix power is simply the renormalised rank-1 projector . Because , the scale cancels identically out of the SZO- rule:
where is an isotropic node-wise perturbation vector. The induced pre-activation perturbation is therefore , and the parameter update scales as , recovering exactly Node Perturbation for all when done on a per-sample basis.
Note, these equivalences are only exact under specific conditions. The SZO-/NP correspondence holds for linear layers in the sample-wise condition. Convolutional weight sharing breaks the SZO-/NP correspondence as even a single image yields a high-rank , and a shared kernel perturbation correlates node perturbations across positions. Finally, the SZO-1 correspondence only holds in expectation (see Appendix C) rather than per update, and only under batch-scalar (whole-batch) loss differences: with per-sample credit, as in our training experiments, NTWP is instead an unbiased, NP-like estimator of the gradient (Appendix C).
To avoid the computational cost of computing eigenvectors of we use (SZO-) in a sample-wise mode where we treat each batch element as an individual sample, see Appendix I for more details on this. For convolutional layers this means SZO- is implemented via the energy-weighted patch surrogate of Appendix I, i.e. an approximation to the exact leading-eigenvector construction rather than the exact estimator.
3.4 Batch vs. Sample Level Loss Measurement
A probe yields one scalar loss difference for the whole batch (batch-scalar credit) or one difference per sample (per-sample credit), and the two regimes differ by two orders of magnitude in feedback: at our default batch size , per-sample methods observe 128 loss differences per probe where batch-scalar methods observe one. Which regime a method can operate in is a property of its eligibility and implementation, such that:
- NP, NTWP, and SZO- all admit per-sample or per-batch credit. NP simply samples noise either once and repeats it across batch elements or samples it independently for each batch element; per-batch credit then uses the batch-mean loss difference. SZO- methods require the computation of covariance matrices and eigenvector directions which can in some cases (e.g. or when in per-sample mode for linear layers) reduce to simple solutions.
Fashion-MNIST MLP Hidden layer (392 000 parameters)
CIFAR-10 CNN Conv layer 4 (36 864 parameters)
(a) Per-batch credit

Number of probes
(b) Per-sample credit
Number of probes
(c) Per-batch credit
Number of probes
(d) Per-sample credit
Number of probes
Legend: red = NP, blue = WP (SZO-0), orange = NTWP, light blue = SZO-1, green = SZO-∞
Figure 1: The angles between estimated gradients computed by NP, WP, SZO- and NTWP against the true backpropagation gradient for randomly initialised layers in MLP and Convolutional Networks. For each network, the left panel uses per-batch loss-difference credit and the right panel per-sample credit; points show the mean angle over 20 randomly seeded initialisations (batch of 128) against the number of probes , with error bars of standard deviation. Left pair, the gradient alignment angle is shown for the first layer of our Fashion-MNIST MLP network. Under per-sample credit these angles clearly show the equivalence of NP and SZO- on a linear layer, as theorised in this work. Right pair, the gradient alignment angle is shown for the last convolutional layer ( channels) of our CIFAR-10 CNN model. On convolutional layers NP suffers significantly from its lack of shared perturbation across kernel positions. Note, these angles were measured by perturbing only the layer in question and leaving all other network layers unperturbed.
- WP methods are often applied at the batch-level by construction (one shared perturbation, one scalar response); per-sample weight-perturbation variants exist but are extremely memory expensive and we therefore do not simulate these except where absolutely necessary.
Where necessary, we provide indications within figures as to whether per-batch or per-sample applications of these methods are being used.
4 Experiments and Results
We begin by analysing the gradient alignment and training accuracy differences of various zeroth-order methods while varying network structure and tasks. We train a two-layer MLP on Fashion-MNIST [Xiao et al., 2017] and a six-layer CNN (five convolutional layers and a linear readout) on CIFAR-10 [Krizhevsky, 2009], both with leaky ReLU activations; the full architectures are given in Appendix O.1. All models are trained with cross-entropy loss and label smoothing of 0.1. We compare backpropagation (BP), node perturbation (NP), weight perturbation (equivalent to SZO-0), node through weight perturbation (NTWP), and SZO- at . Each perturbation method is run in iterative mode, in which layers are perturbed one at a time at up to forward-pass cost to remove inter-layer crosstalk and produce a higher-fidelity gradient estimate [Dalm et al., 2026] (see Appendix D). All configurations are optimised with SGD for 250 epochs; the learning rate of each method is selected on a held-out validation split, and the selected configuration is then retrained with new seeds to report final test performance (see Appendix O for compute resources and full hyperparameter settings), without activation awareness (Appendix G). Code is available at https://github.com/EfficientNeuralSystems/spectral-zeroth-order.
Fashion-MNIST MLP
(a) Training, n = 1

(b) After 250 epochs
CIFAR-10 CNN
(c) Training, n = 1
(d) After 250 epochs
Figure 2: The performance of the SZO-family of methods as well as NP, WP, and NTWP when training an MLP (Fashion-MNIST) and a Convolutional Network (CIFAR-10). (a,c) Test accuracy over training with SGD and n = 1 (mean over 10 seeds, 1 standard deviation); on the MLP, NP, SZO-1 and SZO- coincide and are drawn interleaved; BP (not shown) reaches 89.9% and 83.6%. (b,d) Validation accuracy after 250 epochs against the number of probes per step n (mean over 3 seeds, 95% confidence intervals; Appendix M). The learning rate of each method was selected via a grid search on validation loss. Final test accuracies for each method, as well as backpropagation, are reported in Appendix L.
Figure 1 demonstrates how well gradient estimates formed by NP, WP, NTWP, and the SZO-family align with that computed by backpropagation. This is shown for a linear and convolutional layer on two different tasks. Most notably, one can see that despite the number of passes being orders of magnitude lower than the number of parameters (or nodes) in these layers, SZO-based gradient estimators (as well as NTWP and sometimes NP) often reach levels of alignment which far exceed expectations. We attribute this effect to the manner in which these methods can align their updates to the geometry of the feature data at these layers, and that the effective dimensionality to search over is then far lower than the dimension of the ambient parameter space.
A number of confirmations of our theoretical derivations above are also demonstrated in these alignment measurements. Namely, as predicted by our theoretical derivations: SZO-1 and NTWP are indistinguishable in their alignment for “per-batch” credit assignment, NP is indistinguishable from all SZO methods in linear layers when using per-sample credit assignment, and SZO (as well as NTWP) methods beat NP in their alignment to BP when applied to convolutional layers. Some interesting features to note: in per-batch credit assignment modes, NP seems to suffer much more than alternative methods, and SZO-1 when applied in per-sample credit often has better alignment than NTWP, something which we did not theoretically explore. For alignment measurements across all layers in these networks, see Appendix J.
Figure 2 shows that these alignment differences are largely also reflected in the accuracy of models during training. On the MLP, NP and SZO- train identically, as expected from their equivalence under per-sample credit. On the CNN the weight-perturbing SZO- rules are ahead early and through mid-training; SZO- 's bias towards a single primary direction narrows its advantage late in training, while SZO-1 stays ahead (Appendix L). This ordering holds at every number of probes n, and the gap between SZO-1 and NP grows from 6 to 10 points between n = 1 and n = 32 (Figure 2d).
5 Related Work
Here we place our contributions in the context of ongoing developments in the space of zeroth-order optimisation.
Zeroth-order optimisation and perturbation learning in neural networks. Classical ZO methods, including SPSA, finite-difference search, and random gradient-free optimisation, established the basic statistical machinery that perturbation learning relies upon [Spall, 1992, Nesterov and Spokoiny, 2017, Flaxman et al., 2005, Ghadimi and Lan, 2013, Shamir, 2017]. A focus towards neural-network specific applications has additionally brought a broad split into two families: weight perturbation, which injects noise directly into parameters [Jabri and Flower, 1991, Cauwenberghs, 1992, Werfel et al., 2003], and node perturbation, which injects noise into activities and assigns credit through the local Jacobian [Barto et al., 1983, Mazzoni et al., 1991, Seung, 2003, Fiete and Seung, 2006, Legenstein et al., 2010]. Hiratani et al. [2022] recently characterised how both families become unstable as networks deepen, share parameters, and are perturbed simultaneously across layers, and Züge et al. [2023] propose a hybrid estimator that empirically combines a weight-level forward pass with a node-level credit assignment (NTWP). Renewed practical interest in this regime has come from forward-only fine-tuning of large models [Malladi et al., 2023, Zhang et al., 2024], where the attraction is precisely that learning is reduced to inference-like evaluations. What is missing across this literature is a principled answer to the question of which directions a forward-only method should sample if we assume feature information is available. SZO- is the answer to that question, and explains various tradeoffs between NP, WP, and the NTWP methods into a single larger framework.
Structured and guided search directions. Several lines of work have further attempted to improve upon vanilla ZO methods by shaping search distributions rather than treating every direction as equally plausible. Covariance Matrix Adaptation [Hansen and Ostermeier, 2001] and Evolution Strategies [Salimans et al., 2017, Such et al., 2018] adapt their search covariance from historical search paths. Guided and self-guided ES [Maheswaranathan et al., 2019, Liu et al., 2020, Ilyas et al., 2019] bias the next probe towards a running estimate of the gradient itself. Orthogonalised probing [Flügel et al., 2025, Dexheimer and Schmidt-Hieber, 2026] decorrelates random directions, but still treats every parameter direction as a priori equivalent. Singhal et al. [2023] take a distinct approach and form structured gradient guesses by mixing input vectors, local output node sensitivities and even downstream weight matrices to post-hoc improve gradient estimates. SZO is distinguished from all of these by deriving its search geometry from the current and local forward pass: the activation second-moment is a free byproduct of inference, and conditioning the search on it requires neither history, an auxiliary gradient estimate or downstream network information, nor explicit orthogonalisation, while sampling a distribution over realisable parameter perturbations whose covariance is shaped by the full second-moment , with closed-form expected update geometry and controllable rank coverage via .
Preconditioning and natural-gradient methods. Natural-gradient learning [Amari, 1998] and its scalable approximations [Martens and Grosse, 2015, Gupta et al., 2018, Vyas et al., 2025, Jordan et al., 2024] precondition the gradient after it has been computed. SZO effectively inverts this relationship: it preconditions the search distribution so that the resulting estimator already carries a controllable spectral bias , and a subsequent whitening step (when desired) either recovers the unbiased gradient or turns the bias into an explicit preconditioned update if gradient structure emerges. Interestingly, pre-conditioning methods might actually aim to undo the spectral bias which we derive in this work.
6 Discussion and Limitations
Empirical takeaways. Across a range of settings, SZO- methods outperform isotropic WP in alignment with backpropagation, and lead NP when training convolutional networks with SGD. The largest gains are observed in exactly the regimes the theory predicts: overparameterised fully-connected layers, where concentrates rapidly, and convolutional layers, where weight sharing makes independent NP unrealisable in the first place. All of the proposed SZO methods, as well as NTWP which we show to be equivalent to SZO-1 in certain cases, do far better than traditional WP despite being weight-level perturbation methods proving the efficacy of a tailored search for zeroth-order methods. We therefore recommend SZO-1 where only weights can be perturbed: it beat WP in every setting, by 3.5 to 15 points, matched NP on fully connected layers and led NP on our CNN with SGD, though not with SOAP. Activation awareness (+1.4 to +2.5 points for 3 to 13% more time; Appendix G) and, at a fixed compute, more probes on a smaller batch (Appendix M) improve it further.
The cost of spectral shaping. Explicitly computing the SZO- estimator requires forming , which seems to require an eigendecomposition of the feature covariance matrix at every step. For wide modern networks this overhead can dominate the forward pass, and so the most practical versions of SZO are those that preserve the spectral bias without requiring a full matrix decomposition at every update. In this work, we make use of specific values of for which this decomposition is cheap to compute. Specifically, and both admit decomposition-free implementations for linear and convolutional layers (Appendix I). is a third natural choice that needs only matrix products, and our sweep (Appendix K) shows that alignment has already saturated by , although we do not train with it here. NTWP provides a further route: with per-batch credit it achieves the SZO-1-style spectral shaping through the activity-derived eligibility, without ever explicitly forming . Thus, although the full SZO- family has a nontrivial spectral cost in its most literal form, a range of useful choices we consider here can be implemented without expensive decompositions.
Deep network crosstalk. When all layers are perturbed simultaneously, every estimator considered here suffers from inter-layer 'crosstalk': the loss change caused by other layers' noise enters each layer's estimate. As shown in Appendix F, this crosstalk cancels in expectation but adds variance terms that grow with the number of simultaneously perturbed layers. The cleanest mitigation is iterative layer-wise perturbation, which we made use of for all main figures in this paper, at the cost of forward passes for a network of depth (Appendix D). This is a real compute tradeoff, but not an absolute requirement. In Appendix N we find that simultaneously perturbing all layers remains effective on the MLP and for the SZO- estimators on the CNN, albeit with a penalty in peak performance. This suggests that crosstalk can be treated as a variance-compute tradeoff rather than a fundamental obstruction to such methods, and developing constant-time variance-reduction strategies for specific zeroth-order applications is a natural next step.
7 Conclusion
Zeroth-order optimisation has long suffered from the curse of dimensionality, with random search directions becoming increasingly misaligned with the true gradient as parameter count grows. The central observation of this work is that the forward pass already exposes useful geometry: a layer's input second moment records, at no extra cost, which parameter directions can causally affect the network on the current data. Building on this observation we derived the SZO- family of spectral zeroth-order estimators, and showed that it unifies the existing perturbation literature under a single parameter: recovers weight perturbation, any non-zero choice of recovers node perturbation in fully connected layers with per-sample credit, and matches the hybrid perturbation method of Züge et al. [2023] in expectation under per-batch credit, which we formalise here as Node-Through-Weight Perturbation. On Fashion-MNIST and CIFAR-10 these estimators substantially improve gradient alignment over vanilla zeroth-order optimisation methods and show successful learning. We see SZO-, together with their realisability on shared-parameter architectures, as a step towards forward-only learning on hardware where backpropagation is undesirable or unavailable.
Acknowledgments and Disclosure of Funding
This publication is part of the project Dutch Brain Interface Initiative (DBI) with project number 024.005.022 of the research programme Gravitation which is (partly) financed by the Dutch Research Council (NWO).
This work used the Dutch national e-infrastructure with the support of the SURF Cooperative using grant no. EINF-18863.
References
Shun-ichi Amari. Natural gradient works efficiently in learning. Neural Computation, 10(2):251–276, 1998. URL https://doi.org/10.1162/089976698300017746.
Andrew G. Barto, Richard S. Sutton, and Charles W. Anderson. Neuronlike adaptive elements that can solve difficult learning control problems. IEEE Transactions on Systems, Man, and Cybernetics, SMC-13(5):834–846, 1983. URL https://doi.org/10.1109/TSMC.1983.6313077.
Atilım Güneş Baydin, Barak A. Pearlmutter, Alexey Andreyevich Radul, and Jeffrey Mark Siskind. Automatic differentiation in machine learning: A survey. Journal of Machine Learning Research, 18(153):1–43, 2018. URL https://jmlr.org/papers/v18/17-468.html.
Atilım Güneş Baydin, Barak A. Pearlmutter, Don Syme, Frank Wood, and Philip Torr. Gradients without backpropagation. arXiv preprint arXiv:2202.08587, 2022. URL https://arxiv.org/abs/2202.08587.
Gert Cauwenberghs. A fast stochastic error-descent algorithm for supervised learning and optimization. In Advances in Neural Information Processing Systems, pages 244–251, 1992. URL https://proceedings.neurips.cc/paper_files/paper/1992/hash/c06d06da9666a219db15cf575aff2824-Abstract.html.
Sander Dalm, Marcel van Gerven, and Nasir Ahmad. Node perturbation can effectively train multi-layer neural networks. Neuromorphic Computing and Engineering, 6(3):034020, 2026. URL https://doi.org/10.1088/2634-4386/ae9be4.
Niklas Dexheimer and Johannes Schmidt-Hieber. Improving the convergence rates of forward gradient descent with repeated sampling. Information and Inference: A Journal of the IMA, 15(3): iaag035, 2026. URL https://doi.org/10.1093/imaiai/iaag035.
Ila R. Fiete and H. Sebastian Seung. Gradient learning in spiking neural networks by dynamic perturbation of conductances. Physical Review Letters, 97(4):048104, 2006. URL https://doi.org/10.1103/PhysRevLett.97.048104.
Abraham D. Flaxman, Adam Tauman Kalai, and H. Brendan McMahan. Online convex optimization in the bandit setting: Gradient descent without a gradient. In ACM-SIAM Symposium on Discrete Algorithms, pages 385–394, 2005. URL https://arxiv.org/abs/cs/0408007.
Katharina Flügel, Daniel Coquelin, Marie Weiel, Charlotte Debus, Achim Streit, and Markus Götz. Beyond backpropagation: Optimization with multi-tangent forward gradients. In International Joint Conference on Neural Networks, pages 1–8, 2025. URL https://doi.org/10.1109/IJCNN64981.2025.11227446.
Saeed Ghadimi and Guanghui Lan. Stochastic first- and zeroth-order methods for nonconvex stochastic programming. SIAM Journal on Optimization, 23(4):2341–2368, 2013. URL https://doi.org/10.1137/120880811.
Jiaqi Gu, Chenghao Feng, Zheng Zhao, Zhoufeng Ying, Ray T. Chen, and David Z. Pan. Efficient on-chip learning for optical neural networks through power-aware sparse zeroth-order optimization. In AAAI Conference on Artificial Intelligence, pages 7583–7591, 2021. URL https://doi.org/10.1609/aaai.v35i9.16928.
Vineet Gupta, Tomer Koren, and Yoram Singer. Shampoo: Preconditioned stochastic tensor optimization. In International Conference on Machine Learning, pages 1842–1850, 2018. URL https://proceedings.mlr.press/v80/gupta18a.html.
Nikolaus Hansen and Andreas Ostermeier. Completely derandomized self-adaptation in evolution strategies. Evolutionary Computation, 9(2):159–195, 2001. URL https://doi.org/10.1162/106365601750190398.
Geoffrey Hinton. The forward-forward algorithm: Some preliminary investigations. arXiv preprint arXiv:2212.13345, 2022. URL https://arxiv.org/abs/2212.13345.
Naoki Hiratani, Yash Mehta, Timothy Lillicrap, and Peter E. Latham. On the stability and scalability of node perturbation learning. In Advances in Neural Information Processing Systems, pages 31929–31941, 2022. URL https://proceedings.neurips.cc/paper_files/paper/2022/hash/cf38eb1549024cce4b3d2c1bb87a6c27-Abstract-Conference.html.
Andrew Ilyas, Logan Engstrom, and Aleksander Madry. Prior convictions: Black-box adversarial attacks with bandits and priors. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=BkMiWhR5K7.
Marwan Jabri and Barry Flower. Weight perturbation: An optimal architecture and learning technique for analog VLSI feedforward and recurrent multilayer networks. Neural Computation, 3(4): 546–565, 1991. URL https://doi.org/10.1162/neco.1991.3.4.546.
Arthur Jacot, Franck Gabriel, and Clément Hongler. Neural tangent kernel: Convergence and generalization in neural networks. In Advances in Neural Information Processing Systems, pages 8571–8580, 2018. URL https://proceedings.neurips.cc/paper/2018/hash/5a4be1fa34e62bb8a6ec6b91d2462f5a-Abstract.html.
Keller Jordan, Yuchen Jin, Vlado Boza, Jiacheng You, Franz Cesista, Laker Newhouse, and Jeremy Bernstein. Muon: An optimizer for hidden layers in neural networks. Blog post, 2024. URL https://kellerjordan.github.io/posts/muon/.
Jack Kiefer and Jacob Wolfowitz. Stochastic estimation of the maximum of a regression function. The Annals of Mathematical Statistics, 23(3):462–466, 1952. URL https://doi.org/10.1214/aoms/1177729392.
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.
Alex Krizhevsky. Learning multiple layers of features from tiny images. Technical report, University of Toronto, 2009. URL https://www.cs.toronto.edu/~kriz/learning-features-2009-TR.pdf.
Yicheng Lang, Changsheng Wang, Yihua Zhang, Mingyi Hong, Zheng Zhang, Wotao Yin, and Sijia Liu. Powering up zeroth-order training via subspace gradient orthogonalization. In Advances in Neural Information Processing Systems, 2026. URL https://openreview.net/forum?id=M4Dr8w1xjd.
Robert Legenstein, Steven M. Chase, Andrew B. Schwartz, and Wolfgang Maass. A reward-modulated Hebbian learning rule can explain experimentally observed network reorganization in a brain control task. Journal of Neuroscience, 30(25):8400–8410, 2010. URL https://doi.org/10.1523/JNEUROSCI.4284-09.2010.
Fei-Yu Liu, Zi-Niu Li, and Chao Qian. Self-guided evolution strategies with historical estimated gradients. In International Joint Conference on Artificial Intelligence, pages 1474–1480, 2020. URL https://doi.org/10.24963/ijcai.2020/205.
Niru Maheswaranathan, Luke Metz, George Tucker, Dami Choi, and Jascha Sohl-Dickstein. Guided evolutionary strategies: Augmenting random search with surrogate gradients. In International Conference on Machine Learning, pages 4264–4273, 2019. URL https://proceedings.mlr.press/v97/maheswaranathan19a.html.
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, pages 53038–53075, 2023. URL https://proceedings.neurips.cc/paper_files/paper/2023/hash/a627810151be4d13f907ac898ff7e948-Abstract-Conference.html.
James Martens and Roger Grosse. Optimizing neural networks with Kronecker-factored approximate curvature. In International Conference on Machine Learning, pages 2408–2417, 2015. URL https://proceedings.mlr.press/v37/martens15.html.
Pietro Mazzoni, Richard A. Andersen, and Michael I. Jordan. A more biologically plausible learning rule for neural networks. Proceedings of the National Academy of Sciences, 88(10):4433–4437, 1991. URL https://doi.org/10.1073/pnas.88.10.4433.
Yurii Nesterov and Vladimir Spokoiny. Random gradient-free minimization of convex functions. Foundations of Computational Mathematics, 17(2):527–566, 2017. URL https://doi.org/10.1007/s10208-015-9296-2.
Jeffrey Pennington, Samuel S. Schoenholz, and Surya Ganguli. The emergence of spectral universality in deep networks. In International Conference on Artificial Intelligence and Statistics, pages 1924–1932, 2018. URL https://proceedings.mlr.press/v84/pennington18a.html.
Mengye Ren, Simon Kornblith, Renjie Liao, and Geoffrey Hinton. Scaling forward gradient with local losses. In International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=JxpBP1JM15-.
Kaushik Roy, Akhilesh Jaiswal, and Priyadarshini Panda. Towards spike-based machine intelligence with neuromorphic computing. Nature, 575(7784):607–617, 2019. URL https://doi.org/10.1038/s41586-019-1677-2.
David E. Rumelhart, Geoffrey E. Hinton, and Ronald J. Williams. Learning representations by back-propagating errors. Nature, 323(6088):533–536, 1986. URL https://doi.org/10.1038/323533a0.
Tim Salimans, Jonathan Ho, Xi Chen, Szymon Sidor, and Ilya Sutskever. Evolution strategies as a scalable alternative to reinforcement learning. arXiv preprint arXiv:1703.03864, 2017. URL https://arxiv.org/abs/1703.03864.
Andrew M. Saxe, James L. McClelland, and Surya Ganguli. Exact solutions to the nonlinear dynamics of learning in deep linear neural networks. In International Conference on Learning Representations, 2014. URL https://arxiv.org/abs/1312.6120.
Samuel S. Schoenholz, Justin Gilmer, Surya Ganguli, and Jascha Sohl-Dickstein. Deep information propagation. In International Conference on Learning Representations, 2017. URL https://openreview.net/forum?id=H1w1UN9gg.
Catherine D. Schuman, Shruti R. Kulkarni, Maryam Parsa, J. Parker Mitchell, Prasanna Date, and Bill Kay. Opportunities for neuromorphic computing algorithms and applications. Nature Computational Science, 2(1):10–19, 2022. URL https://doi.org/10.1038/s43588-021-00184-y.
H. Sebastian Seung. Learning in spiking neural networks by reinforcement of stochastic synaptic transmission. Neuron, 40(6):1063–1073, 2003. URL https://doi.org/10.1016/S0896-6273(03)00761-X.
Ohad Shamir. An optimal algorithm for bandit and zero-order convex optimization with two-point feedback. Journal of Machine Learning Research, 18(52):1–11, 2017. URL https://jmlr.org/papers/v18/16-632.html.
David Silver, Anirudh Goyal, Ivo Danihelka, Matteo Hessel, and Hado van Hasselt. Learning by directional gradient descent. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=5i71JLuhTm.
Utkarsh Singhal, Brian Cheung, Kartik Chandra, Jonathan Ragan-Kelley, Joshua B. Tenenbaum, Tomaso A. Poggio, and Stella X. Yu. How to guess a gradient. arXiv preprint arXiv:2312.04709, 2023. URL https://arxiv.org/abs/2312.04709.
James C. Spall. Multivariate stochastic approximation using a simultaneous perturbation gradient approximation. IEEE Transactions on Automatic Control, 37(3):332–341, 1992. URL https://doi.org/10.1109/9.119632.
Felipe Petroski Such, Vashisht Madhavan, Edoardo Conti, Joel Lehman, Kenneth O. Stanley, and Jeff Clune. Deep neuroevolution: Genetic algorithms are a competitive alternative for training deep neural networks for reinforcement learning. arXiv preprint arXiv:1712.06567, 2018. URL https://arxiv.org/abs/1712.06567.
Marcel van Gerven. Dynamical systems foundations for neuromorphic intelligence. Neuromorphic Computing and Engineering, 6(1):014022, 2026. URL https://doi.org/10.1088/2634-4386/ae5380.
Nikhil Vyas, Depen Morwani, Rosie Zhao, Itai Shapira, David Brandfonbrener, Lucas Janson, and Sham Kakade. SOAP: Improving and stabilizing Shampoo using Adam for language modeling. In International Conference on Learning Representations, 2025. URL https://proceedings.iclr.cc/paper_files/paper/2025/hash/e988664070e9591f93fdcf605f7dc623-Abstract-Conference.html.
Paul J. Werbos. Backpropagation through time: What it does and how to do it. Proceedings of the IEEE, 78(10):1550–1560, 1990. URL https://doi.org/10.1109/5.58337.
Justin Werfel, Xiaohui Xie, and H. Sebastian Seung. Learning curves for stochastic gradient descent in linear feedforward networks. In Advances in Neural Information Processing Systems, 2003. URL https://proceedings.neurips.cc/paper_files/paper/2003/hash/f8b932c70d0b2e6bf071729a4fa68dfc-Abstract.html.
Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-MNIST: A novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017. URL https://arxiv.org/abs/1708.07747.
Yihua Zhang, Pingzhi Li, Junyuan Hong, Jiaxiang Li, Yimeng Zhang, Wenqing Zheng, Pin-Yu Chen, Jason D. Lee, Wotao Yin, Mingyi Hong, Zhangyang Wang, Sijia Liu, and Tianlong Chen. Revisiting zeroth-order optimization for memory-efficient LLM fine-tuning: A benchmark. In International Conference on Machine Learning, pages 59173–59190, 2024. URL https://proceedings.mlr.press/v235/zhang24ad.html.
Paul Züge, Christian Klos, and Raoul-Martin Memmesheimer. Weight versus node perturbation learning in temporally extended tasks: Weight perturbation often performs similarly or better. Physical Review X, 13(2):021006, 2023. URL https://doi.org/10.1103/PhysRevX.13.021006.
A Gradient Guessing Based Upon the Local Response
Suppose one wishes to choose an ideal perturbation for a given layer before they have any knowledge of the downstream gradient. We can formalise this such that a layer, , with inputs , when combined with a perturbation produces . Writing the downstream error as , the first-order loss response is
If were known, the best fixed-norm perturbation would align with , which is exactly the unknown gradient. The useful question is therefore: what should be done when the forward pass gives , but gives no directional information about ?
The least aggressive assumption is that downstream errors are rotationally invariant across the activity coordinates and independent of the input-feature second moment. For example, assume entries of have zero mean and satisfy
Then the expected squared response of a candidate perturbation is
Thus, when downstream-gradient covariance is unknown and isotropy is the simplest assumption, the activation second-moment matrix is the only available geometry by which we can bias our search toward the true gradient. In this sense, SZO methods solve a local surrogate gradient alignment objective using the known feature geometry and an isotropic prior over the unknown downstream error.
When is the isotropy prior actually justified? The prior has two justifications. At initialisation, standard init schemes (orthogonal, He, dynamical-isometry) make rotationally symmetric in distribution across activity coordinates over the weight ensemble; this is the basis of NTK and signal-propagation analyses [Saxe et al., 2014, Schoenholz et al., 2017, Jacot et al., 2018, Pennington et al., 2018]. At any point in training, the isotropic prior is also the least informative choice when no information beyond the forward pass is used: it assumes no preferred direction for and no dependence of on . It is not guaranteed to hold once training introduces structure into , in which case the response surrogate is a principled heuristic rather than an exact optimum.
B Rank Collapse, Nuclear-Norm Coverage, and the Matched-Filter Derivation
Appendix A shows that, when the downstream gradient covariance is unknown, an isotropic prior over downstream errors reduces the local problem to the known feature second moment . That result identifies a geometry, but it does not yet identify the right utility for learning. If the utility is simply “make the scalar loss response as large as possible,” then the optimal perturbation is allowed to spend its entire budget on whichever feature direction gives the largest immediate response. This is the estimator which we identify as SZO-. This is attractive when the feature spectrum is sharply concentrated, when very few probes are available, or when one deliberately wants the strongest activity response per unit perturbation energy. The cost, however, of such a choice is that directions outside the leading eigenspace are not explored at all and we only have a rank-1 weight update for each probe explored.
We explore this outcome as well as what can be done to move beyond such a restricted estimator in this appendix. First, we show that the maximum-response objective gives a legitimate rank-1 estimator, SZO-. Second, we show that one can choose a different utility, namely rank-covering response rather than maximum scalar response, which leads to the matched-filter perturbation used by SZO-1. The response-energy surrogate from Appendix A gives
To see the solution directly, write the eigendecomposition , with eigenvectors and eigenvalues . Decompose each row of in this eigenbasis. Equivalently, let
denote the output-side perturbation attached to input eigenvector . Then
The optimisation should now be clear: is the perturbation energy placed on feature direction , and each unit of energy returns units of expected response. The maximum therefore assigns all energy to the largest eigenvalue:
which gives
Randomising isotropically across output units gives the stochastic SZO- estimator. It is optimal for maximum expected squared response under the isotropic downstream-gradient prior. However, its expected update keeps only the leading feature component,
which explains both its strength and its limitation: it has low variance and high response, but it discards gradient components outside the leading eigenspace.
SZO- is therefore one extreme of the space of options for perturbation. To obtain coverage, we do not have to change the underlying energy quantity, but to evaluate the same induced-activity energy under a concave penalty on its singular spectrum. Replacing each by a sum over the square roots yields the nuclear norm
Under the same perturbation budget, this values every induced singular direction linearly instead of quadratically, encouraging rank coverage.
The corresponding constrained problem is
Using the matrix derivative
we enforce the budget with a multiplier and form the Lagrangian
Since , setting gives the stationarity condition
A matched-filter solution satisfies this condition whenever has orthonormal columns, , which requires (for it holds only approximately); the output-side directions of are otherwise completely free. To check this by substitution, gives , so (a pseudo-inverse when ), and
so the condition holds with . As for SZO-, SZO-1 samples from this family of optima by drawing isotropically with entry variance : , so as below, so the spectral shaping is exact in expectation and only the output-side directions are random. This solution equalises the marginal expected response per searched direction: each unit of perturbation energy returns the same nuclear-norm contribution. The norm constraint fixes
Algorithm 1 SZO- for one layer
1: Input: layer , batch activations , loss , scale , exponent , draws , budget 2: Run a clean forward pass; set , , and baseline loss 3: Initialise 4: for do 5: Draw mean-zero isotropic (iid entries of variance ) 6: Form 7: Evaluate 8: Accumulate 9: end for 10: return
Therefore the rank-covering optimum has the form
The rank-1 solution , the matched filter and isotropic weight perturbation are all members of a single family obtained by raising to a power,
This is a natural way to interpolate between these solutions: rescaling the inputs multiplies every power of by a single constant, which the normaliser removes, so the relative emphasis on each feature direction does not depend on the scale of the inputs. The parameter controls the spectral tradeoff: is isotropic, is matched filtering, larger increasingly emphasises dominant features, and recovers rank collapse.
Two-sided evaluations replace the one-sided loss difference exactly as in SPSA, and in practice the fixed budget may be replaced by the realised for per-draw normalisation.
C Equivalences Between WP, NP, SZO-, and NTWP
SZO-0 recovers WP. For , , and
Up to the scalar normalisation, this is ordinary isotropic parameter noise. Correlating the loss change with is therefore weight perturbation or one-sided SPSA. Here assumes that the zero eigenvalues of are not ignored, and under it SZO-0 is WP for every ; this is how WP and the points of Appendix K are run. The limit only agrees with this assumption when has full rank: otherwise is low rank and tends to an orthogonal projector onto the span of the inputs, and to rank, so the noise is isotropic within that span and zero outside it. Since lies in that span (), the limit is also unbiased and only drops noise directions that cannot change the layer's output on the batch. Full rank is typical for a per-batch of a convolution, whose many patches span its input, but a per-sample of a fully connected layer has rank one, so there the limit is NP rather than WP, like every (below).
Sample-wise SZO- recovers NP in fully connected layers. For a single fully connected example is rank one with . In the limit,
where is isotropic in output/activity space when has isotropic rows. The induced activity perturbation is
which is exactly node perturbation up to scale. The corresponding weight eligibility is
the usual NP eligibility for . For a mini-batch with sample-wise losses, applying this construction independently to each and averaging recovers batch NP.
Shared-parameter layers break exact NP equivalence. In convolutional layers, the columns of are receptive-field patches over examples and spatial positions. Even for one image, is usually high-rank. A single shared kernel perturbation induces correlated node perturbations across positions:
Independent NP noise at every position would require a different for each patch, violating weight sharing. Thus SZO- is the realisable shared-parameter analogue of NP, not identical independent node perturbation.
NTWP recovers the SZO-1 expected geometry. The equivalence is easiest to see by deriving the expected update from both sides. Let
First consider explicit SZO-1. It draws a spectrally shaped weight perturbation
omitting scalar normalisation. The first-order loss change is
The SZO-1 update correlates this loss change with the same shaped direction , so
where the final equality follows from isotropy of . Thus SZO-1 produces the expected geometry , up to normalisation by and finite-difference error.
Now consider NTWP. For , draw isotropic parameter noise without spectral shaping. It induces the activity perturbation
Mapping this induced activity perturbation back to weights gives the local eligibility
The first-order loss change is measured through the original parameter perturbation:
NTWP then correlates this scalar with the activity-derived eligibility :
The two estimators therefore arrive at the same first-order expected geometry by different routes:
SZO-1 puts the spectral factor into the perturbation itself, whereas NTWP puts the spectral factor into the eligibility generated by the induced activity change. This is why NTWP implements the matched-filter bias without explicitly forming .
Per-sample credit breaks the NTWP/SZO-1 equivalence. The derivation above correlates one scalar loss difference for the whole batch with the eligibility . With per-sample credit, example instead correlates its own loss difference , with , with its own induced activity perturbation , normalised by its energy . Writing , which is isotropic so that ,
Per-sample NTWP is therefore an unbiased estimator of without any spectral factor: in expectation it is node perturbation, with node noise induced by a single realisable weight perturbation shared by the batch. NTWP and SZO-1 share the geometry only under per-batch credit. (With the per-example normaliser above, per-batch NTWP gives with , which matches up to scale when the inputs have equal norms.) All NTWP training results in this work use per-sample credit.
Algorithm 2 Node-Through-Weight Perturbation for one layer (per-batch credit)
1: Input: layer , batch activations , loss , scale , draws 2: Run a clean forward pass; set , , and baseline loss 3: Initialise 4: for do 5: Draw mean-zero isotropic parameter noise 6: Evaluate 7: Compute induced activity perturbation 8: Map activity credit to weights 9: Normalise 10: Accumulate 11: end for 12: return
D Optional Gradient Corrections
We collect here some optional stabilising methods from the literature that can be layered on top of any zeroth-order method, each targeting a distinct source of error in the generic linearised estimator , where is the effective search covariance, is finite-difference truncation error, and represents errors induced by using finite numbers of probes and inter-layer noise. Estimator-specific 's are listed in Appendix H, and full derivations are deferred to Appendices E through H. Table A.1 summarises these corrections, the error term each addresses, and their original references.
Table A.1: Optional corrections that can be layered on top of zeroth-order and perturbation-based gradient estimators. Each targets a distinct source of error in ,
| Correction | What it does | Origin |
|---|---|---|
| Iterative layer-wise perturbation | Sequentially perturbs a single layer at a time across a network, removing inter-layer crosstalk terms for an extra forward-pass cost. When all layers are instead perturbed simultaneously, the cross-layer covariance vanishes in expectation for all methods, but loss changes driven by other layers' noise inflate each layer's within-layer variance (Appendix F). | Dalm et al. [2026] |
| Activation Awareness | When perturbing nodes, or considering the effect of weight perturbation at the node level, one can additionally take into account the locally-available derivative of the node's activation function. This ultimately can allow ensuring that the updates applied to weights are guided by how susceptible the output nodes are to the weight change (Appendix G). | Singhal et al. [2023] |
| Whitening / preconditioning | Absorbs the rotation induced by using diagonal Adam-style second moments, Kronecker-factored Shampoo/SOAP, or Newton–Schulz orthogonalisation as in Muon. For SZO- this turns the intended spectral bias into an explicit preconditioned step; the same correction applies to NTWP, whose activity-derived eligibility shares SZO-1 geometry. | Jordan et al. [2024], Lang et al. [2026]; see also Kingma and Ba [2015], Gupta et al. [2018], Vyas et al. [2025] |
E Whitening Corrections for Perturbation Estimators
Let denote the eligibility used by a perturbation estimator after the scalar loss difference has been measured. For a one-sided estimator at scale ,
In the local linear regime,
so the expected update is controlled by the cross-covariance between the measured perturbation and the eligibility :
For WP and SPSA, , hence in population. For finite , however, the realised matrix can be far from , producing the finite-batch covariance rotation described in the main text. For SZO-, with and isotropic ,
up to the scalar normalisation used in Algorithm 1. For NTWP, while the loss is measured with , yielding the same first-order geometry .
When the layer update is matrix-valued, many of these covariances factor on the output and input sides:
The damped whitening correction is therefore
If the goal is an unbiased Euclidean gradient estimate, Eq. (4) removes the covariance factors in Eq. (3). If the goal is faster optimisation, the same operation can instead be interpreted as a layer-wise natural-gradient or KFAC-style preconditioned step: is estimated from input activations and from output-side sensitivity statistics.
Table A.2: Whitening corrections.
| Method | Effective covariance | Whitening correction | Practical form |
|---|---|---|---|
| WP/SPSA | in population; realised at finite | optional correction by or optimiser state | Adam, Muon |
| NP | activity-noise covariance | whiten active activity locus before mapping to weights | Adam, Muon |
| SZO- | input factor | right multiply by , or keep as preconditioner | Shampoo/SOAP |
| NTWP | activity-induced factor | right whitening of activity eligibility; optional two-sided correction | preconditioned |
The damping is essential in low-rank or saturated regimes. Whitening exactly along directions with near-zero covariance would amplify noise in directions that were barely sampled. In practice one either damps, truncates small eigenvalues, or whitens only on the active subspace identified by the current batch.
F Inter-Layer Variance and Crosstalk
Consider a depth- network in which all layers are perturbed simultaneously. Let be the stochastic object used at layer : a weight perturbation for WP/SZO, an activity perturbation for NP, or, for NTWP, a weight perturbation whose own induced activity perturbation forms the eligibility. The first-order loss change decomposes as
The estimator for layer has the form , where is the layer eligibility trace. The second moment between layers and is
When , independent mean-zero layer perturbations make the only surviving pairings factor into
for WP, NP, SZO, and NTWP. Thus their spurious cross-layer covariance vanishes in expectation. The within-layer case is different because the outer factor is even in the layer- noise. Squaring
Eq. (5) gives a double sum over layer pairs ; its diagonal terms with survive and add a positive variance contribution from every other layer:
The shape depends on the eligibility: for WP it is approximately isotropic in parameter space; for NP it is activity-noise covariance mapped through the local input; for SZO it carries the feature geometry induced by ; and for NTWP it is the covariance of the layer's own induced activity perturbation mapped back through the local input, which is -shaped like SZO-1 under per-batch credit and NP-like under per-sample credit.
NTWP falls in the same class because its eligibility is built from the layer's own injected perturbation only. Under simultaneous perturbation the layer input is the noisy , but the upstream contribution to is second order in and has zero mean, since appears in it only once.
The situation differs if the eligibility is instead built from the measured activity change (noisy minus clean output), as in activity-based node perturbation [Dalm et al., 2026].
G Activation-Aware Credit Assignment
Consider a perturbed layer with pre-activations followed by an elementwise nonlinearity . By the chain rule the pre-activation gradient is
where is evaluated at the clean forward pass. A unit with , such as an inactive ReLU, has no first-order effect on the loss: any credit assigned to it adds variance to the estimate without adding signal. Like the activation second moment , the slope is available locally during the forward pass at no additional cost, and can therefore be used to shape credit assignment without any backward computation.
The awareness weight . We weight the credit assigned to each unit by and choose using the same isotropic-prior argument as in Appendix A, now placed on the post-activation gradient. Let be an unbiased per-unit estimate of with approximately unit-independent variance , and take the update . Under an iid prior , a step of size yields the expected first-order decrease and second-order variance cost
respectively, for a local curvature scale . Maximising their difference over gives . This weight has two useful properties. First, it is non-negative for any activation function, so non-monotone activations (e.g. GELU, SiLU) never flip the sign of a unit's credit. Second, for ReLU and max-pooling it is an exact 0/1 mask (for the leaky ReLU of our networks, , approximately so), so the expected update on the active units is unchanged and the variance contributed by inactive units is removed entirely.
Node-space estimators (NP, NTWP). For estimators whose eligibility lives in activity space, the node credit is replaced by before it is mapped back to weights through the local input,
while the normaliser is kept as the unweighted perturbation energy. For NTWP, is the induced activity perturbation . For a 0/1 slope the expected node credit is therefore exactly the node gradient on the active units.
Weight-space estimators (WP, SZO-1, SZO-∞). For estimators that correlate the loss change with a weight perturbation , activation awareness only modifies the readout, not the perturbation itself. Each loss difference is weighted per example and output channel before the batch is aggregated,
so that the update to row of only receives credit from examples in which output can affect the loss. For a linear layer . For a convolutional layer the slope varies over spatial positions , and is averaged with weights given by how strongly the probe changed each position's output,
with in general and for the energy-weighted SZO- construction of Appendix I. The weights are used without renormalisation. On a linear layer a 0/1 slope therefore masks whole rows, and each estimator retains its own expected update on the active rows. On a convolutional layer the averaged weight scales a channel's update rather than masking positions: behind a max-pool only about one position in four passes gradient, so the step of that layer shrinks by about the same factor. In all cases, recovers the activation-unaware estimator exactly.
Scope. The slope must come from a local, per-unit map between the perturbed layer and its successor: elementwise activations, affine maps, residual sums (holding the other summand at its clean value), and non-overlapping max-pooling. Normalisation layers and dropout couple units or examples, so is no longer a per-unit slope, and activation awareness is not applied through them. Behind a max-pooling layer, the clean pooled slope is routed through each probe's own pooling winner, so that a probe which changes a window's maximum is credited to the unit it actually passed through. Singhal et al. [2023] similarly exploit local activation derivatives, but use them to construct the gradient guess itself; here they only reweight the credit assigned by an otherwise unchanged perturbation estimator, and can therefore be layered on top of any of the methods in this work. Activation awareness is an optional correction and is only used where explicitly indicated.
Empirical effect. Figures 3 and 4 compare every method with and without activation awareness, trained with SGD and , each setting at its own selected learning rate. On the Fashion-MNIST MLP, awareness raises the final test accuracy of NP, NTWP, SZO-1 and SZO- and leaves WP unchanged. On the CIFAR-10 CNN it helps NP and NTWP most and SZO-1 less, while WP and SZO- stay within their confidence intervals. All other experiments in this work are activation-unaware, except the bottom rows of Figures 11 and 15.

Figure 3: Final test accuracy with and without activation awareness. Open circles, activation-unaware; filled diamonds, activation-aware; SGD with n = 1, each setting at its own selected learning rate. Points show the mean over the last 10 of 250 epochs and 10 seeds, with 95% confidence intervals.

(c)
(d)
Figure 4: Test accuracy over training without (a,b) and with (c,d) activation awareness. Panels (a,b) repeat Figure 2(a,c); BP (not shown) reaches 89.9% and 83.6%. SGD with n = 1, each setting at its own selected learning rate; lines show the mean over 10 seeds, smoothed over 5 epochs, and shaded bands standard deviation.
H Bias-Variance Tradeoffs Across Perturbation Algorithms
All perturbation estimators trade unbiasedness against variance and coverage. For a generic estimator, the linearised expected update can be written as
where is the exact gradient in the relevant matrix form and is the effective covariance or spectral preconditioner induced by the perturbation rule. Unstructured methods aim for , while SZO intentionally chooses to emphasise data-supported directions.
Table A.3: Bias-variance structure of the perturbation estimators. Here is parameter dimension, is activity dimension, is layer-input dimension, , is the leading eigenvector of , and is the number of probes.
| Method | Expected update geometry | Dominant variance scale | Main tradeoff |
|---|---|---|---|
| WP/SPSA | when | Unbiased target, high dimension | |
| NP | when | Lower dimension, may be un-realisable | |
| SZO-0 | nominal | WP endpoint | |
| SZO-1 | Broad spectral bias, lower effective dimension | ||
| SZO- | Lowest coverage, strongest variance reduction | ||
| NTWP | up to normalisation (per-batch credit); (per-sample) | Realisable node-like credit |
For SZO-, isotropic gives
Thus the bias relative to the exact gradient is
This bias is intentional: directions with little activation support receive less perturbation budget. The variance decreases as the effective searched spectrum shrinks. A convenient summary is the spectral effective dimension
which is large for flat spectra and small for concentrated spectra. Increasing usually reduces variance by reducing , but increases bias by discarding low-variance feature directions. In closed form, with , the worst-case alignment obeys the Kantorovich bound , which loosens as grows (growing bias budget), while the relative variance scales as with an exact dependence (measured successive ratios for ) and predictions tight to measurement within 8–27%. We state bounds on estimator quality, not convergence guarantees.
NTWP has a related but implementation-friendly bias. It perturbs parameters isotropically, but assigns credit through the induced activity perturbation:
Therefore, with per-batch credit, its expected update carries the same -shaped geometry as SZO-1, while its variance is governed by the effective rank of induced activity perturbations rather than the raw parameter dimension. This is the central practical advantage: NTWP keeps perturbations realisable, respects shared parameters, and obtains node-like variance scaling when the activity locus is much smaller than the parameter space.
I Avoiding the Cost of Eigenvector Decompositions
The SZO- family requires forming with , which in general demands an eigendecomposition of the feature covariance at every step ( cost). For modern wide layers this can easily dominate the forward pass and undermines the principal motivation of zeroth-order methods, namely cheap, inference-only updates. This appendix details the two regimes in which we are able to avoid the eigendecomposition entirely while still implementing the SZO- (rank-1) estimator. It closes with the corresponding decomposition-free constructions for and . As a reminder, this SZO- estimator makes use of a rank-1 perturbation constructed ideally from the leading eigenvector of the input features and a fresh isotropic channel noise over the layer's outputs.
Fully connected layers: per-sample representatives. Recall that for a single-sample input () the leading eigenvector of is exactly , so SZO- collapses to NP. For a mini-batch of inputs , no eigendecomposition is needed if we are willing to treat each batch element as carrying its own rank-1 perturbation: we set
with independent channel noise drawn per (probe, batch element) pair. The forward perturbation is computed without ever forming the dense weight perturbation, exploiting the rank-1 structure
where is the noisy input replica for probe and batch element . The resulting estimator costs per probe and never instantiated , let alone its decomposition.
Convolutional layers: an energy-weighted representative patch. Convolutions complicate the picture because weight sharing means that even a single image yields a high-rank : the unfolded patches from a single sample already span a many-dimensional subspace. Here we cannot collapse SZO- to NP as in the linear case, but we can still avoid the eigendecomposition by choosing to be a single representative patch per sample. Concretely, for each batch element we collect the input patches seen by the kernel (with ), and from them form a single representative patch by normalising their energy-weighted mean,
This is a cheap surrogate for the leading eigenvector of the per-sample patch second moment . One power-iteration step from the summed patches would weight each patch by its overlap with all patches, ; the energy-weighted mean keeps only each patch's overlap with itself, , and so favours high-energy patches at cost rather than the of a full eigendecomposition. A fresh isotropic channel noise is then drawn per (probe, batch element) pair. The kernel perturbation is the rank-1 outer product , reshaped to . A convolution applies its kernel to the patch at every spatial position , so the induced output perturbation at position is
and it can be evaluated without ever materialising : a single inner product per spatial position, broadcast across output channels by . This costs per probe and, again, never instantiated either or any decomposition of it.
SZO-1 with per-sample credit: drawing the shaped probe directly. With per-sample credit, each batch element receives its own probe shaped by its own second-moment matrix, . Stacking the sample's receptive-field patches as the rows of gives and . For Gaussian noise with independent entries, each row of is therefore Gaussian with covariance , exactly as each row of , so
The probe is thus drawn over the sample's patch positions and projected through its patches, at the cost of a matrix multiplication and with no eigendecomposition. For a linear layer , and this reduces to the rank-1 per-sample construction above.
SZO-2 requires no matrix root. At the shaping matrix is itself, so is two matrix products, and the normaliser is computed from the Gram matrix; neither nor a decomposition of it needs to be formed.
Newton–Schulz approximates without loss of alignment. Where an explicit is needed (), three Newton–Schulz iterations (three matrix multiplies, no eigendecomposition) reach 16% relative matrix error yet cost only of gradient alignment (0.8917 vs. 0.9012); five iterations are indistinguishable from exact eigendecomposition. The estimator is insensitive to approximation error in the shaping matrix.
J Layer-wise Gradient Alignment
Figure 1 reports gradient alignment for a single layer of the networks that we investigated for training on the Fashion-MNIST and CIFAR-10 tasks. This appendix extends that measurement to every layer, comparing the two credit regimes of Section 3.4. For 20 different random seeds, the networks are freshly initialised and a batch of examples is drawn from the validation split. For each layer in turn, only that layer is perturbed (all other layers are left clean), and its gradient estimate is formed from probes (up to 4096 for the MLP and 1024 for the CNN) with perturbation scale . We report the angle between the estimated gradient and the exact backpropagation gradient for the same weights and batch. Under per-batch credit, each probe is shared by the whole batch and contributes a single scalar loss difference. Under per-sample credit, each batch element receives its own probe and its own loss difference. Per-sample WP requires an independent weight perturbation per probe and per batch element, and is omitted because of its memory cost.
J.1 Fashion-MNIST MLP
Figure 5 shows both weight layers of the 784–500–10 MLP. For a linear layer, each example's own second-moment matrix is rank one, so every per-sample SZO- with reduces to the same estimator (Appendix C), so per-sample SZO-1 and SZO- show identical values. As predicted, per-sample SZO-1, SZO- and NP coincide at every in both layers. Under per-batch credit, NTWP and SZO-1 are likewise indistinguishable, consistent with our theoretical analysis of their similarity (Appendix C).
J.2 CIFAR-10 CNN
Figure 6 shows all six weight layers of the CIFAR-10 CNN: two convolutions with 32 channels, max-pooling, two convolutions with 64 channels, max-pooling, a bottleneck convolution to 16 channels, and a linear readout from the resulting 1024 features to the 10 classes. On convolutional layers each example contributes many receptive-field patches, so its second-moment matrix is high rank and per-sample SZO-1 and SZO- are distinct estimators; on the linear readout they again coincide with per-sample NP.
NP aligns poorly on every convolutional layer under either credit, consistent with independent per-position node perturbations not being realisable by a shared kernel. In per-batch credit NTWP and SZO-1 are indistinguishable on every layer.
Hidden Linear Layer: (392 000) Parameters

Output Linear Layer: (5 000) Parameters

Figure 5: Layer-wise gradient alignment for the Fashion-MNIST MLP at initialisation. Each row is one weight layer; left panels use per-batch loss-difference credit and right panels per-sample credit. Points show the mean angle between the estimated and the backpropagation gradient over 20 seeds (initialisation and batch of 128); error bars are standard deviation. Only the layer shown is perturbed. On a linear layer per-sample SZO- is the same estimator for every , so per-sample SZO-1 and SZO- show identical values; per-sample WP is omitted.
Conv Layer 1: 3→32, 3×3 (864) Parameters

Conv Layer 2: 32→32, 3×3 (9216) Parameters
Conv Layer 3: 32→64, 3×3 (18432) Parameters

Conv Layer 4: 64→64, 3×3 (36864) Parameters
Bottleneck Conv Layer: 64→16, 1×1 (1024) Parameters

Output Linear Layer: (10240) Parameters

Figure 6: Layer-wise gradient alignment for the CIFAR-10 CNN at initialisation. Each row is one weight layer; left panels use per-batch loss-difference credit and right panels per-sample credit. Points show the mean angle between the estimated and the backpropagation gradient over 20 seeds (initialisation and batch of 128); error bars are standard deviation. Only the layer shown is perturbed. On the linear readout per-sample SZO- is the same estimator for every , so per-sample SZO-1 and SZO- show identical values; per-sample WP is omitted.
K Spectral Exponent Sweep
The main text considers SZO- at . To show how alignment depends on between and beyond these values, we sweep on the two layers of Figure 1: the first layer of the Fashion-MNIST MLP and the last convolutional layer of the CIFAR-10 CNN. The protocol is that of Appendix J with the number of probes varied from to : for each of 20 seeds the network is freshly initialised, a batch of validation examples is drawn, only the measured layer is perturbed, and the angle to the exact backpropagation gradient is recorded under per-batch and per-sample credit. is run as WP (), as SZO-, and every other value as SZO- with the matrix power . All values of share the same initialisation, batch and random draws within a seed.
Figure 7 shows the result. On the linear layer under per-sample credit, the angle falls from approximately at to a significantly lower value but then remains identical for every , as each example's second-moment matrix is rank one and SZO- reduces to the same estimator (Appendix C). Under per-batch credit on the same layer, has a small effect at this budget: the angle decreases smoothly from approximately but in some cases appears to rise for large . Convolutional layers show a very similar effect, though now (as the theory predicts) there are significant differences between the alignment for different spectral exponents even in the per-sample case. On both layers, alignment improves steadily up to and saturates by , with no intermediate value outperforming the plateau; therefore span the behaviour of the family. On the convolutional layer, SZO- lies within one standard deviation of the large- plateau; it is implemented with the energy-weighted patch surrogate of Appendix I rather than the exact limit.
Fashion-MNIST MLP, Hidden Linear Layer: (392 000) Parameters

CIFAR-10 CNN, Conv Layer 4: 64→64, (36 864) Parameters

Figure 7: Gradient alignment as a function of the spectral exponent at various probe budgets. Rows show the first layer of the Fashion-MNIST MLP and the last convolutional layer of the CIFAR-10 CNN; left panels use per-batch loss-difference credit and right panels per-sample credit. Points show the mean angle between the estimated and the backpropagation gradient over 20 seeds (initialisation and batch of 128); error bars are standard deviation. (WP), and are highlighted in their method colours; the axis is categorical.
Training. To test whether the alignment trend carries over to training, we train the CIFAR-10 CNN with per-sample SZO- for , using SGD with and the learning rate selected for SZO-1 ( ) for every , with 3 seeds. Figure 8 shows that validation accuracy after
250 epochs rises with up to (46.6% at , 47.1% at ) and falls again at (43.4%), so unlike alignment at initialisation, final accuracy does not saturate beyond . Every uses the learning rate tuned for , which may favour values near and partly explain the drop at . For the implementation takes the limit (Appendix C), in which becomes the projector onto the span of the sample's own patches: this is per-sample WP only on layers whose patches span the layer input, noise restricted to the patch span on the other convolutions, and NP on the linear readout, so it is not the per-batch WP of the other experiments.
CIFAR-10 CNN, per-sample SZO-, SGD, learning rate

Figure 8: Training the CIFAR-10 CNN with per-sample SZO- for different spectral exponents . Left, validation accuracy over training (mean over 3 seeds, smoothed over 5 epochs, shaded bands standard deviation); right, its mean over the last 10 of 250 epochs with 95% confidence intervals. SGD with at the learning rate of SZO-1 () for every ; is SZO-1 and shown in its method colour, and denotes the limit (see text).
L Final Test Accuracies
Figure 9 reports the final test accuracies of the perturbation-based learning methods on Fashion-MNIST and CIFAR-10, trained with SGD as in Figure 2 and additionally with Adam and SOAP, each at its own selected learning rate (Table A.7). As expected, BP achieves the highest accuracy on both datasets (89.9, 90.2 and 90.4% on Fashion-MNIST and 83.6, 84.2 and 83.7% on CIFAR-10 with SGD, Adam and SOAP). Among the perturbation-based methods, NP, SZO-1 and SZO- perform identically on Fashion-MNIST with NTWP close behind, while SZO-1 obtains the highest accuracy on CIFAR-10 with SGD and Adam. With SOAP, every method except WP improves substantially, most of all on CIFAR-10, where NP and NTWP reach the highest accuracies. In contrast, WP performs substantially worse, especially on CIFAR-10, and gains little from adaptive optimisers. Figure 10 shows the corresponding training curves for each optimiser.

Figure 9: Final test accuracy per method and optimiser. SGD (circles, 10 seeds), Adam (triangles) and SOAP (squares, 5 seeds each), , each method at its own selected learning rate. Points show the mean over the last 10 of 250 epochs with 95% confidence intervals. Learning rates were selected on a validation split (20% of the training set; Table A.7); the final runs train on the full training set and are evaluated on the official test split. BP (not shown) reaches 89.9, 90.2 and 90.4% on Fashion-MNIST and 83.6, 84.2 and 83.7% on CIFAR-10 with SGD, Adam and SOAP.

Figure 10: Test accuracy over training for each optimiser. Rows show the Fashion-MNIST MLP and the CIFAR-10 CNN, columns SGD, Adam and SOAP, with each method at its own selected learning rate and . Lines show the mean over seeds (SGD 10, Adam and SOAP 5), smoothed over 5 epochs, and shaded bands standard deviation; BP is not shown (final accuracies in Figure 9).
M Number of Probes per Step
Figure 11 extends Figure 2(b,d). We compare three ways of paying for more probes: with more compute per step at a fixed batch (Figure 11), with fewer steps at an equal total of forward passes (Figure 13), and with fewer examples at a fixed compute per step (Figure 12). Each method is trained with SGD at the learning rate selected for (Table A.7) with probes per step for 250 epochs on the validation split, with 3 seeds and the batch size fixed at 128. The top row repeats the accuracy after 250 epochs; the bottom row repeats it with activation awareness (Appendix G), each method at the learning rate selected for in that setting (Figure 15). With awareness, the methods whose perturbation is shared across the batch gain most on CIFAR-10 ( to 32: NTWP 48.2 to 64.5%, WP 38.5 to 61.2%); awareness also raises their selected learning rates, which may account for part of this. At an equal budget of forward passes, i.e. after epochs, so that every point has used the same number of forward passes including the clean pass (Figure 13), more probes per step do not pay off: no method improves on by more than a point, and every method falls for , on CIFAR-10 least the SZO- estimators (activation-unaware SZO-1: 46.6% at , 43.5% at , 28.1% at ).

Activation-aware
Fashion-MNIST MLP

Figure 11: Validation accuracy against the number of probes per step . Top, after 250 epochs, as in Figure 2(b,d); bottom, the same with activation awareness. SGD at each method's learning rate for in that setting; points show the mean over 3 seeds with 95% confidence intervals.
Probes or examples at a fixed compute per step. A fixed compute per step can buy either more probes or more examples. In Figure 12 every step costs the same forward passes, from , to , , and every method takes the same 1250 SGD steps (4 epochs at ), starting from a random initialisation and from a network pretrained by BP for 3 epochs. From the pretrained network the trade is close to neutral down to , and only very small batches lose. From the random initialisation every method is still close to chance (at most 16% validation accuracy), but NTWP and the SZO estimators already gain up to 4.5 to 5.7 points against at most 2.3 for NP and WP, in line with their alignment on convolutional layers (Figure 1). Over full training at the same compute per step as , , the trade pays off: SZO-1 reaches 48.7% (, ) and 49.9% (, ) validation accuracy against 45.7%, and WP 40.5% and 41.2% against 37.8% (mean over 3 seeds of the last 4% of training steps), with and within seed noise. At a fixed learning rate the expected step is the same for every and : the number of steps sets how far training gets and the noise of a step how close it settles, which is why trading steps for probes loses (Figure 13) while trading examples for probes gains. In practice, this suggests choosing the estimator first, keeping the number of steps, and spending a fixed budget per step on a few probes on a smaller batch; on the CNN, already gives most of the gain of .

Figure 12: Probes or examples at a fixed compute per step, measured. Change of validation accuracy (points) of the CIFAR-10 CNN after 1250 SGD steps with probes on a batch of examples, where every step costs the same forward passes: the perturbed passes and the clean pass of each example. Every run starts from the same weights: a random initialisation (left), or that initialisation after 3 epochs of BP (right, 40.9% validation accuracy). Each method uses the learning rate selected per from the pretrained start (lowest final validation loss, 3 seeds); points show the mean one standard deviation over 3 further seeds. For reference, BP () changes the validation accuracy over the same 1250 steps by (left) and points (right).

Figure 13: Validation accuracy at an equal budget of forward passes. The activation-unaware runs of Figure 11 (top) after epochs, so that every point has used the same number of forward passes, the perturbed passes and the clean pass of each example, as after 250 epochs. Points show the accuracy of that epoch, mean over 3 seeds with 95% confidence intervals.
N Iterative vs. Simultaneous Layer Perturbation
The estimators considered in this work can be applied in two different probing modes when training multi-layer networks. In the iterative mode, only one layer is perturbed at a time and the loss difference is used to update that layer alone, cycling through all layers within each training step. In the simultaneous mode, every layer is perturbed at the same time and a single loss difference is used to update all layers jointly. Simultaneous probing is appealing because it requires only a single perturbed forward pass per step regardless of network depth, but it also raises the concern that noise injected at upstream layers will corrupt the activity at downstream layers and bias their estimates. Figure 14 compares the resulting validation accuracy dynamics under these two modes for the methods studied in this work.

Figure 14: Validation accuracy dynamics under iterative (one layer at a time) versus simultaneous (all layers perturbed at once) probing modes. The learning rate of each method was selected separately for each mode by the same grid search; all other hyperparameters are matched between the two configurations. SGD with ; lines show the mean over 3 seeds, smoothed over 5 epochs, and shaded bands standard deviation.
As can be seen, on the Fashion-MNIST MLP the impact of iterative vs simultaneous training is qualitatively minimal, though the accuracies reached with iterative probing are up to two points higher. On the CIFAR-10 CNN, simultaneous probing costs considerably more: SZO-1 and SZO- still reach 35% and 33% validation accuracy after 250 epochs, compared with 46% and 44% when iterative, while WP and NTWP learn slowly and NP does not improve on chance. Both modes are compared at an equal number of training steps, at which simultaneous probing uses about half the compute of iterative probing on the CNN and three quarters on the MLP (Appendix O, Computational complexity). Therefore the iterative method was used across all simulations in this work.
O Computational Resources and Hyperparameters
Training and gradient-alignment runs used GPU nodes equipped with four accelerators each, AMD EPYC host CPUs, and high-bandwidth NVLink interconnect between the four GPUs on a node, as well as GPU workstations. Each individual training run for the Fashion-MNIST MLP and the CIFAR-10 CNN occupied a single GPU. The four GPUs of a node were used to run independent seeds and method configurations in parallel rather than to shard a single model. Table A.4 lists the compute, wall-clock time and peak memory per training step of every method, measured on a single NVIDIA A100.
Table A.4: Compute and memory per training step. Batch size 128, , FP32, iterative probing, final configuration; MACs: multiply-accumulates per training step counted on our implementation, relative to BP on the same task (Computational complexity, below); time: measured time per step relative to BP, on one dedicated NVIDIA A100 (40 GB), all methods in one session, median over 3 repeated runs of the mean over epochs 2–3 (repeats differ by at most 3%), without activation awareness, which adds 3 to 13% (Appendix G); peak: peak allocated GPU memory. MAC counts leave out element-wise operations, memory traffic and kernel-launch overhead, which dominate the step time of networks this small, so the measured time ratios are larger. Our implementations are research code and not optimised for speed; faster implementations of every method are likely possible.
| Method | Fashion-MNIST | CIFAR-10 | ||||||
|---|---|---|---|---|---|---|---|---|
| MACs | ms/step | time | peak MiB | MACs | ms/step | time | peak MiB | |
| BP | 1.0× | 2.1 | 1.0× | 77 | 1.0× | 7.1 | 1.0× | 573 |
| NP | 2.0× | 6.2 | 2.9× | 69 | 2.0× | 19.2 | 2.7× | 563 |
| WP (SZO-0) | 2.0× | 6.7 | 3.1× | 70 | 1.7× | 19.8 | 2.8× | 343 |
| NTWP | 2.5× | 6.7 | 3.1× | 69 | 2.0× | 20.3 | 2.9× | 563 |
| SZO-1 | 2.0× | 6.8 | 3.2× | 69 | 2.5× | 27.7 | 3.9× | 388 |
| SZO-∞ | 2.0× | 6.7 | 3.1× | 69 | 1.3× | 23.9 | 3.4× | 528 |
Computational complexity. We count multiply-accumulates (MACs) per training step. A layer with fan-in ( times the kernel area for a convolution), outputs and output positions ( for a linear layer) costs MACs for a forward pass over a batch of , and the network ; backpropagation costs about 3. A perturbation step costs a clean forward pass, the probes, and a local update:
An iterative probe of layer reuses the cached clean input of that layer and reruns only the layers from onwards, so is the depth weighted by where the compute lies: 1.01 for our MLP, whose compute sits almost entirely in the first layer, and 2.93 for our CNN. The update is local to the perturbed layer and the same in both modes:
| Method | Update cost |
|---|---|
| NP, NTWP | (one weight-gradient product, ) |
| WP | per layer |
| SZO-1 (per-sample) | (forming each example's probe from its patches) |
| SZO-∞ (per-sample) | for , for the update |
These expressions give the minimal work of each mode. Table A.4 instead counts the MACs of our implementation, together with measured time and peak memory. Iterative probing runs one pass per perturbed layer, back to back, rather than all layers in one go, and each pass carries its own overhead:
it recomputes the clean rows of the perturbed layer ( per step in total), and on linear layers WP and NTWP apply the weight perturbation as a separate product (). Simultaneous probing pays this overhead in a single pass. By the expressions above the two modes therefore cost the same on the MLP (), whereas in the counts of our implementation simultaneous probing uses about three quarters of the MACs of iterative probing on the MLP and about half on the CNN ( to ; SZO-1: ), at an equal number of steps. In measured time the gap is smaller still: a simultaneous step takes 0.9 of an iterative one on the MLP and 0.76 to 0.96 on the CNN. No method stores a backward graph, so peak memory is close to that of backpropagation; per-sample SZO-1 additionally holds the per-example weight perturbations of one layer ( entries).
We estimate the total compute used for the reported results, including hyperparameter exploration and discarded preliminary runs, at the order of a few hundred GPU-hours.
O.1 Network Architectures
Table A.5 lists the weight layers of both networks. Every layer has a bias, and every layer except the output is followed by a leaky ReLU (negative slope 0.01); no normalisation layers are used. Convolutions use stride 1, and convolutions use padding 1. In the CNN, max-pooling follows the second and fourth convolutions, and the bottleneck reduces the feature map to , which is flattened into the 1024 inputs of the linear readout.
Table A.5: Network architectures. Output shapes are channels height width; weight counts exclude biases.
| Layer | Type | Configuration | Output | Weights |
|---|---|---|---|---|
| Fashion-MNIST MLP (input 784) | ||||
| 1 | Linear | 784 → 500 | 500 | 392,000 |
| 2 | Linear (output) | 500 → 10 | 10 | 5,000 |
| CIFAR-10 CNN (input ) | ||||
| 1 | Conv | 864 | ||
| 2 | Conv + max-pool | 9,216 | ||
| 3 | Conv | 18,432 | ||
| 4 | Conv + max-pool | 36,864 | ||
| 5 | Conv (bottleneck) | 1,024 | ||
| 6 | Linear (output) | 10 | 10,240 | |
O.2 Hyperparameters
Table A.6 summarises the hyperparameters used for the Fashion-MNIST MLP and CIFAR-10 CNN experiments. The learning rate was selected by a grid search for each method, optimiser and dataset (Table A.7, Figure 15); all other hyperparameters are shared. Optimiser-specific settings for Adam and SOAP, as well as per-method probing settings such as the number of probes, perturbation scale , SZO- value, and simultaneous versus iterative probing, are listed where they differ from the defaults of the corresponding optimiser or estimator.

Figure 15: Validation accuracy across the learning-rate grid, activation-unaware (top two rows) and activation-aware (bottom two rows, Appendix G). Mean over the last 10 of 250 epochs and 3 seeds, n = 1, for SGD, Adam and SOAP; stars mark the selected learning rate (Table A.7). Learning rates at which at least one seed diverged are omitted.
Table A.6: Overview of hyperparameters used for the Fashion-MNIST MLP and CIFAR-10 CNN experiments. Shared settings are listed once; dataset- or architecture-specific settings are indicated where they differ.
| Hyperparameter | Symbol | Value |
|---|---|---|
| Architecture and data | ||
| Architecture Fashion-MNIST | MLP, 784–500–10 | |
| Architecture CIFAR-10 | CNN, [32, 32, pool, 64, 64, pool, ] → 10 | |
| Activation function | Leaky ReLU | |
| Preprocessing | Fashion-MNIST: normalise; CIFAR-10: normalise, random crop (padding 4), horizontal flip | |
| Loss | Cross-entropy with label smoothing 0.1 | |
| Data splits | Calibration: 80/20 split of the training set; final runs: full training set, test set | |
| Training setup | ||
| Batch size | 128 | |
| Epochs | 250 | |
| Random seeds | 3 per learning rate (calibration); 10 (SGD) and 5 (Adam, SOAP) final runs; 20 gradient alignment | |
| Numerical precision | FP32 (TF32 off) | |
| Gradient clipping | Adaptive, per parameter tensor: norm capped at the (lower) median of the previous 100 norms (after 50 warm-up steps); perturbation methods only | |
| Optimisation | ||
| Optimiser | SGD without momentum; Adam and SOAP in Appendix L | |
| Learning rate | Per method, optimiser and task (Table A.7); constant schedule | |
| Learning-rate selection | Half-decade grid; lowest validation loss over the last 10 epochs among learning rates where every seed completed | |
| Weight decay | 0 | |
| Perturbation and probing | ||
| Number of probes per step | 1, unless specified otherwise | |
| Perturbation distribution, scale | Gaussian, | |
| SZO- values | (sweep in Appendix K) | |
| Probing mode | Iterative (simultaneous only in Appendix N) | |
| Credit assignment | Per-sample for NP, NTWP, SZO-1, SZO-; per-batch for WP | |
| Activation-aware probing | Off (Appendix G) | |
Table A.7: Selected learning rates. For each method, optimiser and dataset, without and with (bottom block) activation awareness: the learning rate with the lowest mean validation loss over the last 10 epochs (validation split, 3 seeds), among grid learning rates at which every seed completed.
| Method | Fashion-MNIST | CIFAR-10 | ||||
|---|---|---|---|---|---|---|
| SGD | Adam | SOAP | SGD | Adam | SOAP | |
| BP | ||||||
| NP | ||||||
| WP (SZO-0) | ||||||
| NTWP | ||||||
| SZO-1 | ||||||
| SZO- | ||||||
| Activation-aware | ||||||
| NP | ||||||
| WP (SZO-0) | ||||||
| NTWP | ||||||
| SZO-1 | ||||||
| SZO- | ||||||