PolyStep: Gradient-Free Forward Optimizer
- PolyStep is a forward-only, gradient-free optimizer that navigates non-differentiable model tasks by evaluating loss at vertices of a local polytope around parameter blocks.
- It computes soft, cost-dependent weights using a row-wise softmax or OT plan to update parameters through barycentric averaging, requiring only batched forward passes.
- Empirical results show PolyStep excelling on tasks like hard-LIF spiking MNIST and reinforcement learning, with convergence guarantees for both piecewise-smooth and piecewise-constant losses.
PolyStep is a forward-only, gradient-free optimizer for training models whose forward pass is genuinely non-differentiable. It targets settings such as hard leaky integrate-and-fire spiking neurons, integer rounding, argmax routing, staircase activations, hard mixture-of-experts gates, black-box simulators, reinforcement-learning policy search, and piecewise-constant discrete objectives. Rather than estimating gradients, PolyStep evaluates the loss at vertices of a small polytope around many local parameter blocks, computes soft cost-dependent weights over those vertices, and moves each block to a barycentric average of low-cost vertices. The practical update uses only batched forward passes and a row-wise softmax, while the paper shows that this update is the one-sided limit of a regularized optimal-transport problem; the name “PolyStep” is explicitly tied to a polytope-based step with OT geometry (Le, 3 May 2026).
1. Problem setting and conceptual basis
PolyStep is designed for models in which non-differentiability is part of the forward computation itself, not merely an optimization inconvenience. The paper lists hard operators such as , , , and as representative examples. In such systems, exact backpropagation is either undefined or uninformative, and common replacements such as surrogate gradients or straight-through estimators optimize a smoothed or substituted backward model rather than the actual hard forward computation (Le, 3 May 2026).
The method is also positioned against finite-difference and evolution-strategy baselines. The paper argues that SPSA, DeepZero-style perturbation zeroth-order methods, and MeZO-style estimators fail on piecewise-constant losses because small perturbations usually remain in the same flat region, so the estimate is zero with high probability. Evolution strategies such as OpenAI-ES, CMA-ES, PEPG, and ARS are treated as perturbation-based search-distribution methods rather than structured local optimizers. PolyStep differs in that it does not form a perturb-and-regress gradient estimate. Instead, it evaluates a structured set of candidate directions, organizes the resulting losses into a cost matrix, computes soft assignments, and performs a barycentric displacement toward low-cost vertices (Le, 3 May 2026).
This yields a specific niche. PolyStep is presented as strongest when exact gradients are unavailable or unusable, and when surrogate-gradient fidelity to the true hard forward pass is unacceptable. It is not presented as a general replacement for first-order optimization on differentiable models; the paper explicitly notes that Adam remains faster, more accurate, and more scalable when gradients exist (Le, 3 May 2026).
2. Mathematical formulation
Let the model parameters be . PolyStep either works in full space or in a compressed subspace of dimension . Parameters in the optimization space are reshaped into particles,
where each row is a particle. The default polytope is the orthoplex
For each particle, PolyStep samples a rotation
and defines candidate vertices
0
Probe points are then placed along each vertex direction:
1
with jitter
2
The cost matrix averages probe losses,
3
so 4 stores particle-by-vertex costs (Le, 3 May 2026).
The default source marginal is uniform,
5
and the practical update is a row-wise softmax,
6
Each particle is updated by barycentric projection,
7
This is the practical PolyStep algorithm used for the headline experiments (Le, 3 May 2026).
The OT interpretation is given by the balanced entropic transport problem
8
with uniform marginals 9 and 0, together with a one-sided KL-penalized interpolation
1
At 2, the solution reduces to the row-wise softmax plan; at 3, it converges to the full entropic OT plan. This is the formal basis for describing the practical rule as the one-sided limit of a regularized optimal-transport problem (Le, 3 May 2026).
3. Algorithmic procedure and implementation variants
A PolyStep iteration consists of reshaping parameters into particles, constructing a local rotated polytope around each particle, evaluating all probe losses in parallel, assembling the cost matrix, computing either row-wise softmax weights or a full OT plan, and updating particles by barycentric projection. The per-iteration forward-query cost is 4. For the orthoplex with 5 and 6, this is 7 forward evaluations; with 8, it becomes 9 (Le, 3 May 2026).
The paper describes several subspace variants. In full-space mode, 0. In HybridSubspace mode, each layer 1 uses a fixed projection
2
with reconstruction 3. LinearSubspace and AdaptiveSubspace are also reported. Among these, HybridSubspace is described as best and most stable in the ablations (Le, 3 May 2026).
The default polytope is the orthoplex, but simplex and cube variants are also described. Particle dimensions 4 are studied explicitly. The update rule can use either the softmax solver or full entropic OT with Sinkhorn iterations; the paper states that softmax and OT are identical in the common subspace regime, while OT becomes useful in the high-particle regime 5 where the column marginal matters (Le, 3 May 2026).
Several “turbo” features are listed: biased rotation, warm-started duals for OT, Anderson acceleration, adaptive overrelaxation 6, amortized OT or plan reuse, and dual momentum warm-start. These are presented as engineering accelerations rather than defining components of the method. The paper further notes practical details relevant to reproduction: theoretical convergence requires 7, but reported experiments default to 8 for deterministic reproducibility; new applications are recommended to use 9; attention and recurrent layers require VmapSafe replacements; and SNN logits were multiplied by 0 before cross-entropy to increase probe cost contrast (Le, 3 May 2026).
4. Convergence theory and stationary notions
The theoretical analysis begins with a piecewise-smooth class of losses. A bounded measurable 1 is piecewise smooth if it is 2 on 3, locally Lipschitz on connected components of 4, and 5 is a closed semialgebraic or definable set of codimension at least one. The paper states that this covers hard LIF, rounding, argmax routing, and floor or staircase activations (Le, 3 May 2026).
Under orthoplex probing, 6, i.i.d. random rotations, the schedule
7
and jitter 8 with 9, the smoothed surrogate
0
satisfies
1
Every limit point is conservative-stationary. For the headline architectures—hard-LIF, INT8 rounding, hard-MoE argmax routing, and staircase activations—the paper states that conservative-stationarity upgrades to Clarke-stationarity (Le, 3 May 2026).
The paper also studies the piecewise-constant regime. For 2 with a positive-measure success set and a non-symmetric polytope such as the simplex under a uniform reachability condition, there exists 3 such that the first hitting time
4
obeys
5
This gives a finite-time hitting guarantee for a piecewise-constant success region. The paper notes that this theorem does not directly apply to the orthoplex because its vertex sum is zero (Le, 3 May 2026).
A separate proposition analyzes schedule fragility. If a row of the cost matrix has a unique best vertex with margin 6, then for sufficiently small 7 the softmax becomes nearly one-hot and the step magnitude is pinned near 8. The paper concludes that 9 jointly is necessary for asymptotic stability, and that decaying 0 while holding 1 fixed is fragile. This theoretical point is reflected in the empirical schedule ablations (Le, 3 May 2026).
5. Empirical performance
The empirical evaluation spans supervised non-differentiable learning, combinatorial optimization, reinforcement learning, smooth benchmarks, and scaling or memory studies. The headline result is hard-LIF spiking MNIST, where PolyStep reaches 2 test accuracy, outperforming all gradient-free baselines by over 3 percentage points and closing to within 4 percentage points of a surrogate-gradient Adam ceiling (Le, 3 May 2026).
| Setting | PolyStep | Comparator context |
|---|---|---|
| Hard-LIF spiking MNIST | 5 | CMA-ES 6, OpenAI-ES 7, SPSA 8, surrogate Adam 9 |
| INT8 quantization | 0 | Adam surrogate 1 |
| Argmax attention | 2 | Adam 3 |
| Staircase activations | 4 | Adam 5 |
| Hard MoE routing | 6 | Leads all gradient-free competitors |
| Binary weights | 7 | STE 8 |
| Ternary weights | 9 | STE 0 |
| MAX-SAT, 1 variables | 2 clause satisfaction | OpenAI-ES 3 |
| MNIST, smooth baseline | 4 | Adam 5 |
| ETTh1 forecasting | 6 MSE | Adam 7 |
Across MAX-SAT instances from 8 to 9 variables, PolyStep stays above 0 clause satisfaction, whereas the paper states that ES methods drop by 1–2 percentage points. On the 3M-variable case, the run took 4 s on a single RTX 5090 with about 5 GB peak memory, enabled by delta evaluation over affected clauses (Le, 3 May 2026).
In reinforcement learning, PolyStep matches OpenAI-ES on CartPole-v1 and Acrobot-v1. On CartPole it attains 6 in Float32, INT8, and Binary, and on Acrobot it reports 7 in Float32, 8 in INT8, and 9 in Binary. The paper emphasizes that PolyStep retains performance under integer and binary quantization that collapses PPO and DQN; on CartPole, PPO falls to 00 in INT8 and 01 in Binary (Le, 3 May 2026).
The ablations are structurally important. Entropic OT and softmax-weighted PolyStep both achieve 02 on subspace MNIST, while hard selection rules collapse: min-cost greedy reaches 03, and top-04 mean reaches 05. In full-space MNIST with 06 and 07, OT yields 08 versus 09 for softmax, illustrating when column-marginal enforcement matters. Smaller particle dimension performs better in subspace mode: 10 gives 11, compared with 12 for 13 and 14 for 15. On SNNVGG11Small at 16 timesteps, PolyStep uses 17 MB, versus 18 MB for BPTT, a 19 memory reduction (Le, 3 May 2026).
6. Scope, limitations, and disambiguation
PolyStep’s main practical limitation is the standard zeroth-order one: high query cost. Each step requires 20 forward evaluations, and the paper explicitly ties this to known zeroth-order query-complexity lower bounds. It also states that PolyStep does not beat backpropagation on differentiable models, is sensitive to schedules and hyperparameters such as 21, 22, amortization, and subspace rank, and fails to solve large from-scratch smooth NLP models: on a 23M-parameter SST-2 transformer trained from scratch, all gradient-free methods are near-random. In full-precision smooth continuous control, PPO far outperforms PolyStep on the Unitree G1 locomotion frontier experiment (Le, 3 May 2026).
The name should also be distinguished from several adjacent “step”-based methods. “Topological Optimization with Big Steps” introduces a topology-aware large-step update strategy for persistence-based optimization, but it is explicitly not a method named PolyStep (Nigmetov et al., 2022). “Step-TP” is a grounded, step-level dataset for LLM-guided tensor program optimization built around LEIR, atomic optimization strategies, and structured chain-of-thought supervision; it is a stepwise optimization dataset rather than the forward-only optimizer described here (Liu et al., 25 May 2026). In structural mechanics, the STEP and M-STEP literature concerns non-intrusive identification of polynomial reduced-order models for geometrically nonlinear structures, including the STiffness Evaluation Procedure and a modified STEP for 3D finite elements; this is a distinct STEP-family usage of “step” terminology rather than the OT-based PolyStep optimizer (Vizzaccaro et al., 2020).
Within its intended scope, PolyStep is therefore best understood as a forward-only optimizer for genuinely non-differentiable forward passes, with a practical softmax implementation, an OT-derived geometric interpretation, convergence guarantees on piecewise-smooth and piecewise-constant regimes, and strong empirical performance precisely where backpropagation and standard perturbation-based zeroth-order methods are least reliable (Le, 3 May 2026).