Implicit Updates for Average-Reward Temporal Difference Learning

Hwanwoo Kim, Dongkyu Derek Cho, Eric Laber

TL;DR

Standard average-reward Temporal Difference (TD) learning is notoriously sensitive to step-size selection, often leading to numerical instability or painfully slow convergence. This paper introduces average-reward implicit TD($\lambda$), a novel variant that uses implicit fixed-point updates to dynamically rescale step-sizes based on incoming data. The resulting algorithm drastically improves numerical stability across a wide range of step-sizes while maintaining the exact same per-iteration computational complexity as standard TD.

What Problem Does This Paper Address?

Reinforcement learning (RL) algorithms typically operate in either discounted-reward or average-reward settings. While discounted rewards are mathematically convenient, the average-reward setting is frequently more natural for continuing, infinite-horizon tasks—such as robotics control, inventory management, or network queuing—where long-term average performance matters more than immediate rewards.

However, standard average-reward TD($\lambda$) algorithms suffer from extreme step-size sensitivity. If the learning rate (step-size) is set slightly too large, the algorithm easily oscillates or diverges entirely. If it is too small, learning stalls. Finding the sweet spot requires tedious, problem-specific hyperparameter tuning. Furthermore, existing theoretical guarantees for average-reward TD learning only hold under highly restrictive, small step-size conditions, leaving a massive gap between theory and robust practical deployment.

Methods

The authors propose Average-Reward Implicit TD($\lambda$). Instead of using the standard forward-looking (explicit) stochastic gradient update, they recast the update rule as an implicit fixed-point equation. Specifically, the TD error is allowed to depend on the new parameter iterate rather than the current one.

Remarkably, solving this implicit equation yields a closed-form update that automatically scales down the effective step-size when the magnitude of the data features (via the eligibility trace $z_t$) is large. The parameter update rule takes the form:

$$\hat{\theta}_{t+1} = \hat{\theta}_t + \frac{\beta_t}{1 + \beta_t \|z_t\|_2^2} \delta_t z_t$$

This "adaptive shrinkage" provides a built-in stabilization mechanism without requiring any costly matrix inversions, meaning it preserves the $O(d)$ per-iteration time and space complexity of standard TD($\lambda$).

On the theoretical side, the authors establish the first finite-time error bounds for this implicit variant under both constant and polynomial diminishing step-size schedules ($\beta_t \propto t^{-s}$ for $s \in (0,1)$), significantly relaxing the restrictive step-size assumptions found in previous literature.

Datasets

The algorithm was evaluated on several classic reinforcement learning benchmarks:

  • Markov Reward Process (MRP): A synthetic 100-state problem used to evaluate policy evaluation performance under constant and decaying step-sizes.
  • Boyan Chain: A standard 13-state benchmark for TD learning with linear function approximation, adapted to the average-reward setting.
  • Access-Control Queuing: A canonical queuing problem with 10 servers and 4 customer classes, used to test policy learning (control).
  • Pendulum-v1: A continuous control environment from OpenAI Gym, modified for infinite-horizon average-reward optimization, using random Fourier features to approximate the value function.

Key Insights and Ideas

  • Automatic Step-Size Rescaling: The core "aha" moment is that implicit updates naturally introduce a denominator term ($1 + \beta_t \|z_t\|_2^2$) that acts as a mathematical shock absorber. When the eligibility trace spikes, the effective step-size shrinks, preventing the algorithm from exploding.
  • Theoretical Liberation: Previous proofs required the initial step-size to be bounded by complex, problem-dependent constants. The implicit formulation completely removes these delicate initial step-size constraints, proving stability even for non-square-summable step-size regimes ($0 < s \le 1/2$).
  • Complexity-Free Stability: Often, stabilizing RL algorithms requires moving to second-order methods (like Least-Squares TD) which scale quadratically $O(d^2)$ with feature dimension. Implicit TD achieves stabilization while remaining strictly linear $O(d)$ in computational complexity.

Key Results

  • Policy Evaluation Stability: In the 100-state MRP and Boyan Chain experiments, standard TD($\lambda$) rapidly diverged as the initial step-size approached 1.5 or 2.0. In contrast, Implicit TD($\lambda$) remained perfectly stable with minimal loss growth across the entire range of step-sizes up to 3.0.
MRP Policy Evaluation Performance
  • Faster, Safer Control Learning: When applied to control tasks via SARSA (Access-Control and Pendulum), Implicit TD allowed the use of much larger initial step-sizes. This accelerated early exploration and led to higher average rewards, whereas standard TD failed to benefit from larger steps and deteriorated due to instability.

Limitations and Future Work

While the paper provides a solid foundation for average-reward implicit methods, a few areas remain open for exploration:

  • Extension to Off-Policy Learning: The current theoretical analysis focuses primarily on the on-policy setting. Extending these rigorous finite-time bounds to off-policy average-reward settings (which are notoriously unstable) is an important next step.
  • Full Theory for Control: The control experiments utilize an implicit version of SARSA, but the formal finite-time error bounds in the paper are proven for policy evaluation (TD). A complete theoretical analysis of average-reward implicit SARSA/Q-learning is left for future work.
  • Two-Time-Scale Extensions: The authors restricted their scope to a single-time-scale framework (where the average reward and value function weights update at proportional rates). Exploring two-time-scale stochastic approximation variants could offer further optimization.

Summary updated

BibTeX
@inproceedings{kim2026implicit,
  author = {Hwanwoo Kim and Dongkyu Derek Cho and Eric Laber},
  title = {{Implicit Updates for Average-Reward Temporal Difference Learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2026},
  url = {https://openreview.net/forum?id=YXVd22hh0r},
}
Figure