Efficient coding theory of dynamic attentional modulation

Wiktor Młynarski, Gašper TkačikPLoS 2022

Abstract

Activity of sensory neurons is driven not only by external stimuli but also by feedback signals from higher brain areas. Attention is one particularly important internal signal whose presumed role is to modulate sensory representations such that they only encode information currently relevant to the organism at minimal cost. This hypothesis has, however, not yet been expressed in a normative computational framework. Here, by building on normative principles of probabilistic inference and efficient coding, we developed a model of dynamic population coding in the visual cortex. By continuously adapting the sensory code to changing demands of the perceptual observer, an attention-like modulation emerges. This modulation can dramatically reduce the amount of neural activity without deteriorating the accuracy of task-specific inferences. Our results suggest that a range of seemingly disparate cortical phenomena such as intrinsic gain modulation, attention-related tuning modulation, and response variability could be manifestations of the same underlying principles, which combine efficient sensory coding with optimal probabilistic inference in dynamic environments.

Introduction

Sensory neurons in the visual cortex exhibit significant variability, often attributed to top-down feedback or "attention." While descriptive models like the "spatial spotlight" exist, a first-principles theory explaining why the brain modulates signals this way has been lacking. This paper proposes a normative framework uniting efficient coding and probabilistic inference, suggesting that attention is a dynamic, lossy compression scheme designed to minimize metabolic costs while maintaining task-relevant information.

The Framework: Adaptive Population Coding

The authors developed a model of adaptive population coding in the primary visual cortex (V1). The system starts with a sparse coding foundation where neurons represent image features using Gabor-like filters. Crucially, it incorporates a top-down feedback loop that adjusts activation thresholds ($\xi_n$) of individual neurons.

The normative framework for dynamic population coding, illustrating the interaction between the environment and the nervous system through a feedback loop that optimizes for inference error and neural activity cost.

The core of the model is a cost function that optimizes a trade-off between:

  1. Inference Error: Ensuring the compressed representation allows the observer to accurately estimate the environment's state (measured via KL divergence).
  2. Neural Activity Cost: Penalizing excessive neural firing.

By minimizing this cost, the system dynamically adapts its sensory code to the specific demands of a perceptual task, such as object detection or target localization.

Attention as Optimal Resource Allocation

A key insight is that attention acts as an optimal resource allocator. By discarding task-irrelevant information, the brain performs lossy compression that updates as the environment or task changes. The model predicts that neural activity increases with perceptual uncertainty; when the observer is confident, it "gains down" neurons to save energy. Conversely, high uncertainty triggers increased activity to gather more evidence.

Results and Biological Realism

The adaptive coding model achieved drastic energy savings, reducing neural activity by over an order of magnitude compared to standard sparse coding without sacrificing task accuracy. In object detection tasks, activity dropped from baseline levels of ~292 units to just ~6.3 units.

Adaptive nonlinearities and the activity-performance tradeoff. Panel B shows how thresholds modulate responses, while Panel E illustrates the tradeoff between activity suppression and signal-to-noise ratio (SNR).

The model also qualitatively reproduced several biological phenomena:

  • Tuning Curves: Matches modulation seen in macaque V1 during attentional tasks.
  • Gain Statistics: Reproduced temporal and cross-correlation patterns of internal gain signals.
  • Noise Correlations: Captured how shared variability depends on the similarity of neurons' preferred orientations, suggesting these correlations are signatures of fluctuating internal beliefs.

Discussion

While the model provides a powerful normative account of attention, it uses idealized real-valued neurons and assumes instantaneous feedback. Future work could incorporate discrete spiking and transmission delays to better reflect biological constraints. Nevertheless, the framework demonstrates that many disparate cortical phenomena may emerge from the simple principles of efficient coding and optimal inference in dynamic environments.

Summary updated

BibTeX
@inproceedings{mynarski2022efficient,
  author = {Wiktor Młynarski and Gašper Tkačik},
  title = {{Efficient coding theory of dynamic attentional modulation}},
  booktitle = {PLoS},
  year = {2022},
  doi = {10.1371/journal.pbio.3001889},
}
Figure