PPO, SAC, and offline learning

Home | 09 Reinforcement Learning | 10 Offline RL and Data Coverage

This appendix explains recognizable objectives so you can read implementations. Use a tested implementation for experiments and confirm its exact conventions.

PPO: discourage overly large changes

Let

PPO’s clipped surrogate is

The objective is maximized. estimates whether the sampled action was better than expected. Clipping limits the incentive to increase or decrease a sampled action’s probability excessively. It is not an absolute guarantee of a bounded policy change. Implementations often add value and entropy terms. Original PPO paper.

SAC: reward and entropy

A maximum-entropy objective rewards task performance while encouraging a stochastic policy:

controls the entropy contribution. For a continuous action space this uses differential entropy, which depends on the action parameterization.

A common modern twin-critic SAC target is

Critics regress toward ; the actor seeks actions with high estimated value and entropy. The minimum reduces one source of optimistic bias but does not guarantee accurate values. This is a commonly used later formulation; the original SAC paper and SAC algorithms and applications provide the development.

Why replay is not enough for offline RL

A replay buffer permits reuse of previous interactions. In online training, new experience can sometimes correct bad estimates. With a fixed dataset, unsupported actions may remain untested indefinitely. Offline algorithms therefore change objectives or policy updates to handle coverage limitations.

Your practical decision is not “Which acronym is strongest?” Ask whether new interaction is available, whether rewards are meaningful, what actions the data covers, and whether the evaluation can reveal distribution shift.

Exercise: an environment ends because a data-collection timer expires, but the task state is not terminal. Should you always zero the value bootstrap?