NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Temporal Difference Method for Stochastic Continuous Dynamics

Haruki Settai, Naoya Takeishi, Takehisa Yairi

Abstract

Reinforcement learning (RL) in continuous-time stochastic systems typically relies on discretization, a process that often discards valuable structural information regarding system continuity. This paper introduces differential Temporal Difference (dTD), a novel model-free RL method designed to address this limitation. By targeting the Hamilton-Jacobi-Bellman (HJB) equation through sample-based approximations of drift and diffusion, dTD allows agents to leverage the inherent smoothness of physical systems without requiring prior knowledge of the underlying equations of motion. We demonstrate that dTD, particularly in its hybrid $\beta$-dTD form, achieves faster convergence and superior performance across various high-dimensional continuous control benchmarks.

Introduction

Most reinforcement learning algorithms operate on a discrete-time paradigm, treating interactions as a sequence of distinct "ticks." While effective for domains like board games, this approach is less natural for physical systems—such as robotics or autonomous vehicles—which are governed by continuous-time differential equations (ODEs or SDEs).

When standard RL is applied to these systems, the environment is typically discretized into small time steps ($\Delta t$). However, this discretization often ignores the structural continuity of the state space. The Hamilton-Jacobi-Bellman (HJB) equation serves as the continuous-time counterpart to the Bellman equation and naturally encodes this continuity. Historically, utilizing the HJB equation required a model-based approach, necessitating exact knowledge of the system's drift and diffusion coefficients. The authors of this work propose a way to bridge this gap, enabling HJB-based learning in a model-free setting.

Methodology: Differential Temporal Difference (dTD)

The core innovation of this work is the dTD method, which approximates the HJB equation using only sample transitions.

Sample-Based HJB Approximation

The authors prove that the complex drift and diffusion terms within the HJB equation can be estimated using the limits of finite differences from observed state transitions. This allows the agent to approximate the "physics" of the system implicitly by observing how states evolve over small intervals.

The dTD Error and Hybrid Loss

Unlike the standard TD error, which simply compares $V(s_t)$ to $V(s_{t+\Delta t})$, the dTD error incorporates the gradient (first derivative) and the Hessian (second derivative) of the value function. This encourages the neural network to learn a value function that respects the continuous nature of the state space.

Comparison between typical TD and the proposed dTD approach. While typical TD treats transitions as discrete jumps, dTD models the continuous path between states.

To manage the potential instability of second-order derivatives in deep learning, the authors introduce a hybrid loss, $\beta$-dTD. This loss combines the standard TD error with the dTD error, weighted by a hyperparameter $\beta$. This provides a balance between the stability of traditional RL and the efficiency gains from gradient information.

Computational Efficiency

Calculating a Hessian is typically an $O(n^2)$ operation, which is prohibitive for high-dimensional states. The authors employ a mathematical rearrangement to compute the necessary terms in $O(n)$ time, ensuring the method remains practical for complex environments.

Experimental Evaluation

The method was evaluated using the Brax library on four standard continuous control benchmarks:

  • Hopper (11 dimensions)
  • HalfCheetah (17 dimensions)
  • Ant (27 dimensions)
  • Humanoid (244 dimensions)

To test robustness, varying levels of Gaussian process noise were added to state transitions, simulating stochastic real-world environments.

Key Results

  • Faster Convergence: In nearly all tested environments, $\beta$-dTD demonstrated a significantly faster rate of improvement compared to standard Proximal Policy Optimization (PPO).
  • Performance Gains: $\beta$-dTD consistently matched or outperformed standard PPO and a "naive" version of the differential method.
  • Robustness to Stochasticity: The inclusion of second-order (Hessian) terms allowed the method to remain effective even as process noise increased.
  • Scalability: Success on the Humanoid task (244 dimensions) confirms that the $O(n)$ computational trick effectively scales to high-dimensional state spaces.

Discussion and Key Insights

The primary insight of this research is that continuity acts as a powerful prior. By forcing the value function to satisfy the HJB equation, the agent is effectively told that "the world is smooth," allowing it to learn more efficiently from fewer samples. Furthermore, the paper demonstrates that model-free HJB is indeed possible; one can bypass explicit modeling of drift and diffusion and go straight to value function updates.

Limitations and Future Work

While promising, the method currently focuses on policy evaluation (learning the value of a fixed policy). Extending the theoretical convergence guarantees to policy improvement is a critical next step. Additionally, the convergence proof relies on specific mathematical conditions (e.g., reflecting boundaries) that may not always be present. Finally, the introduction of the $\beta$ hyperparameter adds a layer of tuning complexity. Future research will explore automated ways to balance these updates and further reduce the variance of dTD estimators.

Summary updated

BibTeX
@inproceedings{settai2025temporal,
  author = {Haruki Settai and Naoya Takeishi and Takehisa Yairi},
  title = {{A Temporal Difference Method for Stochastic Continuous Dynamics}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=UKFg5yeZeX},
}
Figure