arXiv:2609.00686cs.LGSep 2026

Manuscript Offprint

arXiv:2609.00686

A Study of Hidden-State Optimization Order in Predictive Coding Networks

Xueyuan Li, Danilo Vasconcellos Vargas

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Local learning methods offer an alternative to end-to-end backpropagation, but their unstructured local objectives can produce weak feature learning in deep networks. We study whether the order of hidden-state optimization can address this limitation. We propose a boundary-first inference schedule that partitions a model into chunks, first coordinates hidden states at chunk boundaries, and then refines representations within each chunk. We instantiate this schedule in predictive coding networks (PCNs), a local-learning framework in which hidden activities and prediction errors are explicitly exposed during inference. On CIFAR-10, the resulting boundary-first predictive-coding instantiation improves accuracy over standard predictive coding by 9.77% under a standard parametrization and by 5.51% under a μ\mu-parametrization. Diagnostic analyses further show more non-trivial early-layer updates, lower initial-to-final CKA, and more diverse layerwise gradients, consistent with stronger feature learning. These results support boundary-first, chunk-based inference as a practical design principle for predictive-coding training and motivate its study in broader local-learning systems.

Keywords: local learning, predictive coding, optimization schedule, feature learning

1 Introduction

Deep networks learn useful representations when error signals produce informative updates throughout the model. End-to-end backpropagation achieves this by propagating a global supervised objective through all layers, while many alternative learning systems try to replace this global dependency with local objectives and local state updates. Their properties, including biological plausibility, modular computation, cortical-like inference, and local error minimization, are attracting the attention of both neuroscientists and machine learning researchers [1–6].

The same locality can also become a bottleneck. When learning signals are transmitted only through adjacent objectives, early and intermediate layers may receive weak or degenerate updates. Predictive Coding Networks (PCNs) provide a clear example of this failure mode (Fig. 5). Although PCNs can be trained by minimizing local prediction errors, recent work has reported imbalanced error propagation, weak early-layer updates, and unstable inference dynamics [7–11]. Stabilization methods such as residual connections, layerwise normalization, and Maximal Update Parametrization improve optimization in deep PCNs [12, 13];

Figure

Figure 1: Illustration of global backpropagation, standard predictive coding, and boundary-first predictive coding with feedforward initialization. (A) Global backpropagation computes a supervised loss at the output and propagates gradients through the full network. (B) Standard predictive coding minimizes local prediction errors between adjacent layers, with the inferred activity set expanding from {h2,h3}\{h_2, h_3\} and then to {h1,h2,h3}\{h_1, h_2, h_3\}. (C) Boundary-first predictive coding uses inter-chunk inference to coordinate boundary states before intra-chunk inference refines activities within each chunk; the inferred activity set expands from {h2}\{h_2\} to {h1,h2,h3}\{h_1, h_2, h_3\}.

however, how local objectives should be organized to encourage feature learning remains an open question.

Our work studies a different route: changing the order in which hidden activities are optimized rather than only changing the objective parametrization. We propose a boundary-first inference schedule that first coordinates hidden states at chunk boundaries and then refines the remaining states within each chunk. Chunking defines the boundary and interior variable sets that make this optimization order operational (Fig. 1).

We instantiate this schedule in predictive coding because PCNs already maintain hidden activities and prediction errors during inference. The instantiation first performs inter-chunk inference to align boundary activities, then performs intra-chunk inference to refine local representations. We refer to the fully predictive-coding version as PC-PC. We also evaluate PC-BP as a hybrid control, where chunk boundaries are coordinated by predictive-coding inference but intra-chunk learning uses backpropagation. This control tests whether the gains of the boundary-first, chunk-based schedule persist when the within-chunk learning rule changes.

Our contributions center on inference expansion order in local learning systems:

  • We formulate a boundary-first hidden-state optimization schedule for local-error training systems. We instantiate this schedule in predictive coding by using chunks to define boundary and interior states, first aligning the boundary states through inter-chunk inference and then refining the remaining activities through intra-chunk inference.

  • We show that the boundary-first predictive-coding instantiation enables all layers (20/20) to receive non-trivial updates, whereas standard PC updates only 4/20 layers in a standard Multilayer Perceptron (MLP) and 5/20 layers in a μMLP. The same schedule improves standard PC on CIFAR-10 by 9.77% under a standard parametrization and by 5.51% under a μ-parametrization.

  • We analyze representation learning with initial-to-final CKA and feature diversity with layerwise gradient similarity. The results show that PC-PC and PC-BP reduce CKA relative to standard PC and produce lower gradient similarity than global backpropagation in the measured settings.

We study this optimization schedule in predictive coding networks. Extending boundary-first inference to other local-learning frameworks is left for future work.

References (24)