NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FLOPS: Forward Learning with OPtimal Sampling

Tao Ren, Zishi Zhang, Jinyang Jiang, Guanghao Li, Zeliang Zhang, Mingqian Feng, Yijie Peng

Training deep neural networks traditionally relies on backpropagation (BP). While highly effective, BP requires storing intermediate activations to compute gradients during a "backward pass," making it incredibly memory-intensive. Furthermore, BP is entirely impossible when dealing with "black-box" models—such as third-party APIs or proprietary foundation models—where internal gradients are inaccessible.

"Forward learning" has emerged as a promising alternative. It estimates gradients using only forward passes by injecting random noise (perturbations) and observing the resulting change in the loss function. However, these methods are notoriously "query-hungry." They often require hundreds of forward passes per data point to achieve a stable gradient estimate. Existing methods waste computational resources by treating every data point equally, assigning an easy-to-learn image the same number of queries as a complex, noisy one.

To address this inefficiency, FLOPS (Forward Learning with OPtimal Sampling) introduces a smart query allocation strategy. By adaptively assigning more forward passes to "difficult" data points within a batch, FLOPS enables forward learning to scale to large Vision Transformers and black-box foundation models with state-of-the-art accuracy.

The FLOPS Approach

The core innovation of FLOPS is a plug-and-play query allocator that dynamically decides how many perturbations to apply to each data point in a mini-batch.

Comparison of vanilla equal allocation versus the FLOPS adaptive allocation framework.

The authors unify two major families of forward learning—Likelihood Ratio (LR) and SPSA/Evolutionary Strategies (ES)—under a single perturbation-based optimization perspective. From this unified view, they derive an optimal objective: the best way to improve performance is to minimize the trace of the gradient estimation's covariance matrix. Essentially, the allocator assigns more queries to data points where the gradient estimate is most uncertain.

Key technical insights include:

  • The "Trace" Shortcut: Estimating a massive, high-dimensional covariance matrix is computationally prohibitive. The authors discovered that estimating just the trace (the sum of variances) is sufficient and computationally cheap.
  • Deep Layer Subsampling: The variance in the deepest layers of a network accounts for most of the model's total variance. By focusing variance estimation on these layers, the allocator's overhead remains minimal.
  • Lightweight Reparameterization: To avoid the "curse of dimensionality," the allocator's parameters are reduced to just four variables, using the "clean" loss value and feature similarity as proxies to guide allocation.
  • Flexible Allocator Types: The framework offers a Gaussian Allocator (GA) for continuous query distribution and a simpler Bernoulli Allocator (BA) that acts like a data pruner, skipping queries entirely for unimportant samples.

Experimental Results

The authors evaluated FLOPS across a wide range of vision benchmarks (ImageNet-1K, Caltech101, Food101, Flowers102, CIFAR-10/100, and EuroSAT) and applied it to black-box tuning tasks, including prompt tuning for CLIP and alignment for the Vicuna large language model.

FLOPS consistently outperformed existing forward-learning baselines like Mezo and DeepZero across all tested datasets.

Comparison of classification accuracy for fine-tuning ViT models. OPS-LR (our method) consistently achieves the highest accuracy among forward-learning methods.

Key Performance Highlights: * Massive Accuracy Gains: On ImageNet-1K with a ViT-base model, FLOPS (using the OPS-LR variant) achieved 65.8% accuracy. This is a significant jump from the 57.3% achieved by standard Likelihood Ratio methods and the 9.3% of Mezo (in its original 2-query setting). * Black-Box Success: In prompt tuning for the CLIP vision-language model, FLOPS reached 65.1% accuracy on ImageNet, outperforming manual prompting (57.9%) and standard SPSA (60.7%). * Efficiency in Alignment: When aligning vision encoders with LLMs, FLOPS reduced training time by nearly 50% by skipping recursive backward computations while maintaining competitive performance. * Robustness Bonus: Models trained with FLOPS demonstrated significantly better robustness against adversarial attacks (like FGSM) compared to standard backpropagation.

Limitations and Future Work

While FLOPS significantly narrows the performance gap, it does not yet match the absolute accuracy of full backpropagation on the largest datasets. Additionally, the authors note that estimating gradients for Multi-Head Attention (MHA) modules remains more difficult than for standard Feed-Forward Networks (FFN). Integrating more efficient attention techniques, such as Flash Attention, represents a promising future direction to further improve the scalability and accuracy of forward learning.

Summary updated

BibTeX
@inproceedings{ren2025flops,
  author = {Tao Ren and Zishi Zhang and Jinyang Jiang and Guanghao Li and Zeliang Zhang and Mingqian Feng and Yijie Peng},
  title = {{FLOPS: Forward Learning with OPtimal Sampling}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=z1nSpA2dAW},
}
Figure