A projection-based framework for gradient-free and parallel learning

Andreas Bergmeister, Manish Krishan Lal, Stefanie Jegelka, Suvrit Sra

TL;DR

This paper introduces a novel framework that reformulates neural network training from a traditional gradient-based loss minimization problem into a large-scale constraint feasibility problem. By replacing backpropagation with local mathematical projections onto constraint sets, the authors enable fully parallelized layer updates and seamless handling of non-differentiable operations. To make this practical, they introduce PJAX, an open-source, JAX-backed library that automatically derives these projection operators.

What Problem Does This Paper Address?

For decades, deep learning has relied almost exclusively on gradient-based optimization via the backpropagation algorithm. While incredibly successful, backpropagation has fundamental drawbacks:

  1. Sequential Bottleneck: It requires a strict forward pass followed by a sequential backward pass, limiting how much we can parallelize training across different layers.
  2. Differentiability Requirement: Every component of the network and the loss function must be differentiable (or sub-differentiable), ruling out certain discrete or non-smooth operations.
  3. Biological Implausibility: The brain does not appear to use global error backpropagation or symmetric feedback pathways (known as the weight transport problem).

The authors tackle these limitations by asking: Can we train neural networks without computing global gradients or forcing sequential layer updates?

Methods

Instead of navigating a complex global loss landscape, the authors view training as a feasibility problem. They break a neural network down into its most basic mathematical building blocks—termed primitive functions (such as dot products, ReLUs, or sums).

Each primitive function defines a local constraint set (its graph of valid input-output pairs). Training then becomes the task of finding a state vector $z$ (representing all network parameters and intermediate activations) that simultaneously satisfies all these local constraints.

Neural network training paradigm shift: gradient minimization vs. projection feasibility.

To solve this intersection problem, the framework uses classical iterative projection algorithms from convex optimization, such as Alternating Projections (AP) and Douglas-Rachford (DR).

The PJAX Framework

Crucially, by structuring the network's computation graph as a bipartite graph, the projections for independent nodes can be computed completely in parallel. The authors developed PJAX (Projection JAX) to automate this. Much like automatic differentiation libraries (like Autograd or JAX) automatically compute derivatives via the chain rule, PJAX automatically composes local projection operators to solve the global feasibility problem, inheriting JAX's GPU/TPU acceleration.

An example computation graph showing local projection operators for a simple network.

Datasets

The framework was evaluated across a diverse set of standard machine learning benchmarks:

  • MNIST & CIFAR-10: Image classification tasks.
  • HIGGS: A binary classification dataset from particle physics.
  • Shakespeare: A character-level language modeling dataset used to test sequence processing.

No new datasets were introduced in this work.

Key Insights and Ideas

  • True Locality: Updates only modify adjacent variables in the computation graph. There is no global error signal traveling backward through the network, which elegantly sidesteps the biological weight transport problem.
  • Bypassing BPTT in RNNs: When training Recurrent Neural Networks (RNNs), projections are performed separately for each unrolled time step, with parameter consensus enforced globally. This completely avoids Backpropagation Through Time (BPTT), inherently neutralizing the notorious vanishing and exploding gradient problems.
  • The Necessity of Skip Connections: Because information in this paradigm propagates locally through iterative projections, deep networks can struggle to pass information from early layers to the output quickly. The authors found that incorporating architectural skip connections (concatenating intermediate layer outputs) is vital to shorten these communication paths without breaking the graph's parallelizable bipartite structure.

Key Results

The empirical results demonstrate that projection-based training is a highly viable alternative to gradients:

  • Speed and Scalability: For Multi-Layer Perceptrons (MLPs), projection methods achieved per-step wall-clock times that were up to 10× faster than standard SGD. Furthermore, as network depth increased, the time per step for Alternating Projections scaled much more favorably than SGD due to its parallel nature.
  • Performance vs. Baselines: On tasks like CIFAR-10, a 4-layer projection-based CNN with skip connections outperformed alternative non-backpropagation baselines like Feedback Alignment (FA) and the Forward-Forward (FF) algorithm.
  • The Accuracy Gap: While projection methods reliably converged and approached SGD-level accuracy on several tasks, they still generally fell short of highly optimized adaptive gradient methods like Adam.

Limitations and Future Work

The primary bottleneck of this framework is memory complexity.

Standard backpropagation only needs to store a node's output and its gradient, resulting in $O(|V|)$ memory complexity relative to the number of nodes. In contrast, the projection framework must maintain distinct variables for every single edge in the expanded computation graph, leading to $O(|E|)$ memory complexity. This requirement scales aggressively with batch size, sequence length, and convolutional spatial locations, making large CNNs or RNNs incredibly memory-intensive to train.

Future Directions

To make this approach competitive for large-scale deep learning, the authors suggest several open avenues:

  1. Developing memory-saving techniques like low-rank or quantized edge states.
  2. Exploring hybrid schemes that interleave local projections with occasional global gradient steps.
  3. Designing tailored architectures (such as Mixture-of-Experts) that naturally minimize parameter-data interactions.

Summary updated

BibTeX
@inproceedings{bergmeister2026projection,
  author = {Andreas Bergmeister and Manish Krishan Lal and Stefanie Jegelka and Suvrit Sra},
  title = {{A projection-based framework for gradient-free and parallel learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2026},
  url = {https://openreview.net/forum?id=2OaL8xOlh3},
}
Figure