Introduction
Standard reinforcement learning (RL) algorithms rely heavily on the Markov property: the assumption that the current state and action are sufficient to determine the immediate reward and the next state. However, in many real-world applications—such as traffic light synchronization, molecular design, or remote robot control—rewards are not instantaneous. Instead, feedback is often delayed, representing the cumulative result of a sequence of actions.
When rewards are delayed, the environment becomes non-Markovian. Directly applying state-of-the-art off-policy algorithms like Soft Actor-Critic (SAC) or TD3 leads to high variance, "fixed-point bias" (where the algorithm converges to the wrong value), and overall poor performance. The core challenge is correctly assigning "credit" to individual actions when the only feedback received is a delayed, aggregated signal.
This paper introduces a novel off-policy RL framework designed specifically for these delayed and non-Markovian environments. By redefining the $Q$-function to operate over trajectory segments and introducing a "History-Current" (HC) decomposition, the authors provide theoretical convergence guarantees and significantly improve training stability and performance in complex, high-dimensional tasks.
Methods
The authors tackle this challenge by first defining a specific class of environments called Past-Invariant Delayed Reward MDPs (PI-DRMDPs). In these environments, while the reward is delayed, the relative "goodness" of an action depends only on the future, not the past history.
To solve PI-DRMDPs, they introduce two key innovations:
- A New $Q$-function Formulation: Instead of the traditional $Q(s, a)$, they define a $Q$-function over trajectory segments within a "signal interval" (the time between two reward observations). They prove a Policy Improvement Theorem, showing that iteratively maximizing this new $Q$-function leads to an optimal policy even with delayed rewards.
- HC-Decomposition: To handle high-dimensional state spaces where processing long sequences is computationally expensive and noisy, they decompose the $Q$-function into two parts:
- $H$ (History): Captures the contribution of past states and actions in the current interval.
- $C$ (Current): Captures the specific contribution of the current action.
This decoupling is the framework's "secret sauce." It allows the policy gradient to depend only on the $C$ component, which drastically reduces gradient variance and makes the optimization process much more stable.
Experimental Setup
The researchers evaluated their approach using modified versions of standard continuous control benchmarks from OpenAI Gym (MuJoCo), including Ant-v2, Walker2d-v2, Hopper-v2, Reacher-v2, and HalfCheetah-v2. They transformed these "dense reward" tasks into delayed reward tasks by testing "sum-form" rewards (summing rewards over 15-20 steps), "Max-form", and "Square-form" rewards.
Baselines included vanilla SAC, Q-RNN (a standard recurrent baseline), and specialized delayed-reward algorithms like LIRPG, RUDDER, and SAC-IRCR.
Key Results and Insights
Variance Reduction through Decomposition
The most significant insight is that an agent does not need the entire history to calculate the policy gradient. By isolating the "current" action's contribution ($C$) from the "historical" context ($H$), the framework eliminates a massive amount of noise that usually plagues recurrent RL agents.
Empirical tests confirmed that HC-decomposition significantly reduces the variance of policy gradients compared to standard recurrent architectures (like RNNs), explaining why the training is substantially more stable.
Superior Performance and Sample Efficiency
The proposed Q-HC algorithms consistently outperformed vanilla SAC and Q-RNN across all tested MuJoCo environments.
In many cases, Q-HC achieved performance nearly identical to an "Oracle SAC"—an agent trained on the original, non-delayed dense rewards. Furthermore, the method proved much more sample-efficient than previous specialized algorithms like RUDDER or LIRPG, which often struggled or completely failed to learn in high-dimensional locomotion tasks.
Theoretical Grounding and Regularization
Unlike many heuristic approaches to delayed rewards, this paper provides a formal proof that their segment-based $Q$-learning converges to the optimal policy under the PI-DRMDP assumption. Additionally, the authors found that regularizing the $H$ component to match the observed delayed reward is crucial for stability, especially when using complex architectures for the history part.
Limitations and Future Work
- The PI Assumption: The framework relies on the "Past-Invariant" property. While this holds for many real-world tasks (like those where rewards are sums of per-step rewards), there may be complex reward structures where this doesn't apply, requiring the agent to consider the full history for every decision.
- Computational Overhead: While more efficient than standard RNN approaches, processing trajectory segments still adds computational complexity compared to standard Markovian RL.
- Future Directions: The authors suggest extending this work to offline RL settings and exploring more complex, non-PI reward environments where history plays a more direct role in determining the optimal action.
Summary updated