TL;DR
This paper introduces "unified inference," a framework that merges Reinforcement Learning (RL) and Active Inference (AIF) to tackle complex decision-making problems in partially observable environments with continuous states and actions. It achieves this by extending AIF's expected free energy (EFE) to a belief state-action policy and developing a unified policy iteration algorithm, demonstrating superior performance and sample efficiency in challenging tasks.
What Problem Does This Paper Address?
Many real-world decision-making problems, like those faced by robots or autonomous systems, involve partial observability – the agent doesn't know the true state of its environment perfectly. These problems are often modeled as Partially Observable Markov Decision Processes (POMDPs). Traditional Reinforcement Learning (RL) excels in fully observable environments but struggles with POMDPs, often requiring agents to remember extensive past data or infer the true state, which becomes computationally intractable in high-dimensional or long-horizon scenarios. Active Inference (AIF), on the other hand, is naturally suited for POMDPs and inherently balances reward maximization with information-seeking exploration. However, AIF's application is typically limited to discrete spaces due to computational challenges in calculating its core objective, the Expected Free Energy (EFE). This paper aims to bridge this gap by creating a unified framework that combines the strengths of RL and AIF, enabling agents to learn effectively in continuous, partially observable environments, even without explicit reward signals.
Methods
The core contribution is the "unified inference" framework, which achieves the following:
- Extended Expected Free Energy (EFE): The paper extends AIF's EFE to a stochastic belief state-action policy. This allows agents to select actions directly based on their inferred belief state, rather than planning through all possible future action sequences. This unified objective function balances reward maximization (exploitation) and information-seeking exploration under partial observability.
- Unified Policy Iteration: A computationally efficient algorithm is introduced to optimize the unified objective function. This algorithm generalizes policy iteration guarantees from standard RL (for Markov Decision Processes - MDPs) to POMDPs, providing theoretical proof of convergence to an optimal policy. This framework allows the extended EFE to be interpreted as a negative value function from an RL perspective.
- Unified Actor-Critic: Building on the unified policy iteration, a novel actor-critic algorithm is presented that unifies methods for both MDPs and POMDPs. This approach is designed to be computationally feasible for POMDPs and enhances the performance of popular RL algorithms like Soft Actor-Critic (SAC) and Dreamer when applied to partially observable tasks.
- Belief State Representation: To handle continuous belief states, an LSTM is used to learn a fixed-length representation of the belief state, making it suitable for input into neural networks.
Datasets
The experiments were conducted on modified versions of the Roboschool tasks (specifically, the PyBullet implementation), including:
- HalfCheetah
- Hopper
- Ant
- Walker2d
These tasks were adapted to create partially observable versions by:
- Partial State Information: Restricting observations to velocities only.
- Noisy State Information: Adding zero-mean Gaussian noise to observations.
The paper denotes these as {Hopper, Ant, Walker-2d, Cheetah}-{P} for partial observation and {Hopper, Ant, Walker-2d, Cheetah}-{N} for noisy observation.
Key Insights and Ideas
- Bridging RL and AIF: The paper successfully demonstrates a theoretical and practical connection between RL and AIF, showing how AIF's principles can be integrated into RL algorithms to improve performance in challenging POMDP settings.
- Information Gain as Intrinsic Reward: The framework explicitly incorporates information gain as an intrinsic reward, which is crucial for effective exploration in partially observable environments. This allows agents to learn even without explicit extrinsic rewards, making reward design optional.
- Belief State Representation is Key: By learning a compact representation of the belief state, the method overcomes the computational burden of history-dependent policies, enabling scalability to continuous and high-dimensional spaces.
- Unified Objective Function: The proposed unified objective function elegantly combines reward maximization and information-seeking, providing a more robust and effective learning signal than either component alone.
- Generalization of RL Algorithms: The unified framework allows existing RL algorithms (like actor-critic methods) to be generalized to POMDPs, opening up new possibilities for applying state-of-the-art RL techniques to a wider range of problems.
Key Results
- Superior Performance: The proposed G-SAC and G-Dreamer algorithms consistently outperformed existing state-of-the-art methods (VRM, Dreamer, Recurrent Model-Free) in terms of cumulative extrinsic reward on partially observable and noisy continuous control tasks.
- Sample Efficiency: The information gain term in G-SAC and G-Dreamer significantly enhanced sample efficiency, allowing them to reach performance levels comparable to or exceeding the oracle "State-SAC" (which has access to true states) in fewer steps.
- Robustness to Noise: Belief state inference-based approaches (G-SAC, G-Dreamer, VRM) demonstrated greater robustness to noisy observations compared to memory-based baselines.
- Effectiveness in Reward-Free Settings: The approach showed promise in learning effectively even in reward-free environments, highlighting the power of intrinsic exploration.
- Ablation Studies:
- Stochastic vs. Deterministic Policy: Learning a stochastic policy with policy entropy maximization significantly improved training stability and reduced premature convergence compared to a deterministic policy.
- Hybrid Actor-Critic: The hybrid approach (combining model-based and model-free components) showed benefits, particularly in tasks where learning a purely model-based generative model was challenging.
Limitations and Future Work
- Scaling to Image-Based POMDPs: The paper acknowledges that scaling AIF to high-dimensional environments, especially those based on images, remains a challenge. Accurate variational posterior and generative models are needed to reconstruct observations in detail.
- Future Directions:
- State-Consistency Loss: The authors suggest incorporating a state-consistency loss to enforce consistency between states and observations, which has shown promise in self-supervised learning.
- Multi-Task Learning: Investigating the impact of information-seeking exploration in multi-task settings, where agents can transfer knowledge across tasks, is proposed as an exciting future research direction.
Summary updated