NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Grounding the Simulator at the Level the Planner Thinks In

Robots are often planned and trained in simulation and then fail on hardware, because friction, mass, latency and contact behave differently in the real world. Fixing this with a small amount of real data usually means correcting the simulator one control step at a time: a learned correction nudges each motor command so that the simulated next state matches the real one. We propose to make that correction once per trajectory segment instead. A trajectory segment here means a short stretch of motion, a few dozen control steps long, that ends at a target state, and a fast trajectory optimizer already reasons in exactly these units. A segment-level correction is fitted to the quantity the planner actually uses, which is where the robot ends up after the segment. It avoids the error that builds up across hundreds of chained per-step corrections. The optimizer's decision count also stays at the number of segments rather than the number of control steps.

The claim we want to test is narrow and falsifiable. For a fixed and small budget of real-world transitions, grounding the simulator at segment boundaries gives better real-world task performance than grounding at every control step. The best segment length shows a bias–variance trade-off: it is long when real data is scarce and shortens as real data grows. If the trade-off exists, it is a concrete answer to a question the literature leaves open, namely how coarse the unit of decision and correction should be when real samples are expensive.

Where this sits

Three lines of work motivate the proposal. Fast trajectory generation reaches linear or near-constant cost by describing a trajectory through the physical states at segment endpoints. DIRECT parameterizes polynomial segments by endpoint position, velocity and acceleration and solves with differential dynamic programming (a method that sweeps backward and forward along the trajectory, one stage per segment) in time linear in the segment count. Double descriptions of polynomials turn the same endpoint view into a banded linear solve. TOP splits segments across a GPU for near-constant time per iteration. All three assume a nominal model, and they leave tracking exposed to unmodeled physics. We borrow their endpoint-state representation. We do not borrow their flatness assumptions, because our segments are executed by a closed-loop tracking controller in a physics simulator.

On the sim-to-real side, Grounded Action Transformation as reformulated by RGAT shows that the classical approach fails once the policy is a deep network. The classical approach chains a learned real forward model with an inverted simulator model, and the errors compound. RGAT instead trains the per-step action transformer end to end with reinforcement learning, rewarding it for matching real next states. RGAT supplies our grounding method. What we change is the level at which it acts, since the file notes it operates only on step-by-step actions with no trajectory-level lookahead. Online admittance residual learning constrains our design. It found that kinematic trajectories transfer tolerably while contact forces do not, and it fixes this by adapting compliance online while keeping the path frozen. We keep a compliant low-level tracker so that open-loop segment targets remain safe in contact. Unlike that work, we let the grounded planner change the path itself.

The discrete-action literature supplies the hypothesis about segment length. Action space reduction via grouping proves that coarser groups trade approximation bias for lower estimation variance. In their setting, 20 groups beat the ungrouped model at $10^4$ samples, and the ungrouped model needed $10^7$ samples to catch up. Learning Routines shows that variable-length action sequences halve policy queries in simulation, but its Q-learning degrades at length 16. That result warns us that very long segments will hurt. We treat grouping in time as the analogue of grouping in action space. That is an analogy that motivates our experiments. It is not a theorem we inherit.

Core Claim and Mechanism

Let $x_k$ be the robot state at the start of segment $k$. Let $z_k$ be the continuous segment target, meaning an endpoint state plus a stiffness and damping pair for the tracking controller. Let $F_{\text{sim}}(x_k, z_k)$ be the state the simulator reaches after running the tracker for $L$ control steps. We learn a segment-level transformer $h_\phi$ that rewrites the target so the simulator lands where the real robot would:

$$x^{\text{real}}_{k+1} \approx F_{\text{sim}}\big(x_k,\; z_k + h_\phi(x_k, z_k)\big).$$

We train $\phi$ with RGAT's objective, a reward equal to the negative real-versus-grounded-sim state error. The only difference is that the reward is applied at segment boundaries. This keeps the comparison with step-level RGAT clean.

The planner optimizes over $N = T/L$ targets in the grounded simulator. $T$ is the episode length in control steps. The planner is either a sampling optimizer (iCEM) or segment-wise differential dynamic programming. Either way it makes $N$ decisions rather than $T$, and the grounding correction is queried $N$ times per rollout. For fast deployment, we distill the grounded planner into a reactive policy with the adaptive-guidance scheme of APEX. APEX is used unchanged. It is the component that makes the planner usable at runtime, and it is not our contribution.

The expected U-shape in $L$ comes from two opposing effects. Short segments give $L$ times more training pairs per real trajectory, but the planner chains $T$ corrections and inherits RGAT-style compounding. Long segments chain few corrections, but each correction must describe a harder map from fewer samples. The first effect favors long $L$ when data is scarce, and the second favors short $L$ as data grows.

