TL;DR
The paper introduces MICo (Matching under Independent Couplings), a new behavioral distance metric for Reinforcement Learning (RL) that measures state similarity. Unlike traditional bisimulation metrics, MICo is computationally efficient and can be learned directly from data samples. This allows it to serve as a powerful auxiliary loss that shapes more informative internal representations for deep RL agents, leading to improved performance across diverse environments.
The Challenge of State Representation
In Reinforcement Learning, an agent's success often hinges on its representation—how it encodes raw, high-dimensional observations (like pixels) into a compact latent space. Ideally, states that are "behaviorally similar" (yielding similar rewards and leading to similar future outcomes) should be mapped close together in this space.
The theoretical "gold standard" for measuring this similarity is the bisimulation metric. However, bisimulation has three major flaws in practice:
- Computational Complexity: It requires solving an optimal transport problem (specifically, the Wasserstein distance) at every step, making it prohibitively slow ($O(|X|^5)$).
- Sampling Bias: It is difficult to estimate accurately from transitions sampled from an environment without knowing the full underlying dynamics model.
- Policy Mismatch: Standard bisimulation often focuses on the optimal policy, which might not be relevant or stable while an agent is still actively learning.
The authors seek a metric that captures the structural benefits of bisimulation but is "deep-learning friendly"—scalable, sample-based, and easy to integrate into existing neural network architectures.
Introducing MICo: Matching under Independent Couplings
To overcome the limitations of bisimulation, the authors propose the MICo distance. The key innovation is a mathematical simplification: instead of searching for the optimal coupling between two probability distributions (as the Wasserstein distance does), MICo uses the independent coupling.
Key technical features of MICo include:
- On-Policy Focus: MICo is defined relative to the agent's current policy $\pi$, making it naturally compatible with standard RL training loops.
- The MICo Loss: The authors derive a Bellman-like update for this distance. This allows them to treat distance estimation as a supervised learning task (similar to Temporal Difference learning) that can be added as an auxiliary loss to any deep RL agent.
- Diffuse Metrics: Mathematically, MICo is a "diffuse metric." This means a state can have a non-zero distance to itself ($d(x,x) > 0$). This isn't a bug; it actually captures the "dispersion" or stochasticity of the environment from that state.
- Representation Mapping: To make this work with neural networks, they map the learned MICo distances to the geometry of the representation space using a combination of Euclidean norms and angular distances.
Experimental Setup
The authors evaluated MICo across a range of environments to test both its theoretical properties and practical utility:
- Garnet MDPs: Synthetically generated small Markov Decision Processes used to validate theoretical properties.
- Four-rooms GridWorld: A classic toy environment used to visualize how well the learned features support linear value approximation.
- Arcade Learning Environment (ALE): A suite of 60 Atari 2600 games, testing MICo as an add-on for agents like DQN, Rainbow, and IQN.
- DeepMind Control (DM-Control) Suite: Continuous control tasks where the agent learns directly from pixels, used to test MICo with the Soft Actor-Critic (SAC) algorithm.
Key Insights
- Scalability via Independence: By switching to independent couplings, the computational complexity drops from $O(|X|^5)$ to $O(|X|^4)$, and more importantly, removes the need for specialized optimization solvers.
- The Meaning of Self-Distance: In MICo, the distance $U^\pi(x,x)$ represents how much "branching" or uncertainty exists in the future paths from state $x$. Deterministic systems have zero self-distance, while highly stochastic ones have high self-distance.
- Explicit Representation Shaping: Most auxiliary tasks (like predicting the next frame) shape representations implicitly. MICo shapes them explicitly by forcing the geometry of the latent space to match a theoretically grounded behavioral metric.
- Model-Free Advantage: Unlike recent "Deep Bisimulation" methods (like DBC), MICo does not require learning an explicit dynamics model of the environment, reducing the risk of model-error propagation.
Key Results
- Atari Performance: Adding the MICo loss provided consistent performance boosts across all 60 Atari games for multiple state-of-the-art agents (DQN, Rainbow, QR-DQN, IQN).
- Continuous Control: On the DM-Control suite, MICo-augmented SAC outperformed the base agent and matched or exceeded the performance of more complex bisimulation-based methods like DBC.
- Feature Quality: In the Four-rooms environment, features derived from MICo allowed for much lower error in value function approximation compared to random features or other standard baselines, proving that the learned representations are highly "informative."
Limitations and Future Directions
While highly effective, the method introduces two new hyperparameters—$\alpha$ (the weight of the MICo loss) and $\beta$ (the angular scaling). The authors noted that different types of agents (e.g., categorical vs. quantile-based) required different $\alpha$ values to perform optimally.
Furthermore, while the authors prove that MICo bounds the difference in value functions, a "reduced" version of the metric used for neural networks does not strictly hold this bound in all edge cases, though it performs well in practice. Finally, the current formulation primarily focuses on state similarity. Extending this to state-action pairs ($Q$-values) is a logical next step for more complex control tasks.
Summary updated