← Latest papers
🤖 machine learning

Single State Update Predictive Coding training for Time Series Forecasting and Anomaly Detection

This paper introduces a parallel training technique for Predictive Coding Networks that pairs a Generative PCN with an Encoding PCN to eliminate sequential backward error propagation, thereby enabling stable, continuous online learning for time series forecasting and anomaly detection.

Original authors: Matteo Cardoni, Sam Leroux

Published 2026-08-26
📖 4 min read☕ Coffee break read

Original authors: Matteo Cardoni, Sam Leroux

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

In the world of artificial intelligence, machines are often taught to learn by looking at a finished product and working backward to understand how it was made. This method, known as backpropagation, is the standard engine behind modern deep learning, but it has a significant flaw: it requires the computer to process information in a strict, step-by-step sequence. Imagine a line of people passing a message from the back of the room to the front; if the person at the back changes their mind, the message must travel all the way back through the line again to correct the error. This sequential nature makes the process slow and difficult to run on small, portable devices that need to learn in real time. A different approach, called predictive coding, offers a way out. Instead of working backward, this paradigm suggests that the brain and machines learn by constantly guessing what will happen next and then adjusting their internal state only when reality differs from that guess. The goal is to make these adjustments happen all at once, across the entire system, rather than waiting for a signal to travel from one end to the other.

Researchers Matteo Cardoni and Sam Leroux at Ghent University have developed a new training technique that brings this parallel learning concept to life for time series data, such as video streams or sensor readings. Their work addresses a persistent bottleneck in predictive coding networks: even though the theory allows for parallel updates, the practical implementation often still gets stuck waiting for error signals to propagate sequentially from the output layer back to the input. To solve this, the team introduced a method that pairs two neural networks together. One network, acting as a generator, tries to predict the next moment in a sequence based on the previous one. The second network, acting as an encoder, observes the actual incoming data. Instead of forcing the generator to learn alone through a slow, iterative process, the encoder runs alongside it, matching its internal activity. This partnership allows the system to update its entire internal state in a single, unified step, rather than cycling through multiple rounds of correction.

The researchers tested this approach by creating a simulated environment where a digit from a standard set of images moved across a black background. They tasked a five-layer neural network with predicting the next frame of this movement. Under normal conditions, the digit moved diagonally, but the researchers introduced sudden anomalies, such as the digit abruptly changing direction, bouncing off walls, or even switching to a completely different number. The system had to learn these new patterns on the fly, treating the new behavior as normal once it was observed. In these experiments, the traditional method, which relies on multiple sequential steps to correct errors, struggled when the pattern changed. It often failed to adapt quickly, causing its predictions to drift apart from reality. In contrast, the new paired-network approach recovered almost immediately. When the movement pattern shifted, the system adjusted its internal representation in a single update and began predicting the new trajectory accurately, maintaining a steady and continuous learning curve.

The results showed that this single-state update technique provided a much more stable learning process. While the traditional method produced erratic spikes in error whenever the data changed, the new approach smoothed out these transitions, allowing the model to treat the new dynamics as normal without losing its footing. The study suggests that by using a supporting network to guide the learning process, the system can bypass the slow, sequential propagation of errors that typically limits these types of models. This finding is particularly significant for the future of artificial intelligence on edge devices, such as smartphones or sensors, where power and processing speed are limited. By enabling machines to learn continuously and in parallel, this technique offers a promising path toward systems that can adapt to a changing world in real time, without the heavy computational cost of waiting for a long chain of corrections to finish.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →