Geometric Insights into the Convergence of Nonlinear TD Learning

David Brandfonbrener, Joan Bruna

Introduction

Temporal Difference (TD) learning is the backbone of modern reinforcement learning. However, it notoriously lacks convergence guarantees when paired with nonlinear function approximators like deep neural networks. In these setups, the algorithm can diverge, causing estimated values to spiral toward infinity.

This instability arises because TD updates rely on "semi-gradients" rather than following the true gradient of a fixed loss function. The interaction between the geometry of the neural network and the dynamics of the environment can create rotational or "spinning" effects that push parameters away from the optimal solution. This paper introduces a geometric framework to understand these dynamics, proving that common architectures (like ReLU networks) possess natural resistance to divergence and establishing a "reversibility" criterion for global convergence.

A Geometric Framework for TD Dynamics

To move beyond specific counterexamples of divergence, the authors analyze the expected learning dynamics of TD(0) by modeling them as a nonlinear Ordinary Differential Equation (ODE). Their theoretical approach rests on three main pillars:

  1. Function Homogeneity: Many neural networks, particularly those using ReLU activations, act as homogeneous functions. Using Euler’s homogeneous function theorem, the authors map the movement of parameters in weight space directly to the movement of value estimates in function space.
  2. The Reversibility Coefficient ($\rho$): They introduce a novel metric, $\rho(\mathcal{M})$, to quantify how "reversible" a Markov Reward Process (MRP) is. A perfectly reversible environment has symmetric dynamics (no "spinning"), whereas a highly non-reversible one exhibits strong rotational components in its transition matrix.
  3. Tangent Kernel Conditioning ($\kappa$): The condition number of the Neural Tangent Kernel (NTK) is used to measure how well-behaved the function approximator is.

To validate their theoretical findings, the authors utilize a generalized version of the classic "Spiral" counterexample—a synthetic 3-state MRP originally proposed by Tsitsiklis & Van Roy. This environment perfectly demonstrates how non-reversible dynamics trigger divergence.

Vector fields illustrating the dynamics of the 3-state MRP, including tabular, divergent, and reversible scenarios.

Key Insights and Theoretical Guarantees

The geometric analysis yields several critical insights into why and when nonlinear TD learning succeeds or fails:

  • ReLU Networks are Inherently Safer: The authors prove that smooth homogeneous functions (including ReLU networks) are "attracted to a compact set." Consequently, the value function remains bounded by a constant $B$ (dependent on the reward structure and discount factor). While they might not perfectly converge to the true value function, they are guaranteed not to diverge to infinity, regardless of the environment.
  • The Stability Trade-off (Global Convergence): Convergence is essentially a tug-of-war between the environment's dynamics and the model's geometry. The paper establishes a Global Convergence Theorem: if the condition number of the approximator's tangent kernel is strictly less than the environment's reversibility coefficient ($\kappa < \rho$), the system is guaranteed to converge to the true value function $V^*$.
  • Generalizing Divergence: Conversely, any non-reversible environment with at least one complex eigenvalue can be forced to diverge if paired with a sufficiently pathological (rank-deficient) nonlinear approximator.
  • Architectural and Algorithmic Fixes:
    • ResNets: By using a "residual-homogeneous" parametrization inspired by ResNets, nonlinear TD can be forced to perform at least as well as linear TD in worst-case scenarios.
  • $n$-step Returns: The paper theoretically justifies why $k$-step returns improve stability. Looking further into the future exponentially increases the "effective reversibility" of the environment, making convergence easier for the optimizer.

Limitations and Future Directions

While providing a robust theoretical foundation, the paper's analysis assumes a continuous-time ODE limit, which does not account for the noise introduced by stochastic sampling in practical RL applications. Furthermore, the global convergence proof requires the function approximator's Jacobian to be full rank. This implies an over-parameterized regime (more parameters than states), which is unrealistic for environments with massive or continuous state spaces. Finally, extending these geometric insights from on-policy value estimation to off-policy learning (the "Deadly Triad") or Q-learning remains a significant open challenge for future work.

Summary updated

BibTeX
@inproceedings{brandfonbrener2020geometric,
  author = {David Brandfonbrener and Joan Bruna},
  title = {{Geometric Insights into the Convergence of Nonlinear TD Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2020},
}
Figure