arXiv:2610.09712math.OCOct 2026

Manuscript Offprint

arXiv:2610.09712

Boundary-aware Reinforcement Learning for Hypercube State Spaces via Deterministic Policy Gradient

Lijun Bo, Yijie Huang, Chenhao Lu

Abstract

We develop a continuous-time deterministic policy gradient framework for reinforcement learning with reflected state dynamics, where the state process is governed by a controlled reflected stochastic differential equation on a hypercube. Under suitable regularity assumptions, we establish the connection between the value function and the Neumann Bellman equation, introduce an advantage-rate function that yields a deterministic policy gradient formula, and prove the martingale characterization theorem. Motivated by these theoretical results, we propose a continuous-time deep deterministic policy gradient algorithm for reflected stochastic systems, in which the Neumann boundary condition is imposed via either soft penalization or hard architectural constraint. We further quantify the discrepancy between the ideal continuous-time dynamics and the discretely sampled exploratory dynamics executed in practice, showing that the error decays as the time grid is refined and exploration noise vanishes. Our experiments on reservoir control problems illustrate the effectiveness of the RL framework, highlighting that boundary-aware methods substantially reduce Neumann boundary residuals and enhance learning stability.

Keywords: reflected diffusion process, deterministic policy gradient, reinforcement learning, Neumann boundary condition, reservoir regulation.

1 Introduction

Reinforcement learning (RL) provides a general framework for sequential decision making in which an agent improves its policy through repeated interaction with an unknown environment. Classical RL has been developed predominantly in discrete time, where the environment is modeled as a Markov decision process and the agent updates value functions or policies from sampled transitions. Among the most influential value-based methods, Q-learning (see Watkins (1989) and Watkins and Dayan (1992)) learns the optimal state-action value function in a model-free manner and has become a cornerstone of discrete-time RL. Temporal-difference learning (Sutton (1988)), SARSA (Rummery and Niranjan (1994)), and actor-critic methods (Konda and Tsitsiklis (2000), Sutton and Barto (2018)) further established the algorithmic foundation for modern RL. The combination of value-based RL with deep neural networks led to the deep Q-network (DQN) (Mnih et al. (2015)), which

*lijunbo@xidian.edu.cn, School of Mathematics and Statistics, Xidian University, Xi'an, 710126, China

†^{\dagger}yijie.huang@polyu.edu.hk, Department of Applied Mathematics, The Hong Kong Polytechnic University, Kowloon, Hong Kong, China.

‡^{\ddagger}luchenhao_ustc@mail.ustc.edu.cn, School of Mathematical Sciences, University of Science and Technology of China, Hefei, 230026, China demonstrated that high-dimensional sensory inputs can be handled by deep function approximation. Policy-gradient methods (Williams (1992) and Sutton et al. (2000)) and their actor-critic variants have also become central in continuous-action control, where direct optimization of a parameterized policy is often more natural than maximization over a discrete action set.

Despite these successes, many real-world decision problems are not intrinsically discrete in time. Robotic manipulation, autonomous driving, high-frequency trading, queueing networks, energy storage, and water reservoir regulation all involve systems whose states evolve continuously and whose decisions may be updated at high frequency. Early attempts to bring RL into continuous time include advantage updating (Baird (1994)), the continuous-time value-function and policy-improvement framework of Doya (2000), and the stochastic control perspective of Munos and Bourgine (1997). These works already emphasized that the continuous-time formulation should not be viewed as a mere limiting case of a fixed discrete-time algorithm. A central difficulty is that objects that are well behaved in discrete time may degenerate when the time step becomes small. In particular, Tallec et al. (2019) showed that standard Q-learning-type methods can be highly sensitive to time discretization in near continuous-time environments, and that the classical discrete-time Q-function is not the right object in the continuous-time limit. This observation motivates the development of RL algorithms directly at the continuous-time level, with time discretization introduced only at the implementation stage.

A systematic stochastic-control formulation of continuous-time RL was introduced by Wang et al. (2020), where exploration is modeled through entropy-regularized relaxed controls for diffusion processes. Building on this formulation, Jia and Zhou (2022a) developed a martingale approach to policy evaluation in continuous time and space, showing that the value function of a fixed policy can be characterized by the martingality of a suitable reward-adjusted process. The same martingale viewpoint was then used in Jia and Zhou (2022b) to derive continuous-time policy gradient and actor-critic algorithms. A major step toward value-based learning in continuous time was made by Jia and Zhou (2023), who introduced the continuous-time counterpart of Q-learning. Since the usual 'big' Q-function collapses to the value function in continuous time, Jia and Zhou (2023) defined a first-order state-action object, the so-called 'little' q-function, which is closely related to the instantaneous advantage rate and the Hamiltonian. This q-function can be characterized by martingale conditions and used to design on-policy and off-policy actor-critic algorithms without discretizing the control problem in advance. The continuous-time RL literature has since expanded in several directions. Continuous-time q-learning has been extended to mean field control problems, where the state distribution enters the dynamics and reward, and the integrated and essential q-functions arise naturally (see Wei et al. (2024) and Wei and Yu (2025)). More recently, Ren et al. (2026a) investigated mean field control with controlled common noise and the accompanying work Ren et al. (2026b) developed martingale-based q-learning and actor-critic algorithms for this formulation. Related martingale and q-learning ideas have also been developed for jump-diffusion models, both under Shannon entropy Gao et al. (2025) and under Tsallis entropy Bo et al. (2024b). Another line of work studies the accuracy of discretely sampled stochastic policies, addressing the gap between continuous-time exploratory formulations and implementable piecewise-constant action processes (see Jia et al. (2025)). These developments show that continuous-time RL is not only a mathematical limit of discrete-time RL, but a distinct framework in which stochastic calculus, martingale methods, Hamilton-Jacobi-Bellman equations, and policy optimization interact.

