Introduction
Reinforcement Learning (RL) has long been obsessed with value functions, but this paper argues we should pivot our attention to "occupancy functions"—metrics that describe how often a policy visits certain states. The authors introduce the first computationally efficient Policy Gradient (PG) methods that use only occupancy functions, proving they can optimize complex, non-standard objectives and handle messy offline data with strong theoretical guarantees.
Most model-free RL algorithms are "value-based," estimating the expected reward from a state ($V$) or a state-action pair ($Q$). While successful, this paradigm struggles with two major issues:
- General Objectives: Optimizing metrics other than the sum of rewards (like maximizing entropy for better exploration or minimizing risk) is difficult because standard value functions often lack a "Bellman equation" to help solve them.
- Distribution Shift: In offline RL (learning from a fixed dataset), the learning policy might visit states the dataset never saw. Value-based methods often over-estimate rewards in these "unseen" areas, leading to poor performance.
Occupancy functions (densities describing state visitation) are the natural mathematical counterparts to value functions and are better suited for these problems. However, until now, there were no computationally efficient ways to perform policy gradients using only these functions without falling back on value estimation.
Methods: OCCUPG and OFF-OCCUPG
The authors propose two primary algorithms: OCCUPG for online learning and OFF-OCCUPG for offline learning.
- The Gradient Recursion: The core innovation is a "Bellman-like" recursion for the gradient of the occupancy function. By applying the "grad-log trick," the authors show that the gradient of a policy's visitation density at step $h$ can be calculated using the gradient from step $h-1$.
- Reduction to Regression: This recursive structure allows the authors to turn the difficult task of RL gradient estimation into a series of simple squared-loss regression problems. This makes the algorithm "oracle-efficient," meaning if you have a good supervised learning solver, you can solve the RL problem.
- Smooth Clipping ($\sigma$): In the offline setting, data coverage is often poor. To prevent gradient estimates from exploding when the policy visits states not in the dataset, the authors use a novel "smooth-clipping" mechanism.
Unlike "hard" clipping (which is non-differentiable and unstable, shown as dashed lines), smooth clipping provides a mathematically robust way to stay pessimistic about poorly covered states while maintaining a learnable gradient.
Key Insights and Results
- The "One-Line" Change: Because the algorithm models the occupancy gradient directly, it can optimize any differentiable objective functional (like entropy or safety constraints) with a single line of code change in the gradient update.
- Value-Free PG: The paper proves you don't need to estimate $Q$-values to do policy gradients. This bypasses the need for value-function completeness assumptions, which are often the "bottleneck" in RL theory.
- Pessimism via Occupancy: In offline RL, pessimism is usually achieved by subtracting a "penalty" from the reward. Here, pessimism is built directly into the occupancy estimation via clipping—if the data doesn't cover a state, the algorithm effectively "refuses" to believe the policy can visit it reliably.
- Sample Complexity and Convergence: The authors provide the first sample complexity bounds for occupancy-based PG. For online learning, they show that $n = \tilde{O}(1/\epsilon^2)$ samples are sufficient to reach an $\epsilon$-accurate gradient estimate. They prove local convergence to stationary points for both online and offline settings, and establish global optimality in the online setting if the initial state distribution is sufficiently exploratory.
- Robustness: They demonstrate that "hard clipping" leads to constant errors in gradient estimation, whereas their "smooth clipping" resolves this, ensuring the algorithm actually converges.
Limitations and Future Work
As a theoretical paper, it does not evaluate on standard empirical benchmarks (like MuJoCo or Atari), relying instead on theoretical frameworks like Low-rank MDPs and Synthetic Multi-armed Bandits. Empirical investigations are needed to see how these regression-based updates perform against deep RL heavyweights like PPO or SAC.
Furthermore, achieving global optimality in the offline setting still requires "strong all-policy coverage" (the dataset must cover almost everything the optimal policy might do). Relaxing this requirement for occupancy-based methods remains an open challenge. Finally, the recursive regression approach requires solving $H$ (horizon length) regression problems per policy update, which could be computationally expensive for tasks with very long horizons.
Summary updated