NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

State Entropy Regularization for Robust Reinforcement Learning

Yonatan Ashlag, Uri Koren, Mirco Mutti, Esther Derman, Pierre-Luc Bacon, Shie Mannor

State entropy regularization in reinforcement learning (RL) is often viewed simply as a trick for better exploration. However, recent research demonstrates that it mathematically guarantees robustness against large, spatially correlated disruptions—such as a suddenly blocked path. Unlike the widely used policy entropy, which only smooths out small local noise, state entropy encourages agents to master multiple diverse paths, though it requires a higher data budget to estimate accurately.

The Problem: Overfitting and Local vs. Global Protection

Reinforcement Learning agents frequently overfit to their training environments. If you train a simulated robot to walk down a clear hallway and then place a large box in its path during deployment, it will likely fail catastrophically. Robust RL attempts to fix this by training agents to handle uncertainty and model misspecification.

A common technique to improve robustness is policy entropy regularization, which forces the agent to inject randomness into its actions. While this helps smooth out small, uniform noise (like a slippery floor), it fails against structured, spatial changes (like the box in the hallway) because the agent still relies on a single dominant route. Policy entropy protects against a locally informed adversary; it is akin to a methodical way of injecting noise along a single optimal path.

Recently, researchers have started using state entropy regularization—rewarding the agent for visiting a wide variety of states—to improve exploration. By encouraging the agent to cover more of the state space, it naturally learns backup routes, making it resilient to localized catastrophes. This paper formally studies whether state entropy regularization provides mathematical robustness, and against what kind of real-world perturbations.

Theoretical Insights: The Temperature Dial

The authors tackle this question using a mix of theoretical proofs and empirical evaluations. Using convex duality, they prove that optimizing a state-entropy regularized objective is mathematically equivalent to solving a specific "robust RL" problem where an adversary is allowed to tamper with the rewards. They derive the exact uncertainty sets and adversarial bounds for state entropy and compare them to policy entropy.

A key finding is that the regularization strength (the "temperature" parameter $\alpha$) acts as a dial for the adversary's budget. Turning it up expands the uncertainty set the agent is robust against, interpolating between different mathematical bounds (from $\ell_\infty$-like to $\ell_1$-like uncertainty).

Theoretical bounds of the uncertainty set modulated by the temperature parameter $\alpha$.

Empirical Evaluation and Key Results

To test these theories, the authors implement state entropy regularization by adding an intrinsic reward to the agent. Because true state entropy is unknown, they estimate it using a $k$-nearest neighbor ($k$-NN) algorithm based on the states the agent visits during rollouts. They train agents using standard algorithms (A2C for discrete, PPO for continuous) and evaluate them in nominal (clean) environments versus perturbed environments.

The datasets include standard RL simulation environments modified to test specific robustness scenarios:

  • MiniGrid (Discrete): An 8x8 gridworld where perturbations include adding a large blocking wall, scattering random small obstacles, or shifting the goal location.
  • MuJoCo (Continuous): Physics-based control tasks (Pusher and Ant) where perturbations include placing large unobservable obstacles directly in the agent's optimal path or shifting the target location.

In both MiniGrid and MuJoCo, when a large obstacle was placed directly on the optimal path, state-entropy regularized agents successfully bypassed it. They significantly outperformed unregularized agents, policy-entropy agents, and even dedicated robust RL baselines. Furthermore, when the goal was moved far from its original location in the Pusher environment, state entropy yielded substantial gains because the agent was already accustomed to exploring broader areas of the board.

Comparison of trajectory paths in nominal and perturbed environments.

Limitations and Future Work

The authors are highly transparent about the limitations of state entropy:

  1. The Impossibility Result: They prove a fundamental limitation that no regularization function depending only on the nominal environment and the policy (including any form of entropy) can fully solve general transition (kernel) robustness.
  2. The Risk-Aversion Trap: Entropy regularization can actually hurt risk-averse performance (measured by Conditional Value at Risk, or CVaR). Because entropy encourages stochasticity, it fundamentally conflicts with the low-variance, "safe" trajectories needed for strict risk aversion.
  3. The Rollout Catch: State entropy's robustness is highly sensitive to the number of rollouts (trajectories) used during training. Estimating state entropy in high dimensions requires a lot of data; if the sample budget is too low, the entropy estimator becomes inaccurate and can actually incentivize the agent to take deterministic, sub-optimal paths.

Currently, the authors pair state entropy with a small amount of policy entropy to keep training stable. Future work could explore algorithmic tuning to see if state entropy alone can achieve both training stability and robustness without relying on policy entropy as a crutch.

Summary updated

BibTeX
@inproceedings{ashlag2025state,
  author = {Yonatan Ashlag and Uri Koren and Mirco Mutti and Esther Derman and Pierre-Luc Bacon and Shie Mannor},
  title = {{State Entropy Regularization for Robust Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=rtG7n93Ru8},
}
Figure