Manuscript Offprint

arXiv:2610.36139

SpatialPC: Deep Computation with Sublinear Local Credit Propagation

Benjamin Prada, Shion Matsumoto, Ankur Arjun Mali

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Local learning rules are parallel only up to the speed at which information about the loss can travel. On a chain of NN states, any rule with bounded communication range needs Θ(N)\Theta(N) rounds before the loss can influence the earliest parameters, and this latency is usually attributed to depth. We show that it is a property of the communication geometry rather than of depth. For N=mdN = m^d states placed at constant density in dd dimensions, a light-cone argument gives an Ω(N1/d)\Omega(N^{1/d}) lower bound on the number of bounded-range rounds that any local algorithm needs before its gradient estimates can be sign-correct at every parameter. We construct a unit-range, degree-2d directed acyclic graph that contains a Hamiltonian computation of length N−1N-1 and in which every state lies within directed distance d(m−1)=Θ(N1/d)d(m-1) = \Theta(N^{1/d}) of the output, matching the lower bound. In the realizable-circuit model, depth and credit depth are therefore independent parameters: represented depth Θ(N)\Theta(N) and causal credit latency Θ(N1/d)\Theta(N^{1/d}) coexist, with a separation of order N1−1/dN^{1-1/d}. SpatialPC realizes this separation within predictive coding. Credit is propagated by adjoint prediction dynamics (APD), a local update whose KK-round state on a settled acyclic graph is the truncated reverse-path sum aK=∑k<K(J⊤)kba^K = \sum_{k<K}(J^\top)^k b, with error exactly (J⊤)Ka⋆(J^\top)^K a^\star. Graph geometry fixes when credit can first arrive at a state; the Jacobian-weighted path tail fixes how many further rounds accurate credit requires. A sparse two-dimensional Moore compiler retains the N−1N-1 backbone with 32N−2\frac{3}{2}N-2 unit-range edges and has measured worst-node reachability N+2\sqrt{N}+2 up to N=65,536N=65,536, where a 65,535-edge backbone is reached in 258 local hops. With T=2NT=2\sqrt{N} rounds, SpatialPC keeps finite-round task gradients aligned with settled gradients (cosine 0.93 on MNIST and 0.97 on Fashion-MNIST at N=256N=256) and reaches 97.6% and 88.1% test accuracy after 20 epochs.

1 Introduction

Backpropagation assigns credit with a global reverse pass [1]: the error at the output is carried back through every layer in sequence, using the transposed forward weights and a separate backward phase. On a general-purpose processor this is efficient. On a system whose computation is distributed over physically local units, whether cortical circuits [2] or neuromorphic and in-memory hardware, it is not. Such a system is an embodied learner in the sense of embodied cognition [3, 4]: its computation occupies physical space, so the time for any signal, including a learning signal, to cross it is set by the geometry of the substrate rather than by an operation count, and a learning rule for such a

∗^{*}Equal contribution.

Preprint.

system must respect that constraint. This has motivated local learning rules whose updates depend only on quantities available at a unit and its neighbors. Predictive coding (PC) [5, 6], equilibrium propagation [7], forward-forward [8], local representation alignment or target propagation [9, 10], and random-feedback rules [2] are the main families. PC is the most developed among them: its dynamics are defined on arbitrary computation graphs [11, 12], they recover the backpropagation gradient at equilibrium [13], and they have been trained at the scale of 1000-layer residual networks [14], convolutional networks on CIFAR and TinyImageNet [15], and a VGG network on ImageNet [16].

The obstacle that recurs in this work is depth. On an L-layer chain the loss is generated at the last layer and the first layer is L - 1 local interactions away. In a synchronous model, at least L - 1 communication rounds pass before the earliest parameters can receive any information about the loss; in continuous-time inference the same distance appears as slow, attenuated, or unstable error propagation [17–19]. The remedies proposed so far act on the dynamics: depth-aware parameterization [18, 20], corrected error balance and timing [19], direct error pathways to selected layers [21], primal–dual updates [14], incremental schedules [22], and error-based formulations without signal decay [17]. All of them take the chain as given, and so all of them inherit its Θ(L)\Theta(L) communication distance.

The chain conflates two quantities. The represented depth of a computation graph is the length of its longest directed path, the number of sequential operations it can express. The reachability depth is the largest number of edges separating any state from the output, the number of bounded-range rounds before every state can have heard from the loss. On a chain both equal L−1L - 1. The communication graph of a physical substrate, however, is not a chain: a two-dimensional fabric of NN units with bounded range and bounded degree has diameter of order N\sqrt{N}, and a three-dimensional one of order N1/3N^{1/3}. Whether a long computation can be laid out on such a fabric so that its reachability depth matches the diameter while its represented depth stays linear has not been asked, and no bound has been established on the latency that locality itself permits.

