Manuscript Offprint
arXiv:2610.23196Framing Spatial Hearing within the Free Energy Principle: A Hierarchical Model of Perceptual Learning
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Accepted Extended Abstract, 7th International Workshop on Active Inference (IWAI 2026), 14–16 October 2026, Madrid, Spain
Framing Spatial Hearing within the Free Energy Principle: A Hierarchical Model of Perceptual Learning
Roberto Barumerli , Nils Meyer-Kahlen , and Lorenzo Picinali
Dyson School of Design Engineering, Imperial College London, UK
Dept. of Information and Communications Engineering, Aalto University, Finland
Abstract. Spatial hearing relies on dynamic internal representations to decode spatial information from ever-changing acoustic conditions. A fundamental example is sound localisation, where listeners infer the direction of an invisible sound. Bayesian inference provides a computational account of such a localisation process; however, modelling efforts are largely limited to static listening scenarios. Instead, the free energy principle (FEP) describes perception, learning, and action as joint minimisation of variational free energy (VFE), providing a principled framework to account for dynamic conditions. Here, we take a first step toward applying the FEP to spatial hearing. We characterise how listeners' beliefs evolve across trials, in which they estimated sound direction and received subsequent visual feedback on each trial. Listeners are described by a hierarchical generative model where visual feedback drives gradient descent on VFE, updating beliefs over three independent quantities: lateral and polar localisation precisions and hemifield disambiguation. The model captures individual learning trajectories and reveals components with different dynamics: lateral precision improves, as does hemifield disambiguation, consistent with increased sensitivity of the auditory pathway in decoding vertical direction. Notably, polar precision also increases, most for listeners with the lowest initial precision, suggesting that the observed vertical improvement is driven by both hemifield disambiguation and polar precision. This work establishes spatial hearing as a tractable domain for FEP and motivates future closed-loop experiments with full action-perception cycles.
Introduction. Understanding how the auditory system decodes spatial information is a central challenge in hearing research, yet computational accounts largely focus on static scenarios [12, 4], leaving its dynamic, experience-dependent nature under-explored [3]. Auditory spatial perception is inherently plastic [9] and localisation involves both perception and action [14], making the FEP, a unified computational account of perception, learning, and action [8, 16], a natural framework. Localisation improves across trials with visual feedback [11], yet no mechanistic account exists of how individual beliefs evolve trial by trial. Here, we use the FEP [5] to model perceptual learning as belief revision, decomposing lo-
Barumerli et al.
calisation improvement into three components with distinct timescales, validated on behavioural data from [11].
Problem formulation. On each trial , the listener estimates the direction of an invisible sound source and produces a pointing response , followed by visual feedback at . Directions are expressed in interaural-polar coordinates [15], separating the contributions of auditory cues to behavioural error (Fig. 1): the lateral angle , informed by interaural time and level differences, defines the cone of confusion, within which the polar angle is decoded from spectral-shape cues [14]. With uniform priors on and , the listener model factorises as where captures the listener's beliefs about lateral and polar precisions, and hemifield disambiguation (i.e., front-back confusions [14]).
We employ a parametric formulation to preserve differentiability within FEP. The lateral component is a von Mises distribution with location and concentration (i.e., lateral precision). The polar component is a two-component von Mises mixture with concentration (i.e., polar precision), locations and (i.e., correct and incorrect hemifields) and hemifield weight ; is scaled by , reflecting the reduced relevance of spectral cues at lateral extremes, where the interaural cone collapses (Fig. 1) [15, 13].
Belief revision follows from minimising variational free energy with respect to . With a flat prior and Laplace approximation [6], reduces to , so belief revision amounts to online likelihood ascent: a deliberately minimal instance of the FEP, covering perception and learning but not action (Fig. 2). Each belief takes a natural-gradient step [2] after every trial, scaled by the inverse Fisher information to update components living on different scales consistently (problem formulation available in Appendix A.1). Updates are sequential, producing a trajectory that batch optimisation cannot recover. Per subject (N = 5), learning rates were estimated by maximum likelihood [1], and from the baseline block [11] (Appendix A.2).
Results and Discussion. The model captures group-average trajectories ( for lateral, polar and hemifield errors, Fig. 3, top). Individual parameter trajectories (Fig. 3, bottom) differ across components: rises for most subjects; rises, proportionally more for lower baseline ; increases steadily (median , , ; Appendix A.3). These distinct trajectories are consistent with previously reported mechanisms, including sensorimotor recalibration [11], stable spectral cue-to-direction mappings acquired through natural listening [7], and increased sensitivity to altered spectral cues [10]. Notably, behavioural polar dispersion decreases and rises under the weighting: the improvement seen in aggregate statistics stems from hemifield disambiguation and sharper polar precision (Fig. 3, middle column).
Our approach has limitations: a small cohort and a perception-only loop in which pointing is a read-out and feedback is external. Two extensions would cast spatial hearing as full active inference: informative priors on , yielding posterior uncertainty on , and head movements as policies, resolving hemifield ambiguity by action rather than by learning.
-
Amari, S.i.: Natural gradient works efficiently in learning. Neural Computation 10(2), 251–276 (1998). https://doi.org/10.1162/089976698300017746
-
Barumerli, R., Majdak, P.: FrAMBI: A Software Framework for Auditory Modeling Based on Bayesian Inference. Neuroinformatics 23(2), 20 (Feb 2025). https://doi.org/10.1007/s12021-024-09702-5
-
Barumerli, R., Majdak, P., Geronazzo, M., Meijer, D., Avanzini, F., Baumgartner, R.: A Bayesian model for human directional localization of broadband static sound sources. Acta Acustica 7, 12 (2023). https://doi.org/10.1051/aacus/2023006
-
Bogacz, R.: A tutorial on the free-energy framework for modelling perception and learning. Journal of Mathematical Psychology 76, 198–211 (Feb 2017). https://doi.org/10.1016/j.jmp.2015.11.003
-
Buckley, C.L., Kim, C.S., McGregor, S., Seth, A.K.: The free energy principle for action and perception: A mathematical review. Journal of Mathematical Psychology 81, 55–79 (Dec 2017). https://doi.org/10.1016/j.jmp.2017.09.004
-
Carlile, S., Leong, P., Hyams, S.: The nature and distribution of errors in sound localization by human listeners. Hearing Research 114(1–2), 179–196 (1997). https://doi.org/10.1016/S0378-5955(97)00161-5
-
Friston, K.J.: The free-energy principle: a unified brain theory? Nature Reviews Neuroscience 11(2), 127–138 (2010). https://doi.org/10.1038/nrn2787
-
van der Heijden, K., Rauschecker, J.P., de Gelder, B., Formisano, E.: Cortical mechanisms of spatial hearing. Nature Reviews Neuroscience 20(10), 609–623 (Oct 2019). https://doi.org/10.1038/s41583-019-0206-5
-
Hofman, P.M., Van Riswick, J.G.A., Van Opstal, A.J.: Relearning sound localization with new ears. Nature Neuroscience 1(5), 417–421 (1998). https://doi.org/10.1038/1633
-
Majdak, P., Goupell, M.J., Laback, B.: 3-D localization of virtual sound sources: Effects of visual environment, pointing method, and training. Attention, Perception, & Psychophysics 72(2), 454–469 (2010). https://doi.org/10.3758/APP.72.2.454
-
Majdak, P., Hollomey, C., Baumgartner, R.: AMT 1.x: A toolbox for reproducible research in auditory modeling. Acta Acustica 6, 19 (2022). https://doi.org/10.1051/aacus/2022011
-
Mardia, K.V., Jupp, P.E.: Directional statistics. John Wiley & Sons (2009)
-
Middlebrooks, J.C.: Sound localization. In: Handbook of Clinical Neurology, vol. 129, pp. 99–116. Elsevier (2015). https://doi.org/10.1016/B978-0-444-62630-1.00006-8
-
Morimoto, M., Aokata, H.: Localization cues of sound sources in the upper hemisphere. Journal of the Acoustical Society of Japan (E) 5(3), 165–173 (1984). https://doi.org/10.1250/ast.5.165
-
Parr, T., Pezzulo, G., Friston, K.J.: Active Inference: The Free Energy Principle in Mind, Brain, and Behavior. MIT Press (2022). https://doi.org/10.7551/mitpress/12441.001.0001
Barumerli et al.

