TL;DR
Emphatic Temporal-Difference (ETD) learning is a popular method for stabilizing off-policy reinforcement learning, but this paper reveals a critical vulnerability: it can still diverge on actual sample paths when using a constant stepsize. To bridge this "mean-to-path" stability gap, the authors introduce Regularized Emphatic TD (RETD), which incorporates a single leaky scalar state to smooth out sudden trace shocks. RETD guarantees sample-path stability under constant stepsizes while providing an exact algebraic readout to recover the original ETD fixed point.
What Problem Does This Paper Address?
In reinforcement learning, off-policy learning—learning about a target policy while executing a different behavior policy—is notoriously unstable. Emphatic TD (ETD) was developed to fix this by reweighting updates using a "follow-on trace." While ETD is proven to be stable in expectation (mean stability), reinforcement learning practitioners typically use a constant stepsize ($\alpha > 0$) rather than a diminishing one.
The authors identify a major gap: mean stability does not guarantee that individual, sampled trajectories won't explode. Because the follow-on trace in ETD can suffer from infinite variance, constant-stepsize updates can experience massive "shocks." The paper demonstrates that ETD can be perfectly stable on average but still diverge exponentially along actual sample paths.
Methods
The authors propose Regularized Emphatic TD (RETD) to fix this post-shock instability without altering ETD's underlying importance ratios or trace calculations.
Instead of letting a massive trace shock immediately disrupt the value parameters, RETD introduces a single auxiliary, leaky scalar state ($\omega_t$). When a shock occurs, $\omega_t$ absorbs it and gradually decays it over subsequent iterations. This allows the algorithm to release a delayed correction even during transitions where the current policy importance ratio drops to zero.
Because this regularization inherently shifts the algorithm's equilibrium, the authors derive exact single-parameter and two-parameter algebraic "readouts." These equations allow practitioners to reconstruct the true, unregularized ETD fixed point perfectly from RETD's stable trajectories.
The authors provide two core theoretical guarantees:
- Almost-sure convergence under standard diminishing stepsizes.
- A conditional constant-stepsize stability theorem (moment contraction) derived via Markovian random matrix products.
Datasets / Environments
The algorithm was evaluated using four distinct synthetic environments designed to stress-test off-policy stability:
-
Two-State Counterexample: A custom-built, ergodic Markov Decision Process (MDP) explicitly constructed by the authors to prove ETD's constant-stepsize divergence.
The new two-state counterexample showing target policy $\pi$ and behavior policy $\mu$. -
Baird's Counterexample: The classic 7-state star-topology MDP widely used as a standard stability stress test for off-policy linear function approximation.
Baird's seven-state counterexample geometry. -
Boyan's Chain: A standard 13-state benchmark used to evaluate the quality of policy evaluation.
- Random Walk: A 5-state off-policy random walk evaluated across three distinct feature representations (tabular, inverted, and linearly dependent features).
Key Insights and Ideas
- The Mean-to-Path Stability Gap: An algorithm's expected update matrix can be strictly contractive while its actual sampled product expands exponentially. Evaluating an algorithm solely based on its expected ODE can hide severe constant-stepsize instabilities.
- The Post-Shock Blindspot: In standard ETD, if a massive trace shock is immediately followed by a transition with an importance ratio of zero ($\rho_t = 0$), ETD applies an identity update. It essentially "ignores" the shock, leaving the system highly vulnerable. RETD's leaky state ensures that the shock is remembered and corrected for over time.
- Solution Preservation: RETD proves that you don't have to change the fundamental projection geometry or truncate importance weights to achieve stability. By tracking the regularization shift mathematically, the exact target solution remains fully recoverable.
Key Results
- Certified Stability Reversal: On the new two-state counterexample with a stepsize of $\alpha = 0.1$, ETD exhibits a positive top Lyapunov exponent ($\lambda_E > 0.003$), confirming exponential divergence. On the exact same task, RETD achieves a certified negative exponent ($\lambda_R \le -0.0007$), ensuring convergence.
- Baird's Counterexample Victory: At a constant stepsize of $\alpha = 0.01$, RETD delivers a mathematically certified negative exponent ($\lambda_R \le -10^{-4}$), whereas ETD expands numerically.
- Fixed-Point Recovery: In 10,000 paired experimental runs, RETD's single- and two-parameter readouts successfully recovered the exact analytic ETD fixed point.
- Task Dependence: On benign, inherently stable tasks like Boyan's chain, RETD does not uniformly outperform standard baselines. This highlights that RETD is a specialized tool designed specifically to counter high-shock off-policy variance rather than a drop-in replacement for all TD tasks.
Limitations and Future Work
- Variance is Not Reduced: RETD does not lower the infinite variance of the shared follow-on trace; it simply alters the algorithm's internal dynamics to safely tolerate these heavy-tailed shocks.
- Non-Monotone Tuning: The relationship between the regularization parameter $c$ and the stability region is non-monotone. Finding the optimal $c$ requires empirical grid searches or complex, environment-specific bounds.
- Extension to Multi-Step Traces: This paper focuses on $\text{TD}(0)$. The authors note that extending RETD to multi-step eligibility traces—$\text{RETD}(\lambda)$—will require modeling the eligibility trace, follow-on trace, and parameter updates as a single, highly coupled stochastic system.
Summary updated