Intrinsic Practical Stability in Discrete-Time RL

Why Unmodified Discounted Reinforcement Learning Intrinsically Guarantees Closed-Loop Practical Asymptotic Stability

šŸ“„ Reinforcement Learning Conference (RLC 2026)

This article provides an accessible overview of our paper, "Intrinsic Closed-Loop Practical Asymptotic Stability in Discrete-Time Reinforcement Learning" by Jan de Priester and Ricardo G. Sanfelice, published in the Reinforcement Learning Journal (RLC 2026). For the complete mathematical definitions and formal proofs, see the full paper: [Read Paper PDF →]

Deep reinforcement learning (RL) has achieved impressive empirical results in complex continuous control tasks—such as dynamic legged locomotion, high-speed autonomous drone racing, and dexterous manipulation. Fundamentally, these tasks are set-stabilization problems: rather than driving a system to a single static point, the agent must steer the state $x_k$ from any initial condition $x_0$ toward—and indefinitely keep it within—a desired target set $\mathcal{A}$ (such as a repeating walking gait limit cycle or a spatial racing line).

To safely deploy learned policies in the real world, a large body of literature modifies the RL algorithm to enforce formal stability guarantees—for example, by jointly training neural Lyapunov functions, embedding Lyapunov decrease constraints into policy updates, or applying external safety filters. While these techniques are valuable for training-time safety during exploration, they alter the core RL objective, which can restrict natural exploration and complicate training.

In this work, we offer a complementary perspective:

Modifying the core RL objective is often unnecessary to guarantee the stability of the deployed policy. We prove that, under mild conditions, near-optimal policies trained on the unmodified discounted RL objective intrinsically guarantee Uniform Practical Asymptotic Stability (UPAS).


1. Why Steady-State Error in RL is a Feature of Discounting, Not a Bug

In classical control theory, asymptotic stability requires a trajectory starting from $x_0$ to converge all the way into the exact target set $\mathcal{A}$ over an infinite horizon (left panel below). In contrast, practical asymptotic stability guarantees that the trajectory converges into and indefinitely remains within a small, bounded neighborhood of radius $\rho > 0$ around the target set $\mathcal{A}$ (right panel below).

Left (Asymptotic Stability): Closed-loop trajectories starting at $x_0$ converge strictly to the target set $\mathcal{A}$. Right (Practical Asymptotic Stability): Trajectories converge into and remain inside a bounded $\rho$-neighborhood (blue region) surrounding $\mathcal{A}$.

Why do standard RL agents naturally exhibit practical asymptotic stability—settling into a small steady-state offset near the target rather than converging to exact zero error? Two fundamental factors govern this behavior:

  1. Discounting Creates a Myopic Agent ($\gamma \in (0, 1)$): Rather than optimizing an infinite-horizon undiscounted sum ($\gamma = 1$), RL maximizes an expected discounted return weighted by $\gamma^k$ at each future time step $k$. As shown below, discounting exponentially diminishes the weight of distant rewards $\gamma^k R$, effectively truncating the optimization horizon and causing the agent to prioritize near-term rewards over distant ones. Once the state gets ā€œclose enoughā€ to the target $\mathcal{A}$, the immediate control effort required to push the error smaller outweighs the discounted future benefit. Thus, native steady-state error in RL is not an algorithmic failure—it is the direct consequence of optimizing a discounted objective.
Discounting Induces a Myopic Policy: Compared to an undiscounted return ($\gamma = 1$, blue), a discount factor $\gamma \in (0, 1)$ (red) exponentially reduces the importance of future step rewards $\gamma^k R$ as time step $k$ increases.
  1. Neural Network Approximation Error ($\delta > 0$): In practice, deep RL searches over parameterized feedforward neural networks rather than all possible continuous functions. Because finite-capacity networks produce near-optimal policies with some small suboptimality $\delta > 0$, this approximation error slightly enlarges the steady-state neighborhood around the target.
Animation: Practical Stability of a Quadruped Locomotion Limit Cycle ā— Two-Phase Convergence
Visualizing Our Main Result on a Periodic Locomotion Gait: Each joint of the galloping quadruped tracks a desired limit cycle (dashed loops). Phase 1 (Training Progression at fixed $\gamma = 0.90$): As training reduces neural network approximation error, the guaranteed stability neighborhood around the limit cycle shrinks. Phase 2 (Becoming Farsighted as $\gamma \to 1$): Increasing the discount factor toward $1$ contracts the remaining neighborhood to the exact target gait.

