Correcting the Simulator's Value Estimate with Unlabeled Real Logs

Before a robot policy trained in simulation goes onto hardware, someone has to guess how well it will work there. Today that guess is either the simulator's own success rate, which overstates real performance by a consistent 24–30% in recent manipulation benchmarks, or a set of costly physical trials. A third source is usually ignored: the real-robot logs a lab already has, recorded from teleoperation, older controllers or other policies. The probability with which those operators chose each action was almost never written down. We propose to use these logs only to measure how wrong the simulator is, rather than to estimate the policy's value from scratch. Concretely, we run the new policy in simulation from states that actually occurred on the real robot, check how far the simulator's predicted values are from what happened in the real log one step later, and average that discrepancy with weights that reshape the logged data to look like the states and actions the new policy would visit in reality.

Those weights come from behavior-agnostic off-policy evaluation, a family of methods that estimates a new policy's return from logged data without knowing the policy that produced the logs. Simulation contributes a strong prior on the value, and the real logs correct it. The resulting estimator reduces to the simulator's estimate when the simulator is right. Its error shrinks with the size of the sim-to-real discrepancy rather than with the size of the value itself, which is what makes it useful when real logs are small, poorly matched to the new policy, and of unknown origin.

Core Claim

Let $\pi$ be the sim-trained policy, $Q_s(s,a)$ its action value computed by rollouts in the simulator, and $V_s(s) = \mathbb{E}_{a\sim\pi}Q_s(s,a)$. Each real logged transition $(s,a,r,s')$ gets a simulator residual $\delta_s = r + \gamma V_s(s') - Q_s(s,a)$, where $\gamma$ is the discount factor. This residual measures, in units of return, how much the real next state disagrees with the simulator's expectation. The simulation lemma, a standard telescoping identity, then gives the exact real value:

