Abstract
Extracting a stable and compact representation of the environment is crucial for efficient reinforcement learning in high-dimensional, noisy, and non-stationary environments. Different categories of information coexist in such environments -- how to effectively extract and disentangle these information remains a challenging problem. In this paper, we propose IFactor, a general framework to model four distinct categories of latent state variables that capture various aspects of information within the RL system, based on their interactions with actions and rewards. Our analysis establishes block-wise identifiability of these latent variables, which not only provides a stable and compact representation but also discloses that all reward-relevant factors are significant for policy learning. We further present a practical approach to learning the world model with identifiable blocks, ensuring the removal of redundants but retaining minimal and sufficient information for policy optimization. Experiments in synthetic worlds demonstrate that our method accurately identifies the ground-truth latent variables, substantiating our theoretical findings. Moreover, experiments in variants of the DeepMind Control Suite and RoboDesk showcase the superior performance of our approach over baselines.
Introduction
Reinforcement learning (RL) agents often struggle in real-world scenarios due to the prevalence of irrelevant or distracting information. For instance, a self-driving car must prioritize its own speed (controllable and reward-relevant) and the positions of surrounding vehicles (uncontrollable but reward-relevant) while ignoring the car radio or distant scenery. Standard world models often fail to distinguish between these types of information, leading to policies that are sensitive to noise and lack transparency.
While previous research has attempted to isolate task-relevant information, these methods frequently rely on restrictive assumptions—such as the independence of all latent processes—and lacked theoretical guarantees that the learned representations correspond to the environment's true underlying factors.
The IFactor Framework
The IFactor framework addresses these challenges by factorizing the latent state space into four distinct blocks based on their relationship with actions and rewards:
- Reward-relevant & Controllable ($s^{ar}_t$): Factors that the agent can influence and that affect the task outcome (e.g., ego-vehicle position).
- Reward-relevant & Uncontrollable ($s^{\bar{a}r}_t$): Factors that affect the task but are outside the agent's control (e.g., other vehicles).
- Reward-irrelevant & Controllable ($s^{a\bar{r}}_t$): Factors the agent can change that do not impact the task (e.g., the radio).
- Reward-irrelevant & Uncontrollable ($s^{\bar{a}\bar{r}}_t$): Background noise (e.g., clouds).
To learn these blocks, IFactor utilizes a world model architecture trained via variational inference (ELBO) to reconstruct observations and rewards. Crucially, it incorporates Mutual Information (MI) constraints to enforce the specific properties of each block—maximizing MI between reward-relevant blocks and future rewards while minimizing it for irrelevant ones. The paper provides a formal proof of "block-wise identifiability," ensuring that the model mathematically recovers the true underlying structure of the environment.
Experimental Evaluation
The authors evaluated IFactor across several benchmarks, including synthetic worlds, a modified Cartpole task with distractors, RoboDesk, and variants of the DeepMind Control Suite (DMC) with heavy sensor noise and camera jitter.
In synthetic tests, IFactor achieved high $R^2$ values (>0.9) in recovering ground-truth latents, significantly outperforming baselines like BetaVAE and Denoised MDP. On RoboDesk and DMC variants, IFactor consistently surpassed state-of-the-art models like Dreamer and TIA, reaching higher rewards faster and maintaining stability despite background noise.
Key Insights
A critical insight of this work is that uncontrollable factors are not necessarily irrelevant. Previous methods, such as Denoised MDP, suggested ignoring all uncontrollable elements. However, IFactor demonstrates that uncontrollable but reward-relevant factors (like other cars) are essential for successful policy learning. By identifying and utilizing only the minimal sufficient representation—the two reward-relevant blocks—the agent becomes more sample-efficient and robust.
Furthermore, the block-wise identifiability provides interpretability. Latent traversal experiments confirmed that the model maps specific dimensions to physical properties like "pole angle" or "cart position" without explicit supervision.
Conclusion
IFactor provides a theoretically grounded and practically effective framework for disentangling latent representations in RL. By focusing on identifiable factorization, it enables agents to ignore distractions while retaining all necessary information for task performance. Future work will explore relaxing the assumption of no instantaneous causality and extending the framework to heterogeneous environments where dynamics may shift over time.
Summary updated