Back to Reinforcement Learning Mind Map
中文·English
🎮 Reinforcement LearningID: behavioral-cloning

Behavioral Cloning

行为克隆 BC
🎯Core Definition
Behavioral cloning (BC) is the most direct imitation method: treat expert trajectories as labeled data and run supervised learning on (s,a)(s,a) pairs, minimizing minπE(s,a)πE[logπ(as)]\min_\pi \mathbb{E}_{(s,a) \sim \pi_E}[-\log \pi(a|s)] — maximum-likelihood fitting of the expert policy.
💡Use Cases
a fast start when expert demos are available but rewards are hard to design — data-driven driving, teleoperated robot demos; LLM SFT (supervised fine-tuning) is BC in disguise.
Key Problems Solved
simple, yet two fatal limitations: (1) compounding error — with independent per-step error probability ϵ\epsilon, deviation grows O(tϵ)\mathcal{O}(t\epsilon) by step tt, so the total loss accumulates to t=1TO(tϵ)=O(T2ϵ)\sum_{t=1}^{T} \mathcal{O}(t\epsilon) = \mathcal{O}(T^2 \epsilon), growing quadratically in horizon; worse, training only sees states inside the expert's distribution (the i.i.d. assumption), while deployment must cope with the shifted state distribution its own mistakes create (covariate shift); (2) causal confusion — the model may latch onto effects rather than causes, e.g. a driving agent correcting from the ego car's lateral offset (an effect of its own steering) instead of the true cause — plausible in training, but the feedback loop breaks at test time and performance collapses.
🎯5 High-Frequency Exam Points
1
Why is BC's compounding error O(T2)\mathcal{O}(T^2)? Give the derivation intuition: how does per-step error ϵ\epsilon accumulate quadratically along the trajectory?
2
What is causal confusion? Give a driving/robotics example and its mitigations.
3
BC vs DAgger? How does DAgger fix covariate shift?
4
Why does BC look fine in training but fail at deployment? How does the i.i.d. assumption break?
5
BC vs GAIL/IRL: which imitation approach fits which scenario?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "Behavioral Cloning"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardOffline Distribution ShiftNext CardGAIL & Inverse RL

🔗 More Reinforcement Learning Knowledge Cards

Actor-CriticContextual BanditCoT & Reasoning RLConservative Q-Learning