2. How the Theoretical Guarantee Works

To formally prove that unmodified deep RL guarantees closed-loop practical stability, we adapt the discrete-time Input-to-State Stability (ISS) framework and extend tools from discounted Model Predictive Control (MPC) to neural network policies:

  • Modeling Suboptimality as Bounded Disturbances: We analyze the optimal value function as a Lyapunov-like energy candidate for the closed-loop system. Using the Bellman equation, we show that both the horizon truncation from discounting ($\gamma \in (0, 1)$) and the suboptimality of the learned neural network ($\delta > 0$) act as bounded disturbances to the ideal closed-loop dynamics.
  • Bridging Expected Return to Worst-Case Pointwise Guarantees: A key theoretical challenge is that RL algorithms maximize an expected return averaged across an initial state distribution, whereas closed-loop stability requires a guarantee that holds pointwise at every individual state. By formulating the policy search over a compact space of continuous feedback laws (such as feedforward neural networks with continuous activations and bounded weights) and a strictly positive initial state distribution, we establish two crucial links:
    1. Exact RL (Lemma 3.8 & Theorem 3.9): A policy that maximizes the expected return over the initial state distribution is automatically pointwise optimal at every individual state, steering trajectories into a discount-dependent neighborhood of radius $\nu(\gamma)$ around $\mathcal{A}$ (left figure below).
    2. Approximate RL (Lemma 4.4 & Theorem 4.5): Bounding the expected suboptimality of a neural network policy by $\delta > 0$ automatically guarantees a uniform worst-case bound on its value error across the entire state space, steering trajectories into an expanded neighborhood of radius $\tilde{\nu}(\gamma, \delta)$ around $\mathcal{A}$ (right figure below).
Left (Exact Discounted RL — Theorem 3.9): Under an exact optimal discounted policy, trajectories converge into a bounded neighborhood $\nu(\gamma)$ (blue) around $\mathcal{A}$ that vanishes as $\gamma \to 1$. Right (Approximate Neural Network RL — Theorem 4.5): Function approximation error $\delta > 0$ enlarges the residual neighborhood to $\tilde{\nu}(\gamma, \delta)$ (green), which contracts back to $\nu(\gamma)$ as $\delta \to 0$ and then to $\mathcal{A}$ as $\gamma \to 1$.

Crucially, the size of the steady-state neighborhood $\tilde{\nu}(\gamma, \delta)$ shrinks to zero as the approximation error $\delta$ approaches $0$ and, subsequently, the discount factor $\gamma$ approaches $1$.

šŸ” When Does This Guarantee Hold? (Core Assumptions in Plain Language)

  • Continuous Dynamics & Bounded Workspace (Assumption 3.1): The discrete-time system dynamics and reward function are continuous, and the state and action spaces are compact—a natural fit for physical robots with bounded workspaces and actuator saturation limits.
  • Target-Aligned Reward & Solvable Task (Assumption 3.6): Relative to the maximum reward in the target set, the reward strictly penalizes distance from the target (preventing reward "blind spots"), and at least one continuous stabilizing baseline policy exists.
  • Continuous Optimal Policy (Assumption 3.7): The task can be optimally solved by a continuous feedback law. (Note: This excludes tasks where the optimal policy is inherently discontinuous—such as bang-bang control or obstacle avoidance around topological obstructions, which we address using hybrid switching in our MultiHyRL and Timer-Supervisor work.)

3. Interactive Numerical Validation: How Discounting ($\gamma$) and Network Error ($\delta$) Shape Steady-State Behavior

In Examples 3 and 4 of the paper, we illustrate these theoretical bounds on a discrete-time system $x^+ = x + 0.1u$ with state and action spaces $[-1, 1]$, stabilizing the target origin $\mathcal{A} = \lbrace 0 \rbrace$. Here, $\omega(x_k) = \lvert x_k \rvert$ measures the distance to the target at discrete time step $k$, and the reward function is:

\[R(x, u) = -\big(x^2 + 0.5\lvert u \rvert\big)\]

