A robot acting under delay has to guess where it will be when its command actually takes effect. It makes that guess from sensor readings that are both stale and noisy. Simulators can train such a guesser, because they know the true future state, but the real robot's noise does not match the simulator's, and on hardware nobody knows the true state. This proposal starts from a simple observation. Offline, after a run is over, latency no longer matters. An estimator allowed to look at the readings after time $t$ can work out what the state at $t$ really was far better than any real-time estimator, the way a listener recognises a mumbled word once they hear the rest of the sentence. We propose to use such a backward-and-forward "hindsight" estimator to label real robot logs, then train a fast real-time estimator on those labels. The real-time estimator only sees the past, and it predicts the state at actuation time across the delay. The result adapts to real sensor noise using nothing but unlabeled hardware logs.
Speech enhancement already exploits this asymmetry. A non-causal teacher, one that sees future audio, improves a strictly causal student at the same latency: RT-SEMamba's 1-layer student rises from 3.06 to 3.18 PESQ (a perceptual speech-quality score) when distilled (RT-SEMamba). BS-PLCNet 2 removes a future-context branch at test time after using it to train the causal branch (BS-PLCNet 2). Robotics distillation instead hands the teacher privileged simulator quantities, and both teacher and student run causally (TWIST, Privileged Knowledge Distillation for Sim-to-Real Policy Generalization). That choice means the teacher is useless on real data, where privileged quantities do not exist. A teacher whose only privilege is time can still run on real data.
Core Claim
A non-causal sequence model is trained in simulation to recover the clean state from noisy observations over a window extending both before and after each instant. It transfers to real sensor noise more reliably than a causal estimator does, because future context lets it outvote individual corrupted readings. It can therefore serve as a pseudo-ground-truth labeler on real robot logs. A causal predictor fine-tuned on these labels should reduce delay-compensated state error on hardware relative to sim-only training. It should also beat classical filter-plus-forward-model prediction, and this improvement should translate into better closed-loop control under realistic network and computation delays.
The claim is falsifiable at two points. First, the teacher's real-world error, measured against motion capture, must be substantially below the sim-trained student's. If it is not, there is nothing to distill. Second, the gain must exceed what a classical Rauch–Tung–Striebel smoother gives as a labeler. That smoother is the standard backward-forward Kalman pass and is the obvious non-learned hindsight estimator. If the classical smoother matches the learned teacher, the contribution narrows to "hindsight labeling of real logs." That is still useful, but it is a different paper, and we would report it as such.
Research Program
The system has three pieces. The teacher is a bidirectional temporal network. It reads noisy proprioceptive and exteroceptive observations and the commanded actions over a window $[t-H, t+L]$, and it outputs the state $s_t$. It is trained in simulation against ground truth, with sensor noise randomised broadly. It is also trained with a dynamics-consistency term: its consecutive outputs must agree with a learned forward model driven by the logged actions. Because this term needs no ground truth, it can keep being applied on real logs. This kind of forward model, which integrates intended commands to bridge delay, is the idea from human motor control (Forward dynamic models in human motor control, Evidence for a Forward Dynamics Model).
The student is a causal model with a fixed-size recurrent state. We test a small state-space layer of the kind RT-SEMamba uses, so memory stays constant on an embedded computer. Given observations up to $t$ and the actions already issued, the student outputs a prediction of $s_{t+\tau}$, where $\tau$ is the current delay. When the delay is unobservable, the student instead outputs a short set of predictions indexed by candidate arrival times, in the spirit of the action packets in Adaptive Reinforcement Learning for Unobservable Random Delays.
The adaptation step works as follows. Log real runs, label each log offline with the teacher, and fine-tune the student. The real-data objective is
$$ \mathcal{L}_{\text{real}} = \big\| f_\theta(o_{\le t}, a_{<t+\tau}) - T_\phi(o_{t+\tau-H : t+\tau+L}) \big\|^2 , $$
where $f_\theta$ is the student, $T_\phi$ the teacher evaluated centred at the actuation time $t+\tau$, $o$ the observations, $a$ the actions, $H$ the history length and $L$ the teacher's look-ahead. Simulation batches keep their ground-truth targets, so the student does not drift toward the teacher's own biases.
The analysis side asks how the benefit scales with teacher look-ahead $L$. The $H_\infty$ preview result shows that the gap to the ideal non-causal controller closes as look-ahead grows, for linear systems with clean preview (Regret of $H_\infty$ Preview Controllers). We measure the noisy, nonlinear counterpart empirically: how quickly the teacher's error falls with $L$ under real noise, and whether the student's gain tracks the teacher's gain.
Baselines
The naive reference is a causal estimator trained only in simulation with domain-randomised noise and delay, regressing the ground-truth state at actuation time, with no real data. It has the same student architecture, simulation data and tuning budget. Its gap to motion capture is the sim-to-real gap we aim to close. Any useful method must beat it on hardware.
The strongest classical competitor is a causal Kalman filter followed by forward-model prediction across the delay. The filter's noise covariances are tuned on the same real logs the proposal uses. This is how predictor feedback for actuation delay is normally built (Event-Triggered Stabilization of Nonlinear Systems with Time-Varying Sensing and Actuation Delay), and the asynchronous planner in Data Efficient Reinforcement Learning for Legged Robots. projects state forward to computation completion in the same way. We beat it if our delay-compensated state error is lower at matched latency, and especially if the gap widens under non-Gaussian corruption.
The strongest learned competitors come from two lines of work. The first is privileged-information distillation, represented by HIB (Privileged Knowledge Distillation for Sim-to-Real Policy Generalization). HIB reports 96.7% stair success in simulation and 100% over 10 trials on 0.6 m real stairs with a Unitree A1. We re-implement it on our platform, with the same simulation budget and an added delay-prediction head, because it is the best published history-based estimator for this robot class. The second is ACDA for unobservable delays. It reports a return of about 8368 on HalfCheetah under the DLib library-WiFi trace, against about 4159 for VDPO (Adaptive Reinforcement Learning for Unobservable Random Delays). We run ACDA under our perceptual-noise shift with its published settings and an equal tuning budget. Beating ACDA means higher return under noise conditions it was not tested on, while staying within noise of its clean-observation number.
Three ablations isolate the key ingredient. The first swaps the learned teacher for a Rauch–Tung–Striebel smoother as labeler. The second sets the teacher's look-ahead $L=0$, which leaves a causal teacher with the same capacity; this separates "future context" from "bigger model." The third keeps the teacher but trains the student only in simulation; this separates "teacher as distillation target" from "teacher as real-data labeler."
Why not just…?
Why not just regress the simulator's ground-truth future state from noisy history, since that is already the optimal target? In simulation it is, and that is exactly our naive baseline. Its weakness is that it never sees real noise. Widening randomisation to cover real noise is known to produce sluggish, conservative behaviour (Sim-to-Real Transfer for Biped Locomotion). The comparison between the naive baseline and the sim-only-student ablation tells us whether real-data labels, not the distillation itself, carry the gain.
Why not just collect motion-capture ground truth on the real robot? This works where it is possible, and we use it for evaluation. But it ties the robot to an instrumented room, and its noise and terrain differ from deployment conditions. Hindsight labels come from any log the robot records anywhere. The experiments compare a student fine-tuned on mocap labels against one fine-tuned on teacher labels from more varied unlabeled logs. If mocap fine-tuning on less data wins outright, our method's value is limited to settings without mocap, and we will say so.
Why not just use a Kalman smoother to label the logs? This is the real threat. For near-Gaussian joint-encoder noise, a well-tuned smoother may be as good as a learned one. The learned teacher should win where noise is heavy-tailed or state-dependent, as with LiDAR dust and reflections (Deep Local Trajectory Replanning and Control for Robot Navigation) or with foot contacts. We report the ablation per sensor type rather than averaged, so it is visible where each labeler suffices.
Why not just buffer for the worst-case delay? This is safe but slow. ACDA's results show buffering-style approaches leaving roughly half the return on the table under real WiFi jitter. TIC-VLA argues that pausing the robot is impractical among moving pedestrians (TIC-VLA). We include worst-case buffering as a control-level reference in the delay experiments.
Proposed Experiments
The first stage is a controlled simulation study using the MuJoCo locomotion suite with the DLib and DOff delay traces from Adaptive Reinforcement Learning for Unobservable Random Delays. We fabricate a sim-to-real gap by training under one noise family (Gaussian) and "deploying" under another: heavy-tailed outliers, dropouts and bias drift. Because ground truth exists here, we can measure teacher error, student error at actuation time and return, all as functions of look-ahead $L$.
The second stage uses Isaac Gym (Isaac Gym) to train a quadruped locomotion policy that consumes the student's predicted state. This follows the HIB setup, so stair-success numbers are comparable to the reported 96.7%.
The third stage is hardware: a Unitree A1-class quadruped with injected computation delay, plus a delay trace replayed over WiFi. A short mocap session provides evaluation ground truth only. We then collect several hours of unlabeled outdoor logs for adaptation. The metrics are delay-compensated state error against mocap, stair and slope success over matched trials, and fall rate.
Three checks decide the outcome. The teacher's real-world error must be clearly below the sim-trained student's. Otherwise the premise fails, and we stop and report the transfer behaviour of non-causal estimators as the finding. The student fine-tuned on hindsight labels must beat both the naive baseline and the tuned Kalman-predictor on real state error. That gain must appear in closed-loop success, not only in estimation error. Finally, the learned-teacher-versus-smoother ablation, broken out by sensor type, determines whether the learned hindsight teacher is necessary or whether hindsight labeling alone is the contribution.
References
- RT-SEMamba: Real-Time Speech Enhancement Mamba via Progressive Knowledge Distillation
- BS-PLCNet 2: Two-stage Band-split Packet Loss Concealment Network with Intra-model Knowledge Distillation
- TWIST: Teacher-Student World Model Distillation for Efficient Sim-to-Real Transfer
- Bridging the Sim-to-Real Gap from the Information Bottleneck Perspective
- Forward dynamic models in human motor control: Psychophysical evidence
- Evidence for a Forward Dynamics Model in Human Adaptive Motor Control
- Adaptive Reinforcement Learning for Unobservable Random Delays
- Regret of $H_\infty$ Preview Controllers
- Event-Triggered Stabilization of Nonlinear Systems with Time-Varying Sensing and Actuation Delay
- Data Efficient Reinforcement Learning for Legged Robots
- Sim-to-Real Transfer for Biped Locomotion
- Deep Local Trajectory Replanning and Control for Robot Navigation
- TIC-VLA: A Think-in-Control Vision-Language-Action Model for Robot Navigation in Dynamic Environments
- Isaac Gym: High Performance GPU Based Physics Simulation For Robot Learning