Regularization and Two Time Scales for Convergence of Reinforcement Learning

Diogo S. Carvalho, Pedro A. Santos, Francisco S. MeloApplied Mathematics & Optimization 2025

Abstract

Reinforcement learning algorithms aim at solving discrete time stochastic control problems with unknown underlying dynamical systems by an iterative process of interaction. The process is formalized as a Markov decision process, where at each time step, a control action is given, the system provides a reward, and the state changes stochastically. The objective of the controller is the expected sum of rewards obtained throughout the interaction. When the set of states and or actions is large, it is necessary to use some form of function approximation. But even if the function approximation set is simply a linear span of fixed features, the reinforcement learning algorithms may diverge. In this work, we propose and analyze regularized two-time-scale variations of the algorithms, and prove that they are guaranteed to converge almost-surely to a unique solution to the reinforcement learning problem.

Introduction: The Stability Crisis in Function Approximation

In Reinforcement Learning (RL), agents learn optimal decision-making policies through environmental interaction. While tabular methods work for small state spaces, complex real-world applications necessitate function approximation—using models like linear combinations of features or neural networks to estimate value functions.

However, the marriage of standard RL algorithms (such as Q-learning or SARSA) with function approximation is notoriously unstable. Parameters often oscillate or diverge toward infinity. This instability stems from the mathematical nature of the learning process: the "projected Bellman operator" used in these updates is not guaranteed to be a contraction when function approximation is involved. Without the contraction property, iterative updates are not forced toward a single fixed point, leading to the well-documented phenomenon of divergence. This paper addresses this fundamental flaw by proposing algorithms that maintain the efficiency of function approximation while providing rigorous mathematical guarantees of convergence.

Methodology: CSARSA and CQL

The authors introduce two novel algorithms: Coupled SARSA (CSARSA) for policy iteration and Coupled Q-Learning (CQL) for value iteration. These algorithms achieve stability through two primary theoretical mechanisms:

1. Two-Time-Scale Stochastic Approximation

Drawing inspiration from the "target networks" used in Deep Q-Networks (DQN), the authors formalize the learning process as a system of two coupled equations operating at different speeds. A "fast" update adjusts the primary value estimates, while a "slow" update modifies the target parameters. This separation of scales prevents the rapid, self-reinforcing feedback loops that typically cause divergence in single-scale algorithms.

2. Regularization via Un-normalized Projection

Standard linear RL algorithms typically include a normalization matrix—specifically, the inverse covariance matrix of the features ($\Sigma_\mu^{-1}$). This matrix is often the mathematical root of instability, as it can prevent the operator from being a contraction. The authors propose a "regularized" approach that removes this normalization matrix from the objective. By solving a slightly modified fixed-point equation, the algorithm ensures that the underlying operator remains a contraction, thereby guaranteeing a unique, stable solution.

Key Insights: Bridging Theory and Practice

  • Formalizing Engineering Heuristics: Target networks, often viewed as an empirical "trick" in deep learning, are shown here to be a rigorous component of two-time-scale dynamical systems. This provides a theoretical foundation for why such architectures stabilize training.
  • Guaranteed Convergence through Objective Modification: By dropping the normalization matrix, the authors change the "goalpost" of the learning process. While the original objective might be unsolvable or unstable, the regularized objective is mathematically well-posed. Because the features are bounded, the new un-normalized operator is guaranteed to be a contraction.
  • Bounded Bias: A critical concern with altering the objective function is the introduction of bias. The authors demonstrate that while the algorithm converges to a different value function than the true optimum, the distance between these two points is mathematically bounded, ensuring the solution remains useful.

Results and Theoretical Proofs

The paper provides several landmark proofs regarding the stability of the proposed methods:

  • Theorem 4 (CSARSA Convergence): The authors provide a rigorous mathematical proof that Coupled SARSA converges almost-surely to a unique set of policy and value parameters.
  • Theorem 5 (CQL Convergence): Similarly, Coupled Q-Learning is proven to converge almost-surely to a unique value function parameter.
  • Theorem 6 (Error Bounding): The authors establish a theoretical upper bound on the error between the true optimal value function and the solution found by regularized CQL. This confirms that the regularization bias does not lead to arbitrary or infinite error.

Limitations and Future Directions

While this work provides a significant step forward in RL theory, several limitations remain:

  • Linearity Constraint: The proofs are currently restricted to linear function approximation. Extending these guarantees to the non-linear neural networks used in modern deep RL remains an open challenge.
  • Assumption of Orthogonality: The error bounds in Theorem 6 rely on the assumption that features are orthogonal and uniformly excited, a condition rarely met in complex, high-dimensional datasets.
  • Policy Suboptimality: Solving a regularized objective may result in a greedy policy that is slightly suboptimal compared to the true optimal policy. Further research is needed to quantify the practical impact of this bias on agent performance in diverse environments.

Summary updated

BibTeX
@inproceedings{carvalho2025regularization,
  author = {Diogo S. Carvalho and Pedro A. Santos and Francisco S. Melo},
  title = {{Regularization and Two Time Scales for Convergence of Reinforcement Learning}},
  booktitle = {Applied Mathematics \& Optimization},
  year = {2025},
  doi = {10.1007/s00245-025-10304-z},
}
Figure