arXiv:2610.36412cs.LGOct 2026

Manuscript Offprint

arXiv:2610.36412

Persistence, Exposure, and Credit Routing in Linear Temporal Predictive Coding

Akira Tanase, Julian Gould, Jeffrey Seely

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

Abstract

Temporal Predictive Coding (tPC) networks offer a layer-local alternative to backpropagation. For linear tPC, we show, by applying tools from cellular sheaf theory, that temporal credit assignment is a tug-of-war between spatial displacement and temporal errors, whose ratios are modulated by persistence and exposure operators P and Q. Spatial inference therefore gives us the effective recurrent transition F=PAF = PA, whilst future credit is filtered by P∗P^{*}. This creates a persistence–error tradeoff in spatial modes: under non-amplifying invariant recurrence, modes that preserve influence over long delays simultaneously fail to expose that influence strongly as temporal error. Recurrence can circumvent this via routing between persistent and exposed modes.

Keywords: Predictive Coding, Cellular Sheaves, Temporal Credit Assignment, Recurrent Neural Networks

1. Introduction

Predictive coding networks are a layer-local alternative to backpropagation for training hierarchical neural networks (Rao and Ballard, 1999; Whittington and Bogacz, 2017; Salvatori et al., 2026). In temporal predictive coding, we learn sequential data by adding recurrent connections between corresponding layers (Millidge et al., 2024; Ng-Kee-Kwong et al., 2026). We focus on linear tPC for autoregressive sequence modelling of observations o0,…,oTo_0, \ldots, o_T, processed sequentially through time. At time tt, the current observation is fixed at the bottom layer, z0,t=otz_{0,t} = o_t, whilst the remaining activities are inferred using both the current observation and temporal predictions from the previously inferred slice; the resulting state is then used to predict time t+1t+1. Formally, we have activities zℓ,t∈Hℓz_{\ell,t} \in H_\ell indexed across layers ℓ=0,…,L\ell = 0, \ldots, L and time t=0,…,Tt = 0, \ldots, T. Within each time slice, Wℓ:Hℓ+1→HℓW_\ell : H_{\ell+1} \to H_\ell maps higher-layer activity zℓ+1,tz_{\ell+1,t} to a prediction of zℓ,tz_{\ell,t}, whilst across time Aℓ:Hℓ→HℓA_\ell : H_\ell \to H_\ell maps zℓ,tz_{\ell,t} to a prediction of zℓ,t+1z_{\ell,t+1}. The maps WℓW_\ell and AℓA_\ell are shared across time. These maps define receiver-side spatial and temporal edge discrepancies rℓ,ts=zℓ,t−Wℓzℓ+1,tr_{\ell,t}^s = z_{\ell,t} - W_\ell z_{\ell+1,t} and rℓ,tτ=zℓ,t+1−Aℓzℓ,tr_{\ell,t}^\tau = z_{\ell,t+1} - A_\ell z_{\ell,t}.

Training proceeds sequentially through time. At each time tt, during inference, the weights and the previously inferred state z∙,t−1∗z_{\bullet,t-1}^* are kept fixed, the current observation z0,t=otz_{0,t} = o_t is clamped, and only the remaining activities z1,t,…,zL,tz_{1,t}, \ldots, z_{L,t} are updated to minimise

© 2026 A. Tanase, J. Gould & J. Seely.

time t−1time ttime t+1ℓ=LHL→ALHL→ALHLWL−1↓WL−1↓WL−1↓ℓ=L−1HL−1→AL−1HL−1→AL−1HL−1⋮⋮⋮ℓ=1H1→A1H1→A1H1W0↓W0↓W0↓ℓ=0H0→A0H0→A0H0\begin{array}{ccc} \text{time } t-1 & \text{time } t & \text{time } t+1 \\ \ell=L & H_{L} \xrightarrow{A_{L}} H_{L} \xrightarrow{A_{L}} H_{L} \\ W_{L-1} \downarrow & W_{L-1} \downarrow & W_{L-1} \downarrow \\ \ell=L-1 & H_{L-1} \xrightarrow{A_{L-1}} H_{L-1} \xrightarrow{A_{L-1}} H_{L-1} \\ \vdots & \vdots & \vdots \\ \ell=1 & H_{1} \xrightarrow{A_{1}} H_{1} \xrightarrow{A_{1}} H_{1} \\ W_{0} \downarrow & W_{0} \downarrow & W_{0} \downarrow \\ \ell=0 & H_{0} \xrightarrow{A_{0}} H_{0} \xrightarrow{A_{0}} H_{0} \end{array}

Figure 1: Linear temporal predictive coding architecture. Spatial maps WℓW_{\ell} predict down each time slice, whilst temporal maps AℓA_{\ell} predict forward across time. At time t, the observation z0,t=otz_{0,t} = o_t is fixed and inference updates the hidden activities in the shaded slice.

the current slice energy. This energy aggregates within-slice spatial residuals with the incoming temporal residuals from the transition t−1→tt - 1 \to t. The resulting inferred state is denoted by z∙,t⋆z_{\bullet,t}^{\star} and is used to generate temporal predictions for time t+1t + 1 (Millidge et al., 2024). After the full trajectory has been inferred, during learning, the inferred activities are held fixed and the same shared maps are updated using the residuals and incident activities accumulated across time: each WℓW_{\ell} from the spatial residuals in each slice, and each AℓA_{\ell} from the temporal residuals on the incoming transitions.

Training is a tug-of-war between spatial and temporal predictions. By constructing a directed network sheaf over the tPC computational graph (Section 2), we realise tPC as directed sheaf diffusion (Section 3). We then show in Section 4 that exact inference finds a compromise between the spatial prediction and temporal proposal, modulated by operators P and Q, giving the effective recurrent map F=PAF = PA. In Section 5, we analyse this P, Q split along individual eigenmodes of the spatial sheaf Laplacian, finding that low-penalty modes are preferentially retained whilst high-penalty modes are preferentially exposed as temporal error. In Section 6, we show that the future temporal credit omitted by standard tPC learning is filtered by P∗P^{*}, whilst Section 7 shows how recurrence can route influence between persistent and exposed modes over long time horizons. Finally, in Section 8, we validate mode routing on a single-hidden-layer network.