A ai coolAId

Advantage Function & Baseline

In One Sentence
Measuring how much better an action turned out compared to the expected average from that state: A_t = Q(s_t, a_t) - V(s_t).
ELI5 (Intuition)
Scoring a 70 on a brutal exam sounds bad—unless the class average was 50, meaning you did +20 better than expected. Subtracting the baseline stops good moves from being punished on hard days.
ELI18 (Technical)
Subtracting any state-only baseline \(b(s_t)\) leaves the policy gradient expectation unchanged while drastically reducing variance: \[A(s_t, a_t) = Q(s_t, a_t) - V(s_t).\] Positive advantage reinforces the action; negative advantage suppresses it.
In Practice
In LLM post-training, hard math prompts naturally get lower raw scores than easy prompts. Centering rewards against the prompt's baseline (via a critic or group mean) prevents the model from only learning on easy prompts.