Standard reinforcement learning (RL) is fundamentally built upon the principle of maximizing the expected discounted return. While this risk-neutral approach is effective for many benchmarks, it falls short in domains where the shape of the return distribution matters—such as finance, medicine, or safety-critical robotics. In these contexts, practitioners often seek to optimize for specific risk profiles (e.g., Conditional Value-at-Risk) or hit precise performance targets.
However, optimizing non-linear functionals of the return distribution introduces a significant challenge: it typically violates the Markov property. When the objective depends on the entire distribution, the optimal action at a given state may depend on the history of rewards already received. This dependency renders standard stationary Markov policies sub-optimal and prevents the direct application of efficient Dynamic Programming (DP) methods. This paper introduces a framework to overcome these limitations through two key innovations: stock augmentation and Distributional Dynamic Programming.
The Framework: Stock Augmentation and Distributional DP
To restore the Markov property in history-dependent tasks, the authors propose augmenting the environment's state space with a "stock" variable, $c_t$. This variable represents the discounted sum of rewards accumulated from the start of the episode to the current time step. By including the "stock" in the state, the agent gains the necessary context to make decisions that align with long-term distributional goals, effectively "re-Markovizing" the decision process.
Building on this augmented state space, the paper develops distributional versions of Value Iteration (VI) and Policy Iteration (PI). Unlike classic DP, which propagates scalar expected values, Distributional DP operates on the full probability distributions of future returns. The authors identify three mathematical conditions required for the objective functional ($K$) to ensure these methods converge:
- Indifference to mixtures: Preferences between return distributions remain stable when mixed with a third distribution.
- Indifference to $\gamma$: Preferences are consistent across different time scales.
- Lipschitz continuity: Small perturbations in the return distribution result in small changes to the objective value.
Deep $\eta$-Networks ($D\eta N$)
To scale these theoretical insights to complex environments, the authors introduce the Deep $\eta$-Network ($D\eta N$). This architecture extends Quantile Regression DQN (QR-DQN) by incorporating the stock variable as an additional input.
A critical component of the training process is "stock editing." By using counterfactual stock values in the replay buffer—artificially changing the accumulated reward values—the agent learns how to behave across a wide range of potential reward histories. This technique was essential for success in complex environments where specific stock values might be rarely encountered during standard exploration.
Experimental Evaluation
The authors evaluated the $D\eta N$ agent across several scenarios to test its precision and flexibility:
- Precision Targeting in Gridworlds: In deterministic $4 \times 4$ gridworlds, the agent demonstrated the ability to achieve specific target returns with remarkable accuracy. For instance, when tasked with achieving a return of exactly 3.00, the agent navigated the grid to hit that target with near-zero error.
- Risk-Sensitive Navigation: In stochastic environments, the agent successfully adapted its behavior based on a risk-aversion parameter ($\tau$). By tuning this parameter, the agent shifted from a "safe" policy to a "high-risk/high-reward" strategy, effectively optimizing for Conditional Value-at-Risk (CVaR).
- Controllable Atari Agents: In Atari 2600 Pong, a single $D\eta N$ agent could be "programmed" at test time to achieve different scores. By varying the initial stock value, the agent's average score could be modulated between -4 and +2. This demonstrates that stock augmentation allows for the creation of highly controllable agents that follow specific performance instructions rather than simply maximizing reward.
Conclusion and Future Directions
The integration of stock augmentation with Distributional DP provides a robust theoretical and practical foundation for optimizing non-standard RL objectives. The research proves that Distributional DP can optimize a broader class of objectives than classic DP, even when both utilize stock augmentation.
While the current implementation of $D\eta N$ is highly effective, the authors note several areas for future work. The increased dimensionality of the augmented state space poses exploration challenges, and the current implementation is primarily optimized for expected utilities. Future research into multivariate distributional RL could further extend this framework to handle complex multi-objective or homeostatic tasks.
Summary updated