$$V_{\text{real}}(\pi) = \mathbb{E}_{s_0\sim d_0}[V_s(s_0)] + \frac{1}{1-\gamma}\,\mathbb{E}_{(s,a,r,s')\sim d^\mu}\big[w(s,a)\,\delta_s\big].$$

Here $d_0$ is the real start-state distribution, $d^\mu$ is the distribution of the logs, and $w(s,a) = d^\pi_{\text{real}}(s,a)/d^\mu(s,a)$ is the ratio between how often $\pi$ would visit $(s,a)$ on the real robot and how often the logs did.

The ratio $w$ can be learned without knowing the logging policy by enforcing conservation of probability flow on real transitions. This is the device behind DualDICE and minimax weight learning (MWL) in Minimax Weight and Q-Function Learning for Off-Policy Evaluation.

If an estimate $\hat w$ replaces $w$ and $Q_s$ is computed exactly, the estimator's error is exactly

$$\frac{1}{1-\gamma}\,\mathbb{E}_{d^\mu}\big[(\hat w - w)\,\delta_s\big],$$

so it is bounded by the product of the weight error and the size of the simulator residual. Off-policy evaluation that uses only the real logs pays the weight error times the full scale of the value. This product structure is the whole claim. A good simulator, even one that is wrong in places, makes weight estimation errors nearly harmless, and a bad one is detected directly through large residuals.

Both pieces exist separately. The doubly robust variant in the minimax paper combines a learned weight with a learned Q-function. The point here is that the Q-function is the simulator's own, obtained by resetting the simulator to logged real states, so it is neither fitted to real data nor biased by real-data coverage.

Relation to Prior Work

Three papers motivate the problem by showing the gap is real but leaving value estimation open.

Robot Policy Evaluation for Sim-to-Real Transfer: A Benchmarking Perspective builds high-fidelity IsaacLab evaluation and documents a 24–30% sim-to-real drop, with 30–50% collapses under lighting and camera shifts. It treats simulation rollouts as the proxy and never corrects them with real data. We correct them.

Predicting Sim-to-Real Transfer with Probabilistic Dynamics Models scores policies by the negative log-likelihood of real transitions under a simulator-trained dynamics model. It averages that likelihood over the logs without reweighting toward the new policy's visitation, and its quantity is not a value. Our residual $\delta_s$ is the value-relevant analogue of that likelihood, and $w$ supplies the missing reweighting.

Off-Policy Evaluation via Off-Policy Classification ranks grasping policies across the reality gap without knowing the logging policy. It is restricted to binary success rewards and produces rankings rather than values.

Two lines constrain the design.

Benchmarks for Deep Off-Policy Evaluation shows that weight-based and bootstrapping estimators fall to roughly 0.25 rank correlation under heavy coverage shift on D4RL, and to chance on AntMaze. Any method that leans on accurate weights alone will inherit this failure, which is why our estimator is built so that weight errors are multiplied by a small residual.

Off-Policy Evaluation and Learning for External Validity under a Covariate Shift and Universal Off-Policy Evaluation handle population shift and full return distributions. Both need logging probabilities, and neither models a change in dynamics. Our setting has unknown logging probabilities and changed dynamics.

WorldEval replaces the simulator with a 14-billion-parameter video model judged by a vision-language model. It reaches high correlation but offers no consistency argument and no confidence interval. We keep the physics simulator and repair it statistically.

Research Program

The work has four parts.

Reset-to-real simulator values. For every logged real state, we reset the simulator to the matching estimated physical state and roll out $\pi$ to estimate $Q_s$ and $V_s$. The physical state includes joint positions, object poses and gripper state. When the policy acts on images, the simulator renders the observation it needs. This is embarrassingly parallel, and the cost is a fixed number of rollouts per logged state.

Weights adapted to the residual. We learn $\hat w$ with MWL on real transitions. The candidate functions the minimax objective tests against, which we will call discriminators, are seeded with $Q_s$ and features of it. The aim is to have $\hat w$ satisfy the flow constraints most accurately along directions correlated with $\delta_s$, which is where its errors matter. We will compare this against generic neural and kernel discriminators of the kind used in Accountable Off-Policy Evaluation With Kernel Bellman Statistics.

Fallback when the logs do not cover the policy. Where the logs miss regions the policy visits, the correction term cannot be estimated. We will report the effective sample size of $\hat w$. When it falls below a threshold, we will shrink the correction toward zero, so the estimate defaults to the simulator, and say so explicitly rather than return a confident wrong number.

Uncertainty. We will compute intervals by bootstrapping over real trajectories and, as a second variant, by a CoinDICE-style interval on the correction term alone (CoinDICE). Because only the correction is uncertain, these intervals should be much narrower than intervals on the full value.

On the analysis side, we will make the product bound precise under approximate $Q_s$, including Monte Carlo error from finite rollouts. We will also characterize when state-estimation error in the reset step biases $\delta_s$.

Baselines

The naive reference is the simulator's own estimate, $\mathbb{E}_{d_0}[V_s]$, computed from real start states. This is the number practitioners use today, and our estimator collapses to it when the correction term is zero. Beating it means reducing absolute error against real ground-truth returns. In the physical study, it also means recovering the documented 24–30% gap without systematic over- or under-correction.

The strongest purely real-data competitors are MWL and DualDICE run only on the real logs, and fitted Q-evaluation (FQE) on the real logs. DOPE identifies fitted Q-evaluation as among the best methods when coverage is good. DOPE reports roughly 0.69 average rank correlation for the best methods on RL Unplugged and about 0.25 on D4RL. These are the reference numbers we aim to exceed on the D4RL-derived tasks.

The strongest existing sim-to-real predictors are the dynamics-likelihood transfer metric, which reported a linear fit of $R^2 = -0.99$ against success in its sim-to-sim experiments, and SoftOPC, which reported Spearman 0.94 and $R^2$ 0.91 against real grasping success. We run SoftOPC only on tasks with binary rewards, where it is defined. WorldEval's Pearson 0.942 and rank-violation score of 0.044 are reported on its own tasks, which we cannot reproduce. We cite them as context rather than as a direct baseline.

All methods receive identical real logs, identical simulator access where they use it, and the same budget of hyperparameter configurations, selected on a held-out set of policies.

Two ablations isolate the key ingredient. The first drops the weights entirely and averages $\delta_s$ over the logs unweighted, the analogue of the transfer metric's unweighted average. The second keeps the weights but replaces $Q_s$ with a Q-function fitted to the real logs, which is plain doubly robust MWL. If either matches the full estimator, the corresponding ingredient is not doing the work.

Why not just…?

Why not just trust a higher-fidelity simulator? The NVIDIA benchmark shows that even photorealistic IsaacLab evaluation leaves a 24–30% drop. WorldEval reports that the RoboTwin physics simulator had a rank-violation score of 0.261. Better simulators shrink $\delta_s$, which makes our correction cheaper, but they do not remove the need for it. Our physical study measures the residual bias of the raw simulator directly.

Why not just run behavior-agnostic off-policy evaluation on the real logs and ignore the simulator? When the real logs cover the policy well, this may genuinely compete, and we expect it to on high-coverage data. DOPE shows it degrades badly under the shift typical of teleoperation logs evaluated against a new policy. The decisive experiment sweeps coverage, from logs collected near $\pi$ to logs from unrelated behavior. Our claim fails if real-only MWL matches us at low coverage.

Why not just warm-start fitted Q-evaluation from the simulator's Q-function and fine-tune on real logs? This is the most serious alternative, because it also uses the simulator as a prior. Its weakness is that bootstrapped fine-tuning on poorly covered data drifts away from $Q_s$ in exactly the unvisited regions where $Q_s$ was the only information. Our estimator never alters $Q_s$ and corrects only the averaged return. We include it as a baseline with the same tuning budget. If it wins, the honest conclusion is that a simulator prior plus fine-tuning suffices, and the occupancy weighting is unnecessary.

Why not just estimate the logging policy with behavior cloning and use importance sampling? DualDICE reports that importance sampling and temporal-difference estimators failed or became unstable on Cartpole and Reacher when the behavior policy had to be estimated. The OPC paper argues that importance ratios are ill-conditioned for continuous, near-deterministic robot actions. We include a behavior-cloned doubly robust estimator in the sim-to-sim study to confirm this in our setting.

Proposed Experiments

Controlled sim-to-sim study. Ground truth is exact in this setting. We take the DOPE D4RL tasks (Gym-MuJoCo and Adroit) and their policy sets with known values. The original environment plays "real," and perturbed copies play "sim," with changed friction and mass, added action latency, and gear backlash, mirroring the gaps studied in the transfer-metric paper. The D4RL logs serve as unlabeled real data. We sweep perturbation size and log coverage, and report absolute error, Spearman correlation, top-1 regret and interval coverage.

Decisive checks. Three predictions follow from the product bound, and failing them falsifies the core claim. First, the full estimator's error should scale with perturbation size, while real-only MWL's error should not. Second, as perturbation shrinks to zero, our estimator should approach exactness even when $\hat w$ is deliberately degraded. Third, the unweighted-residual ablation should become biased precisely when the evaluated policy visits regions the logs underrepresent. We will also report AntMaze, where DOPE found no method beat chance, to see whether the simulator prior rescues ranking there.

Physical study. We take UR5e/Franka tasks from the IsaacLab benchmark's T1–T3 tiers with continuous shaped rewards as well as success. A set of sim-trained checkpoints is evaluated using DROID-style teleoperation logs on the same hardware. Ground truth comes from physical rollouts of each checkpoint. Success here means beating both the raw simulator and real-only off-policy evaluation on absolute error and rank correlation. On the binary-success variant, the target is matching or exceeding SoftOPC's reported 0.94 Spearman correlation while also returning calibrated values. No reported result on Lacuna exists for behavior-agnostic off-policy evaluation on DROID or ManiSkill, so those numbers would be new.