TAVAE: A VAE with Adaptable Priors Explains Contextual Modulation in the Visual Cortex
Balázs Meszéna, Keith T. Murray, Julien Corbo, O. Batuhan Erkat, Márton A. Hajnal, Pierre-Olivier Polack, Gergő Orbán
TL;DR
The paper addresses how task-specific contextual priors can be learned and deployed in the primary visual cortex. It introduces the Task-Amortized VAE (TAVAE), which preserves the VAE likelihood $p({\bm{x}}|{\bm{z}})$ while adapting the latent prior to a task-specific $p_T({\bm{z}})$, implemented as a zero-mean Laplace prior with self-consistent scale updates. Empirically, TAVAE accounts for sharpening of population responses, baseline suppression, and bimodal posterior-like patterns when task statistics are violated, and it captures how priors are updated across days in mice performing orientation discrimination. The work demonstrates that flexible, on-demand contextual priors can be learned without retraining the entire model, offering a normative framework for contextual modulation in early visual processing and a general tool for studying cortical inference under realistic task conditions.
Abstract
The brain interprets visual information through learned regularities, a computation formalized as probabilistic inference under a prior. The visual cortex establishes priors for this inference, some delivered through established top-down connections that inform low-level cortices about statistics represented at higher levels in the cortical hierarchy. While evidence shows that adaptation leads to priors reflecting the structure of natural images, it remains unclear whether similar priors can be flexibly acquired when learning a specific task. To investigate this, we built a generative model of V1 optimized for a simple discrimination task and analyzed it together with large-scale recordings from mice performing an analogous task. In line with recent approaches, we assumed that neuronal activity in V1 corresponds to latent posteriors in the generative model, enabling investigation of task-related priors in neuronal responses. To obtain a flexible test bed, we extended the VAE formalism so that a task can be acquired efficiently by reusing previously learned representations. Task-specific priors learned by this Task-Amortized VAE were used to investigate biases in mice and model when presenting stimuli that violated trained task statistics. Mismatch between learned task statistics and incoming sensory evidence produced signatures of uncertainty in stimulus category in the TAVAE posterior, reflecting properties of bimodal response profiles in V1 recordings. The task-optimized generative model accounted for key characteristics of V1 population activity, including within-day updates to population responses. Our results confirm that flexible task-specific contextual priors can be learned on demand by the visual system and deployed as early as the entry level of visual cortex.
