Back to Reinforcement Learning Mind Map
中文·English
🎮 Reinforcement LearningID: gail-inverse-rl

GAIL & Inverse RL

GAIL 与逆向 RL
🎯Core Definition
Inverse RL (IRL) recovers a reward function from expert trajectories; GAIL (Generative Adversarial Imitation Learning) merges adversarial training with max-entropy IRL to learn a policy directly: minπmaxDEπE[logD(s,a)]+Eπ[log(1D(s,a))]λH(π)\min_\pi \max_D \mathbb{E}_{\pi_E}[\log D(s,a)] + \mathbb{E}_\pi[\log(1-D(s,a))] - \lambda \mathcal{H}(\pi) — discriminator DD tells expert (s,a)(s,a) pairs from the policy's, and the policy fools it into matching the expert distribution, with entropy H(π)\mathcal{H}(\pi) preventing collapse.
💡Use Cases
rewards are hard to design but expert demos are plentiful — robot teaching, driving, games; the learned implicit reward also enables behavior explanation and transfer across tasks.
Key Problems Solved
upgrades imitation from 'passively fitting expert actions' (BC) to 'actively matching the expert trajectory distribution' — the discriminator supplies dense adversarial feedback at every step, so errors never compound quadratically as in BC; meanwhile max-entropy IRL assumes expert trajectories satisfy p(τ)exp(R(τ))p(\tau) \propto \exp(R(\tau)) — higher-reward trajectories are exponentially more likely to be chosen — giving a principled solution space for the reward and ruling out trivial solutions (e.g., constant reward) and IRL's ill-posedness.
🎯5 High-Frequency Exam Points
1
Write the GAIL objective and explain each term; which divergence between the expert and policy distributions does it minimize?
2
Why does GAIL mitigate compounding error compared to BC? What signal does the discriminator provide?
3
What is the max-entropy IRL assumption p(τ)exp(R(τ))p(\tau) \propto \exp(R(\tau))? Which IRL ill-posedness (e.g., constant-reward trivial solution) does it fix?
4
Common issues with GAIL's discriminator (implicit reward)? Role of the entropy bonus λH(π)-\lambda \mathcal{H}(\pi)?
5
IRL/GAIL and RLHF reward modeling both infer preferences from behavior — what are the key differences?
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "GAIL & Inverse RL"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardBehavioral CloningNext CardConservative Q-Learning

🔗 More Reinforcement Learning Knowledge Cards

Actor-CriticContextual BanditCoT & Reasoning RLOffline Distribution Shift