Fig. 1. Interaural-polar coordinate system [15]. The source direction is defined by : lateral angle identifies the interaural axis and the cone of confusion (green circle); polar angle defines elevation within that cone. Reference points: front ( , ), back ( , ), sides ( , ).
FEP Agent

(3) Visual feedback
(1) Sound presentation
Level 1 — Perceptual Inference
: VM
: VM mixture
(2) Pointing response
Fig. 2. Architecture of the hierarchical FEP agent. Level 1 encodes the listener's generative model of auditory space as a von Mises mixture (polar) and a single von Mises (lateral). Level 2 revises the agent's beliefs via natural-gradient descent on variational free energy , using visual feedback as a high-precision teaching signal. Initial beliefs are estimated from baseline block available from the original experiment (naive localisation without feedback [11]) by maximum likelihood. Learning rates are fitted per subject.


Fig. 3. Top: Group-average behavioural trajectories, manual condition (n=5). Solid: empirical (mean ± 1 standard error (SE) ribbon); dashed: FEP model. Left to right: lateral dispersion (standard deviation (SD) of lateral error, °); polar dispersion (SD of polar error excluding hemifield errors, cos² αt-weighted, °); hemifield error rate (proportion of responses deviating more than 90° from the target, cos² αt-weighted, %). The model captures the direction and shape of all three metrics. Bottom: Individual parameter trajectories, manual group (n=5), truncated to 750 trials (LOESS-smoothed, span = 0.5; thin coloured lines: individual subjects; thick black line: mean ± 1 SE ribbon).
Barumerli et al.
A Appendix
Code and data are available here:
https://github.com/robaru/iwai2026-fep-spatial-hearing.
A.1 Model formulation
Generative model Directions are expressed in interaural-polar coordinates [15]. Circular quantities are modelled with the von Mises distribution
where is the modified Bessel function of order zero and the concentration (precision). The listener model factorises into a lateral and a polar component, , with
where accounts for the geometric compression of the cone of confusion at lateral angles, and is the probability of resolving the correct hemifield. The two mixture components share the same concentration: hemifield confusion affects where the response lands, not how tightly it clusters.
Free energy and natural gradient For a recognition density over the beliefs , the variational free energy at trial is
Under a Laplace approximation (q Gaussian centred on the current point estimate ) and a flat prior, the complexity term is constant in , so [6]. Beliefs are revised by natural-gradient descent [2],
where collects the learning rates and is the Fisher information. For a von Mises concentration, , with the Bessel ratio, i.e., the expected value of . For the hemifield weight, parameterised through its logit , ; in the update, therefore denotes , with recovered through the logistic function, . Because the likelihood factorises, the three updates are decoupled.
Update equations Let and denote the correct- and mirror-hemifield components of the polar mixture evaluated at the response on trial , with , and the polar mixture likelihood. The updates are
where is the logistic function and
is the responsibility-weighted cosine alignment between response and target. Each bracketed term is a prediction error: the observed alignment minus the alignment expected under the current belief, for evaluated at the scaled concentration . The cone of confusion enters twice. At perception time the listener has no access to the true lateral angle, so the generative model above conditions on the inferred cone . At update time the visual feedback reveals the true direction, so in Eq. A4 is evaluated with the true cone and the step in Eq. A6 is scaled by , the same factor used in the likelihood that fits and the learning rates. For , the Fisher information cancels the logistic derivative exactly, and the logit parameterisation keeps without projection.
A.2 Parameter estimation
Initial beliefs were estimated per subject by maximum likelihood from the last 100 trials of the baseline block (naive localisation without feedback [11]). The learning rates are the only free parameters of the learning model. They were fitted per subject by minimising the mean negative log-likelihood of the responses in the feedback block under the sequential updates of Eqs. A6–A8, using Bayesian adaptive direct search [1]. Because the likelihood factorises, and are estimated independently.
A.3 Model comparison and robustness
Held-out comparison. To test whether all three learning rates are needed, they were fitted on the odd-numbered feedback trials and the summed log-likelihood was evaluated on the even-numbered trials, with beliefs updated sequentially over all trials in both cases (Table 1, left). Relative to the full model, freezing reduced the held-out log-likelihood by 167 nats in total and freezing by 82 nats. Hemifield learning was required in every subject (NH12
Barumerli et al.
only marginally), and polar-precision learning in all but NH17, for which was indistinguishable from zero (parametric bootstrap, , interval reaching zero). Over the feedback block, rose by 2.8 to 4.5 in the other four subjects ( intervals excluding zero) and by 0.3 in NH17, with the largest relative gain in the two subjects with the lowest baseline (NH15, NH18). A first-half/second-half split gave the same ordering.
Robustness to the scaling. The Laplace approximation with a flat prior affects only the curvature of , not the location of the update, so it cannot mask a change in . The scaling changes the size of polar learning but not its direction (Table 1, right): removing it from likelihood, update and baseline fit lowers the median from 0.015 to 0.006, still rises by 0.6 to 2.8 over the feedback block, and the unscaled model fits worse with the same number of parameters (summed in-sample nats, although NH15 and NH17 favour it). The rise of and the necessity of hemifield learning are unaffected. The rise of is therefore not conditional on the geometric weighting of lateral targets. The unscaled model, however, does not respect the problem geometry: the cone of confusion collapses to a point at lateral positions (), where the polar angle is undefined, and polar errors become progressively less informative about spectral decoding as increases.
Table 1. Left: held-out comparison, log-likelihood differences in nats relative to the full model (: reduced model predicts worse). Right: robustness, polar-precision learning rate with bootstrap interval, with and without the scaling, and , the change of over the feedback block without scaling.
| Held-out comparison | robustness | |||||
|---|---|---|---|---|---|---|
| Subject | ||||||
| NH12 | 7.5 | -5.7 | -1.1 | 0.020 [0.015, 0.033] | 0.005 [0.002, 0.010] | +1.9 |
| NH15 | 2.4 | -54.2 | -6.5 | 0.015 [0.013, 0.026] | 0.016 [0.013, 0.025] | +2.8 |
| NH16 | 4.3 | -39.0 | -39.0 | 0.008 [0.006, 0.012] | 0.006 [0.005, 0.010] | +1.6 |
| NH17 | 4.3 | 0.0 | -30.2 | 0.002 [0, 0.012] | 0.006 [0, 0.016] | +0.6 |
| NH18 | 0.9 | -68.2 | -5.0 | 0.062 [0.038, 0.084] | 0.043 [0.034, 0.079] | +2.4 |