in a fundamental way.

Most of the above continuous-time RL works are formulated with stochastic or relaxed policies. This is natural for exploration, but it also creates computational and conceptual difficulties. First, the relaxed policy is a measure-valued control, and its implementation therefore requires high-frequency sampling from the prescribed action distribution. Second, stochastic policies introduce an additional action-integration layer into policy evaluation and policy improvement. In continuous action spaces, expectations with respect to the policy distribution must generally be computed analytically or approximated by Monte Carlo sampling. The latter may increase the computational cost of the policy update, especially for high-dimensional action spaces. These considerations motivate deterministic policy gradient methods, which optimize a parameterized deterministic feedback policy. In discrete time, deterministic policy gradient methods (Silver et al. (2014)) provide an efficient alternative to stochastic policy gradients in continuous action spaces, since the policy gradient only integrates over the state distribution. The deep deterministic policy gradient algorithm (DDPG) by Lillicrap et al. (2015) combines this idea with replay buffers and target networks, two stabilizing devices inherited from deep Q-learning. Recently, deterministic policy gradients have also been developed directly in continuous time. Cheng et al. (2025) derived a continuous-time deterministic policy gradient formula through the advantage-rate function and proposed a CT-DDPG algorithm based on martingale characterization. This framework has subsequently been extended to time-inconsistent stochastic control, where Guo et al. (2026) combined deterministic policy-gradient updates, martingale characterizations and inner fixed-point iterations to learn deterministic equilibrium policies. In the mean-field direction, Cheng et al. (2026) developed a model-free deterministic actor-critic framework for extended mean-field control, in which both the dynamics and rewards may depend on the joint distribution of states and controls. This line of work is particularly relevant to applications in which deterministic feedback controls are ultimately intended for implementation.

The present paper studies a complementary issue that has received much less attention in continuous-time RL: state boundary. In many applications, the state process is constrained by some limits. For example, a reservoir has lower and upper storage bounds; an inventory system has capacity constraints; a queue length or storage process may be constrained to remain nonnegative; an engineering system may be required to stay inside a prescribed safe region. A natural mathematical model for such constrained dynamics is a reflected stochastic differential equation. When the state reaches the boundary, a finite-variation regulator pushes it back into the admissible domain. On a hypercube, this reflection acts componentwise on the lower and upper faces. The corresponding Bellman equation is therefore not an ordinary interior PDE, but a parabolic equation with Neumann boundary condition. The boundary condition determines how the critic should behave on reflecting faces, how the boundary regulator enters Itô's formula, and how one should design stable value-function approximations near the boundary.

Motivated by these observations, this paper develops a boundary-aware actor-critic RL framework for reflected diffusion control on a hypercube. For a fixed policy, the value function satisfies a Neumann Bellman equation. We then use this structure to construct a continuous-time deep deterministic policy gradient method for reflected dynamics, which we call CT-DDPG-R. The main contributions of this paper are summarized as follows.

(i) For a fixed parameterized deterministic Markov policy, we characterize the corresponding value function through a parabolic Bellman equation on the interior of the hypercube together with Neumann conditions on its reflecting faces. We derive a continuous-time deterministic policy gradient formula. A key feature of the analysis is that the regulator terms disappear from the final gradient expression because the value function satisfies the Neumann boundary condition. The result extends continuous-time deterministic policy gradient theory from unconstrained diffusions to state-constrained reflected systems. Then, we introduce the continuous-time advantage-rate function associated with a deterministic policy and establish a martingale characterization of both the value function and the advantage-rate function.

(ii) Guided by the theoretical results, we propose CT-DDPG-R, a boundary-aware continuous-time deterministic policy algorithm. The method combines martingale-based critic learning, deterministic actor updates, experience replay, target networks, and two treatments of the Neumann condition: a soft Neumann penalty in the critic loss and a hard Neumann architecture based on cosine Fourier features. We evaluate the proposed method on one-, two-, and five-dimensional reservoir regulation problems. The experiments demonstrate that incorporating the Neumann condition substantially reduces boundary residuals and improves training stability, with the advantages becoming more pronounced as the state dimension increases.

(iii) The theoretical target policy is a continuous-time deterministic feedback, whereas the actions executed during training are sampled on a discrete time grid and perturbed by exploration noise. We quantify the discrepancy between the reflected state process under the ideal target policy and the process generated by the implementable piecewise-constant exploratory actions. The resulting estimate provides a theoretical justification for the discrete-time data-collection procedure used in CT-DDPG-R.

The rest of the paper is organized as follows. Section 2 introduces the controlled reflected SDE on a hypercube and the objective functional. Section 3 derives the Neumann Bellman equation for a fixed deterministic policy and connects it with the value function. Section 4 establishes the deterministic policy gradient formula and develops the martingale characterizations used for model-free learning. Section 5 presents the CT-DDPG-R algorithm with the soft and hard constraints, and estimates the error of the state process in real environment. Section 6 applies our algorithm to the reservoir control problems and reports its performance.

References (33)