Skip to content

Predictive Coding and PC-ALM: Local Learning, Evidence and Systems Limits

Backpropagation computes parameter gradients by applying the chain rule through a computation graph. It is a differentiation method, not itself the optimizer that updates parameters. Local-learning research asks whether useful credit signals can be obtained by other dynamics.

In a simple chain, an earlier layer’s backward calculation depends on a signal from a later layer. This backward dependency is one scheduling constraint, not proof that an entire GPU is idle: work from other microbatches can overlap. Biological plausibility is a research motivation, not an established model of how brains train.

Jeffrey Seely and Julian Gould’s paper “Augmented Lagrangian Predictive Coding” calls its method PC-ALM, not ALPC. The May 2026 preprint and the authors’ September 2026 project page report different experimental scopes. This article distinguishes those reports from unmeasured infrastructure predictions; no Hacker News popularity claim is verified.

The Core Problem: Why Backprop Restricts Modern Systems

A sequential feedforward chain is a useful simplified example. Its forward dependencies can be drawn as follows; this is not a complete GPU schedule:

Layer 1 (Compute) -> Layer 2 (Compute) -> Layer 3 (Compute) -> Loss

Then, the backward pass reverses the flow to calculate gradients:

Layer 1 (Wait)    <- Layer 2 (Wait)    <- Layer 3 (Compute) <- Loss
Layer 1 (Wait)    <- Layer 2 (Compute) <- Layer 3 (Done)
Layer 1 (Compute) <- Layer 2 (Done)    <- Layer 3 (Done)

The diagrams concern one chain and one microbatch. Practical training must account for several resource costs:

  • Saved tensors: Backward formulas may need forward-pass values. Activation checkpointing can recompute selected values instead of retaining them, trading computation for memory. Activations are not the only memory cost: parameters, gradients and optimizer state also matter.
  • Pipeline scheduling: Partitioning a model introduces communication and scheduling constraints. Bubbles depend on stage balance, microbatch count and schedule; they are not identical for every GPU or workload.
  • Edge budgets: Limited memory and compute can constrain training on a small device. Whether a local-learning method helps requires measuring the same task, hardware, accuracy target and energy budget; locality alone is not a latency result.

Enter Predictive Coding (PC)

Predictive coding models inference using interacting states and prediction errors. Here we discuss supervised neural-network learning, rather than claiming a literal implementation of the brain.

In the convention used here, a layer predicts the next layer’s state from the previous state. A residual measures their mismatch. Neighboring states remain coupled: local communication does not mean independent layers or a validated asynchronous distributed implementation.

The research question is how finite local inference propagates supervision credit through deep networks. Do not infer that all classical PC methods fail on ImageNet or lack mathematical foundations; that broad historical claim is not established by this article.

What does PC-ALM add?

The augmented-Lagrangian formulation introduces a dual variable for each layer constraint. The preprint proves convergence of inference dynamics at fixed weights to a KKT point with exact BP weight gradients, for linear, bias-free networks under stability conditions. This is not convergence of the training/weight-optimization process or a global minimum guarantee.

Treat layer states and weights as optimization variables, with consistency constraints. In this schematic expression, * means matrix multiplication, not elementwise multiplication:

x_l = f(W_l * x_{l-1})

For residual r, one constraint contributes λᵀr + (ρ/2)‖r‖² to an augmented objective. The full network also needs its supervised loss. Primal descent and dual ascent have different roles; adding a multiplier is not an automatic convergence guarantee.

The first snippet is abstract interface pseudocode for a chain. The second computes derivatives of one illustrative constraint term only. Neither implements or reproduces the research training algorithm, and neither was executed.

Conceptual code: a chain and a single constraint term

Assume each layer supplies forward, backward and update methods. Backward computes and stores parameter gradients without changing weights; a separate pass applies the updates. These interfaces are illustrative, not library APIs.

class BackpropNetwork:
    def __init__(self, layers):
        self.layers = layers

    def forward(self, x):
        activations = [x]
        for layer in self.layers:
            x = layer.forward(x)
            activations.append(x)
        return activations

    def backward(self, activations, loss_gradient):
        grad = loss_gradient
        for i in reversed(range(len(self.layers))):
            grad = self.layers[i].backward(activations[i], grad)
        for layer in self.layers:
            layer.update_weights()

