NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Active sensing with predictive coding and uncertainty minimization

Abdelrahman Sharafeldin, Nabil Imam, Hannah Choi

TL;DR

This paper introduces a biologically inspired framework for embodied AI that integrates perception and action through predictive coding and uncertainty minimization. By using a differentiable generative model to actively sample informative data, the agent learns superior unsupervised representations that lead to faster, more data-efficient learning on downstream tasks compared to standard reinforcement learning baselines.

What Problem Does This Paper Address?

In traditional AI, perception and action are often treated as separate, passive processes. Computer vision models typically process static, full-frame images, while reinforcement learning (RL) agents are primarily driven by external rewards.

In contrast, biological organisms use "active sensing"—they move their eyes or bodies to gather information that reduces their internal uncertainty about the world. The authors aim to bridge this gap by creating a unified, end-to-end differentiable model where an agent's actions are intrinsically driven to improve its own internal generative model of the environment.

Biological systems use an intrinsic drive to explore and build internal models, unlike traditional RL which is reward-guided.

Methods

The authors combine two key neuroscientific theories:

  1. Predictive Coding (Perception): The agent maintains a generative model (implemented via Variational Autoencoders or VAEs) to predict sensory inputs. Perception involves inferring latent states that minimize prediction error.
  2. Uncertainty Minimization (Action): The agent selects actions that maximize "information gain"—the expected reduction in the Shannon entropy of its inferred latent states.

A major technical contribution is making this process fully differentiable. The authors use a deep generative model to compute a Monte Carlo (MC) approximation of the information gain objective. This allows them to train an action network using gradient descent to output optimal fixation locations or movements without requiring explicit knowledge of the environment's true dynamics.

The model architectures for discrete maze navigation (a) and continuous active vision (b).

For the active vision task, the model uses a hierarchical VAE. A lower-level VAE processes small "foveated" patches of an image, while a higher-level VAE integrates these patches into a global abstract representation.

Datasets

The model was evaluated across two distinct settings:

  • Controllable Markov Chains (CMC): Navigation in randomly generated $6 \times 6$, $8 \times 8$, and $12 \times 12$ mazes with noisy transitions.
  • Active Vision: Image sampling tasks using MNIST (centered and translated), Fashion MNIST, and grayscale CIFAR-10. The "translated MNIST" dataset (60x60 images with digits at random locations) was specifically used to test the model's ability to handle high-dimensional, sparse information.

Key Insights and Ideas

  • Perception-Action Synergy: The quality of the learned representations is inextricably linked to the exploration strategy. Agents using Bayesian Action Selection (BAS) developed better-clustered latent spaces than those exploring randomly.
  • Task-Independent Learning: The agent builds highly useful representations through purely intrinsic, unsupervised exploration. These representations are "task-agnostic" but prove remarkably effective when a simple classifier is later added.
  • "Imagination" from Fragments: Because the model learns the spatial relationships between patches, it can generate a full reconstruction of a digit after seeing only a few small, disconnected fragments.
  • Efficiency through Sparsity: By focusing only on informative regions, the active sensing model can outperform models that see the entire image, all while using significantly fewer parameters in the downstream decision network.
The model can reconstruct and "imagine" full digits based on just a few fixations.

Key Results

  • Maze Exploration: The BAS strategy reduced "missing information" about the environment's transition dynamics significantly faster than random or visitation-count-based (Boltzmann) exploration.
  • Classification Performance: On translated MNIST, the BAS-driven model achieved higher test accuracy faster than popular RL baselines like the Recurrent Attention Model (RAM), VIME, and Plan2Explore.
  • Data Efficiency: During supervised training, the BAS model required far fewer examples to reach high performance, demonstrating superior generalization capabilities.
  • Parameter Complexity: The decision network trained on BAS-collected patches was roughly 50% smaller than a network trained on full images, yet it achieved higher asymptotic performance.

Limitations and Future Work

The authors identify several areas for growth:

  • Scalability in Discrete Spaces: In the maze task, action scoring relies on enumerating all possible actions, which may not scale to environments with massive action spaces.
  • Model Complexity: The current vision architecture uses simple feedforward networks. The authors suggest that integrating more advanced structures, like Convolutional Neural Networks (CNNs), could allow the model to handle more complex, real-world datasets.
  • Planning Horizons: The current action selection is relatively "greedy" (looking only one step ahead). Incorporating long-horizon planning could further improve exploration efficiency.

Summary updated

BibTeX
@article{sharafeldin2024active,
  author = {Abdelrahman Sharafeldin and Nabil Imam and Hannah Choi},
  title = {{Active sensing with predictive coding and uncertainty minimization}},
  journal = {Patterns},
  year = {2024},
  doi = {10.1016/j.patter.2024.100983},
}
Figure