Active Inference in Hebbian Learning Networks

Ali Safa, Tim Verbelen, Lars Keuninckx, Ilja Ocket, André Bourdoux, Francky Catthoor, Georges G. E. Gielen, Gert Cauwenberghs

Introduction

Modern Artificial Intelligence has achieved remarkable success through the use of backpropagation, an algorithm that calculates global error signals to update neural weights. However, backpropagation remains biologically implausible; the brain lacks a mechanism to broadcast global gradients across its complex architecture. Furthermore, standard Reinforcement Learning (RL) agents typically rely on "replay buffers"—massive databases of past experiences—to prevent catastrophic forgetting and ensure stable learning.

This research introduces a novel alternative: Hebbian Active Inference (AIF). By combining the principles of Active Inference—a theory suggesting biological organisms act to minimize "surprise" or Variational Free Energy—with local Hebbian plasticity, the authors demonstrate that agents can learn complex control tasks without global error signals or memory-intensive buffers.

The Hebbian Active Inference Architecture

The proposed model moves away from global optimization in favor of local, synapse-level updates. In Hebbian learning, synaptic weights are modified based solely on the activity of the two neurons they connect ("cells that fire together, wire together"). To implement Active Inference within this constraint, the authors developed a generative model consisting of two distinct Hebbian ensembles:

  1. The Posterior Network: This ensemble processes current environmental observations (such as position and velocity) to infer a "latent state," creating a simplified internal representation of the world.
  2. The State-Transition Network: This ensemble analyzes the history of past states and actions to predict the subsequent latent state.

Key Mechanisms

To bridge the gap between simple association and complex control, the model incorporates several innovative features:

  • Top-Down Steering: The transition network provides top-down Hebbian connections that "nudge" the posterior network. By minimizing the mismatch between the predicted state and the observed state, the agent aligns its internal model with environmental reality.
  • Sparse Coding: Utilizing a Laplacian prior, the networks enforce sparse neural activity. This mirrors the energy-efficient nature of biological brains, where only a small subset of neurons is active at any given time.
  • Exploration via Trajectory Variance: Traditional AIF models use formal probabilistic uncertainty to drive exploration. Since standard Hebbian networks do not naturally estimate uncertainty, the authors utilized the variance of the state trajectory as a proxy for entropy, encouraging the agent to explore novel movements to resolve environmental dynamics.

Experimental Evaluation: The Mountain Car Benchmark

The model was evaluated using the Mountain Car environment, a classic control problem where an underpowered car must build momentum by driving back and forth to reach the top of a steep hill. This task is particularly challenging for local learning rules because the reward is sparse and the dynamics require non-intuitive movements (driving away from the goal to gain energy).

Performance and Efficiency

The Hebbian AIF model was benchmarked against standard Q-learning and a version of itself utilizing a replay buffer. The results highlighted several significant advantages:

  • Rapid Convergence: The Hebbian AIF system achieved a 100% success rate in fewer than 50 episodes. In comparison, standard Q-learning required between 2,000 and 3,000 episodes to reach similar stability.
  • Inherent Stability: Unlike Deep RL, which often requires a replay buffer to stabilize learning, the Hebbian AIF model performed equally well with or without one. This suggests that the architecture is naturally suited for real-time, online learning.
  • Competitive Accuracy: The Hebbian approach reached a 100% success rate, slightly outperforming previous "Deep AIF" models (which utilize backpropagation) that reached approximately 95% on the same task.

Discussion and Insights

The success of this model provides a proof-of-concept that local learning rules are sufficient for learning complex environment dynamics. A critical finding was the necessity of the "Top-Down" influence; without the transition model steering the posterior model, the agent failed to capture the physics of the environment.

Additionally, the research identified a "sparsity sweet spot." While sparse coding is essential for feature extraction, excessive sparsity makes the network too non-linear to learn effectively, while insufficient sparsity prevents the network from capturing essential environmental features.

Conclusion and Future Work

While the Mountain Car environment demonstrates the potential of Hebbian Active Inference, the task is relatively low-dimensional. Future research will focus on scaling this architecture to high-dimensional inputs, such as raw pixel data or complex robotic control. Furthermore, while the current "trajectory variance" heuristic is effective for exploration, developing a more formal, Hebbian-compatible representation of epistemic value remains a primary objective. By moving toward multi-layer Hebbian hierarchies, researchers may unlock even more complex, biologically inspired autonomous behaviors.

Summary updated

BibTeX
@inproceedings{safa2023active,
  author = {Ali Safa and Tim Verbelen and Lars Keuninckx and Ilja Ocket and André Bourdoux and Francky Catthoor and Georges G. E. Gielen and Gert Cauwenberghs},
  title = {{Active Inference in Hebbian Learning Networks}},
  booktitle = {IWAI},
  year = {2023},
  doi = {10.1007/978-3-031-47958-8\_15},
}
Figure