While backpropagation (BP) is the undisputed engine of modern AI, it suffers from a major bottleneck: "backward locking." This requirement—that a full forward pass must complete before any weight updates can begin—prevents massive parallelization across layers.
This paper, presented at ICML 2023, explores a compelling alternative: Forward Gradients (FG). Forward Gradients compute updates during the forward pass, offering a "backward-unlocked" alternative to BP. However, they traditionally fail in deep networks due to the high variance of random gradient guesses. The authors demonstrate that biasing these guesses with small, local auxiliary networks significantly closes the performance gap, making forward-mode training much more competitive with standard backpropagation.
The Problem with Backpropagation and Random Guesses
Backpropagation has three major "hardware-unfriendly" properties:
- Backward Locking: You cannot update the weights of a layer until the forward pass reaches the end and the backward pass returns to that specific layer.
- Memory Overhead: To compute gradients later, you must store all intermediate activations from the forward pass.
- Biological Implausibility: BP requires "weight transport" (using the exact transpose of forward weights), which is not how biological brains are thought to learn.
Forward Gradients solve this by using directional derivatives. Instead of computing the full gradient vector, you "guess" a direction and compute how the loss changes in that specific direction during the forward pass. The problem? In high-dimensional spaces (like a ResNet with millions of parameters), a random guess is almost always wrong, leading to high variance and poor convergence.
The Solution: Local Guesses
To overcome the curse of dimensionality, the authors propose moving away from "isotropic" (random) guesses. Their core contribution is the use of Local Guesses.
Instead of picking a random vector from a Gaussian distribution, the authors attach small, local auxiliary networks (like CNNs or MLPs) to different blocks of a standard ResNet. These auxiliary networks are trained on a local version of the task. The gradient from this local auxiliary loss is then used as the "candidate direction" for the Forward Gradient.
By using a local loss to "bias" the guess, the directional derivative is no longer a shot in the dark; it’s a calculated move toward a direction known to be locally useful. The authors also compare Weight Perturbation (perturbing the actual parameters) and Activity Perturbation (perturbing the activations), testing whether the Forward Gradient should try to match the "Global Target" (the true end-to-end gradient) or a "Local Target".
Key Insights and Results
The authors conducted a rigorous evaluation across standard computer vision benchmarks, including CIFAR-10, CIFAR-100, and ImageNet32.
- Alignment is Everything: Forward Gradients don't need a perfect guess to work; they just need a guess that isn't orthogonal to the true gradient. Local auxiliary losses provide exactly this "weak alignment."
- Inductive Bias Matters: Even using an untrained auxiliary network (an "NTK Guess") outperforms pure random noise. This suggests that the architectural structure of a CNN provides a useful "prior" for which directions are worth exploring.
- Weight vs. Activity: While previous work on random Forward Gradients favored activity perturbation, this paper finds that weight perturbation is significantly superior when using supervised local guesses.
The results show a dramatic narrowing of the gap between Forward Gradients and Backpropagation. For instance, on CIFAR-10 (ResNet-18), standard backpropagation achieves ~94.5% accuracy. While a Random Forward Gradient barely reaches ~50%, the Local Guess Forward Gradient achieves ~92.0%. Similarly, on ImageNet32, random guesses failed to achieve reasonable accuracy, while Local Guesses reached ~45.8% (compared to BP's 54.6%).
Crucially, the authors kept the computational overhead of the auxiliary networks under 10% of the total FLOPs, proving that the "guess" doesn't have to be expensive to be effective.
Limitations and Future Work
Despite the impressive gains, a small accuracy gap remains between this method and full end-to-end backpropagation. The authors note that while local guesses are vastly better than random ones, they are still only "weakly aligned" with the global gradient.
Future work will likely involve finding ways to better align these local signals with global feedback without re-introducing the locking problems of backpropagation. Additionally, scaling these methods to full-resolution ImageNet or massive Transformer models remains an exciting open challenge for the community.
Summary updated