The generalized Hierarchical Gaussian Filter
Lilian Aline Weber, Peter Thestrup Waade, Nicolas Legrand, Anna Hedvig Møller, Klaas Enno Stephan, Christoph Mathys
TL;DR
The paper introduces a generalized Hierarchical Gaussian Filter (gHGF) that unifies predictive coding and hierarchical Gaussian filtering by incorporating nonlinear value coupling, volatility coupling, and precision-based message passing. It reframes inference as modular networks of belief nodes that perform three basic computations per time step and exchange bottom-up prediction errors and top-down predictions, with additional signals for precision and volatility. The work provides formal update equations for value coupling, demonstrates modularity for constructing complex hierarchies, and presents open-source TAPAS implementations to enable flexible empirical analyses in computational psychiatry. By expanding HGF to include cross-level interactions and nonlinear couplings, it offers a versatile tool for modeling perception, learning, and uncertainty in health and disease. The practical impact lies in a scalable, interpretable Bayesian framework suitable for probing individual differences in belief updating and for integrating multiple uncertainty sources in neural and behavioral data.
Abstract
Hierarchical Bayesian models of perception and learning feature prominently in contemporary cognitive neuroscience where, for example, they inform computational concepts of mental disorders. This includes predictive coding and hierarchical Gaussian filtering (HGF), which differ in the nature of hierarchical representations. In this work, we present a new class of artificial neural networks that unifies computational principles of PC and HGFs. We extend the space of generative models underlying HGF to include a form of nonlinear hierarchical coupling between state values akin to predictive coding and artificial neural networks in general. We derive the update equations corresponding to this generalization of HGF and conceptualize them as connecting a network of (belief) nodes where parent nodes either predict the state of child nodes or their rate of change. This enables us to (1) create modular architectures with generic computational steps in each node of the network, and (2) disclose the hierarchical message passing implied by generalized HGF models and to compare this to comparable schemes under predictive coding. The practical advances of this work are twofold: on the one hand, our extension allows for a modular construction of ANNs of arbitrarily complex hierarchical structure under the general principles of HGF. On the other hand, by providing a highly flexible implementation of hierarchical Bayesian models available as open source software, it enables new types of empirical data analysis in computational psychiatry.