Because the linear control effort penalty ($0.5\lvert u \rvert$) dominates the quadratic state error penalty ($x^2$) near the origin, the optimal policy stops applying control ($u^\ast = 0$) once the state enters the analytical deadzone $\nu(\gamma) = \frac{c(1-\gamma)}{2\gamma\Delta t}$. Furthermore, a 2-neuron ReLU network $\hat{u}(x) = \text{clip}\big(-\frac{1}{\Delta t}\max(w x - \nu(\gamma), 0) + \frac{1}{\Delta t}\max(-w x - \nu(\gamma), 0), -1, 1\big)$ with input weight scaling $w \in [0.6, 1.0]$ induces a uniform value approximation error $\delta = \max_x \lvert V^\ast(x) - \hat{V}(x) \rvert$ that enlarges this steady-state neighborhood to $\tilde{\nu}(\gamma, \delta)$.

Use the interactive simulation below (powered directly by the exact closed-loop dynamics and value-function evaluator from the paper) to explore how $\gamma$, $\delta$, and the initial state $x_0$ shape the closed-loop trajectories:

Interactive Simulation: Examples 3 & 4 (Exact Closed-Loop RL Dynamics) ā— Live Paper Code
Discount Factor (γ)
0.900
Exact Bound ν(γ)
0.278
Value Approx. Error (Ī“)
0.045
Approx. Bound ν̃(γ, Γ)
0.347
Figure 1 / Example 3: Effect of Discount Factor γ (Exact Policy)
Figure 2 / Example 4: Effect of Network Error Γ (at Selected γ)
γ = 0.90
Ī“ = 0.04 (w = 0.80)
|xā‚€| = 1.00
Left (Figure 1 / Example 3 — Effect of Discount Factor $\gamma$): Reference curves for $\gamma \in \lbrace 0.85, 0.90, 0.96, 0.99 \rbrace$ and the live interactive trajectory (bold blue) converge directly to the analytical steady-state bound $\nu(\gamma) = \frac{5(1-\gamma)}{2\gamma}$ (dashed line), which shrinks toward zero as $\gamma \to 1$. Right (Figure 2 / Example 4 — Effect of Approximation Error $\delta$): At the selected $\gamma$, improving the ReLU network weight accuracy $w \to 1$ reduces the uniform value error $\delta = \max_x \lvert V^\ast(x) - \hat{V}(x) \rvert \to 0$ and contracts the live approximate trajectory (bold crimson) directly onto the ideal discounted boundary $\nu(\gamma)$ (black dashed line).
  • Effect of the Discount Factor $\gamma$ (Left Plot — Example 3): Under the exact optimal policy, the steady-state error boundary is given analytically by $\nu(\gamma) = \frac{5(1-\gamma)}{2\gamma}$. As $\gamma$ increases from $0.85$ to $0.99$, the agent becomes more farsighted and the steady-state offset shrinks directly toward zero.
  • Effect of Neural Network Approximation Error $\delta$ (Right Plot — Example 4): At any chosen discount factor $\gamma$, evaluating parameterized ReLU network policies across decreasing value approximation errors $\delta = \max_x \lvert V^\ast(x) - \hat{V}(x) \rvert$ simulates how a neural network policy improves over the course of training. Larger approximation errors act as a larger disturbance that widens the steady-state error, while reducing $\delta \to 0$ during training shrinks the trajectory bound $\tilde{\nu}(\gamma, \delta)$ directly onto the ideal discounted baseline $\nu(\gamma)$.

šŸ› ļø Practical Engineering Takeaway: You Don't Need $\gamma \to 1$ in Practice (Corollary 3.9.1)

While the steady-state bound vanishes in the limit as $\gamma \to 1$, pushing $\gamma$ arbitrarily close to $1$ in practical RL often causes high variance and training instability. Fortunately, our theorem guarantees that taking the strict limit $\gamma \to 1$ is unnecessary: for any desired real-world accuracy tolerance $\rho > 0$ (for example, keeping a robotic manipulator within $1\text{ mm}$ of a target), there always exists a strictly smaller discount factor $\gamma^\ast \in (0, 1)$ such that any $\gamma \in [\gamma^\ast, 1)$ guarantees convergence within that specification.

For the full mathematical formulation—including the continuity of the value functional in function space, the universal approximation bounds for deep narrow networks, and the complete stability proofs—please refer to our RLC 2026 paper (de Priester & Sanfelice, 2026).

References

2026

  1. RLC
    Intrinsic Closed-Loop Practical Asymptotic Stability in Discrete-Time Reinforcement Learning
    Jan de Priester and Ricardo G. Sanfelice
    In Reinforcement Learning Conference (RLC) / Reinforcement Learning Journal (RLJ), 2026