Scaling Forward Gradient With Local Losses

Mengye Ren, Simon Kornblith, Renjie Liao, Geoffrey Hinton
10/7/2022
cs.LGcs.CVcs.NE

Official code: google-research/google-research (39,251 stars, Jupyter Notebook, Apache-2.0, last commit 2026-04-30).

Abstract

Forward gradient learning computes a noisy directional gradient and is a biologically plausible alternative to backprop for learning deep neural networks. However, the standard forward gradient algorithm, when applied naively, suffers from high variance when the number of parameters to be learned is large.

Show full abstract

In this paper, we propose a series of architectural and algorithmic modifications that together make forward gradient learning practical for standard deep learning benchmark tasks. We show that it is possible to substantially reduce the variance of the forward gradient estimator by applying perturbations to activations rather than weights. We further improve the scalability of forward gradient by introducing a large number of local greedy loss functions, each of which involves only a small number of learnable parameters, and a new MLPMixer-inspired architecture, LocalMixer, that is more suitable for local learning. Our approach matches backprop on MNIST and CIFAR-10 and significantly outperforms previously proposed backprop-free algorithms on ImageNet.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

Google Research

39,2518,516Jupyter Notebook, PythonOct 4, 20187 months agoApache-2.0
aimachine-learningresearch

Similar Papers

Cite this paper

@article{ren2022scaling,
  title  = {Scaling Forward Gradient With Local Losses},
  author = {Mengye Ren and Simon Kornblith and Renjie Liao and Geoffrey Hinton},
  year   = {2022},
  eprint = {2210.03310},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.03310}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.03310.svg)](https://codeofpaper.com/paper/2210.03310)

Discussion