arXiv:2610.30899cs.AIOct 2026

Manuscript Offprint

arXiv:2610.30899

Parameter Learning in Active Inference via Variational Message Passing

Benedikt Waldeck

Benedikt Waldeck 1^{1}[0009-0001-5225-9933]

University of Modena and Reggio Emilia, Italy

benedikt.waldeck@unimore.it

Abstract. Active inference casts perception, learning and planning as variational inference, where the Expected Free Energy (EFE) defines the planning objective. Recent work showed that EFE minimization can be written as Variational Free Energy (VFE) minimization on a generative model augmented with epistemic priors, and that the resulting entropy-corrected objective is minimized by sum-product message passing (SP-MP) on modified factor functions. These formulations treat model uncertainty as inference over a finite set of known models. We extend them to planning during learning, where beliefs over the observation and transition parameters θA\theta_A, θB\theta_B are Dirichlet priors. Closed-form Dirichlet updates are usually obtained by a structured mean-field factorization between parameters and states, but under exactly that factorization the information-gain corrections vanish. We resolve this by giving every factor its own parameter prior, frozen during a rollout. Conjugacy then makes each factor belief a product of a marginal over the categorical variables and a one-step Bayes posterior of the parameters. This reintroduces the datum-dependent parameter posteriors that mean-field factorization destroys. We show that evaluating the epistemic priors under the resulting Bethe joint recovers the information gains. Stationarity of this single closed-form objective yields SP-MP whose factor functions are augmented by the information-gain weight. Experiments on two grid POMDPs, in which only a planner that learns the model finds the safe route, show that the method plans to efficiently learn θA\theta_A and θB\theta_B. It reaches the goal on every episode, whereas SP-MP planners with the same inference update plateau or take the risky route.

Keywords: Active Inference · Parameter Learning · Planning as Inference · Factor Graphs · Variational Inference

1 Introduction

Active inference casts perception, planning and learning as variational inference on a single generative model [3]. Its planning objective, the Expected Free Energy (EFE), decomposes into risk, ambiguity and novelty and thereby balances goal pursuit against epistemic exploration, but evaluating it by enumerating policies scales exponentially with the horizon [5]. De Vries et al. [14] showed that EFE

B. Waldeck

minimization can be reformulated as Variational Free Energy (VFE) minimization on a generative model augmented with epistemic priors. Nuijten et al. [13] showed that the augmented VFE equals the predictive VFE plus explicit entropy corrections, including the planning correction of Lázaro-Gredilla et al. [10]. They derived a message passing scheme in which each correction becomes a channel reparameterization of a factor function, so that EFE-based planning runs as sum-product message passing (SP-MP) on the original factor graph.

These formulations treat the model parameter θ\theta as a single enumerable latent variable: they plan under uncertainty over a finite set of known models, not under uncertainty about the models themselves. Planning during Learning the observation model θA\theta_A and the transition model θB\theta_B conjugately, an agent that knows neither its sensors nor its actuators, is left open and poses a structural problem. Closed-form Dirichlet updates require a mean-field factorization between the parameter beliefs and the state-observation blocks, but under exactly that factorization every parameter-posterior contrast collapses, q(θ∣⋅)=q(θ)q(\theta \mid \cdot) = q(\theta), and the novelty term that motivates parameter learning vanishes from the objective.

This paper resolves this problem within a single variational objective. We split θ\theta into an observation block θA\theta_A, a transition block θB\theta_B, and an enumerable context θc\theta_c, and extend the entropy-corrected formulation to conjugate learning of θA\theta_A and θB\theta_B. Our contributions are:

– We show that the channels of the entropy corrections need not be free variational parameters. Substituting them at their closed-form optima, the conditionals of q, and giving each factor a step-wise parameter prior frozen at the current belief, keeps every sum-product factor belief conjugate and preserves the local parameter–outcome joints that mean-field destroys. Under the resulting Bethe joint the objective is a single scalar over the discrete coordinates.

– We derive the resulting message passing scheme. Four epistemic priors recover the EFE with separate novelty terms for θA\theta_A and θB\theta_B and a salience term for θc\theta_c. Stationarity yields belief propagation on the discrete graph with factor functions augmented with per-entry information-gain weights eDKL≥1e^{D_{\text{KL}}} \geq 1. The fixed-parameter scheme of [12, 13] is recovered in the point-mass limit.

– We validate the method on two grid POMDPs, in which only a planner that explores the model, finds the safe route. The EFE-planner learns θA\theta_{A} and θB\theta_{B} and reaches the goal on every episode, whereas SP-MP baselines plateau on parameter learning or take the risky routes. Enumerated EFE reproduces its behaviour, and ablations isolate the novelty terms as the drive.

Section 2 reviews the EFE and the Bethe free energy. Section 3 discusses related work. Section 4 derives the objective and the message passing scheme. Section 5 reports the experiments and Section 6 concludes.