The reality gap is the performance discrepancy between an AI policy's behavior in a simulation and its behavior when deployed on physical hardware. This gap arises from simulation bias—the inevitable inaccuracies and simplifications in the simulated model of physics, sensors, and actuators compared to the real world. It is the core problem that sim-to-real transfer learning techniques aim to solve.
Primary Causes of the Reality Gap
The reality gap arises from systematic discrepancies between the simulated training environment and the physical world. These mismatches are categorized into four core areas of divergence.
Dynamics Mismatch
This is the divergence between the simulated physics model and the true physical dynamics of the real system. It is often the most significant contributor to the reality gap.
- Inaccurate Contact Modeling: Simplified collision detection and response, missing complex friction models (e.g., stiction), and imperfect restitution coefficients.
- Actuator Dynamics: Simulation often models motors as perfect torque sources, ignoring real-world effects like saturation, backlash, non-linear damping, and communication latency.
- Mass and Inertia Properties: Slight inaccuracies in the CAD model used for simulation versus the as-built robot's true inertial properties.
- Example: A simulated robotic arm may swing a payload with perfect rigidity, while the real arm exhibits structural flex and joint compliance.
Observation Space Mismatch
The difference between the perceptual data available in simulation and the data stream from real sensors. This forces the policy to process unfamiliar, noisy signals.
- Sensor Noise and Latency: Simulations provide clean, instantaneous state vectors, while real sensors (IMUs, encoders) have Gaussian noise, drift, and processing delays.
- Rendering vs. Reality: Synthetic camera images lack the complex lighting conditions, motion blur, lens distortion, and sensor artifacts (e.g., rolling shutter) of physical cameras.
- Proprioceptive Differences: Simulated joint position may be perfect, while real encoders have quantization error and absolute positioning inaccuracy.
- Missing Modalities: Simulation may omit sensor data that is critical in reality, such as motor temperature, current draw, or vibration readings.
Simulation Bias and Simplification
Intentional or necessary abstractions and approximations in the simulation engine that create a systematically different world from reality.
- Discretization: Physics engines use fixed time steps for integration, which can alias high-frequency dynamics or miss brief contact events.
- Computational Shortcuts: Use of convex collision meshes instead of true geometry, or simplified fluid and aerodynamics models.
- Determinism: Simulations are often perfectly deterministic, while the real world has inherent stochasticity.
- Example: A simulation for a legged robot may use a flat-ground assumption, failing to capture the complex compliance and damping of real terrain like grass or gravel.
Unmodeled Environmental Variability
The real-world environment contains a vast, often unpredictable, set of variables that are impractical to fully model in simulation.
- Visual Domain Shift: Object textures, lighting (time of day, shadows), and background clutter that differ from synthetic assets.
- Physical Perturbations: Unanticipated external forces like wind gusts, vibrations from other machinery, or human interaction.
- Wear and Tear: Changes in system performance over time due to component degradation, battery drain, or mechanical loosening.
- Example: A drone policy trained in simulation with constant air density may fail in real-world conditions with varying temperature and air pressure, which affect lift.
Action Space and Control Mismatch
Discrepancies between the commanded actions in simulation and their executed effects on the real hardware due to low-level control and hardware limits.
- Control Frequency: The policy may output actions at a simulated frequency (e.g., 50Hz) that is unsustainable on real hardware with slower sensor fusion or bus communication.
- Actuation Limits: Real actuators have torque/speed limits, thermal constraints, and safety cut-offs not enforced in simulation.
- Low-Level Controller Fidelity: Simulation often assumes perfect tracking of high-level commands (e.g., desired joint angle), whereas real PID or impedance controllers have error and overshoot.
- Example: A policy commanding aggressive, high-frequency torque changes may cause the real motor drivers to overheat and shut down, a failure mode never seen in training.
Compounding and Cascading Errors
The non-linear interaction of individual mismatches, where small errors in one subsystem amplify through the system, leading to large behavioral divergence.
- Temporal Integration: A slight error in simulated dynamics causes a robot's predicted state to drift increasingly from its true state over time.
- Perception-Action Loop: Noisy observations lead to suboptimal actions, which put the robot into states the policy has never encountered, exacerbating the effect of dynamics mismatch.
- Lack of Recovery Behaviors: Policies trained in a forgiving simulation may not learn robust failure recovery strategies needed to handle the cascading errors of the real world.
- This emergent phenomenon is why addressing individual causes in isolation is often insufficient for successful sim-to-real transfer.




