The Limits of Scalar Rewards
Standard Reinforcement Learning (RL) typically collapses all environmental feedback into a single scalar reward. While this approach is effective for many tasks, it acts as a "lossy" compression that hides two critical pieces of information:
- Uncertainty: Traditional RL models the expected average of returns. Distributional RL (like C51 or QR-DQN) addresses this by modeling the distribution of returns, capturing the inherent randomness and uncertainty in the environment.
- Reward Structure: Hybrid Reward Architectures (HRA) decompose the total reward into specific, distinct sources (e.g., "points for defeating enemies" vs. "points for collecting items"), allowing the agent to learn separate value functions for each.
However, even HRA-style methods usually treat these reward sources as independent. In reality, rewards are often highly correlated—for instance, picking up a specific power-up might be the only way to defeat a certain enemy. Existing methods fail to capture these rich reward correlations. To bridge this gap, researchers have introduced a framework to model the multi-dimensional joint distribution of returns.
Introducing MD3QN
To fully inherit the benefits of both distributional RL and hybrid reward architectures, the authors introduce Multi-Dimensional Distributional DQN (MD3QN).
Instead of predicting a single value or a set of independent distributions, the MD3QN network outputs $M$ samples from an $N$-dimensional joint distribution, where $N$ represents the number of distinct reward sources.
Key components of the methodology include:
- Joint Distributional Bellman Operator: The authors provide a formal theoretical foundation, proving that this new operator is a $\gamma$-contraction under the supremum-p-Wasserstein metric. This ensures the algorithm will reliably converge to a unique fixed point.
- MMD Loss Function: Training a network to predict high-dimensional distributions is notoriously difficult. Metrics like KL-divergence require a fixed grid, which becomes computationally explosive in multiple dimensions. To solve this, MD3QN uses Maximum Mean Discrepancy (MMD), which can be estimated unbiasedly using samples, making it highly efficient for multi-dimensional reward vectors.
- Architecture: The model builds on a standard DQN backbone but modifies the final layer to output a tensor representing $M$ samples across $N$ reward dimensions for every possible action.
Experimental Setup
The researchers evaluated MD3QN across two primary domains to test its ability to capture correlations and improve overall performance:
- Custom Maze Environments: These gridworlds were specifically designed to isolate and test reward correlations. Variants included "maze-exclusive" (where obtaining one reward inherently prevents obtaining another) and "maze-identical" (where rewards are perfectly correlated).
- Atari Games: The team selected six Arcade Learning Environment games where rewards can be logically decomposed (AirRaid, Asteroids, Gopher, MsPacman, UpNDown, and Pong). In MsPacman, for example, rewards were split between "eating pellets" and "consuming ghosts."
Key Findings and Insights
By forcing the agent to learn the joint distribution, MD3QN turns reward correlation into a powerful auxiliary learning signal. This helps the agent learn a much richer internal representation of the state space.
- Accurate Distribution Modeling: In the custom maze experiments, MD3QN's predicted joint distributions closely matched the ground truth. It successfully captured complex relationships, such as negative correlations in the "exclusive" maze (learning that as one reward increases, the other must decrease) and positive correlations in the "identical" maze.
- Superior Atari Performance: MD3QN consistently outperformed the standard Hybrid Reward Architecture (HRA) across all six tested Atari games, proving that modeling the correlation between reward sources yields better control policies than treating them independently.
- Competitive with State-of-the-Art: When compared to MMDQN (a leading scalar distributional RL algorithm), MD3QN achieved comparable or slightly better performance. This demonstrates that even when the ultimate goal is simply maximizing a single total score, the extra structural information gleaned from multi-dimensional modeling is highly beneficial.
Limitations and Future Directions
While powerful, MD3QN does introduce computational overhead. Although MMD is efficient, modeling a multi-dimensional joint distribution remains more computationally intensive than standard scalar RL. Additionally, the current framework requires a predefined, manual decomposition of reward sources.
Future work may focus on automating this reward decomposition—allowing the agent to learn what the distinct sources are organically. The authors also note that this joint-distribution framework could be naturally extended to Goal-Conditioned RL (modeling correlations between reaching various goals) or Successor Representations (modeling correlations between visiting different future states).
Summary updated