Separable value functions across time-scales

Joshua Romoff, Peter Henderson, Ahmed Touati, Yann Ollivier, Joelle Pineau, Emma BrunskillICML 2019

The Challenge of Long-Horizon Learning

In Reinforcement Learning (RL), agents are often tasked with maximizing the total reward over a long period, known as the undiscounted return. However, learning with a long horizon is mathematically challenging because the variance of the target increases as the horizon grows.

To mitigate this, researchers typically use a discount factor ($\gamma$) to prioritize immediate rewards. While this makes learning more stable by lowering variance, it introduces bias: the agent becomes "myopic," potentially ignoring better long-term strategies for quick wins. Choosing the right $\gamma$ is a delicate balancing act. If it's too low, the agent is too short-sighted; if it's too high, learning becomes unstable.

Introducing $TD(\Delta)$

To address this bias-variance tradeoff, the authors introduce $TD(\Delta)$, a novel RL method that decomposes a long-horizon value function into a series of "delta" components, each representing a different timescale. By learning these components in parallel, the algorithm achieves a better balance between bias and variance, leading to faster convergence and improved performance.

The $TD(\Delta)$ approach breaks the value function $V_\gamma$ into a sum of "delta functions" ($W_z$):

  1. Decomposition: Instead of learning one giant value function for a large $\gamma$, the method defines $W_z = V_{\gamma_z} - V_{\gamma_{z-1}}$. The total value is simply the sum of these components: $V_{\gamma_Z}(s) = \sum_{i=0}^Z W_i(s)$.
  2. The Delta Bellman Equation: The authors derive a Bellman-like update rule for these components. Crucially, each $W_z$ can be learned as its own autonomous RL problem. The "reward" for a higher-level component is derived from the value function of the component immediately below it.
  3. Flexible Learning: Because the components are separate, they can be tuned differently. Short-term components (small $\gamma$) can use a higher learning rate or shorter multi-step returns ($k$-step), while long-term components can be updated more cautiously.
  4. Integration: This method seamlessly integrates into modern architectures like Proximal Policy Optimization (PPO) using Generalized Advantage Estimation (GAE).

Key Insights and Interpretability

A major advantage of $TD(\Delta)$ is that it makes implicit hierarchies explicit. Any long-horizon value function already encompasses all smaller timescales; $TD(\Delta)$ simply separates them. By using shorter $k$-step returns for the smaller $\gamma$ components, the algorithm reduces overall variance without sacrificing the long-term target.

Furthermore, this approach provides a unique "window" into the agent's decision-making process. By observing the different $W_z$ components, researchers can determine whether an agent's value estimate is driven by immediate rewards or long-term anticipation.

Estimated delta values over time for Amidar and MsPacman

The system is also modular, allowing for "anytime learning." Theoretically, a new, longer-horizon component could be added to a pre-trained agent without restarting the entire learning process.

Performance and Limitations

The researchers evaluated $TD(\Delta)$ on a Tabular Ring MDP and 9 "Hard" Atari 2600 games with dense rewards. In games like Qbert, MsPacman, and Hero, the $TD(\Delta)$ versions of PPO significantly outperformed the standard PPO baseline. The authors also proved that under specific linear conditions, $TD(\Delta)$ is equivalent to standard TD learning but offers much better error bounds when tuning the $k$-step returns for different components.

Learning curves comparing PPO Delta variants against baselines on Zaxxon and Wizard of Wor

However, the method does face challenges in sparse reward environments. In games with very sparse rewards, like Zaxxon, the default $TD(\Delta)$ settings initially performed worse than the baseline. The "myopic" bias of the smaller components can slow down the discovery of rare, distant rewards, though tuning the starting $\gamma_0$ can mitigate this.

While the paper suggests a simple heuristic for choosing $\gamma$ values (e.g., doubling the effective horizon for each component), the method technically introduces more hyperparameters. Future work may explore meta-gradient learning to automatically discover optimal timescales, potentially removing the need for manual selection and paving the way for lifelong learning scenarios where an agent's planning horizon expands over time.

Summary updated

BibTeX
@inproceedings{romoff2019separable,
  author = {Joshua Romoff and Peter Henderson and Ahmed Touati and Yann Ollivier and Joelle Pineau and Emma Brunskill},
  title = {{Separable value functions across time-scales}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=BkZrKj-dZH},
}
Figure