Manuscript Offprint

arXiv:2611.08712

An Educated Guess: Deriving Statistically Aligned Gradient Estimates for Zeroth-Order Optimisation

Justus Huebotter, Serge Thill, Marcel van Gerven, Nasir Ahmad

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-κ\kappa, 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-κ\kappa, 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-κ\kappa family also captures standard weight perturbation on one end and recovers node-like perturbations at the other end of a particular choice in κ\kappa. 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-κ\kappa, 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.

References (100)

Couldn't load all references. Reload the page to try again.