← Latest papers
🤖 machine learning

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

This paper introduces PJAX, a JAX-based framework that reformulates neural network training as a parallelizable, gradient-free feasibility problem using iterative projection operators, offering a compelling alternative to conventional gradient-based optimization with advantages in handling non-differentiable operations and enabling massive parallelism.

Original authors: Andreas Bergmeister, Manish Krishan Lal, Stefanie Jegelka, Suvrit Sra

Published 2026-04-30
📖 5 min read🧠 Deep dive

Original authors: Andreas Bergmeister, Manish Krishan Lal, Stefanie Jegelka, Suvrit Sra

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to solve a massive, complex puzzle, like a giant 3D jigsaw or a Rubik's Cube, but you don't know the final picture.

The Old Way (Gradient-Based Learning)
Currently, most AI models learn using a method called "backpropagation." Think of this like a hiker trying to find the bottom of a foggy valley (the best solution). The hiker feels the slope under their feet (the gradient) and takes a step downhill. They keep doing this, step by step, until they reach a low point.

  • The Problem: Sometimes the hiker gets stuck in a small dip (a local minimum) that isn't the true bottom. Sometimes the path is so steep or flat that the hiker gets lost or moves too slowly. Also, to know which way is "down," the hiker has to send a signal all the way back from the bottom of the valley to the top, which is slow and requires a very specific, symmetrical path.

The New Way (Projection-Based Learning)
The authors of this paper propose a completely different strategy. Instead of trying to find the bottom of a valley, they treat training as a feasibility problem.

Imagine you have a room full of walls, each with a specific rule.

  • Wall A says: "The red block must be next to the blue block."
  • Wall B says: "The green block must be above the red block."
  • Wall C says: "The total weight must equal 50kg."

Your goal isn't to slide down a hill; it's to find one single arrangement of blocks where every single wall's rule is satisfied at the same time.

How It Works: The "Projection" Metaphor
The authors call their method "Projection-Based." Here is how they do it:

  1. Break it Down: They break the giant puzzle (the neural network) into tiny, simple pieces called "primitive functions" (like simple math operations: adding numbers, multiplying them, or deciding if a number is positive).
  2. The Local Fix: Instead of looking at the whole puzzle, they look at just one wall (one rule). If the blocks don't fit that wall's rule, they "project" the blocks onto the wall. Imagine shining a light on the blocks; the shadow they cast on the wall is the "correct" position for that specific rule.
  3. Parallel Power: This is the magic part. Because each wall only cares about its own immediate neighbors, you can fix Wall A, Wall B, and Wall C all at the same time. You don't have to wait for Wall A to finish before starting Wall B. This is like having a team of 100 people fixing different parts of a house simultaneously, rather than one person fixing the roof, then the kitchen, then the bathroom, one by one.
  4. Repeat: They do this over and over. Each time, they nudge the blocks to fit the local rules better. Eventually, the blocks settle into a position where they satisfy all the rules simultaneously. That is your trained AI.

Why This Is Cool (According to the Paper)

  • No "Slope" Needed: You don't need to calculate a "slope" (gradient). This means you can use rules that are "bumpy" or broken (non-differentiable), like a switch that is either ON or OFF. The old method struggles with these; this new method handles them easily.
  • Biological Plausibility: In the brain, neurons don't send a global "error signal" all the way back from the end of a thought to the beginning. They just adjust based on what their immediate neighbors are doing. This new method mimics that local, neighbor-to-neighbor adjustment.
  • Speed: Because everyone works in parallel, it can be much faster on modern computer chips (GPUs/TPUs) that are designed to do many things at once.

The Trade-Off: The "Memory" Cost
The paper admits there is a catch. To do this, the computer has to remember the position of every single "edge" in the puzzle at every step.

  • Analogy: In the old method, you just remember the current location of the hiker. In this new method, you have to remember the position of every single block in the room, and every single connection between them, for every single person in your team.
  • Result: This uses a lot more computer memory (RAM). The authors had to shrink some of their test models to fit them into their computer's memory, whereas the old method could handle larger models more easily.

The Results
The authors built a software tool called PJAX (Projection JAX) to test this. They tried it on different types of puzzles:

  • Simple patterns (MLPs)
  • Image recognition (CNNs)
  • Language prediction (RNNs)

They found that while the "old way" (using Adam or SGD optimizers) is still the champion for raw speed and final accuracy in many cases, this new "Projection" way works surprisingly well. It is a viable alternative that:

  1. Learns without needing gradients.
  2. Handles "bumpy" rules that confuse other methods.
  3. Learns very efficiently on parallel hardware, especially for tasks like language modeling where the old method struggles with "vanishing gradients" (forgetting the beginning of a sentence).

In Summary
The paper says: "Stop trying to slide down a hill to find the answer. Instead, treat the problem as a set of local rules. Fix each rule locally and simultaneously, and eventually, the whole system will fall into place." It's a new way to train AI that is more parallel, more flexible with different types of math, but currently requires more memory.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →