Beware of Instantaneous Dependence in Reinforcement Learning

Zheng-Mao Zhu, Yu-Ren Liu, Hong-Long Tian, Yang Yu, Kun ZhangarXiv 2023

Abstract

Playing an important role in Model-Based Reinforcement Learning (MBRL), environment models aim to predict future states based on the past. Existing works usually ignore instantaneous dependence in the state, that is, assuming that the future state variables are conditionally independent given the past states. However, instantaneous dependence is prevalent in many RL environments. In this paper, we prove that with few exceptions, ignoring instantaneous dependence can result in suboptimal policy learning in MBRL. To address the suboptimality problem, we propose a simple plug-and-play method to enable existing MBRL algorithms to take instantaneous dependence into account. Through experiments on two benchmarks, we (1) confirm the existence of instantaneous dependence with visualization; (2) validate our theoretical findings that ignoring instantaneous dependence leads to suboptimal policy; (3) verify that our method effectively enables reinforcement learning with instantaneous dependence and improves policy performance.

Introduction

In Model-Based Reinforcement Learning (MBRL), an agent learns a "world model" to predict how the environment will change. Traditionally, these models assume that the future values of different state variables (like the position of a robot's arm and the angle of its joint) are conditionally independent given the previous state. This is known as the lagged dependence assumption.

However, in the real world, variables often influence each other almost instantly. In a stock market, a crash in one sector immediately impacts others; in robotics, a disturbance in one joint quickly affects connected parts. If an RL agent's world model ignores these instantaneous dependencies, it builds a distorted view of reality. This research demonstrates that this distortion is not merely a minor inaccuracy—it prevents the agent from finding the truly optimal policy.

Methodology

The researchers address this problem through theoretical formalization and algorithmic innovation:

  1. Optimality-Consistency: They define a world model as "consistent" if the best policy learned within that model is also the best policy in the real environment. They prove that "lagged" models are generally optimality-inconsistent, leading agents to incorrect conclusions about optimal actions.
  2. The Instantaneous (INS) Model: To rectify this, they propose a model that accounts for non-diagonal covariance. While standard models predict the mean and variance of each state variable independently, the INS model learns a correlation coefficient matrix ($\Gamma$).
  3. Plug-and-Play Algorithm: This approach was integrated into the Model-Based Policy Optimization (MBPO) framework. Instead of sampling independent noise for each state dimension during planning, the agent samples from a multivariate normal distribution reflecting the learned correlations.

Experimental Evaluation

The approach was evaluated across three distinct environments:

  • 1-D Driving: A custom environment used to visualize how lagged vs. instantaneous models result in different decision-making boundaries.
  • Modified CartPole: A benchmark modified with specific reward terms to validate theoretical conditions regarding when instantaneous dependence is most critical.
  • MuJoCo Benchmarks: Standard high-dimensional physics simulations (Inverted Pendulum, Hopper, HalfCheetah, and Walker2d) modified with dependent noise to simulate real-world physical dependencies.

Key Results and Analysis

Visualization of Failure

In the 1-D driving task, the authors produced policy maps comparing the INS and LAG models. The results show that the lagged model chooses the wrong action in a significant portion of the state space, whereas the INS model matches the ground truth.

Comparison of decision boundaries between INS and LAG models in a 1-D driving task.

Performance and Reward Sensitivity

Across all tasks, the INS model achieved higher policy returns and lower likelihood loss compared to the standard lagged baseline. A critical insight is that the gap between models widens when the reward function depends on the interaction between variables (e.g., a reward based on the sum of two joint angles). This sensitivity highlights that ignoring the correlation of noise leads to risky or inefficient behavior.

Policy return and return gap across different reward functions, highlighting the performance advantage of the INS model.

Conclusion

This work identifies a fundamental flaw in traditional MBRL: the assumption of lagged dependence. By introducing a simple method to capture instantaneous correlations, the authors demonstrate significant improvements in policy performance and model accuracy. Future work may explore incorporating explicit causal discovery to make these models even more robust in high-dimensional or offline reinforcement learning settings.

Summary updated

BibTeX
@misc{zhu2023beware,
  author = {Zheng-Mao Zhu and Yu-Ren Liu and Hong-Long Tian and Yang Yu and Kun Zhang},
  title = {{Beware of Instantaneous Dependence in Reinforcement Learning}},
  year = {2023},
  eprint = {2303.05458},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.05458},
}
Figure