If MaxEnt RL is the Answer, What is the Question?

Benjamin Eysenbach, Sergey LevinearXiv 2019

Abstract

Experimentally, it has been observed that humans and animals often make decisions that do not maximize their expected utility, but rather choose outcomes randomly, with probability proportional to expected utility. Probability matching, as this strategy is called, is equivalent to maximum entropy reinforcement learning (MaxEnt RL). However, MaxEnt RL does not optimize expected utility. In this paper, we formally show that MaxEnt RL does optimally solve certain classes of control problems with variability in the reward function. In particular, we show (1) that MaxEnt RL can be used to solve a certain class of POMDPs, and (2) that MaxEnt RL is equivalent to a two-player game where an adversary chooses the reward function. These results suggest a deeper connection between MaxEnt RL, robust control, and POMDPs, and provide insight for the types of problems for which we might expect MaxEnt RL to produce effective solutions. Specifically, our results suggest that domains with uncertainty in the task goal may be especially well-suited for MaxEnt RL methods.

Introduction

In standard Reinforcement Learning (RL), the goal is to find a policy that maximizes expected cumulative reward. In a fully observed world, this typically results in a deterministic policy. However, Maximum Entropy RL (MaxEnt RL) adds an entropy term to the objective, forcing the agent to be stochastic. While MaxEnt RL works well in practice (e.g., Soft Actor-Critic), common justifications like "better exploration" or "smoother optimization landscapes" are often seen as heuristics. This paper asks a deeper question: What specific problem is a stochastic policy actually the optimal solution for? The authors find the answer in handling unobserved goals and defending against adversarial reward perturbations.

Theoretical Framework

The paper provides theoretical proofs linking MaxEnt RL to two distinct frameworks:

1. The Meta-POMDP and Regret Minimization

The authors define a setting where an agent must solve a task without knowing exactly what the task is (a Meta-POMDP). The agent interacts with the environment over multiple trials until it succeeds. They prove that minimizing the regret (the expected number of trials to succeed) is equivalent to solving a MaxEnt RL problem. A key insight here is the "Square Root" rule: to minimize regret, the optimal policy's trajectory distribution should be proportional to the square root of the target distribution ($\pi(\tau) \propto \sqrt{p(\tau)}$).

2. Robust-Reward Control

RL is framed as a two-player, zero-sum game where an agent plays against an "adversary" who can perturb the rewards. The entropy term in MaxEnt RL is mathematically shown to be equivalent to assuming the existence of this adversary. By being stochastic, the agent becomes "harder to exploit," much like playing a mixed strategy in game theory to ensure robustness against reward uncertainty.

Key Results

The theoretical derivations were validated using synthetic bandit problems to demonstrate convergence to regret-minimizing and minimax-optimal policies.

MaxEnt RL converges to the optimal regret-minimizing policy in a Meta-POMDP setting.

In simulations, MaxEnt RL successfully converged to the minimum possible regret in Meta-POMDPs, outperforming standard RL approaches that often get stuck in deterministic, sub-optimal loops. This suggests that "probability matching" observed in biological agents is actually a mathematically sound strategy for dealing with task uncertainty.

MaxEnt RL achieves optimal minimax rewards in adversarial settings, outperforming standard game theory baselines.

In adversarial settings, MaxEnt RL achieved optimal minimax rewards. It even outperformed "Fictitious Play" because MaxEnt RL is better at handling noisy observations of the adversary's moves. This unifies MaxEnt RL with robust control and probabilistic inference, providing a formal foundation for why entropy regularization is effective.

Limitations and Future Work

While the theory is robust, several areas remain for future exploration:

  • Markovian Constraint: MaxEnt RL produces Markovian policies. In complex scenarios, non-Markovian policies that perform "system identification" of the adversary might be superior.
  • Entropy Variants: The proofs specifically use Shannon Entropy. Using other types, like Tsallis Entropy, would lead to different "robust sets" of rewards.
  • Scaling: The Meta-POMDP requires a belief over trajectories, which is computationally expensive. Approximating this in high-dimensional continuous spaces like robotics is a key next step.

Summary updated

Abstract

Experimentally, it has been observed that humans and animals often make decisions that do not maximize their expected utility, but rather choose outcomes randomly, with probability proportional to expected utility. Probability matching, as this strategy is called, is equivalent to maximum entropy reinforcement learning (MaxEnt RL). However, MaxEnt RL does not optimize expected utility. In this paper, we formally show that MaxEnt RL does optimally solve certain classes of control problems with variability in the reward function. In particular, we show (1) that MaxEnt RL can be used to solve a certain class of POMDPs, and (2) that MaxEnt RL is equivalent to a two-player game where an adversary chooses the reward function. These results suggest a deeper connection between MaxEnt RL, robust control, and POMDPs, and provide insight for the types of problems for which we might expect MaxEnt RL to produce effective solutions. Specifically, our results suggest that domains with uncertainty in the task goal may be especially well-suited for MaxEnt RL methods.
BibTeX
@misc{eysenbach2019if,
  author = {Benjamin Eysenbach and Sergey Levine},
  title = {{If MaxEnt RL is the Answer, What is the Question?}},
  year = {2019},
  eprint = {1910.01913},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1910.01913},
}
Figure