Behavior Cloning Foundations
Covariate shift makes naive imitation drift, and DAgger is the standard fix.
Behavior cloning is imitation learning cast as supervised learning: a policy is regressed onto expert actions given expert observations. In closed loop the robot's own actions choose its future inputs, breaking the i.i.d. assumption, so errors compoundSource 7.

Watch the error compound
Try “A teacher corrects it” to watch DAgger-style relabelingSource 2 cut the summed deviation.
Guess first
Adjust more
The groove is the path a person showed it; the ink is the robot. A toy model, not a measured robot.
How this was made
Original deterministic toy, not a measured robot. Each move adds a small error to how far the robot is off the taught path, and the error grows with that distance: the drift d after each decision becomes d + ε(1 + 0.01·d), with ε the per-step error (now 5.0%). The shaded gap sums the drift over every move. At 5% it is 370 units over 120 moves and 1505 over 240: twice the task, about four times the drift.
“25 moves per plan” makes one decision every 25 moves (action chunking), so errors enter less often. “A teacher corrects it” is DAgger-style relabeling: every 20 moves an expert removes 75% of the drift. Both are chosen illustration rules, not implementations of either method.
The doubled-horizon figure keeps per-timestep prediction at 5.0 percent error across 240 steps with DAgger off, so the rollout accumulated deviation is 1505 units under the selected toy correction setting.
Current rollout regime
- mode
- per-timestep prediction
- epsilon
- 5.0%
- horizon
- 240 steps
- DAgger
- off
- deviation
- 1505 units
- final deviation
- 12.7
The chart below compares the summed drift with two illustrative reference curves from Ross, Gordon and Bagnell (2011): εT(T+1)/2, the quadratic growth of plain copying, and εT, the linear growth DAgger can reach under its assumptions. At T = 240 they read 1446 and 12.0; final drift Δ(T) = 12.7. Neither curve bounds this trace.
The prediction-step reference panel starts at 240 steps. Its deterministic recurrence with toy error 5.0% gives 1505 units of summed deviation. Dashed curves show illustrative reference curves, epsilon T(T+1)/2 = 1446 and epsilon T = 12.0, not bounds on this trace. This is not a task-cost theorem or a source benchmark.
Sampled toy deviation and reference scalings by horizon
| horizon T (steps) | simulated | εT(T+1)/2 | εT |
|---|---|---|---|
| 0 | 0.000 | 0.000 | 0.000 |
| 48 | 59.3 | 58.8 | 2.4 |
| 96 | 237 | 233 | 4.8 |
| 144 | 535 | 522 | 7.2 |
| 192 | 957 | 926 | 9.6 |
| 240 | 1505 | 1446 | 12.0 |
Read the reasoning
- It roughly quadruples in this toy over the displayed rangeThe deterministic recurrence gives about 370 units at 120 steps and 1505 at 240 steps. Persistent additive drift produces roughly quadratic accumulated deviation over this range. This numerical illustration does not establish a task-cost guarantee.Ross et al. 2011
- It about doubles, since deviations typically accumulate in proportion to how long the episode runsThat would describe a fixed deviation added to the readout each step. Here the deviation itself grows before it is summed, so doubling the horizon more than doubles the accumulated value. The linear dashed curve is only a reference scaling.
- It grows explosively, a hundred times or more, because each error amplifies the next oneThe recurrence does include multiplicative amplification, but its gain is small at these settings: the observed ratio is about four, far from one hundred. This finite-range illustration does not assert an asymptotic rate or rely on averaging effects.
In this toy, doubling the horizon roughly quadruples summed deviation. The paper’s cost guarantees concern different quantities and require the assumptions below.
Origins in driving
ALVINN (1988), a three-layer back-propagation network with camera and laser-range inputs, trained on simulated road images and was tested on NAVLAB, a modified Chevy vanSource 1. Later driving systems added off-centre, rotated training viewsSource 8, or synthesized perturbations once 30 million examples proved too fewSource 9.

