TL;DR
Standard reinforcement learning algorithms use entropy regularization to encourage exploration, but this blindly pushes agents toward pure randomness and requires tedious hyperparameter tuning. This paper introduces Complexity-Regularized PPO (CR-PPO), which replaces entropy with a self-regulating "complexity" metric that penalizes both absolute determinism and total randomness. The result is an algorithm that is significantly more robust to hyperparameter choices, maintaining high performance across orders of magnitude of regularization coefficients.
What Problem Does This Paper Address?
In reinforcement learning (RL), policy gradient methods like Proximal Policy Optimization (PPO) often struggle with premature convergence to suboptimal, deterministic strategies. To combat this, researchers traditionally add an entropy bonus to the loss function, which rewards the agent for keeping its options open (stochasticity).
However, maximizing entropy indiscriminately forces the policy toward a uniform distribution—pure, unadulterated randomness. If the scaling factor ($c_{reg}$) for this bonus is even slightly too high, it can completely wash out the actual reward signal from the environment. Consequently, practitioners spend massive amounts of time and compute tuning this single hyperparameter, and standard entropy methods often fail entirely in environments that demand precise, low-entropy actions.
Methods
The authors propose a novel algorithm called Complexity-Regularized Proximal Policy Optimization (CR-PPO). Instead of regularizing with pure Shannon entropy ($H$), they adopt the López-Ruiz, Mancini, and Calbet (LMC) complexity measure from statistical physics.
LMC complexity is defined as the product of Shannon entropy and disequilibrium ($D$): $$C = H \cdot D$$ Where disequilibrium measures the statistical distance of the policy from a uniform distribution.
This formulation introduces a fascinating geometric property: complexity drops to zero at both extremes—when the policy is perfectly deterministic ($H=0$) and when it is completely uniform/random ($D=0$). It peaks in the sweet spot where the policy is stochastic yet structured.
By swapping PPO's standard entropy bonus with this complexity loss, the regularizer automatically tunes its behavior based on the policy's state:
- If the policy becomes too sharp/deterministic, the gradient pushes it toward randomness (fostering exploration).
- If the policy becomes too flat/random, the gradient pulls it back toward sharpness (fostering exploitation).
Datasets
The authors evaluated CR-PPO across a diverse suite of environments with discrete action spaces:
- Gymnasium benchmarks: CartPole (2D action space) and CarRacing (5D action space).
- Atari Games: AirRaid, Asteroids, and Riverraid (ranging up to 18D action spaces).
- Procgen: CoinRun (15D action space), which tests generalization and robustness against sparse rewards.
- CARTerpillar: A brand-new benchmark introduced in this paper. It extends the classic CartPole to multiple interconnected carts linked via dampers and springs. By changing a single parameter—the number of carts ($C$)—researchers can linearly scale the task's state/action space complexity and environmental dynamics.
Key Insights and Ideas
- The "Edge of Chaos" Principle: Borrowing from physics, a complex system is neither a perfect crystal (ordered) nor an ideal gas (random). CR-PPO keeps the policy at this optimal boundary.
- Self-Regulating Gradients: The mathematical beauty of CR-PPO lies in its gradient. Because it's a product of two terms, when the policy is highly uncertain (near-uniform), the disequilibrium term dominates and actively lowers the regularization pressure, preventing the agent from getting trapped in a "randomness pit."
- Hyperparameter Immunity: Standard PPO is notoriously sensitive to the entropy coefficient. CR-PPO effectively decouples performance from meticulous coefficient tuning, making it an "auto-tuning" regularizer.
Key Results
- Robustness to Scaling: Across environments like CoinRun and AirRaid, increasing the entropy coefficient in standard PPO completely tanks performance. CR-PPO, however, remains rock-solid and maintains optimal or near-optimal performance across multiple orders of magnitude of the coefficient ($c_{reg}$).
- Performance in Complex Tasks: In difficult Atari games like Asteroids and RiverRaid, where regularization is crucial, CR-PPO achieves results comparable to or better than a perfectly tuned standard PPO, but without the expensive grid search.
- Scaling with Task Difficulty: On the new CARTerpillar benchmark, as the number of carts increases from 6 to 11, standard PPO without regularization fails completely. While standard PPO with entropy requires precise tuning to handle the higher dimensions, CR-PPO consistently converges to the optimum across a wide range of hyperparameters.
Limitations and Future Work
- Discrete Action Spaces Only: The current mathematical definition of disequilibrium relies on summation over discrete actions, meaning CR-PPO cannot be directly applied to continuous control tasks (like robotics) out of the box.
- Action Space Scale: The evaluation was limited to classic RL and Atari games with relatively small discrete action spaces (up to 18 actions). How well this complexity measure scales to massive action spaces remains an open question.
- Future Directions: The authors plan to extend the formulation to continuous domains (e.g., using variance magnitude or integration), explore its interplay with off-policy algorithms like Soft Actor-Critic (SAC), and combine it with curiosity-driven intrinsic rewards.
Summary updated