Learning in Hybrid Active Inference Models

Poppy Collis, Ryan Singh, Paul F. Kinghorn, Christopher L. Buckley

Introduction

In the real world, physics is continuous and high-dimensional, yet humans reason using discrete concepts and sub-goals—thinking in terms of "getting to the door" rather than a sequence of micro-adjustments to muscle fibers. In artificial intelligence, this creates a fundamental trade-off: continuous control offers precision but is computationally expensive for long-horizon planning, while discrete planning is efficient but often relies on manual discretization that fails as dimensions increase (the "curse of dimensionality").

This paper introduces a Hierarchical Hybrid Agent (HHA) that bridges this gap. The HHA learns to navigate continuous environments by automatically "distilling" them into discrete, manageable abstractions. By combining Recurrent Switching Linear Dynamical Systems (rSLDS) with Active Inference, the system learns the underlying "physics" of a task and uses a high-level discrete planner to solve sparse-reward problems significantly faster than standard reinforcement learning baselines.

The Hierarchical Hybrid Agent (HHA)

The HHA architecture consists of two primary layers that operate at different levels of abstraction:

  • The Low-Level (Continuous Controller): This layer utilizes Linear Quadratic Regulators (LQR) to handle the precise mechanics of movement. It operates within specific "modes" of dynamics, managing the immediate physical interactions with the environment.
  • The High-Level (Discrete Planner): This layer treats the environment as a Markov Decision Process (MDP). Rather than calculating every millisecond of movement, it plans transitions between the discrete modes identified by the system.

Bridging the Layers: rSLDS

To connect these layers, the authors employ a Recurrent Switching Linear Dynamical System (rSLDS). This model decomposes complex, nonlinear continuous dynamics into a set of simpler, piecewise linear "chunks." Crucially, the "recurrent" component ensures that the switch between discrete modes depends on the current continuous state (e.g., "if my velocity is X and position is Y, I am now in the 'swinging' mode"). This allows the agent to learn a "polyhedral partition" of the state space, carving the world into regions based on how the physics behaves within them.

Active Inference and Exploration

The agent selects actions by minimizing Expected Free Energy (EFE). Because the high-level planner is discrete, the authors can include a formal "information gain" term. This drives the agent to explore transitions it is uncertain about, effectively performing "system identification" on the fly.

By "lifting" the continuous system into a discrete MDP during planning, the agent can utilize exact, closed-form solutions for information gain that are typically too complex or approximate in purely continuous settings. Furthermore, the agent "caches" approximate LQR solutions for moving between regions, allowing the low-level controller to react instantly without expensive re-optimization during execution.

Experimental Evaluation: Continuous Mountain Car

The model was evaluated on the Continuous Mountain Car task, a classic sparse-reward problem. In this environment, the car lacks the power to drive straight up a hill and must learn to rock back and forth to build momentum. Random exploration rarely finds the goal, making it an ideal test for agents that require structured abstractions and intelligent exploration.

Key Results

  • Superior Sample Efficiency: The HHA identified the reward and capitalized on its experience significantly faster than Soft Actor-Critic (SAC) or Actor-Critic (AC) baselines. While RL baselines often failed to find the goal within 20 episodes without reward shaping, the HHA solved it almost immediately after identifying the system dynamics.
  • Comprehensive Exploration: Driven by the information-gain bonus, the HHA covered a much wider range of the state-space than random continuous control or versions of the agent without the information-seeking drive.
  • Temporal Abstraction: The discrete planner is only re-triggered when the agent enters a new discrete mode. This allows the agent to think in terms of "macro-actions" that span multiple timesteps, similar to the Options Framework in reinforcement learning.

Discussion and Future Work

The HHA demonstrates that emergent discretization—learning regions based on physical behavior rather than rigid grids—is a powerful tool for complex control. However, some limitations remain. Using piecewise affine approximations is computationally efficient but inherently loses some precision compared to black-box nonlinear approximators like deep neural networks. Additionally, while the model overcomes the curse of dimensionality for the 2D Mountain Car task, scaling to high-dimensional robotics (such as humanoid walkers) remains a future challenge. Future iterations may also integrate more advanced "Constrained-LQR" methods to better handle motor limits and physical constraints.

Summary updated

BibTeX
@inproceedings{collis2024learning,
  author = {Poppy Collis and Ryan Singh and Paul F. Kinghorn and Christopher L. Buckley},
  title = {{Learning in Hybrid Active Inference Models}},
  booktitle = {IWAI},
  year = {2024},
  doi = {10.1007/978-3-031-77138-5\_4},
}
Figure