The Mathematics of Sim-to-Real Gap
Ten Algorithms

From Perturbed Markov Decision Processes to Deployed Robots

Abhishek Gupta

Associate Professor, ECE | The Ohio State University
Co-Director, IITB-OSU Frontier Center
Founder, Ensemble Control Inc. (https://ensemblecontrol.com/)

The Sim-to-Real Economics: Compute vs. Data

The sim-to-real gap is a resource allocation problem. Closing the gap means trading off two expensive resources:

Compute (GPU Hours)

  • Highly scalable, cheaper at the margin

  • Bound by fidelity limits (contact physics, soft bodies)

  • Risk: Overfitting to a flawed simulator wastes months of compute.

Real-World Data (Robot Hours)

  • Non-scalable, expensive (requires human supervision)

  • True ground-truth physics

  • Risk: Hardware damage, safety incidents during early training.

Tip

The Architectural Mandate

You cannot solve the gap with just more compute or just more data. A modern production robotics architecture must be designed to use compute to minimize the need for real data, and spend real data only when it is most valuable (e.g., fine-tuning).

Why Train in Simulation at All?

Every simulator is an approximate model of the physical world (see embodiment gap below). The policy that is optimal in the simulator is not optimal on the robot — and can have degraded performance for seemingly minor reasons.

Buzzwords and What they Mean

The sim-to-real gap

The performance a policy loses when it is trained under one dynamical model and deployed under another. This talk: what that loss is mathematically, and ten ways to shrink it.

The Embodiment Gap

The discrepancy between the physical characteristics of the simulated robot and the actual hardware in the real world (e.g., differences in mass, friction, actuators, and unmodeled physical phenomena).

The Plan For This Presentation

Part I — Theory of the gap

  • Two MDPs: the simulator \(\hat M\) and reality \(M\)
  • The gap functional and the Simulation Lemma
  • Total variation vs. Wasserstein bounds
  • The gap as a perturbed fixed point
  • Where the gap physically comes from (the embodiment gap)
  • Three mathematical stances: robust, adaptive, data-driven

Part II — Ten methods, classified

  • A. Robustify — domain randomization, robust/adversarial RL
  • B. Calibrate — system ID, adaptive DR, residual dynamics
  • C. Adapt — teacher–student, online estimation, meta-RL
  • D. Correct with real data — perception alignment, real-world fine-tuning

Formal Setup: Reality Is a Perturbed MDP

Simulator: \(\hat M = (\mathcal X, \mathcal A, \hat P, \hat r, \gamma)\) — the model we train in.

Reality: \(M = (\mathcal X, \mathcal A, P, r, \gamma)\) — the actual system model where the policy interacts with the real world. \(P\) is unknown.

Value of a policy \(\pi\) in model \(M\): \[ J_M(\pi) \;=\; \mathbb E^{\pi}_{M}\Bigl[\textstyle\sum_{t=0}^{\infty} \gamma^{t}\, r(x_t, a_t)\Bigr], \qquad V^\pi_M(x) = \mathbb E^{\pi}_{M}\bigl[\cdot \mid x_0 = x\bigr] \]

We train \(\hat\pi \approx \arg\max_\pi J_{\hat M}(\pi)\) but we are graded on \(J_{M}(\hat\pi)\).

Two distinct quantities, often conflated

(a) the evaluation gap \(\;\Delta(\pi) = J_{\hat M}(\pi) - J_{M}(\pi)\) for a fixed \(\pi\), and

(b) the transfer regret \(\;\mathcal R = J_M(\pi^*_M) - J_M(\hat\pi)\) — what we actually lose by optimizing the wrong model.

There could also be faster dynamics in the system that is ignored in the simulation – this gives rise to singularly perturbed systems

Where the Gap Physically Comes From

The abstract error \(\hat P \ne P\) decomposes into distinct physical channels — each attacked by different methods in Part II:

Channel Typical culprit Mathematical form
Dynamics parameters mass, friction, CoM, motor constants \(f_{\hat\xi}\) vs. \(f_{\xi^\star}\), \(\xi^\star\) unknown
Unmodeled dynamics backlash, cable stretch, contact softness \(P \notin \{P_\xi : \xi \in \Xi\}\)model class bias
Actuation latency, torque limits, PD-loop bandwidth composition with an unmodeled actuator map \(g\)
Observation rendering vs. camera, sensor noise emission \(q(o\mid x) \ne \hat q(o \mid x)\)
Reset & task distribution initial states, object geometry \(\rho_0 \ne \hat\rho_0\)

The POMDP view unifies them

Reality is the POMDP whose hidden static variable is \(\xi^\star\): state \((x_t, \xi^\star)\), observation \(o_t\). Every method in this talk is an approximation to the Bayes-adaptive optimum — the policy that plans under the posterior \(p(\xi \mid o_{1:t}, a_{1:t})\). Memoryless policies average over \(\xi\); recurrent/adaptive policies infer it.

Notation

Symbol Meaning
\(x_t,\ a_t,\ o_t\) robot state, motor action, raw observation (pixels, proprioception)
\(P(\cdot\mid x,a),\ \hat P(\cdot\mid x,a)\) real and simulated transition kernels
\(\xi \in \Xi\) physical (domain) parameters: masses, friction, latency, motor gains
\(M_\xi\) the simulator instantiated at parameters \(\xi\); reality \(\approx M_{\xi^\star}\)
\(\pi_\theta,\ J_M(\pi)\) policy and its expected discounted return in model \(M\)
\(T^\pi_M,\ T_M\) Bellman evaluation / optimality operator of model \(M\)
\(\lVert \mu - \nu \rVert_{TV}\) total variation distance \(\; \sup_{A} \lvert \mu(A) - \nu(A)\rvert\)
\(W_1(\mu,\nu)\) Wasserstein-1 distance \(\;\inf_{\text{couplings}} \mathbb E\,\lVert X - Y\rVert\)
\(\hat z_t = \phi(x_{t-k:t}, a_{t-k:t})\) on-line estimate of the latent domain parameters

Part I — The Mathematics of the Gap

The Gap Functional and Transfer Regret

Deploy the simulator optimum \(\hat\pi \in \arg\max_\pi J_{\hat M}(\pi)\) on real system. Then the transfer regret obeys

\[ \underbrace{J_M(\pi_M^*) - J_M(\hat\pi)}_{\text{what we lose in reality}} \;=\; \underbrace{\bigl[J_M(\pi^*_M) - J_{\hat M}(\pi^*_M)\bigr]}_{\le\, \sup_\pi |\Delta(\pi)|} + \underbrace{\bigl[J_{\hat M}(\pi^*_M) - J_{\hat M}(\hat\pi)\bigr]}_{\le\, 0 \ \text{(by optimality of } \hat\pi)} + \underbrace{\bigl[J_{\hat M}(\hat\pi) - J_M(\hat\pi)\bigr]}_{\le\, \sup_\pi |\Delta(\pi)|} \]

Corollary (the gap controls everything)

\[ J_M(\pi_M^*) - J_M(\hat\pi) \;\le\; 2 \sup_{\pi} \bigl| J_{\hat M}(\pi) - J_M(\pi) \bigr| \] Uniform closeness of values over the policy class — not pointwise accuracy of the physics — is the currency of sim-to-real.

So the entire field reduces to one question: how does \(|J_{\hat M}(\pi) - J_M(\pi)|\) scale with model error?

The Simulation Lemma

Simulation Lemma (Kearns & Singh 2002)

If \(\;\sup_{x,a}\lVert \hat P(\cdot\mid x,a) - P(\cdot\mid x,a)\rVert_{TV} \le \varepsilon_P\;\) and \(\;\sup_{x,a} |\hat r - r| \le \varepsilon_r\), with \(|r| \le R_{\max}\), then for every policy \(\pi\): \[ \bigl| J_{\hat M}(\pi) - J_M(\pi) \bigr| \;\le\; \frac{\varepsilon_r}{1-\gamma} \;+\; \frac{\gamma\, \varepsilon_P\, R_{\max}}{(1-\gamma)^2} \]

Proof in one line (telescoping over when the models first disagree): \[ V^\pi_{\hat M} - V^\pi_M = \sum_{t\ge0} \gamma^{t}\, \mathbb E^\pi_{M}\Bigl[ (\hat r - r) + \gamma \bigl(\hat P - P\bigr) V^{\pi}_{\hat M} \Bigr] \quad\text{and}\quad \bigl|(\hat P - P) V\bigr| \le \varepsilon_P \lVert V\rVert_\infty . \]

Read the exponent

The gap scales as \((1-\gamma)^{-2}\) — an effective-horizon-squared amplification. Long-horizon tasks (locomotion, manipulation sequences) magnify tiny physics errors. This is why sim-to-real is hard, in one exponent.

TV Is the Wrong Metric for Robotics — Use Wasserstein over Riemannian Manifold

For deterministic dynamics \(x' = f_\xi(x,a)\), any parameter error makes \(\lVert \hat P - P \rVert_{TV} = 2\): the TV bound is vacuous, yet a 1% mass error barely matters. The fix: metrics that see geometry, not just overlap.

Lipschitz refinement of the Simulation Lemma

If \(V^\pi_{\hat M}\) is \(L_V\)-Lipschitz (guaranteed when \(r\) is \(L_r\)-Lipschitz, \(P\) is \(L_P\)-Lipschitz in \(W_1\), and \(\gamma L_P < 1\), with \(L_V \le \tfrac{L_r}{1-\gamma L_P}\)), then \[ \bigl| J_{\hat M}(\pi) - J_M(\pi) \bigr| \;\le\; \frac{\gamma\, L_V}{1-\gamma}\; \sup_{x,a}\, W_1\!\bigl(\hat P(\cdot\mid x,a),\, P(\cdot\mid x,a)\bigr) \]

  • \(W_1(\hat P, P)\) for deterministic models is just \(\lVert f_{\hat\xi}(x,a) - f_{\xi^\star}(x,a)\rVert\)small when the physics is nearly right
  • Smoothness of the closed loop is now a design objective: smooth policies ⇒ small \(L_V\) ⇒ transferable 1

The Gap as a Perturbed Fixed Point

Value functions are fixed points: \(V_M = T_M V_M\), \(\;V_{\hat M} = T_{\hat M} V_{\hat M}\), each \(T\) a \(\gamma\)-contraction. Standard perturbation bound for contractions:

\[ \lVert V_M - V_{\hat M} \rVert_\infty \;\le\; \frac{1}{1-\gamma}\, \sup_{V} \bigl\lVert T_M V - T_{\hat M} V \bigr\rVert_\infty \]

Now note what training with randomized physics actually does — it iterates a random operator:

\[ V_{k+1} \;=\; \hat T_{\xi_k} V_k, \qquad \xi_k \stackrel{iid}{\sim} p(\xi) \]

There is no fixed point anymore; \((V_k)\) is a Markov chain in value-function space. 1 2

Three Mathematical Stances Toward an Unknown \(P\)

\[ \textbf{(R) Robust:}\quad \max_\pi \min_{P' \in \mathcal P} J_{P'}(\pi), \qquad \mathcal P = \bigl\{ P' : d(P', \hat P) \le \rho \bigr\} \]

\[ \textbf{(B) Bayesian / adaptive:}\quad \max_{\pi \in \Pi_{\text{hist}}} \ \mathbb E_{\xi \sim p}\bigl[ J_{M_\xi}(\pi) \bigr] \quad \text{— infer } \xi \text{ while acting} \]

\[ \textbf{(D) Data-driven correction:}\quad \hat P \leftarrow \text{update}(\hat P;\ \text{real rollouts}), \quad \text{or fine-tune } \pi \text{ on } M \]

  • (R) pays a conservativeness price but needs zero real data — worst-case value \(\le\) true value
  • (B) pays an identification price — regret while the posterior concentrates
  • (D) pays in real samples and risk — exactly the resource simulation was meant to save

The ten methods of Part II are engineering instantiations of (R), (B), (D) — and hybrids. Classify a paper by which stance it takes, and you know its failure modes.

Part II — Ten Methods, Classified

The Taxonomy

# Method Family Stance Real data?
1 Domain randomization A. Robustify in sim average-case (R/B) none
2 Robust & adversarial RL A. Robustify in sim worst-case (R) none
3 System ID & actuator nets B. Calibrate the sim (D) offline small, offline
4 Adaptive / Bayesian DR B. Calibrate the sim (B)+(D) loop small, iterative
5 Grounded sim / residual dynamics B. Calibrate the sim (D) on \(\hat P\) moderate
6 Teacher–student distillation C. Adapt at deployment (B) amortized none
7 Online estimation (RMA / OSI) C. Adapt at deployment (B) explicit none
8 Meta-learning C. Adapt at deployment (B) in weights none / few shots
9 Observation alignment (visual) D. Correct with real data (D) on \(q(o\mid x)\) unlabeled images
10 Real fine-tuning & residuals D. Correct with real data (D) on \(\pi\) on-robot RL

A–B act before deployment; C adapts at deployment without real training; D spends real data.

Method 1 — Domain Randomization

Train one policy against a distribution of simulators:

\[ \max_\theta \; \mathbb E_{\xi \sim p(\xi)} \bigl[ J_{M_\xi}(\pi_\theta) \bigr] \]

  • With a memoryless \(\pi_\theta\): average-case stochastic program — the policy hedges across physics it cannot distinguish
  • With a recurrent \(\pi_\theta(a\mid o_{1:t})\): approximates the Bayes-adaptive optimum — memory implements the posterior over \(\xi\)
  • Guarantee flavor: if \(\xi^\star \in \mathrm{supp}(p)\) and the policy class is rich, randomized training bounds real performance by the width of \(p\); too-wide \(p\) ⇒ conservative, too-narrow ⇒ gap returns

Method 2 — Robust and Adversarial RL

Replace the average by a minimax — stance (R) in its pure form:

\[ \max_\theta \min_{P' \in \mathcal P} J_{P'}(\pi_\theta) \qquad\Longleftrightarrow\qquad \max_\theta \min_{\omega} J\bigl(\pi_\theta, \pi^{\text{adv}}_\omega\bigr) \]

  • Robust MDP theory: for rectangular ambiguity sets the robust Bellman operator is a contraction and the minimax value exists (Iyengar 2005; Nilim & El Ghaoui 2005)
  • RARL (Pinto et al., ICML 2017): the inner minimization is a learned adversary injecting forces — a two-player zero-sum Markov game
  • EPOpt (Rajeswaran et al., ICLR 2017): optimize the CVaR tail of \(J_{M_\xi}\) over \(\xi\) — interpolates smoothly between DR (mean) and robust (worst case) 1

Method 3 — System Identification & Actuator Modeling

Shrink \(d(\hat P, P)\) directly: fit the simulator to real trajectories before training.

\[ \hat\xi \;=\; \arg\min_{\xi} \sum_{i} \bigl\lVert x^{\text{real}}_{i+1} - f_\xi\bigl(x^{\text{real}}_i, a_i\bigr) \bigr\rVert^2 \qquad\text{(classical gray-box ID)} \]

The decisive modern refinement: identify the actuator, not just the rigid body —

\[ \tau_t = g_\eta\bigl(\text{command}_{t-k:t},\ \dot q_{t-k:t}\bigr) \quad \text{(a learned network in the sim loop)} \]

  • Hwangbo et al., Science Robotics 2019: an actuator net + randomization
  • Tan et al., RSS 2018: careful motor/latency ID for Minitaur locomotion
  • By the Wasserstein bound: every bit of \(W_1(\hat P, P)\) removed by ID is a \(\frac{\gamma L_V}{1-\gamma}\)-for-one reduction in the gap

Calibration and randomization are complements, not rivals: identify what you can, randomize what you cannot.

Method 4 — Adaptive / Bayesian Domain Randomization

Close an outer loop over the randomization distribution itself — a bilevel program:

\[ \min_{p \in \mathcal P_\Xi} \; D\Bigl( \mathbb P^{\text{real}}_{\tau},\ \mathbb E_{\xi\sim p}\, \mathbb P^{\text{sim},\xi}_{\tau} \Bigr) \qquad \text{s.t.} \qquad \pi_p = \arg\max_\theta \mathbb E_{\xi \sim p} J_{M_\xi}(\pi_\theta) \]

  • SimOpt (Chebotar et al., ICRA 2019): iteratively reweight \(p(\xi)\) to match real trajectory statistics
  • BayesSim (Ramos et al., RSS 2019): likelihood-free posterior \(p(\xi \mid \tau^{\text{real}})\) by simulation-based inference
  • ADR (OpenAI, 2019 — Rubik’s cube): expand the ranges automatically until performance saturates — a curriculum over \(\Xi\) 1

Method 5 — Grounded Simulation & Residual Dynamics

Do not re-fit \(\xi\)learn the model-class bias itself from real rollouts (stance D applied to \(\hat P\)):

\[ x_{t+1} \;=\; \underbrace{f_{\hat\xi}(x_t, a_t)}_{\text{physics engine}} \;+\; \underbrace{g_\theta(x_t, a_t)}_{\text{learned residual}} \qquad\text{or}\qquad \hat P \;\to\; \hat P \circ h_\theta \ \ \text{(action transformation)} \]

  • GAT / Grounded Simulation Learning (Hanna & Stone, AAAI 2017): learn an action transformation \(h_\theta\) so simulated trajectories match real ones; policy improvement in the grounded sim provably transfers under mild conditions
  • Neural-augmented simulation (Golemo et al., CoRL 2018): LSTM predicts the sim-vs-real state difference
  • Handles unmodeled dynamics (backlash, cable drives) that no \(\xi \in \Xi\) can express — the channel Methods 3–4 cannot fix

Tip

Where do “World Models” fit?

Modern World Models (e.g., DayDreamer, large video-predictive models) are the deep-learning extreme of Method 5. Instead of learning a residual on top of a physics engine, they learn the entire transition kernel \(\hat P\) from offline real-world trajectories. This turns the sim-to-real gap into a pure representation-learning problem.

Residual dynamics is real-to-sim: move reality’s information into the simulator, then keep training where data is free.

Method 6 — Privileged Teacher–Student Distillation

Exploit the simulator’s superpower: it knows \(\xi\) and the full state.

Step 1 (teacher, RL in sim): train \(\pi^{T}(x_t, \xi)\) with privileged access — an easy, fully-observed MDP. Step 2 (student, supervised): distill into a deployable policy that sees only sensor history:

\[ \min_{\psi}\ \mathbb E_{\xi \sim p,\ \tau \sim \pi^S} \Bigl[ \bigl\lVert \pi^S_\psi(o_{1:t}) - \pi^T(x_t, \xi) \bigr\rVert^2 \Bigr] \qquad \text{(DAgger-style, on-policy states)} \]

  • The student’s recurrent encoder is forced to implicitly infer \(\xi\) from observable history — amortized Bayesian filtering, learned by regression
  • Lee et al., Science Robotics 2020 (ANYmal on challenging terrain); Miki et al., Science Robotics 2022; “Learning by Cheating” (Chen et al., CoRL 2019) for driving
  • Distillation is a KL/M-projection of the privileged optimum onto the deployable information pattern — a decentralization step, in team-theoretic language

The gap between teacher and student is precisely the value of information of knowing \(\xi\) — a quantity team theory has studied for decades.

Method 7 — Online Latent Estimation (RMA / OSI)

Make the inference of Method 6 explicit and fast:

\[ \hat z_t = \phi\bigl(x_{t-k:t},\ a_{t-k:t}\bigr) \;\approx\; z = e(\xi), \qquad a_t \sim \pi\bigl(\cdot \mid x_t,\ \hat z_t\bigr) \]

  • UP-OSI (Yu et al., RSS 2017): universal policy \(\pi(x,\xi)\) + online system identifier, trained jointly
  • RMA (Kumar et al., RSS 2021): adaptation module \(\phi\) regresses the encoding \(z\) from proprioceptive history; runs at control rate; quadrupeds cross oil, sand, payload changes zero-shot
  • Two-timescale structure: fast control loop, slow estimation loop — a singular-perturbation architecture 1 2 3

Method 8 — Meta-Learning for Fast Adaptation

Move adaptation into the training objective: optimize for post-adaptation performance.

\[ \max_\theta \; \mathbb E_{\xi \sim p(\xi)} \Bigl[ J_{M_\xi}\bigl( U_\xi(\theta) \bigr) \Bigr], \qquad U_\xi(\theta) = \theta + \alpha \nabla_\theta J_{M_\xi}(\pi_\theta) \ \ \text{(MAML inner step)} \]

  • MAML (Finn et al., ICML 2017): \(U_\xi\) = a few real gradient steps; the meta-parameters are a prior positioned for fast descent on any \(M_\xi\)
  • PEARL (Rakelly et al., ICML 2019): \(U_\xi\) = posterior inference over a latent task variable — the explicitly Bayesian version (and the bridge to Method 7)
  • Nagabandi et al., ICLR 2019: meta-learned dynamics models adapt online to damage and terrain on a real hexapod

Methods 6, 7, 8 are one idea at three levels: adapt in activations (recurrence), in an explicit latent (\(\hat z_t\)), or in weights (\(\theta\)). All approximate the Bayes-adaptive policy under the DR prior \(p(\xi)\).

Method 9 — Observation-Space Alignment

The gap also lives in the emission map: \(\hat q(o \mid x) \ne q(o \mid x)\) — rendered pixels are not camera pixels. Align the observation spaces, not the physics:

\[ \min_{G}\ \mathbb E\bigl[ \mathcal L_{\text{task}}\bigl(\pi(G(o))\bigr) \bigr] + \lambda\, \mathcal L_{\text{GAN}}(G) \qquad \text{map both domains into one canonical space} \]

  • RCAN (James et al., CVPR 2019): translate randomized and real images into a canonical rendering; policy trains only on canonical images
  • GraspGAN (Bousmalis et al., ICRA 2018): pixel-level sim→real translation; cut real-data needs for grasping by up to 50×
  • Feature-level: adversarial feature invariance (DANN, Ganin et al. 2016) — \(\min_F \max_D\) so no discriminator can tell sim features from real
  • Visual DR (Method 1) is the degenerate case: make \(q_{\text{sim}}\) so wide that \(q_{\text{real}}\) is inside it

Methods 1–8 estimates \(P\); this fixes observation kernel \(q(o\mid x)\). A full stack needs both — they fail independently.

Method 10 — Real-World Fine-Tuning & Residual Policies

Spend real data last, where it is worth the most — on the policy itself:

\[ a_t = \underbrace{\pi_{\text{sim}}(x_t)}_{\text{frozen prior}} + \underbrace{\pi^{\text{res}}_\theta(x_t)}_{\text{trained on robot}} \qquad\text{or}\qquad \theta_{\text{real}} \leftarrow \text{RL fine-tune}(\theta_{\text{sim}};\ \text{on-robot rollouts}) \]

  • Residual policy learning (Silver et al. 2018; Johannink et al., ICRA 2019): the sim policy provides exploration and safety; the residual only learns the correction — a far easier RL problem
  • A Walk in the Park (Smith, Kostrikov & Levine, 2022): sim-pretrained locomotion fine-tunes on real terrain in ~20 minutes
  • Offline-to-online: pretrain on sim + logged real data with pessimism, then fine-tune 1 2 3

The Ten Methods on One Slide

# Method Core mathematics Key references
1 Domain randomization stochastic program over \(p(\xi)\) Tobin ’17; Peng ’18
2 Robust / adversarial RL minimax, robust Bellman, CVaR Pinto ’17; Iyengar ’05; Rajeswaran ’17
3 System ID + actuator nets nonlinear least squares in the loop Tan ’18; Hwangbo ’19
4 Adaptive / Bayesian DR bilevel opt., simulation-based inference Chebotar ’19; Ramos ’19; OpenAI ’19
5 Grounded sim / residual dynamics residual regression on \(\hat P\) Hanna–Stone ’17; Golemo ’18
6 Teacher–student distillation KL projection onto info pattern Lee ’20; Miki ’22; Chen ’19
7 Online estimation (RMA/OSI) latent regression, two-timescale Yu ’17; Kumar ’21
8 Meta-RL bilevel opt. over adaptation map Finn ’17; Rakelly ’19; Nagabandi ’19
9 Observation alignment GAN / adversarial invariance James ’19; Bousmalis ’18
10 Real fine-tuning / residual policy warm-started RL, offline-to-online Johannink ’19; Silver ’18; Smith ’22

A modern humanoid stack composes: 3 + 1 (calibrate, then randomize) + 6/7 (adaptive policy) + 9 (visual alignment) + 10 (final on-robot polish).

Part III — Open Problems at the Frontier

Summary of Challenges at the Frontier

  • Non-vacuous end-to-end bounds. Simulation-lemma constants are astronomically loose for real humanoids. What structural assumptions (contraction of the closed loop, dissipativity, contact regularity) give bounds that predict transfer?
  • Contact. \(P_\xi\) is discontinuous in \(\xi\) at contact mode changes — Lipschitz-in-\(W_1\) assumptions fail exactly where locomotion lives. A perturbation theory for hybrid/measure-driven dynamics is missing.
  • Adaptive DR convergence (bridge 1): two-timescale iterated random operators with adapted randomization distributions.
  • Certifying deployment. Combining Markov-chain concentration with change detection to give a statistical safety case: “with confidence \(1-\delta\), the real system is within \(\rho\) of the training distribution.”
  • The value of privileged information. Quantify the teacher–student gap of Method 6 as a function of the information pattern — a modern stochastic-teams question.
  • Compositional gaps. Ten methods compose in practice; their error bounds do not. An interface theory for stacked sim-to-real pipelines does not exist.

1. Non-Vacuous End-to-End Bounds

The Problem: The standard Simulation Lemma gives a bound of the form: \[ \bigl| J_{\hat M}(\pi) - J_M(\pi) \bigr| \le \frac{\gamma}{(1-\gamma)^2} \sup_{x,a} \lVert \hat P - P \rVert \] For \(\gamma \approx 0.99\) (e.g., \(100\) Hz control), the coefficient \((1-\gamma)^{-2} \approx 10000\). The bound is astronomically loose and predicts zero transfer.

Mathematical Frontier: Identify structural properties of the closed-loop operator \(T^\pi_M\) that collapse the effective horizon. If the policy induces geometric ergodicity or the system is incrementally strictly dissipative, the sensitivity should decouple from \((1-\gamma)^{-1}\): \[ \lVert V^\pi_{\hat M} - V^\pi_M \rVert \le C(\pi) \sup_{x,a} d(\hat P, P) \quad \text{where } C(\pi) \ll \frac{1}{(1-\gamma)^2} \] Challenge: Characterize the function class of \(C(\pi)\) for underactuated, contact-rich robotics.

2. The Contact Discontinuity

The Problem: For continuous control bounds, we rely on \(P_\xi\) being Lipschitz in \(W_1\) with respect to domain parameters \(\xi\). However, rigid-body contact models cause discontinuous state jumps at impact: \[ \lim_{\epsilon \to 0} W_1\bigl( P_{\xi}(\cdot \mid x,a), P_{\xi+\epsilon}(\cdot \mid x,a) \bigr) \not\to 0 \] A tiny parameter error \(\epsilon\) shifts the time of impact by \(\delta t\), throwing the trajectory into an orthogonal mode.

Mathematical Frontier: Develop a perturbation theory for hybrid and measure-driven dynamics. We need a weakened topology (e.g., Skorokhod \(J_1\) metric or occupation-measure distances) under which the value function remains continuous across contact boundaries. \[ \sup_{\pi} \bigl| J_{M_\xi}(\pi) - J_{M_{\xi'}}(\pi) \bigr| \le L \cdot d_{\text{hybrid}}(\xi, \xi') \]

3. Convergence of Adaptive DR

The Problem: Standard Domain Randomization iterates \(V_{k+1} = \hat T_{\xi_k} V_k\) with i.i.d. \(\xi_k \sim p(\xi)\). Adaptive DR (Method 4) moves the distribution \(p_k\) itself based on real data, creating a two-timescale stochastic recursion: \[ V_{k+1} = \hat T_{\xi_k} V_k, \qquad \xi_k \sim p_k \] \[ p_{k+1} = \text{Update}(p_k, \tau_{\text{real}}, V_k) \]

Mathematical Frontier: Prove the stability of time-inhomogeneous iterated random operators. Does the sequence of invariant measures \(\mu_{p_k}\) track the varying distribution smoothly? \[ W_2(\mu_{p_{k+1}}, \mu_{p_k}) \le \alpha_k \lVert p_{k+1} - p_k \rVert \] Challenge: Establishing probabilistic contraction when the operator distribution is adapted to the operator’s own history.

4. Certifying Deployment via Statistical Safety

The Problem: Sim-trained policies fail unpredictably when the real-world deployment distribution \(M_{\text{deploy}}\) drifts outside the training support \(\Xi_{\text{train}}\).

Mathematical Frontier: Construct a statistical safety case that triggers a fallback behavior before failure. We need to couple Markov-chain concentration inequalities with sequential change-point detection: \[ \mathbb P\left( \sup_{t} \; d\bigl( \hat P_{t}, P_{\text{train}} \bigr) > \rho \;\Big|\; o_{1:t} \right) \le \delta \] Challenge: Formulating finite-sample Hoeffding-type bounds for non-asymptotic Markov chains without requiring exact knowledge of the mixing time of the highly complex closed-loop system.

5. The Value of Privileged Information

The Problem: Teacher-student distillation (Method 6) works by matching a deployable policy \(\pi^S(o_{1:t})\) to a privileged teacher \(\pi^T(x_t, \xi)\). Why is it empirically better than training \(\pi^S\) directly with RL?

Mathematical Frontier: Formalize the gap as a stochastic team theory problem. The value of privileged information is the performance gap between the fully centralized information structure \(\mathcal I_T\) and the decentralized structure \(\mathcal I_S\): \[ \text{VoI} \;=\; \max_{\pi^T \in \Pi(\mathcal I_T)} J(\pi^T) \;-\; \max_{\pi^S \in \Pi(\mathcal I_S)} J(\pi^S) \] Challenge: Characterizing the loss of the KL-projection distillation step. When does the proxy loss \(\min_{\psi} \mathbb E [ \text{KL}(\pi^T \parallel \pi^S_\psi) ]\) strictly bound the transfer regret \(\mathcal R\)?

6. Compositional Gaps

The Problem: Modern stacks compose 4+ methods simultaneously (e.g., ID + DR + Adaptation + Residual RL). However, their error bounds are currently analyzed entirely in isolation.

Mathematical Frontier: Develop an interface theory for sim-to-real pipelines. If Module A has error \(\epsilon_A\) in metric \(d_A\), and Module B has error \(\epsilon_B\) in metric \(d_B\), how do they compose end-to-end? \[ \Delta_{\text{total}} \;\le\; C_1 \epsilon_{\text{ID}} + C_2 \epsilon_{\text{DR}} + C_3 \epsilon_{\text{Adaptation}} \] Challenge: Many methods solve orthogonal errors (e.g., visual alignment vs dynamics residuals), but others interfere (e.g., conservative robust RL fighting with an adaptive latent). We need a unified algebra for cascaded MDP approximations.

Sim-to-real is where stochastic control, robust optimization, and statistical inference meet contact-rich mechanics — a theory-hungry field.

Takeaways

  1. The sim-to-real gap is a perturbed-MDP problem: transfer regret \(\le 2\sup_\pi |J_{\hat M}(\pi) - J_M(\pi)|\), and the Simulation Lemma’s \((1-\gamma)^{-2}\) explains why long horizons hurt
  2. Wasserstein, not TV, is the right ruler for continuous control — deterministic simulators make TV vacuous
  3. Every method takes one of three stances toward the unknown \(P\): robustify (R), adapt (B), or correct with data (D)
  4. The ten methods classify into four families — robustify in sim, calibrate the sim, adapt at deployment, correct with real data — and state-of-the-art systems compose one from each
  5. Domain-randomized training is an iterated random operator; online adaptation needs a change-detection trigger; fine-tuning is a warm-started perturbed program — three places where my group’s theory plugs directly into robotics practice

Close the gap with mathematics, not hope.

References I — Theory

  • [T1] Kearns, M., & Singh, S. (2002). Near-Optimal Reinforcement Learning in Polynomial Time. Machine Learning, 49(2–3), 209–232. (Simulation Lemma)
  • [T2] Kakade, S., & Langford, J. (2002). Approximately Optimal Approximate Reinforcement Learning. Proc. 19th International Conference on Machine Learning (ICML), 267–274.
  • [T3] Iyengar, G. N. (2005). Robust Dynamic Programming. Mathematics of Operations Research, 30(2), 257–280.
  • [T4] Nilim, A., & El Ghaoui, L. (2005). Robust Control of Markov Decision Processes with Uncertain Transition Matrices. Operations Research, 53(5), 780–798.
  • [T5] Janner, M., Fu, J., Zhang, M., & Levine, S. (2019). When to Trust Your Model: Model-Based Policy Optimization. Advances in Neural Information Processing Systems 32 (NeurIPS), 12498–12509.
  • [T6] Ghavamzadeh, M., Mannor, S., Pineau, J., & Tamar, A. (2015). Bayesian Reinforcement Learning: A Survey. Foundations and Trends in Machine Learning, 8(5–6), 359–483. (Bayes-adaptive MDP view)

References II — Surveys

  • [S1] Zhao, W., Peña Queralta, J., & Westerlund, T. (2020). Sim-to-Real Transfer in Deep Reinforcement Learning for Robotics: a Survey. IEEE Symposium Series on Computational Intelligence (SSCI), 737–744.
  • [S2] Höfer, S., Bekris, K., Handa, A., Gamboa, J. C., Mozifian, M., Golemo, F., et al. (2021). Sim2Real in Robotics and Automation: Applications and Challenges. IEEE Transactions on Automation Science and Engineering, 18(2), 398–400.
  • [S3] Muratore, F., Ramos, F., Turk, G., Yu, W., Gienger, M., & Peters, J. (2022). Robot Learning From Randomized Simulations: A Review. Frontiers in Robotics and AI, 9, article 799893.

References III — Methods 1–2

  • [M1] Tobin, J., Fong, R., Ray, A., Schneider, J., Zaremba, W., & Abbeel, P. (2017). Domain Randomization for Transferring Deep Neural Networks from Simulation to the Real World. IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), 23–30.
  • [M1] Peng, X. B., Andrychowicz, M., Zaremba, W., & Abbeel, P. (2018). Sim-to-Real Transfer of Robotic Control with Dynamics Randomization. IEEE International Conference on Robotics and Automation (ICRA), 1–8.
  • [M1] Sadeghi, F., & Levine, S. (2017). CAD²RL: Real Single-Image Flight Without a Single Real Image. Robotics: Science and Systems (RSS) XIII, paper 34.
  • [M2] Pinto, L., Davidson, J., Sukthankar, R., & Gupta, A. (2017). Robust Adversarial Reinforcement Learning. Proc. 34th International Conference on Machine Learning (ICML), PMLR 70, 2817–2826.
  • [M2] Rajeswaran, A., Ghotra, S., Ravindran, B., & Levine, S. (2017). EPOpt: Learning Robust Neural Network Policies Using Model Ensembles. International Conference on Learning Representations (ICLR).

References IV — Methods 3–5

  • [M3] Tan, J., Zhang, T., Coumans, E., Iscen, A., Bai, Y., Hafner, D., et al. (2018). Sim-to-Real: Learning Agile Locomotion For Quadruped Robots. Robotics: Science and Systems (RSS) XIV, paper 10.
  • [M3] Hwangbo, J., Lee, J., Dosovitskiy, A., Bellicoso, D., Tsounis, V., Koltun, V., & Hutter, M. (2019). Learning Agile and Dynamic Motor Skills for Legged Robots. Science Robotics, 4(26), eaau5872.
  • [M4] Chebotar, Y., Handa, A., Makoviychuk, V., Macklin, M., Issac, J., Ratliff, N., & Fox, D. (2019). Closing the Sim-to-Real Loop: Adapting Simulation Randomization with Real World Experience. ICRA, 8973–8979.
  • [M4] Ramos, F., Possas, R. C., & Fox, D. (2019). BayesSim: Adaptive Domain Randomization via Probabilistic Inference for Robotics Simulators. Robotics: Science and Systems (RSS) XV, paper 29.
  • [M4] OpenAI: Akkaya, I., Andrychowicz, M., Chociej, M., Litwin, M., McGrew, B., Petron, A., et al. (2019). Solving Rubik’s Cube with a Robot Hand. arXiv:1910.07113.
  • [M5] Hanna, J. P., & Stone, P. (2017). Grounded Action Transformation for Robot Learning in Simulation. Proc. 31st AAAI Conference on Artificial Intelligence, 3834–3840.
  • [M5] Golemo, F., Taïga, A. A., Courville, A., & Oudeyer, P.-Y. (2018). Sim-to-Real Transfer with Neural-Augmented Robot Simulation. Proc. 2nd Conference on Robot Learning (CoRL), PMLR 87, 817–828.

References V — Methods 6–8

  • [M6] Lee, J., Hwangbo, J., Wellhausen, L., Koltun, V., & Hutter, M. (2020). Learning Quadrupedal Locomotion over Challenging Terrain. Science Robotics, 5(47), eabc5986.
  • [M6] Miki, T., Lee, J., Hwangbo, J., Wellhausen, L., Koltun, V., & Hutter, M. (2022). Learning Robust Perceptive Locomotion for Quadrupedal Robots in the Wild. Science Robotics, 7(62), eabk2822.
  • [M6] Chen, D., Zhou, B., Koltun, V., & Krähenbühl, P. (2019). Learning by Cheating. Proc. 3rd Conference on Robot Learning (CoRL), PMLR 100, 66–75.
  • [M7] Yu, W., Tan, J., Liu, C. K., & Turk, G. (2017). Preparing for the Unknown: Learning a Universal Policy with Online System Identification. Robotics: Science and Systems (RSS) XIII, paper 48.
  • [M7] Kumar, A., Fu, Z., Pathak, D., & Malik, J. (2021). RMA: Rapid Motor Adaptation for Legged Robots. Robotics: Science and Systems (RSS) XVII, paper 11.
  • [M8] Finn, C., Abbeel, P., & Levine, S. (2017). Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks. Proc. 34th International Conference on Machine Learning (ICML), PMLR 70, 1126–1135.
  • [M8] Rakelly, K., Zhou, A., Finn, C., Levine, S., & Quillen, D. (2019). Efficient Off-Policy Meta-Reinforcement Learning via Probabilistic Context Variables. Proc. 36th ICML, PMLR 97, 5331–5340.
  • [M8] Nagabandi, A., Clavera, I., Liu, S., Fearing, R. S., Abbeel, P., Levine, S., & Finn, C. (2019). Learning to Adapt in Dynamic, Real-World Environments through Meta-Reinforcement Learning. International Conference on Learning Representations (ICLR).

References VI — Methods 9–10

  • [M9] James, S., Wohlhart, P., Kalakrishnan, M., Kalashnikov, D., Irpan, A., Ibarz, J., et al. (2019). Sim-to-Real via Sim-to-Sim: Data-Efficient Robotic Grasping via Randomized-to-Canonical Adaptation Networks. IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 12627–12637.
  • [M9] Bousmalis, K., Irpan, A., Wohlhart, P., Bai, Y., Kelcey, M., Kalakrishnan, M., et al. (2018). Using Simulation and Domain Adaptation to Improve Efficiency of Deep Robotic Grasping. ICRA, 4243–4250.
  • [M9] Ganin, Y., Ustinova, E., Ajakan, H., Germain, P., Larochelle, H., Laviolette, F., et al. (2016). Domain-Adversarial Training of Neural Networks. Journal of Machine Learning Research, 17(59), 1–35.
  • [M10] Silver, T., Allen, K., Tenenbaum, J., & Kaelbling, L. (2018). Residual Policy Learning. arXiv:1812.06298.
  • [M10] Johannink, T., Bahl, S., Nair, A., Luo, J., Kumar, A., Loskyll, M., et al. (2019). Residual Reinforcement Learning for Robot Control. ICRA, 6023–6029.
  • [M10] Smith, L., Kostrikov, I., & Levine, S. (2022). A Walk in the Park: Learning to Walk in 20 Minutes with Model-Free Reinforcement Learning. arXiv:2208.07860. (Demo version: RSS XIX, 2023, paper 56.)

References VII — My Group’s Publications

  • Gupta, A., Jain, R., & Glynn, P. W. (2024). Probabilistic Contraction Analysis of Iterated Random Operators. IEEE Transactions on Automatic Control, 69(9), 5947–5962.
  • Gupta, A., & Haskell, W. B. (2021). Convergence of Recursive Stochastic Algorithms Using Wasserstein Divergence. SIAM Journal on Mathematics of Data Science, 3(4), 1141–1167.
  • Gupta, A., Chen, H., Pi, J., & Tendolkar, G. (2020). Some Limit Properties of Markov Chains Induced by Recursive Stochastic Algorithms. SIAM Journal on Mathematics of Data Science, 2(4), 967–1003.
  • Shao, S., Gupta, A., & Haskell, W. B. (2025). Robustness to Modeling Errors in Risk-Sensitive Markov Decision Problems with Markov Risk Measures. IEEE Open Journal of Control Systems, 4, 70–82.
  • Haskell, W. B., Gupta, A., & Shao, S. (2024). Dynamic Capital Requirements for Markov Decision Processes. arXiv:2401.06020.
  • Gupta, A., & Yang, Z. (2018). Adversarial Reinforcement Learning for Observer Design in Autonomous Systems under Cyber Attacks. arXiv:1809.06784.

References VIII — My Group’s Publications (continued)

  • Chen, H., Gupta, A., Sun, Y., & Shroff, N. (2024). Model-Free Change Point Detection for Mixing Processes. IEEE Open Journal of Control Systems, 3, 202–213.
  • Chen, H., Tang, J., & Gupta, A. (2022). Change Detection of Markov Kernels with Unknown Pre and Post Change Kernel. Proc. 61st IEEE Conference on Decision and Control (CDC), 4814–4820.
  • Pi, J., & Gupta, A. (2023). Discrete-Time Finite-Horizon Optimization of Singularly Perturbed Nonlinear Control Systems with State-Action Constraints. IEEE Control Systems Letters, 7, 1993–1998.
  • Gupta, A., Rajakumar Deshpande, S., & Canova, M. (2022). An Algorithm to Warm Start Perturbed (WASP) Constrained Dynamic Programs. IEEE Open Journal of Control Systems, 1, 1–14.
  • Regatti, J., & Gupta, A. (2022). Finite Sample Analysis of Minmax Variant of Offline Reinforcement Learning for General MDPs. IEEE Open Journal of Control Systems, 1, 152–163.
  • Gupta, A., & Mahajan, A. (2026). Operator-Theoretic Foundations and Policy Gradient Methods for General MDPs with Unbounded Costs. arXiv:2603.17875.