This paper answers both questions. We fix a locality model in which N=mdN = m^d units sit at constant density in dd dimensions, communicate within bounded range, and receive the target only at the output. A light-cone argument shows that no existing local learning algorithm, irrespective of how it computes, can deliver sign-correct gradient estimates to every parameter in fewer than Ω(N1/d)\Omega(N^{1/d}) rounds after the target is revealed (Theorem 4.9). A snake-ordered orientation (Boustrophedon) of the unit grid contains a Hamiltonian computation of length N−1N - 1, uses only unit-length edges of degree at most 2d2d, and places every state within directed distance d(m−1)d(m - 1) of the output (Theorem 4.6). Together,

Dseq=N−1=Θ(N),Dreach=d(N1/d−1)=Θ(N1/d),(1)D_{\mathrm{s e q}}=N-1=\Theta(N),\qquad D_{\mathrm{r e a c h}}=d\big(N^{1/d}-1\big)=\Theta\big(N^{1/d}\big), \tag{1}

so the ratio Dseq/Dreach=Θ(N1−1/d)D_{\text{seq}}/D_{\text{reach}} = \Theta(N^{1-1/d}) is unbounded, and the exponent 1/d is the best that any local algorithm can achieve. In the language of realizable circuit complexity [23], circuits embedded in d-dimensional space under causality and bounded fan-in, depth and credit depth (reachability depth) are independent parameters (Theorem 4.11).

Reachability says when credit can arrive, not whether it is accurate. SpatialPC, the predictive-coding model that realizes the separation, compiles a computation onto a bounded-degree spatial fabric and propagates credit with adjoint prediction dynamics (APD), a local update in which each state predicts its own adjoint from the adjoints of its children and cancels the prediction error. On a settled graph the K-round APD state is the sum of all reverse paths of length less than K, and its error is exactly the settled adjoint pushed back through K more edges, a⋆−aK=(J⊤)Ka⋆a^\star - a^K = (J^\top)^K a^\star. The first term to reach a state is fixed by graph distance; the rounds needed after that are fixed by the decay of the Jacobian powers, which depends on the learned weights and the task. We call the latter the effective credit radius Rϵ(J,b)R_\epsilon(J,b); in the experiments, the feasibility weight and the round budget act on RϵR_\epsilon while DreachD_{\text{reach}} stays fixed.

The implementation uses a sparse two-dimensional compiler built on a Moore traversal [24]. It keeps the N−1N - 1 backbone with 32N−2\frac{3}{2}N - 2 unit-range edges and has measured worst-node output distance N+2\sqrt{N} + 2 for every power of two from N=16N = 16 to N=65,536N = 65,536. With T=2NT = 2\sqrt{N} synchronous rounds on MNIST and Fashion-MNIST, finite-round task gradients at N=256N = 256 have cosine 0.93 and 0.97 with the settled gradients of the same network, and twenty epochs of training reach 97.64% and 88.10% test accuracy, matching a depth-128 backpropagation reference.

(a) Chain

Figure

(b) Spatial compilation

Dseq=Θ(N)D_{\mathrm{s e q}}=\Theta(N) Dreach=Θ(N)D_{\mathrm{r e a c h}}=\Theta(N)

Figure

Dseq=N−1D_{\mathrm{s e q}}=N-1 Dreach=2(N−1)D_{\mathrm{r e a c h}}=2(\sqrt{N}-1)

(c) Finite-time APD

Figure

aK=∑k<K(J⊤)kba^K = \sum_{k < K} (J^\top)^k b

reachability: graph geometry

fidelity: weighted path tail

Figure 1: Represented depth and local credit latency are different resources. (a) On a chain, represented depth and loss reachability are both Θ(N)\Theta(N). (b) The snake-ordered grid of Theorem 4.6 ( d=2d = 2) keeps an N−1N - 1 Hamiltonian computation (dark arrows) while every state lies within 2(N−1)2(\sqrt{N} - 1) unit-range hops of the output; the blue route is a shortest credit path. (c) APD accumulates reverse paths by length kk. Geometry fixes the first round at which a state can receive credit; the Jacobian-weighted tail (J⊤)Ka⋆(J^\top)^K a^\star fixes how many further rounds accurate credit requires.

References (39)