TL;DR
PER-ETD (Periodically Restarted Emphatic Temporal Difference) solves a major stability issue in off-policy reinforcement learning. By periodically restarting the "follow-on trace" calculation and increasing the restart period logarithmically, the algorithm's sample complexity is transformed from exponential to polynomial, ensuring stable convergence to the correct value function.
The Challenge of Off-Policy Evaluation
In reinforcement learning, off-policy evaluation involves predicting the performance of a "target" policy using data generated by a different "behavior" policy. This is notoriously difficult. Standard Temporal Difference (TD) learning often diverges in this setting when combined with function approximation—a phenomenon famously known as the "Deadly Triad."
To address this, Emphatic TD (ETD) was introduced. ETD utilizes a "follow-on trace," a weighting factor that corrects for the mismatch between the state visitation frequencies of the behavior and target policies. While ETD is theoretically sound and converges asymptotically, it suffers from a massive practical flaw: variance. The follow-on trace can grow indefinitely, causing the variance to explode. Consequently, vanilla ETD might require an exponentially large number of samples to converge, rendering it unstable for most real-world applications.
Introducing PER-ETD
To overcome the variance explosion in ETD, the authors propose PER-ETD (PEriodically Restarted-ETD). The core idea is simple but mathematically precise:
- Periodic Restarts: Instead of updating the follow-on trace indefinitely across an entire trajectory, the algorithm restarts the trace calculation every $b$ steps (the "period length").
- Logarithmic Scaling: To balance the bias introduced by restarting (which discards historical distribution mismatch information) and the variance of long traces, the period length $b$ is not fixed. Instead, $b$ increases logarithmically with the total number of iterations $T$.
- Algorithmic Variants: The paper introduces both PER-ETD(0) and PER-ETD($\lambda$). The latter incorporates eligibility traces to further bridge the gap between TD and Monte Carlo methods.
Key Insights and Theoretical Guarantees
- The Bias-Variance Sweet Spot: Truncating the trace drastically reduces variance at the cost of introducing bias. The logarithmic growth of the restart period acts as a mathematical "sweet spot," allowing both bias and variance to vanish sublinearly.
- Phase Transition in Convergence: The convergence rate depends heavily on the level of policy mismatch ($\rho_{max}$). If the mismatch is below a certain threshold, PER-ETD converges as fast as standard on-policy TD. If the mismatch is high, the rate slows down but remains polynomial—a massive theoretical improvement over the exponential complexity of vanilla ETD.
- Fixed Point Preservation: Crucially, PER-ETD converges to the same desirable fixed point as the original ETD, ensuring that accuracy is not sacrificed for stability.
Empirical Results on Baird's Counter-Example
The authors evaluate their method using the Baird counter-example, a classic 7-state Markov Decision Process (MDP) specifically designed to make off-policy TD learning diverge. It serves as a rigorous stress test for stability.
In head-to-head tests:
- Standard TD diverges.
- Vanilla ETD is highly unstable, exhibiting extreme variance spikes that often lead to divergence.
- PER-ETD converges reliably to the ground truth value function.
Furthermore, the experiments highlight the importance of tuning the period $b$. While small values of $b$ stabilize the learning process compared to vanilla ETD, setting $b$ too high reintroduces variance spikes, validating the need for the carefully scaled restart mechanism.
Limitations and Future Work
- Focus on Evaluation: The current work focuses strictly on policy evaluation. While this is a foundational building block, the paper does not explicitly test PER-ETD within a full control loop (such as Q-learning or Actor-Critic architectures).
- Simple Environments: Empirical results are currently limited to the Baird counter-example. Testing on high-dimensional deep RL benchmarks, like Atari or MuJoCo, is a necessary next step to prove practical scalability.
- Future Directions: The authors suggest extending this "periodic restart" logic to off-policy actor-critic methods and multi-agent reinforcement learning scenarios.
Summary updated