Overview
For imitation learning, it is easy for us to have a fit on the expert behavior, However when we encounter a new situation, we can’t solve the problem. So we imagine that there is an expert strategy in the real world, and this expert strategy will give a reward function to guide our agents to learn. AIRL is based on the past GAIL. In GAIL, we directly use GAN to fit the behavior of the agent to the expert behavior, and do not directly give the reward function. This behavior will lead to our learning is not clear and not good. Migration, so we will record the function of the discriminator in GAN as D, and use D to represent our reward function. Below I will write in detail, how this is derived.
the goal of the IRL
Firstly, we define a distribution pθ(τ)p_\theta(\tau)pθ(τ). in another word, it is the expectation for the accumulated over the expert trajectory. so it can be wrote in this form. And D is the demonstrations of the expert.
pθ(τ)∝p(s0)∏t=0T−1p(st+1∣st,at)erθ(st,at)p_\theta(\tau)\propto p(s_0)\prod_{t=0}^{T-1}p(s_{t+1}|s_t,a_t)e^{r_{\theta}(s_t,a_t)}pθ(τ)∝p(s0)∏t=0T−1p(st+1∣st,at)erθ(st,at)
the goal of IRL can been seen as training a generative model over trajectories as:
maxθ{ J(θ)}=maxθEτ∼D[logpθ(τ)]\max \limits_{\theta}\{J(\theta)\}=\max \limits_{\theta}E_{\tau\sim D}[\log p_{\theta}(\tau)]θmax{ J(θ)}=θmaxEτ∼D[logpθ(τ)]
Then we calculate the gradient with respect to θ\thetaθ(where pθ,t=∫st′≠t,at′≠tpθ(τ)p_{\theta,t}=\int_{s_{t'}\neq t,a_{t'}\neq t}p_{\theta(\tau) \qquad}pθ,t=∫st′=t,at′=tpθ(τ) denote the state-action marginal at time t):
∂∂θJ(θ)=∑t=0TED[∂∂θrθ(st,at)]−Epθ,t[∂∂θrθ(st,at)]\frac{\partial}{\partial \theta} J(\theta)=\sum_{t=0}^{T} E_{\mathcal{D}}\left[\frac{\partial}{\partial \theta} r_{\theta}\left(s_{t}, a_{t}\right)\right]-E_{p_{\theta, t}}\left[\frac{\partial}{\partial \theta} r_{\theta}\left(s_{t}, a_{t}\right)\right]∂θ∂J(θ)=∑t=0TED[∂θ∂rθ(st,at)]−Epθ,t

本文详细介绍了对抗逆强化学习(AIRL)的原理,从IRL的目标出发,探讨了如何通过最小化KL散度来适应重要性采样器,以减少方差,并解释了如何从交叉熵损失中计算D函数,最后得出新的期望奖励表达式。AIRL旨在通过明确的奖励函数改进GAIL,使学习过程更加清晰有效。

3352

被折叠的 条评论
为什么被折叠?



