Pages
TL1 — RL Loss
For the initial model, reinforcement learning can use a standard actor-critic setup with GAE for advantage estimation and PPO for the policy update. The critic estimates
where is a multi-headed learned query of the dense features of the same form as . First define the one-step temporal-difference residual
Instead of a plain n-step return, we estimate the advantage using Generalized Advantage Estimation
Here, controls the bias-variance tradeoff. We then define the value target as
Let the policy ratio be
The actor is trained with the PPO clipped objective
The critic minimizes the squared value error
We also include an entropy term to encourage exploration. The total reinforcement learning loss is