Simultaneous Learning and Filtering without Delusions: A Bayes-Optimal Derivation of Combining Predictive Inference and Adaptive Filtering

Jan Kneissler, Jan Drugowitsch, Karl J. Friston, Martin V. ButzFrontiers Comput. Neurosci 2015 · DOI

Introduction

In the study of autonomous agents and neurobiology, the "predictive coding" framework posits that the brain continuously predicts the sensory consequences of its actions. This requires a "forward model"—a mapping from motor commands to state changes. However, this model is not innate; it must be learned through experience. This creates a fundamental "chicken and egg" problem: accurate state estimation (filtering) requires a reliable forward model, yet learning that model requires clean, filtered sensory data.

The Challenge: Avoiding Delusional Loops

Standard approaches often treat state estimation and parameter learning as separate tasks. For instance, one might use a Kalman Filter for state estimation and Recursive Least Squares for parameter learning. However, this naive combination frequently leads to "delusional loops." In such scenarios, the system becomes overconfident in its initially incorrect model, misinterpreting genuine prediction errors as mere sensory noise. Consequently, the system stops learning and becomes "deluded," convinced its erroneous model is correct because it has filtered out all contradictory evidence.

The PIAF Framework

The authors propose PIAF (Predictive Inference and Adaptive Filtering), a Bayes-optimal solution that treats state estimation ($z$) and parameter learning ($w$) as a single, unified inference problem. Unlike previous methods, PIAF explicitly tracks the uncertainty in the model and how it interacts with state uncertainty.

Information flow in the PIAF framework, highlighting the explicit tracking of cross-covariances between state estimates and model parameters.

The key innovations of PIAF include:

  • Explicit Covariance Tracking: PIAF tracks the cross-covariance between the state estimate and model parameters ($\Sigma_{zw}$), allowing it to understand how model uncertainty "leaks" into uncertainty about the current state.
  • Augmented Kalman Gain: The "Kalman gain" is mathematically adjusted to account for the fact that the forward model is still being learned.
  • Separable Updates: While derived from a joint Kalman filter, the framework provides interacting update equations that make the information flow between filtering and learning explicit and easier to analyze.

Simulation Results and Performance

The framework was validated using numerical simulations with varying noise profiles and control signals, including continuous sinusoidal and irregular random commands.

Simulation results showing signal tracking across iterations under different conditions of process noise and control signal types.

PIAF demonstrated significant advantages over naive combinations:

  • Speed: PIAF learned the forward model more than 10 times faster than a naive combination of a Kalman Filter and Recursive Least Squares.
  • Stability: While baseline models often stagnated in delusional loops, PIAF remained stable and consistently converged to true parameters.
  • Robustness: The system reached theoretical performance limits even in environments with high sensory noise.

Conclusion and Future Work

PIAF provides a statistically rigorous bridge between Kalman Filtering and adaptive filtering. While currently limited to linear models and low-dimensional systems, it offers a promising foundation for understanding how biological systems might perform simultaneous inference and learning. Future research will explore extensions to non-linear systems using Extended or Unscented Kalman Filters and investigate potential neural implementations of these covariance-tracking mechanisms.

Summary updated

BibTeX
@article{kneissler2015simultaneous,
  author = {Jan Kneissler and Jan Drugowitsch and Karl J. Friston and Martin V. Butz},
  title = {{Simultaneous Learning and Filtering without Delusions: A Bayes-Optimal Derivation of Combining Predictive Inference and Adaptive Filtering}},
  journal = {Frontiers Comput. Neurosci.},
  year = {2015},
  doi = {10.3389/fncom.2015.00047},
}
Figure