[Paper Review] Conditional Mutual Information for Disentangled Representations in Reinforcement Learning
This paper proposes Conditional Mutual Information for Disentanglement (CMID), an auxiliary training objective that minimizes conditional mutual information between latent features to learn disentangled representations in reinforcement learning, even when factors of variation are correlated. CMID improves zero-shot generalization by 77% on average across tasks and enhances training performance under correlation shifts in continuous control environments with image observations.
Reinforcement Learning (RL) environments can produce training data with spurious correlations between features due to the amount of training data or its limited feature coverage. This can lead to RL agents encoding these misleading correlations in their latent representation, preventing the agent from generalising if the correlation changes within the environment or when deployed in the real world. Disentangled representations can improve robustness, but existing disentanglement techniques that minimise mutual information between features require independent features, thus they cannot disentangle correlated features. We propose an auxiliary task for RL algorithms that learns a disentangled representation of high-dimensional observations with correlated features by minimising the conditional mutual information between features in the representation. We demonstrate experimentally, using continuous control tasks, that our approach improves generalisation under correlation shifts, as well as improving the training performance of RL algorithms in the presence of correlated features.
Motivation & Objective
- To address the challenge of spurious correlations in RL environments that hinder generalization and robustness.
- To overcome the limitation of existing disentanglement methods that assume independent factors of variation, which fails when factors are correlated.
- To develop a method that enables disentangled representations under conditional independence rather than strict independence.
- To improve zero-shot generalization and training stability in RL agents when feature correlations shift or are absent during deployment.
- To demonstrate the effectiveness of CMID as a plug-in auxiliary task compatible with existing RL algorithms like SVEA, DrQ, CURL, and TED.
Proposed method
- CMID introduces an auxiliary loss that minimizes the conditional mutual information (CMI) between pairs of latent features given a conditioning set.
- The conditioning set is derived from the causal structure of the Markov Decision Process (MDP), using the most recent observation to render features conditionally independent.
- The method uses k-nearest neighbors (kNN) to estimate the product of marginal distributions for CMI estimation, enabling differentiable training.
- The latent representation is updated via backpropagation using the combined loss from the base RL algorithm and the CMID auxiliary loss.
- Feature representations are stacked over time instead of raw frames to avoid introducing spurious causal dependencies in the input.
- The approach is compatible with online RL algorithms and can be applied without modifying the main policy training loop.
Experimental results
Research questions
- RQ1Can disentangled representations be learned when factors of variation are correlated, rather than independent?
- RQ2Does minimizing conditional mutual information between latent features improve zero-shot generalization under correlation shifts in RL?
- RQ3How does CMID compare to state-of-the-art self-supervised RL methods like DrQ, CURL, and TED in terms of robustness to feature correlation shifts?
- RQ4Can CMID improve training performance and sample efficiency in environments with correlated features?
- RQ5Is CMID effective when applied as an auxiliary task to existing RL algorithms without architectural changes?
Key findings
- CMID improved zero-shot generalization performance by 77% on average across all tasks compared to the base SVEA algorithm when tested on unseen object colors.
- On the cartpole swing-up task, CMID achieved a mean return of 834.1 ± 105.8 on the best unseen color, compared to 588.7 ± 87.2 for SVEA, demonstrating significant robustness to color correlation shifts.
- CMID outperformed state-of-the-art baselines DrQ, CURL, and TED in generalization under correlation shifts, particularly in tasks where feature correlations hindered learning.
- The method improved training performance of SVEA, indicating that CMID aids in faster convergence and more stable learning in the presence of correlated features.
- CMID successfully disentangled correlated factors such as object color and size by learning conditionally independent features, even when the factors were jointly predictive of dynamics.
- The computational cost of CMID increased runtimes by 67% on average due to kNN-based CMI estimation, but this was offset by substantial gains in generalization and robustness.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.