A ai coolAId

REINFORCE

In One Sentence
The simplest Monte Carlo policy-gradient algorithm: play a full episode, then increase the probability of actions from above-average runs.
ELI5 (Intuition)
Play an entire game from start to finish. If your final score beat your usual average, nudge your brain to repeat those moves; if it was worse, nudge away from them.
ELI18 (Technical)
Updates policy parameters \(\theta\) via \[\Delta\theta \propto \nabla_\theta \log \pi_\theta(a_t \mid s_t)\,(G_t - b),\] where \(G_t\) is the full-episode Monte Carlo return and \(b\) is a baseline. Unbiased, but notoriously high-variance.
In Practice
Rarely used raw for complex control, yet its exact mathematical DNA powers modern LLM RL (RLOO and GRPO are essentially variance-reduced, clipped REINFORCE without a critic!).