Research Program

The work has three stages. The first stage builds the segment interface: a tracking controller (PD for locomotion, operational-space impedance for manipulation) that executes a target over $L$ steps, with $L$ in {1, 4, 8, 16, 32}. At $L=1$ this reduces exactly to step-level RGAT, which gives a built-in ablation. The second stage fits $h_\phi$ from a controlled budget of real transitions, alternating grounding and planning as in grounded simulation learning. The third stage measures the real-world outcome as a function of both $L$ and the real-data budget. This produces the data-versus-segment-length surface that the core claim is about.

Baselines

The naive reference point is to plan in the ungrounded simulator and deploy directly. It shows the size of the gap on each task. Its upper-bound counterpart is an oracle that plans directly in the target environment, which is the normalizer RGAT itself uses.

The strongest existing method on the exact question is step-level RGAT (RGAT), paired with the same planner and the same distillation step. It is the closest competitor because it already solves the deep-network compounding problem that sank classical grounding. We run it at $L=1$ in our code, with the same real transitions, the same number of planner rollouts, and an equal hyperparameter search budget for its KL and entropy coefficients. The file reports this sensitivity as a weakness, so we tune these coefficients for every method at equal effort. RGAT reports near-optimal transfer on InvertedPendulum, Hopper and HalfCheetah with modified dynamics, but no reported numerical return was found on Lacuna for RGAT. We therefore reproduce it rather than quote it. Beating it means a statistically reliable higher normalized target return at the two smallest real-data budgets on at least two of three tasks, with no loss at the largest budget.

The second strong baseline is the online admittance residual method of Zhang et al., used on contact tasks. It is strongest where the gap is mostly in contact forces. It reports 100% success on polygon assembly and 90% on object pivoting on hardware. We run it on the same simulated source skill and the same target-dynamics perturbation. Beating it requires matching its success when the nominal path is still feasible, and exceeding it when the perturbation makes the frozen path infeasible, for example with a shifted fixture that requires a different approach path.

Domain randomization is run over the same parameter ranges that generate the surrogate real environments, using SAC and an iCEM planner. A step-level learned residual dynamics model used inside the same planner is the fourth baseline, and it is discussed below.

Why not just…?

Why not just use domain randomization and skip real data? Randomization is free of real data. The file reports that it tends to produce conservative behavior and that direct transfer of such policies shows force spikes and bounces in assembly (Zhang et al.). In our experiments, domain randomization is a curve that does not move with the real-data budget, so the question is where grounded methods cross it. If segment-level grounding never crosses it at small budgets, the proposal fails on practical grounds.

Why not just ground at every step, as RGAT does, and collect a bit more data? This is the ablation the whole proposal rests on. Because $L=1$ is the same code path, a flat curve across $L$ would falsify our claim directly. We would then report that the level of grounding does not matter.

Why not just learn a residual dynamics model and run MPC in it? This is the most serious alternative. A segment-level residual model is nearly equivalent to our transformer. The difference is that ours keeps the physics engine in the loop, while a pure learned residual must also extrapolate contact. We therefore include both step-level and segment-level residual models. If the segment-level residual model matches our transformer, the finding should be stated as "correct at segment level", whatever form the correction takes, and we will state it that way.

Why not just use frame-skipping? Frame-skipping holds a raw action open-loop, which is exactly the loss of fine motor control that Learning Routines documents. Our segments run a full-rate closed-loop tracker. A frame-skip variant with the same $L$ is included to show that the tracker, not the coarser timing alone, carries the benefit.

Proposed Experiments

The main testbed follows RGAT's protocol: InvertedPendulum, Hopper and HalfCheetah, with altered mass, friction or actuator gain as the "real" environment. We add a contact setting built from robosuite Door and Lift with altered friction and joint damping. Real-data budgets range from 1 to 50 real episodes. We report three metrics. The first is target return normalized between the ungrounded and oracle planners. The second is the $N$-segment open-loop prediction error of the grounded simulator on held-out real rollouts. The third is planner wall-clock time per decision.

The decisive check is the surface of performance over segment length and real-data budget. Our claim predicts that the best $L$ is interior (neither 1 nor 32) and moves toward smaller $L$ as the budget grows. A best $L$ that is always 1 refutes it. A best $L$ that is always the largest tested value suggests that the effect is plain horizon shortening and not grounding. A second check tests whether segment-level prediction error explains the return gaps. If returns improve without lower multi-segment error, the gain comes from something other than grounding.

A hardware stretch experiment would use a peg-assembly setup in the style of Zhang et al., compared against their reported 100% and 90% success figures. It would be run only if the surrogate results show the predicted surface.