Reinforcement learning (RL) has achieved remarkable success in simulated environments, from mastering Go to controlling complex robotic limbs. However, a persistent "reality gap" remains: a policy that performs perfectly in a simulator often fails catastrophically when deployed on physical hardware.
This failure is rarely due to a lack of intelligence in the agent. Instead, it stems from dynamics mismatch. Simulators are mathematical approximations of reality; they often fail to capture the nuances of friction, motor latency, mass distribution, or aerodynamic turbulence. When the transition probabilities $P(s'|s,a)$ of the training environment differ from the target environment, the agent’s optimized strategies become "simulator hacks"—behaviors that exploit the specific, flawed physics of the virtual world.
The Challenge of Off-Dynamics Transfer
The core of the problem is that standard RL assumes the training and deployment environments are identical. Lei Han and colleagues in Relative Policy-Transition Optimization liken this to training a pilot in a simulator and then placing them in a cockpit where gravity is 20% stronger. Even if the controls are identical, the "feel" of the physics has shifted.
This discrepancy is often referred to as the off-dynamics problem. As Paul Daoudi and others note in their work on FOOD, agents often develop brittle strategies that rely on precise timing or specific physical constants that simply do not exist in the real world. To bridge this gap, researchers have moved away from seeking a single "optimal" policy toward seeking policies that are inherently robust to variations in underlying physics.
Robustness Through Adversarial Diversity
One intuitive way to handle uncertainty is to train the agent on a wide variety of possible worlds. This is the foundation of Domain Randomization (DR). Instead of a single simulator, Aravind Rajeswaran and Sergey Levine proposed EPOpt (Learning Robust Neural Network Policies Using Model Ensembles), which trains policies on an ensemble of simulated environments. By focusing on the "worst-case" scenarios within these ensembles, the agent learns a policy that is conservative enough to succeed across a range of physical parameters.
Recent work has pushed this further by using generative models to create these "worst-case" scenarios. Daniele Foffano and colleagues introduced AD-RRL (Adversarial Diffusion for Robust Reinforcement Learning), which uses diffusion models to "dream up" trajectories that are specifically designed to be difficult for the agent. This adversarial approach forces the agent to find solutions that do not rely on fragile physical assumptions.
Penalizing Simulator Exploitation
Rather than just training on more data, some researchers focus on identifying and penalizing "unrealistic" behavior. Benjamin Eysenbach and his team developed DARC (Off-Dynamics Reinforcement Learning: Training for Transfer with Domain Classifiers), which uses a binary classifier to distinguish between transitions in the simulator and transitions in the real world.
The intuition is elegant: if a classifier can easily tell that a specific movement was performed in the simulator, that movement likely relies on "simulator-only" physics. By modifying the reward function to penalize these transitions, DARC encourages the agent to stay within the "shared" physics of both domains. Similarly, Kang Xu proposed Value-Guided Data Filtering (VGDF) (Cross-Domain Policy Adaptation via Value-Guided Data Filtering), which selectively "borrows" data from the source domain only when it aligns with the long-term value expectations of the target domain.
Real-Time Adaptation and Control
While training for robustness is powerful, it is often impossible to simulate every possible real-world disturbance, such as a sudden motor failure or a change in wind speed. To address this, researchers like Pan Zhao have explored combining RL with classical control theory.
In Improving the Robustness of Reinforcement Learning Policies with L1 Adaptive Control, the authors wrap a pre-trained RL policy with an $L_1$ adaptive controller. While the RL policy provides the high-level "intelligence," the adaptive controller works in real-time to compensate for deviations between the expected and actual dynamics. This hybrid approach allows the system to maintain stability even when the environment shifts in ways the agent never saw during training.
Learning Invariant Representations
A final perspective on the dynamics mismatch problem is to change what the agent learns. Standard RL agents often overfit to "distractor" features—spurious correlations in the training data that don't hold in reality.
Invariant Policy Optimization (IPO) (Invariant Policy Optimization: Towards Stronger Generalization in Reinforcement Learning) addresses this by forcing the agent to learn representations that are optimal across multiple different training environments. By identifying the causal drivers of success that remain constant despite changing physics, the agent achieves better zero-shot generalization. This is echoed by Lokesh Krishna and Ayonga Hereid, who demonstrated that even simple linear policies can outperform deep neural networks in robustness because they are less prone to overfitting to the specific high-dimensional noise of a simulator.
Through these diverse lenses—adversarial training, reward grounding, adaptive control, and invariant learning—the field is moving toward a future where the "reality gap" is no longer a barrier, but a manageable parameter in the design of autonomous systems.