Abstract
This paper explores the application of Active Inference, a framework from cognitive science, to solve complex robotic manipulation tasks characterized by sparse rewards and partial observability. By optimizing an objective that balances goal-seeking with intrinsic curiosity (information gain), the proposed agent systematically explores environments where traditional reinforcement learning (RL) algorithms fail. We demonstrate that this approach enables a robot to solve a challenging maze-balancing task without initial external feedback, significantly outperforming standard baselines.
Introduction
Robotic manipulation is notoriously difficult due to the prevalence of sparse rewards and the need to handle physical uncertainties. In many real-world scenarios, a robot only receives a positive signal upon perfect task completion, such as placing a ball in a target hole. Standard RL methods often struggle in these settings because their exploration is typically undirected, relying on random noise that rarely leads to the goal in complex environments.
This work addresses these challenges by leveraging Active Inference to create an agent that explores its environment purposefully to reduce its own uncertainty about the world's dynamics.
Methodology
The authors implement a model-based framework grounded in the Free Energy Principle. The system consists of several key components:
- Generative Model: An ensemble of neural networks models the environment's dynamics and reward functions, allowing the agent to estimate epistemic uncertainty (knowing what it doesn't know).
- Expected Free Energy (EFE): The agent's objective is to minimize EFE, which naturally decomposes into Extrinsic Value (moving toward a preferred goal) and Intrinsic Value (seeking states that provide the most information about the environment).
- Nested Monte Carlo Estimator: To make the computationally expensive calculation of information gain feasible for real-time planning, the authors propose a sampling trick that reuses particles from the neural network ensemble.
- Planning: A Cross-Entropy Method (CEM) planner searches for action sequences that minimize EFE over a short future horizon.
Experimental Setup
The approach was evaluated using the MuJoCo physics engine on two custom environments:
- Tilted Pushing: A robot must push a ball up a slanted table into a target zone.
- Tilted Pushing Maze: A more difficult variant where the ball must be maneuvered through a maze with holes that end the episode if the ball falls in.
These environments are designed to be "hard-to-explore" because rewards are only granted at the very end, and the ball is difficult to balance at the low control frequency of 4Hz used in the experiments.
Key Results and Insights
The primary finding is that curiosity acts as a prerequisite for success in sparse-reward environments. In the maze task, the Active Inference agent learns to balance the ball not because it initially seeks the reward, but because balancing allows it to reach new, uncertain states further in the maze.
- Solving the Unsolvable: In the Tilted Pushing Maze, both standard Soft Actor-Critic (SAC) and a version of the model without the intrinsic curiosity term failed completely, achieving zero reward over 30,000 episodes.
- Performance: The Active Inference agent successfully discovered the reward and reached a stable cumulative reward of approximately 20-30 per episode.
Visualization of trajectories showed that the Active Inference agent covered almost the entire table, whereas the non-intrinsic agent remained stuck in the starting area, unable to navigate past the first set of obstacles.
Conclusion and Future Work
Active Inference provides a robust framework for directed exploration in robotics. By treating information gain as a core objective, agents can solve tasks that are practically impossible for undirected RL. However, computational complexity remains a challenge, limiting the current implementation to a 4Hz control frequency. Future work will focus on scaling these methods to higher control frequencies and validating the information-seeking behavior on physical hardware with real-world sensor noise.
Summary updated