Covariate shift, stated precisely
Training data follow the expert's state distribution ; the robot visits its own , drifting further with each mistakeSource 2. Ross and Bagnell (2010) proved a regret bound that grows quadratically in the horizon Source 7. The DAgger paper restates their bound for expert-distribution error bounding the 0-1 loss and task cost in , and notes it is tightSource 2:
With log-loss, behavior cloning reaches horizon-independent sample complexity when payoff range and policy-class complexity are controlledSource 10, though a tabular lower bound of order survives even active expert queriesSource 11. With continuous actions, smooth deterministic imitators can suffer execution error exponentially larger in the horizon than their training errorSource 12.
How this was made
A schematic, not data. A robot trained by behavior cloning learns from the states an expert visited (the shaded corridor of demonstrations). Running on its own, it visits its own states, and the two drift apart after its first mistake: from there it is outside anything it was trained on, so its next mistake is likely to be larger.
The mismatch between the training states and the states the robot reaches is called covariate shift, or distribution shift. Ross, Gordon and Bagnell (2011) showed that the resulting cost can grow with the square of the task length, and proposed DAgger, which has an expert label the states the robot actually visits.
Training-side problems
On demonstrations with several valid strategies, energy-based implicit policies often beat mean-squared-error and mixture-density policiesSource 13, and Diffusion Policy learns both Push-T modes, committing to one per rolloutSource 6. Pan et al. (2025) attribute generative policies' benchmark gains to iterative computation instead of multimodalitySource 14.
A single Markovian state cannot predict pauses, so single-step policies freeze, as ACT and Diffusion Policy documentSource 5 Source 6. Temporal context is the usual fix, yet more input information can worsen a cloned policy under shiftSource 15, and a history-conditioned policy can cheat by copying the expert's previous actionSource 16.
Behavior cloning at best matches its demonstrator, and robomimic found results depend on demonstration quality and checkpoint selectionSource 17. Past a threshold, extra demonstrations per environment or object barely help; diversity matters far moreSource 18. In Park and Levine's OCBench (October 2026), whose scripted demonstrators mimic human ones, success can keep rising as a policy overfits, and on two tasks closed-loop policies almost completely fail where action chunking worksSource 31.
DAgger: relabel the states you actually visit
DAgger (Dataset Aggregation) labels the states the learner visits, reducing imitation learning to no-regret online learningSource 2.
One DAgger iteration
- roll out
- the current policy (mixed with the expert early on)
- query
- the expert for the correct action at every visited state
- aggregate
- those state-action pairs into the training set
- retrain
- on the aggregated data, repeat
Infinite-sample Theorem 3.2 assumes a bounded, strongly convex surrogate loss and expert mixing , with independent of . After iterations some learned policy satisfies the bound below, where bounds the rise in expert cost-to-go after one actionSource 2:
Excess cost is linear in only if is independent of ; in the worst case is . The guarantee is existential; Algorithm 3.1 returns the policy best on validation. Finite-sample Theorem 3.4 holds with probability at least for empirical loss , trajectories per iteration and Source 2.
Off-policy DART injects noise into demonstrations so the supervisor shows recoveries, gaining 62% on average over behavior cloning at grasping in clutterSource 19, and Diffusion Meets DAgger synthesizes out-of-distribution samples, reaching 80% pushing success from 8 demonstrations against behavior cloning's 20%Source 20.
Labeling arbitrary failure states is unnatural for teleoperators. In HG-DAgger the human takes over when needed, steers back to a safe, stable region and hands back control, labeling the recoverySource 3. BC-Z gathered such interventions by shared autonomy and did 24 unseen tasks at 44% average successSource 21, and Compliant Residual DAgger takes delta corrections without pausing the policy, raising base success by 64% on four tasksSource 22.
Physical Intelligence's Recap coaches a vision-language-action policy with corrections at visited statesSource 4. RaC found imitation plateaus far below perfect despite thousands of demonstrations, and its recovery-and-correction data beat the prior best with 10× less collectionSource 23. In September 2026, Abhishek Gupta, Yi Shao and colleagues used DAgger to distill a state-based RL teacher into an RGB student; their RebarSim seated rebar at 1.4 mm clearance in 137 of 150 real rollouts, and in simulation pure behavior cloning in place of the DAgger mixture cut success from 96.1% to 68.9%Source 29.
NVIDIA's Recova (October 2026) has an agent develop recovery skills in a digital twin of each task. On four real tasks at 20 trials each, DAgger fine-tuning raised mean success from 23.8% to 77.5%, and recovery skills raised it to 87.5%Source 30.
Beyond DAgger
Action chunking and exploratory data collection each provably avoid exponential compounding through control-theoretic stabilitySource 24. A generative imitator, such as a diffusion policy, over a stabilizing controller can match the per-step distribution of expert trajectoriesSource 25.
GAIL's adversarial imitation needs no expert queriesSource 26, nor does DARP's nearest-neighbour retrieval, 15 to 46% better than behavior cloningSource 27. HIL-SERL adds real-world RL, reaching near-perfect success in 1 to 2.5 hoursSource 28.
Self-check
Read the reasoning
- Collect ten times more demonstrations of the same taskMore demonstrations may reduce imitation error, but more samples from the same expert distribution need not cover the states the learner visits after a mistake. The worst-case bound still contains a quadratic horizon factor; it does not predict every rollout.
- Commit to a chunk of 25 predicted actions per inferenceChunking changes the prediction schedule. The toy’s lower readout follows its chosen one-error-per-chunk rule; it is neither an ACT benchmark nor a theorem about deployed robot lifetime. It does not by itself supply labels for unfamiliar states.
- Supervision on the states the policy itself visitsThis directly addresses the training/deployment distribution mismatch. DAgger collects labels on visited states; its task-cost guarantee additionally requires the stated learning and mixing assumptions and a bounded recovery-cost factor. It is not a promise of bounded physical deviation.
Compounding error is a distribution problem first and a data-quantity problem second: the fix supervises the states the policy actually visits.
See also
- Teleoperation Rigs
ALOHA, GELLO, UMI and VR rigs compared on cost and quality.
- The Reliability Gap
80% task success is a demo; 99.9% is a product.
- Action Spaces for Robot Learning
What each action representation gives the learner and asks of the controller.
Linked from
- Vision-Language-Action Models
RT-1, RT-2, Octo and OpenVLA, and what web-scale pretraining adds to robot control.
- Robot Learning Curriculum for ML Engineers
A dependency-ordered route from supervised learning to real robot policies.
- RL for Robotics
Sample efficiency decides which RL algorithm a robot can use.
- Why RL Won Locomotion but Not Manipulation
Walking is cheap to simulate; contact-rich manipulation is not.
- Offline Reinforcement Learning for Robotics
CQL and TD3+BC, and when behavior cloning is the stronger baseline.
- The Data Bottleneck
Robot data comes in hours; language data in trillions of tokens.
- Autonomous Vehicles
Driving as a robotics problem, down to the long tail.
References
Dean A. Pomerleau, Advances in Neural Information Processing Systems 1, 1988.
https://proceedings.neurips.cc/paper/1988/hash/812b4ba287f5ee0bc9d43bbf5bbe87fb-Abstract.html
Stéphane Ross, Geoffrey J. Gordon, J. Andrew Bagnell, AISTATS 2011.
https://arxiv.org/abs/1011.0686
Michael Kelly, Chelsea Sidrane, Katherine Driggs-Campbell, Mykel J. Kochenderfer, arXiv v2 (11 March 2019).
https://arxiv.org/abs/1810.02890
Ali Amin, Raichelle Aniceto, Ashwin Balakrishna, Kevin Black, Ken Conley, Grace Connors, and 49 more, 2025.
https://www.pi.website/blog/pistar06
Tony Z. Zhao, Vikash Kumar, Sergey Levine, Chelsea Finn, RSS 2023.
https://arxiv.org/abs/2304.13705
Cheng Chi, Zhenjia Xu, Siyuan Feng, Eric Cousineau, Yilun Du, Benjamin Burchfiel, and 2 more, 2023.
https://arxiv.org/abs/2303.04137
Stéphane Ross, J. Andrew Bagnell, AISTATS 2010 (PMLR vol. 9).
https://proceedings.mlr.press/v9/ross10a.html
Mariusz Bojarski, Davide Del Testa, Daniel Dworakowski, Bernhard Firner, Beat Flepp, Prasoon Goyal, and 7 more, 2016.
https://arxiv.org/abs/1604.07316
Mayank Bansal, Alex Krizhevsky, Abhijit Ogale, 2018.
https://arxiv.org/abs/1812.03079
Dylan J. Foster, Adam Block, Dipendra Misra, 2024.
https://arxiv.org/abs/2407.15007
Nived Rajaraman, Lin F. Yang, Jiantao Jiao, Kannan Ramachandran, 2020.
https://arxiv.org/abs/2009.05990
Max Simchowitz, Daniel Pfrommer, Ali Jadbabaie, 2025.
https://arxiv.org/abs/2503.09722
Pete Florence, Corey Lynch, Andy Zeng, Oscar Ramirez, Ayzaan Wahid, Laura Downs, and 4 more, 2021.
https://arxiv.org/abs/2109.00137
Chaoyi Pan, Giri Anantharaman, Nai-Chieh Huang, Claire Jin, Daniel Pfrommer, Chenyang Yuan, and 5 more, 2025.
https://arxiv.org/abs/2512.01809
Pim de Haan, Dinesh Jayaraman, Sergey Levine, 2019.
https://arxiv.org/abs/1905.11979
Chuan Wen, Jierui Lin, Trevor Darrell, Dinesh Jayaraman, Yang Gao, 2020.
https://arxiv.org/abs/2010.14876
Ajay Mandlekar, Danfei Xu, Josiah Wong, Soroush Nasiriany, CoRL 2021.
https://arxiv.org/abs/2108.03298
Fanqi Lin, Yingdong Hu, Pingyue Sheng, Chuan Wen, Jiacheng You, Yang Gao, ICLR 2025, 2024.
https://arxiv.org/abs/2410.18647
Michael Laskey, Jonathan Lee, Roy Fox, Anca Dragan, Ken Goldberg, 2017.
https://arxiv.org/abs/1703.09327
Xiaoyu Zhang, Matthew Chang, Pranav Kumar, Saurabh Gupta, 2024.
https://arxiv.org/abs/2402.17768
Eric Jang, Alex Irpan, Mohi Khansari, Daniel Kappler, Frederik Ebert, Corey Lynch, and 2 more, 2022.
https://arxiv.org/abs/2202.02005
Xiaomeng Xu, Yifan Hou, Chendong Xin, Zeyi Liu, Shuran Song, 2025.
https://arxiv.org/abs/2506.16685
Zheyuan Hu, Robyn Wu, Naveen Enock, Jasmine Li, Riya Kadakia, Zackory Erickson, and 1 more, 2025.
https://arxiv.org/abs/2509.07953
Thomas T. Zhang, Daniel Pfrommer, Chaoyi Pan, Nikolai Matni, Max Simchowitz, 2025.
https://arxiv.org/abs/2507.09061
Adam Block, Ali Jadbabaie, Daniel Pfrommer, Max Simchowitz, Russ Tedrake, 2023.
https://arxiv.org/abs/2307.14619
Jonathan Ho, Stefano Ermon, 2016.
https://arxiv.org/abs/1606.03476
Quinn Pfeifer, Ethan Pronovost, Paarth Shah, Khimya Khetarpal, Siddhartha Srinivasa, Abhishek Gupta, 2026.
https://arxiv.org/abs/2606.09758
Jianlan Luo, Charles Xu, Jeffrey Wu, Sergey Levine, 2024.
https://arxiv.org/abs/2410.21845
Tao Sun, Beining Han, Patrick Yin, Rui Xu, Harry He, Abhishek Gupta, and 2 more, 2026.
https://arxiv.org/abs/2609.20477
Isabella Liu, An-Chieh Cheng, Johan Bjorck, Zhiding Yu, Hongxu Yin, Jan Kautz, and 3 more, 2026.
https://arxiv.org/abs/2610.01178
Further reading
Dean A. Pomerleau, Neural Computation 3(1), 1991.
https://doi.org/10.1162/neco.1991.3.1.88
Adam Block, Dylan J. Foster, Akshay Krishnamurthy, Max Simchowitz, Cyril Zhang, 2023.
https://arxiv.org/abs/2310.11428
Mingjie Pan, Siyuan Feng, Qinglin Zhang, Xinchen Li, Jianheng Song, Chendi Qu, and 6 more, 2026.
https://arxiv.org/abs/2601.03044
TRI LBM Team, Jose Barreiros, Andrew Beaulieu, Aditya Bhat, Rick Cory, Eric Cousineau, and 76 more, 2025.
https://arxiv.org/abs/2507.05331
Zhanpeng He, Joaquin Palacios, Zhangyu Wang, Chenhao Li, Katelyn Lee, Matei Ciocarlie, and 2 more, 2026.
https://arxiv.org/abs/2610.00781
Spot a factual error or missing qualification? Report a content correction.