Weight Feedback Computes the Jacobian Transpose Locally in Modern Deep Networks

Junlong Shen, Xingyu Li
7/15/2026
cs.LG

Official code: jlshen025/pcax (0 stars, Python, Apache-2.0, JAX, last commit 2026-07-21).

Abstract

Predictive Coding (PC) offers a biologically motivated alternative to backpropagation via local weight updates, yet routing error between layers still relies on an autograd Jacobian-transpose ($J^\top$) product - the last non-local operation in PC. We show that this dependency is largely avoidable.

Show full abstract

For any layer $f(x)=\mathrm{Act}(\mathrm{Norm}(L(x)))$ with frozen normalization statistics, the exact $J^\top$ factors into three locally available terms, $J^\top v = L^\top(s \odot σ'(z) \odot v)$, where $σ'$ is the activation derivative, $z$ is the pre-activation, and $s=γ/σ_{\mathrm{run}}$ is the normalization gain. Prior weight-feedback methods omitted both corrections; restoring them closes the transport gap for this layer class. Locality here holds up to three assumptions, which we state upfront: weight symmetry ($L^\top$ mirrors the forward operator, as assumed by all PC), a soft spectral-norm control that is not synapse-local, and a nearest-neighbour approximation for MaxPool. Substituting the identity into PC yields WF-Act-PC, which removes the autograd backward pass from error transport. On CIFAR-10/100 (50 epochs, 5 seeds), WF-Act-PC is the only PC method whose accuracy improves with depth, surpassing iPC - the strongest classical PC baseline - by 2.7-22.3 pp on CIFAR-10. With both methods tuned per architecture, it matches or exceeds a comparably-tuned backpropagation baseline on the deeper CIFAR-10 architectures (VGG-9: 93.57% vs. 92.43%; ResNet-18: 92.76% vs. 91.54%) and on the harder Tiny-ImageNet benchmark, while trailing tuned BP on the deeper CIFAR-100 VGG cells. Our WF-Act-PC implementation is publicly available at https://github.com/jlshen025/pcax

View on arXivView PDF

Code Implementations(1)

jlshen025/pcaxOfficial100%
JAXApache-2.0

Predictive coding in JAX: block-sparse graphs over a single flat state array, so jit/grad/vmap/scan compose across the whole model.

00PythonJul 15, 20264 months agoApache-2.0
jaxpredictive-coding

Similar Papers

Cite this paper

@article{shen2026weight,
  title  = {Weight Feedback Computes the Jacobian Transpose Locally in Modern Deep Networks},
  author = {Junlong Shen and Xingyu Li},
  year   = {2026},
  eprint = {2607.13380},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.13380v1},
  journal = {ECCV 2026 2026}
}

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/2607.13380.svg)](https://codeofpaper.com/paper/2607.13380)

Discussion