TL;DR
This paper solves a long-standing open problem in reinforcement learning by providing the first theoretically sound off-policy policy gradient theorem for general function approximation. By introducing "emphatic weightings" to the gradient update, the authors develop the ACE (Actor-Critic with Emphatic weightings) algorithm, which avoids the convergence to suboptimal solutions that plagues previous methods like OffPAC and DPG.
What Problem Does This Paper Address?
In reinforcement learning, off-policy learning is the "holy grail": it allows an agent to learn about an optimal target policy while actually executing a different, exploratory behavior policy. This is essential for data efficiency (reusing old data via experience replay) and learning multiple skills simultaneously.
While we have a solid "Policy Gradient Theorem" for the on-policy setting, the off-policy version has been elusive. Previous attempts (like OffPAC) relied on "semi-gradients." These methods work in "tabular" settings (where every state is unique), but they often fail when using function approximation (like neural networks).
The core issue is state aliasing: when different states look the same to the agent, semi-gradient methods weight updates based on how often the behavior policy visits a state, rather than how important that state is to the target policy. This mismatch causes the agent to converge to "wrong" (suboptimal) solutions, even in very simple environments.
Methods
The authors bridge this gap by applying emphatic weightings—a concept originally developed to stabilize off-policy value estimation—to the policy gradient.
- The Theorem: They derive a new theorem showing that the true gradient of the off-policy objective can be expressed as an expectation weighted by an emphatic weighting $m(s)$. This weighting accounts for both the "interest" in a state and the cumulative effect of previous importance sampling ratios.
- ACE Algorithm: They introduce Actor-Critic with Emphatic weightings (ACE). This algorithm incrementally estimates the emphatic weighting ($M_t$) online and uses it to scale the policy updates.
- Bias-Variance Trade-off: Recognizing that emphatic weightings can be noisy, they introduce a parameter $\lambda_a \in [0, 1]$. This allows practitioners to trade off between the biased (but stable) semi-gradient ($\lambda_a=0$) and the unbiased (but potentially high-variance) true gradient ($\lambda_a=1$).
Environments and Counterexamples
The paper focuses on illustrative "toy" environments designed to highlight the theoretical failure modes of existing algorithms:
- 3-State Aliased MDP: A simple environment where two states are "aliased" (share the same features). This is the primary counterexample showing why OffPAC and DPG fail.
- 11-State MDP: An extended version with longer trajectories to test how errors in emphatic weighting estimation accumulate over time.
- Continuous Action MDP: A version with a continuous action space to compare against Deterministic Policy Gradient (DPG) methods.
Key Insights and Results
- The Distribution Mismatch is Fatal: The paper demonstrates that in off-policy learning with function approximation, the state distribution of the behavior policy is simply the "wrong" distribution to use for policy updates.
- Emphatic Weighting as a Correction: Emphatic weightings act as a corrective lens. They "emphasize" updates in states that are more critical to the target policy's long-term performance, even if the behavior policy rarely visits them or visits other (aliased) states more frequently.
- Finding the Optimum: As shown in the counterexample above, ACE successfully finds the optimal policy, whereas semi-gradient methods converge to a solution that is worse than the initial starting policy.
- Robustness to $\lambda_a$: Even with intermediate values of the trade-off parameter (e.g., $\lambda_a = 0.5$), ACE significantly outperforms the semi-gradient baseline.
This suggests that even a partial "emphatic correction" is highly beneficial for overcoming the suboptimal convergence of semi-gradients.
- Continuous Action Success: The authors show that a version of DPG modified with emphatic weightings (True-DPGE) fixes the suboptimality of standard DPG in continuous environments with aliased states.
Limitations and Future Work
- Variance Issues: Emphatic weightings rely on products of importance sampling ratios. In long trajectories or environments where the behavior and target policies are very different, this can lead to high variance, making the gradient estimates noisy.
- Estimation Lag: The online estimation of $m(s)$ assumes a fixed target policy, but in an actor-critic setup, the policy is constantly changing. This "moving target" problem can disturb updates in long trajectories.
- Scaling to Deep RL: While the theory is general, the experiments were on small MDPs. Future work is needed to see how ACE performs when combined with deep neural networks in complex environments like Atari or MuJoCo, where variance management becomes even more critical.
Summary updated