For a one-sample tanh constraint, supply all arrays explicitly. The next function returns the objective contribution and its derivatives at fixed inputs, not updated network states. It includes the tanh derivative missing from the source and a bias derivative; this bias term is an author extension, not the bias-free reference implementation.

import numpy as np

def constraint_terms(prev, state, W, b, multiplier, rho=1.0):
    prev, state, W, b, multiplier = [
        np.asarray(v, dtype=np.float64)
        for v in (prev, state, W, b, multiplier)
    ]
    if prev.ndim != 1 or state.ndim != 1 or not prev.size or not state.size:
        raise ValueError("nonempty vectors required")
    if W.shape != (state.size, prev.size):
        raise ValueError("weight shape mismatch")
    if b.shape != state.shape or multiplier.shape != state.shape:
        raise ValueError("state shape mismatch")
    if not np.isfinite(rho) or rho <= 0:
        raise ValueError("positive finite rho required")
    if not all(np.isfinite(v).all() for v in (prev, state, W, b, multiplier)):
        raise ValueError("finite arrays required")
    with np.errstate(over="raise", invalid="raise"):
        pred = np.tanh(W @ prev + b)
        residual = state - pred
        local_signal = multiplier + rho * residual
        d_pre_activation = -local_signal * (1.0 - pred * pred)
        return {
            "value": multiplier @ residual + 0.5 * rho * (residual @ residual),
            "grad_W": np.outer(d_pre_activation, prev),
            "grad_b": d_pre_activation,
            "grad_state": local_signal,
            "grad_multiplier": residual,
        }

This helper omits the output loss, the neighboring constraint’s contribution to a state gradient, inference iterations, dual update schedule and optimizer. It therefore cannot train a network. Consult the authors’ JAX reference for their actual protocol; this article did not run it.

Why Developers and DevOps Engineers Should Care

For systems engineers, the useful question is which costs have merely moved and which have actually been measured. The following are evaluation questions, not demonstrated deployment benefits.

1. Parallel scheduling remains an engineering question

Layer-local messages may permit different schedules, but a cluster implementation still pays for communication, synchronization, repeated inference and load imbalance. Neither locality nor this toy establishes zero bubbles or near-linear GPU scaling. Compare end-to-end time to a tuned BP baseline at matched accuracy.

2. Account for all state before claiming VRAM savings

PC-ALM retains activation states and multipliers and performs repeated inference. The preprint’s resource comparison concerns PC-ALM versus a widened PC network under stated assumptions, not a measured universal advantage over BP. Consumer-hardware capacity and low-bandwidth training claims need separate evidence.

3. Neuromorphic and edge hardware are research directions

The authors discuss neuromorphic hardware as a motivation. That does not demonstrate lower device power, a production chip mapping or safe continuous learning in vehicles. Any hardware study would need a specified implementation and measured accuracy, energy and timing; none was performed here.

The Challenges Ahead

Existing autodiff and pipeline systems already exploit many forms of parallelism. Replacing their training rule is not simply removing a reverse loop: a fair comparison must include numerical stability, convergence to a useful accuracy, memory and total work.

Useful next evaluation steps for PC-ALM include:

  • Implementation evaluation: Start from an explicit update schedule and versioned reference; profile communication and kernels before deciding whether a new compiler backend is necessary. Asynchronous execution is not automatically correct.
  • Experimental scope: The May preprint reports one-epoch residual-MLP experiments on MNIST/Fashion-MNIST through depth 128. The September project page separately reports 1000-layer MNIST and additional image-classification results. These are authors’ reports, not replications here and not evidence of billion-parameter LLM or diffusion-model training.

Conclusion: The Horizon of Decentralized AI Training

PC-ALM is a concrete research approach to local credit assignment with explicit assumptions and promising bounded experiments. It does not establish universal convergence, human-like learning, lower VRAM or faster distributed training.

For practitioners, follow reproducible comparisons rather than predicting the replacement of PyTorch or deployment on commodity edge clusters. The research reference and the small derivative example serve different purposes.

What would you measure? Which matched-accuracy memory, time or energy experiment would best distinguish local-update methods from a tuned BP baseline?

Explore the primary paper and reference implementation below before treating a research result as an infrastructure recommendation.

Primary sources

Post a Comment

Previous Post Next Post