SpatialPC: Deep Computation with Sublinear Local Credit Propagation
Authors: Benjamin Prada, Shion Matsumoto, Ankur Arjun Mali
Organizations: Trustworthy Knowledge-Driven AI Lab Bellini College of Artificial Intelligence, Cybersecurity and Computing University of South Florida Tampa, FL 33620
On a chain of N states, any local learning rule with bounded communication range needs Θ(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=md states placed at constant density in d dimensions, a light-cone argument gives an Ω(N1/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−1 and in which every state lies within directed distance d(m−1)=Θ(N1/d) of the output, matching the lower bound. In the realizable-circuit model, depth and credit depth are therefore independent parameters: represented depth Θ(N) and causal credit latency Θ(N1/d) coexist, with a separation of order N1−1/d. SpatialPC realizes this separation within predictive coding. Credit is propagated by adjoint prediction dynamics (APD), a local update whose K-round state on a settled acyclic graph is the truncated reverse-path sum aK=∑k<K(J⊤)kb, with error exactly (J⊤)Ka⋆. 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−1 backbone with 23N−2 unit-range edges and has measured worst-node reachability N+2 up to N=65,536, where a 65,535-edge backbone is reached in 258 local hops. With T=2N rounds, SpatialPC keeps finite-round task gradients aligned with settled gradients (cosine 0.93 on MNIST and 0.97 on Fashion-MNIST at N=256) and reaches 97.6% and 88.1% test accuracy after 20 epochs.
Figures & tables
Figure 1: Represented depth and local credit latency are different resources. (a) On a chain, represented depth and loss reachability are both Θ(N) . (b) The snake-ordered grid of Theorem 4.6 ( d=2 ) keeps an N−1 Hamiltonian computation (dark arrows) while every state lies within 2(N−1) unit-range hops of the output; the blue route is a shortest credit path. (c) APD accumulates reverse paths by length k . Geometry fixes the first round at which a state can receive credit; the Jacobian-weighted tail (J⊤)Ka⋆ fixes how many further rounds accurate credit requires.
Figure 2: Sparse Moore compiler for two grids. Solid arrows form the Hamiltonian backbone; dashed arrows are the cut edge and the enclosed-cell shortcuts. Every edge is unit length and respects the common topological order. The state(s) farthest from the output is state 1 at distance 6 for the 4×4 case and states 3, 5, 9 at distance 10 for the 8×8 case. Both cases satisfy Dreach=m+2=N+2 .
Figure 3: Represented depth and reachability depth versus state count. A chain has Dreach=N−1 ; the snake-ordered grid of Theorem 4.6 has Dreach=2(N−1) ; the Moore compiler follows Dreach=N+2 over the measured sizes, with Dseq=N−1 in all cases.
m
N=m2
∣E∣
Dseq
Dreach
separation
4
16
22
15
6
2.5×
8
64
94
63
10
6.3×
16
256
382
255
18
14.2×
32
1,024
1,534
1,023
34
30.1×
64
4,096
6,142
4,095
66
62.0×
128
16,384
24,574
16,383
130
126.0×
Table 1: Structural scaling of the Moore compiler. ∣E∣=23N−2 ( Proposition 4.12 ), Dseq=N−1 is the backbone length, Dreach=N+2 is the exact worst-node distance to the output, and the last column is Dseq/Dreach .
Dataset
Method
# of States
T
Test Acc. (%) ↑
Task-grad cos. to settled ↑
MNIST
SpatialPC-v1
16
8
91.71 ±
0.14
0.8040 ±
0.0122
64
16
92.27 ±
0.08
0.9271 ±
0.0139
256
32
92.75 ±
0.23
0.9283 ±
0.0086
SpatialPC-v2
16
8
84.44 ±
0.97
0.8379 ±
0.0116
64
16
89.90 ±
0.23
0.9419 ±
0.0082
256
32
91.22 ±
0.27
0.6467 ±
0.0279
Table 2: Gradient fidelity under the geometric budget T=2N as the number of states grows ( H=128 , λ=100 , one epoch). Gradient cosine compares the finite-round APD task gradient with the settled task gradient of the same network.
Dataset
Method
λ
Test Acc. (%) ↑
Task-grad cos. to settled ↑
Residual RMS ↓
MNIST
SpatialPC-v1
0
92.67 ±
0.19
0.3525 ±
0.1812
0.0245 ±
0.0040
1
92.68 ±
0.20
0.5057 ±
0.2094
0.0204 ±
0.0025
10
92.69 ±
0.21
0.7688 ±
0.0708
0.0144 ±
0.0012
30
92.73 ±
0.21
0.8637 ±
0.0253
0.0112 ±
0.0007
100
92.75 ±
0.23
0.9283 ±
0.0086
0.0079 ±
0.0003
SpatialPC-v2
0
91.27 ±
0.22
0.0872 ±
0.0431
0.0272 ±
0.0025
Table 3: Effect of the feasibility weight λ at N=256 , T=32 , H=128 (one epoch). Accuracy is nearly constant while residual RMS falls and gradient cosine rises.
Dataset
Method
λ
Test Acc. (%) ↑
Task-grad cos. to settled ↑
Residual RMS ↓
MNIST
SpatialPC-v1
8
91.12 ±
0.14
0.7009 ±
0.0126
0.0249 ±
0.0001
16
92.16 ±
0.24
0.9451 ±
0.0036
0.0125 ±
0.0001
32
92.75 ±
0.23
0.9283 ±
0.0086
0.0079 ±
0.0003
64
93.15 ±
0.21
0.9550 ±
0.0131
0.0047 ±
0.0005
SpatialPC-v2
8
86.69 ±
0.07
0.4624 ±
0.0103
0.0169 ±
0.0002
16
89.95 ±
0.17
0.7785 ±
0.0186
0.0106 ±
0.0000
Table 4: Effect of the round budget T at N=256 , H=128 , λ=100 (one epoch). Every state is reachable once T>Dreach=18 , yet gradient fidelity keeps improving to T=64 .
Figure 4: Finite-round SpatialPC over 20 epochs at N=256 , T=32 . Gradient cosine compares the finite-round APD task gradient with the settled gradient of the same Moore network. The dashed accuracy curve is the depth-128 backpropagation reference.
Accuracy (%)
Gradient Alignment
Dataset
Method
Epoch
Test ↑
Settled ↑
Task-grad cos. ↑
RMS (×10−3)↓
MNIST
BP
1
93.40 ±
0.31
–
–
–
5
96.54 ±
0.15
–
–
–
10
97.23 ±
0.32
–
–
–
20
97.55 ±
0.09
–
–
–
SPCv1
1
92.74 ±
0.23
92.58 ±
0.19
0.934 ±
0.005
7.9 ±
0.3
Table 5: Twenty-epoch training at N=256 , T=32 , H=128 (mean ± std over three seeds). “Test” is finite-round accuracy from hT and “Settled” uses the same parameters after an exact sweep; RMS is the residual RMS. The BP row is a depth-128 chain reference, for which the SpatialPC diagnostics do not apply.
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
Loss
Readout
Activation
Gradient cosine ↑
Relative error ↓
CE
H−1/2
ReLU
1.0000000000
2.83×10−16
CE
H−1/2
tanh
1.0000000000
1.54×10−16
CE
H−1
ReLU
1.0000000000
2.54×10−16
CE
H−1
tanh
1.0000000000
2.43×10−16
MSE
H−1/2
ReLU
1.0000000000
2.71×10−16
MSE
H−1/2
tanh
1.0000000000
1.48×10−16
Appendix
Table 6: Double-precision verification of the finite-round SpatialPC/APD gradient against automatic differentiation.
Dataset
Method
Graph
Test Acc. (%) ↑
Task-grad cos. to settled ↑
MNIST
SpatialPC-v1
Chain
9.80 ±
0.00
0.0000 ±
0.0000
Moore
92.75 ±
0.23
0.9283 ±
0.0086
SpatialPC-v2
Chain
9.80 ±
0.00
0.0000 ±
0.0000
Moore
91.22 ±
0.27
0.6467 ±
0.0279
Fashion-MNIST
SpatialPC-v1
Chain
10.00 ±
0.00
0.0000 ±
0.0000
Moore
82.85 ±
0.18
0.9745 ±
0.0008
Appendix
Table 7: Chain control at matched N=256 , T=32 , H=128 . With T<N the chain output never receives input information, so accuracy equals the class-0 frequency and the task gradient is zero.
Dataset
Method
Activation
Test Acc. (%) ↑
Task-grad cos. to settled ↑
MNIST
SpatialPC-v1
ReLU
92.75 ±
0.23
0.9283 ±
0.0086
Tanh
91.63 ±
0.25
0.9628 ±
0.0078
SpatialPC-v2
ReLU
91.22 ±
0.27
0.6467 ±
0.0279
Tanh
88.86 ±
0.19
0.9539 ±
0.0031
Fashion-MNIST
SpatialPC-v1
ReLU
82.85 ±
0.18
0.9745 ±
0.0008
Tanh
82.14 ±
0.13
0.9843 ±
0.0037
Appendix
Table 8: Activation ablation at the reference configuration ( N=256 , T=32 , H=128 , λ=100 , one epoch).
Dataset
Width
BP
μ PC
PC
PC-ALM
SPC-v1
SPC-v2
MNIST
8
38.80
18.67
9.53
37.90
83.00
65.70
16
75.85
35.65
9.51
71.47
87.60
77.94
32
87.78
61.02
8.98
85.79
89.78
84.91
64
91.51
74.98
9.75
89.78
91.42
89.18
128
93.40
84.06
9.87
92.25
92.74
91.23
Fashion-MNIST
8
47.56
24.48
11.41
43.44
74.88
64.77
Appendix
Table 9: One-epoch test accuracy (%) at matched hidden width H . SpatialPC uses the N=256 Moore graph; the chain baselines use depth 128. Batch sizes are 32 for SpatialPC and 64 for the baselines. Bold marks the best entry in each row.
Department of Electrical and Computer Engineering, University of Alberta, Edmonton, Canada · Alberta Machine Intelligence Institute (Amii), Edmonton, Canada