Abstract
The relationship between perception and inference, as postulated by Helmholtz in the 19th century, is paralleled in modern machine learning by generative models like Variational Autoencoders (VAEs) and their hierarchical variants. Here, we evaluate the role of hierarchical inference and its alignment with brain function in the domain of motion perception. We first introduce a novel synthetic data framework, Retinal Optic Flow Learning (ROFL), which enables control over motion statistics and their causes. We then present a new hierarchical VAE and test it against alternative models on two downstream tasks: (i) predicting ground truth causes of retinal optic flow (e.g., self-motion); and (ii) predicting the responses of neurons in the motion processing pathway of primates. We manipulate the model architectures (hierarchical versus non-hierarchical), loss functions, and the causal structure of the motion stimuli. We find that hierarchical latent structure in the model leads to several improvements. First, it improves the linear decodability of ground truth factors and does so in a sparse and disentangled manner. Second, our hierarchical VAE outperforms previous state-of-the-art models in predicting neuronal responses and exhibits sparse latent-to-neuron relationships. These results depend on the causal structure of the world, indicating that alignment between brains and artificial neural networks depends not only on architecture but also on matching ecologically relevant stimulus statistics. Taken together, our results suggest that hierarchical Bayesian inference underlines the brain's understanding of the world, and hierarchical VAEs can effectively model this understanding.
Introduction
Since the 19th century, scientists have suspected that perception is a form of "unconscious inference"—the brain's mechanism for guessing the hidden causes of sensory input. In modern artificial intelligence, generative models like Variational Autoencoders (VAEs) operationalize this concept. While significant progress has been made in aligning AI with the brain's "ventral stream" (object recognition), the "dorsal stream" (motion processing) has remained relatively under-explored.
The core challenge in motion processing is "untangling": how does the brain distinguish between motion caused by the observer moving (self-motion), the observer's eyes moving (fixation), and objects moving independently? This paper demonstrates that hierarchical VAEs provide a powerful normative model for this process, learning "untangled" representations that align remarkably well with the actual firing patterns of neurons in the primate visual cortex.
Methods and Data
To investigate this, the authors introduced two major innovations:
- Retinal Optic Flow Learning (ROFL): A synthetic data framework that generates naturalistic optic flow fields. Unlike standard datasets, ROFL allows precise manipulation of the causal structure of motion—such as changing fixation points or object velocity—to observe how these factors influence learned representations.
- The Compressed Nouveau VAE (cNVAE): Standard hierarchical VAEs often produce latent spaces larger than their inputs. The authors modified the state-of-the-art NVAE architecture by adding "sampler" and "expand" layers, forcing the model to compress spatial information into a low-dimensional, abstract latent code (420 dimensions). This makes the model's internal representations easier to analyze and compare to biological neurons.
The model was trained purely through unsupervised reconstruction of input flow fields and then evaluated against ground-truth motion factors and a dataset of 141 neurons recorded from Area MT of macaques.
Key Results and Insights
Hierarchy as an Inductive Bias
A central finding is that non-hierarchical VAEs fail to capture object-related variables. The hierarchical structure of the cNVAE acts as a crucial inductive bias, allowing the model to naturally separate global motion (self-motion) from local motion (moving objects) across different spatial scales. The cNVAE achieved a linear decodability score ($R^2$) of approximately 0.90 for ground-truth factors, compared to only 0.55 for standard VAEs.
Brain Alignment and Sparsity
The cNVAE significantly outperformed previous state-of-the-art models (like DorsalNet) in predicting MT neuron responses, achieving a Pearson’s correlation of $R \approx 0.51$. Crucially, this alignment was characterized by a sparse mapping: individual latent variables in the AI often corresponded directly to the preferences of specific biological neurons. This suggests that the AI and the brain have arrived at a similar representational form through different learning paths.
The Importance of Ecological Validity
The model's alignment with the brain depended heavily on the training data. Models trained on complex datasets mirroring the causal structure of the real world aligned much better with MT neurons than those trained on simpler, less naturalistic subsets. This indicates that matching ecologically relevant stimulus statistics is as important as architectural design for brain-AI alignment.
Conclusion
These results suggest that hierarchical Bayesian inference is a fundamental principle of the brain's motion processing system. While the current model uses instantaneous "snapshots" of motion, future work will extend this to continuous spatiotemporal video and more complex 3D environments. The authors also suggest that hierarchical computation may be even more critical for higher-level areas like Area MST, which handles complex global motion integration.
Summary updated