Direct Advantage Estimation

Hsiao-Ru Pan, Nico Gürtler, Alexander Neitz, Bernhard Schölkopf

Direct Advantage Estimation (DAE) is a novel reinforcement learning (RL) method that learns the advantage function directly from data by framing it as a variance reduction problem. By interpreting the advantage as the "causal effect" of an action, DAE provides a more stable learning target than traditional value-based methods and outperforms the standard Generalized Advantage Estimation (GAE) baseline across various Atari-style benchmarks.

The Credit Assignment Problem

In reinforcement learning, the "credit assignment problem" asks: which specific action caused a later reward? Most RL algorithms answer this by estimating the expected return (the $Q$-function or Value function).

However, the expected return is a "noisy" signal for learning. Because the return depends on the entire future policy, any change in how the agent acts in the future shifts the target value for the current state. This creates a moving target that leads to high variance and slow learning. The authors seek a learning target that is "local"—one that reflects only the immediate impact of an action, making it more robust to changes in the agent's overall strategy.

Variance of Q-values vs. Advantage over policy updates

Direct Advantage Estimation (DAE)

The core contribution of this paper is Direct Advantage Estimation (DAE). The authors build their method on two main pillars:

  1. Causal Interpretation: They show that the advantage function $A(s, a) = Q(s, a) - V(s)$ can be mathematically viewed as the "causal effect" of an action on the return. Unlike the $Q$-function, the advantage function is "local"; it often depends only on the immediate consequences of an action rather than the distant, policy-dependent future.
  2. Variance Minimization: The authors prove a key theorem: if you take a trajectory's return and subtract a "$\pi$-centered" function (a function whose expected value over actions is zero), the function that minimizes the variance of the resulting signal is exactly the advantage function.

How it differs from the standard (GAE): Standard methods like GAE are "indirect"—they first learn a value function $V(s)$ to predict returns and then use the errors in those predictions (TD errors) to estimate the advantage. DAE is "direct"—it treats the advantage function as a learnable parameter in a loss function designed to "distribute" the total return across the actions in a trajectory to minimize variance.

To make this practical for deep RL, the authors integrate DAE into the popular Proximal Policy Optimization (PPO) algorithm, allowing it to use $n$-step bootstrapping to handle long-duration tasks.

Key Insights and Ideas

  • Advantage as a Causal Representation: By linking RL to the causality literature, the authors provide a theoretical justification for why the advantage function is a "better" feature to learn than the value function: it is more invariant to distribution shifts (policy changes).
  • Learning to Distribute, Not Just Predict: While traditional value learning tries to predict the future return from a state, DAE tries to decompose the observed return into the contributions of individual actions.
  • Scalability with Model Capacity: A surprising finding was that DAE benefits significantly more from larger neural networks ("Wide" and "Deep" architectures) than GAE does. This suggests that DAE can better leverage the representational power of modern deep learning.
  • Removing Hyperparameters: DAE eliminates the need for the $\lambda$ hyperparameter used in GAE, simplifying the tuning process.

Experimental Results

The authors evaluated DAE on three distinct domains: a custom 128-state synthetic environment, MinAtar (a simplified Atari suite), and the standard Arcade Learning Environment (ALE) featuring 60+ Atari 2600 games.

DAE vs GAE: Mean Squared Error and Expected Return
  • Synthetic Accuracy: In the synthetic test, DAE recovered the true advantage function with near-zero error, while GAE's estimates remained noisy even after extensive training.
  • Sample Efficiency: DAE-normalized learning curves show that the method is generally more sample-efficient, reaching higher performance levels faster than the baseline.
  • MinAtar Dominance: DAE outperformed GAE in all 5 MinAtar environments tested.
  • Atari Benchmarks: On the full ALE suite, DAE won significantly more environments than GAE across different network sizes. With standard baselines, DAE won 32 games vs. GAE's 10. When using deep networks, DAE's lead expanded to 35 games vs. GAE's 6.

Limitations and Future Work

While highly effective, DAE currently has a few limitations. The implementation relies on a "centering constraint" that is easy to calculate for discrete actions but difficult for continuous ones (like controlling a robot arm), suggesting sampling-based approximations as a future step. Additionally, the derivation assumes data is collected "on-policy" and operates within a fully observable Markov Decision Process (MDP). Extending DAE to off-policy settings or environments with hidden confounders will require integrating importance sampling and more advanced causal machinery.

Summary updated

BibTeX
@inproceedings{pan2022direct,
  author = {Hsiao-Ru Pan and Nico Gürtler and Alexander Neitz and Bernhard Schölkopf},
  title = {{Direct Advantage Estimation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
}
Figure