Policy Regularization on Globally Accessible States in Cross-Dynamics Reinforcement Learning

Zhenghai Xue, Lang Feng, Jiacheng Xu, Kang Kang, Xiang Wen, Bo An, Shuicheng Yan

Introduction

Reinforcement Learning (RL) often struggles when transferring policies between environments with different physics or dynamics. Expert behaviors that are optimal in one setting may be physically impossible in another. To address this, researchers have introduced ASOR (Accessible State Oriented Policy Regularization), a novel framework that identifies and imitates expert behaviors exclusively on "globally accessible" states—those reachable across all dynamics—while maximizing standard rewards elsewhere.

The Challenge: State Accessibility Shift

In "Cross-Dynamics" RL, agents are trained using data from multiple environments (e.g., a robot simulation with varying gravity or friction). A common approach to this is Imitation from Observation (IfO), which attempts to make the agent's state distribution match that of an expert.

However, a critical flaw in standard IfO is state accessibility shift. When environment dynamics change, certain states visited by the expert might become inaccessible. For instance, an autonomous vehicle can safely drive at high speeds in low traffic, but that same "high-speed state" is physically impossible—or highly dangerous—in dense traffic. Standard imitation methods blindly attempt to reach these impossible states, leading to misleading gradients and poor policy performance.

Grid world illustrating state accessibility shift

The ASOR Framework

To overcome the delusion of imitating impossible states, the authors propose a framework that combines reward maximization with a constrained imitation objective.

  1. Globally Accessible States ($S^+$): The framework formally defines these as states that can be reached under any of the considered environment dynamics.
  2. $\mathcal{F}$-distance Regularization: Instead of standard, blanket imitation, ASOR uses a mathematical constraint based on $\mathcal{F}$-distance. This ensures the agent's state distribution matches the expert's only on these globally accessible states.
  3. Practical Implementation: ASOR acts as a "plug-and-play" module for existing RL algorithms (like PPO or Soft Actor-Critic). It utilizes a GAN-like discriminator to identify "good" states—those with both high predicted value from the RL agent and high visitation frequency (a proxy for accessibility). The discriminator's output is then converted into an augmented reward, encouraging the agent to stay within safe, expert-like regions that are actually reachable.

Key Insights and Theoretical Guarantees

  • Surpassing the Expert: Pure imitation learning is inherently limited by the expert's performance. By integrating reward maximization with selective imitation, ASOR allows the agent to potentially surpass the expert data it learns from.
  • Selective Imitation is Safer: Filtering for globally accessible states prevents the agent from wasting exploration on states the current physics will not allow.
  • Tighter Theoretical Bounds: The authors prove that their approach provides a performance lower-bound with a linear dependency on the planning horizon. Because most previous methods have a quadratic dependency, ASOR offers significantly more robust performance guarantees for long-term tasks.

Empirical Results

The researchers evaluated ASOR across a diverse set of benchmarks, including MuJoCo robotics tasks (with varying body masses and joint damping), the MetaDrive autonomous driving simulator, and a high-dimensional "Fall Guys"-like Battle Royale environment.

Learning curves comparing ASOR against baselines across multiple environments

ASOR consistently outperformed state-of-the-art cross-domain transfer algorithms (such as MAPLE, DARA, and SRPO) in both offline and online settings:

  • Offline RL: On MuJoCo tasks, ASOR achieved the highest average normalized score (0.45) compared to the next best baseline (0.40).
  • Online RL: In the complex "Fall Guys" environment, PPO+ASOR achieved a success rate of 0.387, significantly higher than standard PPO (0.361) and PPO+SRPO (0.376).
  • Qualitative Success: In the Walker2d environment, ASOR's augmented reward correctly identified states where the robot was about to fall over as "bad" before the environment reward dropped, effectively acting as a proactive safety signal.

Limitations and Future Work

While powerful, ASOR currently assumes the reward function remains static across different dynamics. If the goal itself changes alongside the physics, the framework may require modification. Additionally, theoretical guarantees weaken in "adversarial" Markov Decision Processes (MDPs) where there is a massive reward discrepancy between accessible and inaccessible states. Finally, the current iteration is not designed for tasks with multiple, competing reward functions.

Future work may involve extending this accessibility-aware logic to multi-agent systems or environments where agents must adapt to entirely new goals in addition to shifting physics.

Summary updated

BibTeX
@inproceedings{xue2025policy,
  author = {Zhenghai Xue and Lang Feng and Jiacheng Xu and Kang Kang and Xiang Wen and Bo An and Shuicheng YAN},
  title = {{Policy Regularization on Globally Accessible States in Cross-Dynamics Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=Go0DdhjATH},
}
Figure