CPO Trust Region Update
Context
Achiam2017 - Constrained Policy Optimization develops CPO for neural policy search in CMDPs. The reusable formal core is the move from a performance-difference bound to a trust-region update with surrogate cost constraints.
Formal Statement
For a CMDP with costs C_i and thresholds d_i, CPO updates from policy pi_k by approximately solving:
subject to:
for all costs i, and:
The underpinning performance bound says that replacing the new state distribution with the old one is controlled by a divergence penalty. Pinsker’s inequality turns the average total-variation term into an average KL term. For costs, the analogous upper bound gives an approximate worst-case constraint-violation bound after a trust-region step.
Derivation / Construction
- Start from the performance-difference identity using the advantage under the old policy.
- Bound the distribution-shift error by an average divergence between the old and new action distributions.
- Use the lower bound for reward improvement and the upper bound for cost increase.
- Replace direct cost feasibility under
piwith on-policy surrogate cost constraints under samples frompi_k. - For neural policies, linearize reward and cost surrogates in parameters and quadratically approximate the KL constraint:
subject to:
- Use line search and, in the single-constraint case, an analytical solution/recovery step to handle approximation errors.
Implications
- CPO is safer during learning than primal-dual methods that only enforce constraints at convergence.
- The safety claim is still approximate: finite samples, local linearization, and neural parameterization can all weaken the formal bound.
- Cost shaping can tighten empirical adherence to the true cost constraint by optimizing a conservative upper-bound cost.
- The update is a useful single-agent reference point for MACPO Sequential Trust Region.