Trust Region
Definition
A trust region in policy optimization is a bound on how far the policy is allowed to move per update, measured in policy space (KL divergence) rather than parameter space (). It is the fix for the signature pathology of policy gradients: a single too-large step visits a different part of state space, invalidates the sampled advantages, and can collapse performance irrecoverably. Constraining the step keeps the local approximation valid (near-monotone improvement) and keeps so a batch can be reused for several updates. PPO and TRPO are the two canonical realizations.
Key math
The trust region operationalizes the surrogate-improvement bound:
TRPO turns the penalty into a hard KL constraint and solves it with a natural-gradient step:
where is the Fisher information matrix (the KL Hessian, a metric on policy space) and the surrogate gradient. This requires conjugate gradient, Fisher-vector products, and a line search — second-order and heavy. PPO replaces all of it with a first-order clipped objective (or an adaptive- KL penalty) that approximates the same region cheaply.
Why it matters
The KL-geometry insight is why -free, monotone-ish improvement is possible at all — the same can barely move or wreck it, so parameter distance is the wrong ruler. In RLHF this recurs twice: the implicit trust-region KL to (step stability, enforced by PPO’s clip) and the explicit reference KL to a frozen (drift control against reward-model over-optimization). PPO’s clip is only a heuristic trust region — it bounds per-sample movement, not aggregate KL — so practical runs still monitor KL and early-stop.
Taught in
- 04-ppo — the two failure modes of vanilla PG, the trust-region idea, TRPO’s natural gradient, and PPO-Clip as the cheap realization.
See also
- ppo — the first-order realization
- policy-gradient-theorem — the instability trust regions fix
- kl-regularization-rlhf — the RLHF reference-KL (a related but distinct KL)
- advantage-function — what a bad step invalidates
- rl-for-llms