Novel Policy Seeking with Constrained Optimization

Hao Sun, Zhenghao Peng, Bo Dai, Dahua Lin, Bolei Zhou

TL;DR

Standard reinforcement learning produces monotonous policies that exploit a single solution, while existing novelty-seeking methods sacrifice task performance due to conflicting gradients between novelty and environment rewards. This paper reframes novel policy generation as a constrained optimization problem and introduces Interior Policy Differentiation (IPD)—an elegant, gradient-free approach that enforces novelty simply by terminating trajectories that become too similar to previously discovered policies.

What Problem Does This Paper Address?

When humans solve problems, we naturally explore distinct, creative strategies. In contrast, standard deep reinforcement learning (RL) algorithms converge to a single, monotonous behavior that maximizes expected return.

Prior attempts to encourage cross-policy diversity treat novelty seeking as a multi-objective optimization problem, adding an intrinsic novelty bonus or using gradient-blending techniques (like Task-Novelty Bisector, TNB). However, this creates severe issues:

  1. Objective interference and performance decay: Early in training, an agent must learn basic task competencies before it can meaningfully differentiate itself. Penalizing it for resembling existing good policies at the outset stalls training and degrades task performance.
  2. Reward engineering headaches: Performance is highly sensitive to the scaling and functional form of the novelty bonus relative to task rewards.

Methods

The authors tackle novel policy generation through the lens of Constrained Markov Decision Processes (CMDPs), treating task reward as the sole optimization objective while treating policy diversity as an inequality constraint.

      Traditional Multi-Objective              Constrained Formulation (IPD)
    max E[ R_task + α * R_novelty ]                max E[ R_task ]
                                         subject to: Novelty(π, Π_ref) ≥ r₀
  (Gradients constantly conflict)           (Novelty enforced via early exit)

Key technical elements include:

  • Policy Distance Metric: The difference between Gaussian policies is evaluated via the closed-form 2-Wasserstein metric ($W_2$), averaged across states using an importance-sampled stationary state distribution. Novelty is defined as the distance to the closest policy in a reference set of previously trained policies $\Theta_{\text{ref}}$.
  • Interior Policy Differentiation (IPD): Classic Interior Point Methods (IPMs) enforce constraints using barrier functions (e.g., $-\alpha \log g(\theta)$), but these can be numerically unstable in deep RL. IPD provides an intuitive physical realization of an interior barrier: it provides an early termination signal during environment rollouts whenever the running novelty metric falls below a minimum threshold $r_0$ (after a grace period $t_S$ timesteps).
  • Novelty-Reward-Scale-Agnostic: Because IPD prunes invalid behaviors directly via episode termination, no policy gradient is backpropagated from the novelty metric. It completely avoids the tuning of reward scales or monotonic shaping functions.

Datasets & Environments

The paper evaluates methods across four simulated environments:

  • Four Reward Maze: A diagnostic 2D grid world with four distinct goal targets (+10, +5, +5, +1) situated along the boundaries.
  • MuJoCo Locomotion Benchmarks: Three standard continuous-control environments from OpenAI Gym:
  • Hopper-v3 (11 observations, 3 actions)
  • Walker2d-v3 (11 observations, 6 actions)
  • HalfCheetah-v3 (17 observations, 6 actions)

Key Insights and Ideas

  • Novelty is a boundary, not an objective: Pushing an agent to be novel all the time forces it to take suboptimal actions. Treating novelty as a constraint ($g_t(\theta) \ge 0$) lets the agent freely optimize task returns inside the "novel behavior" region.
  • Diversity prevents local minima traps: In environments like Hopper and HalfCheetah, standard PPO often collapses into sub-optimal local optima (such as taking a single giant leap and falling down). By barring new policies from imitating these failed local optima, IPD forces new policies to explore alternative, higher-performing gaits.
  • Passive novelty enforcement beats active gradient balancing: Cutting off unoriginal trajectories at rollout time acts like natural selection—the only transitions available for gradient updates are those inside the feasible, novel policy space.

Key Results

Experiments compared IPD against vanilla PPO (with varying seeds), Weighted Sum Reward (WSR), Task-Novelty Bisector (TNB), Constrained TNB (CTNB), and Constrained Policy Optimization (CPO):

  • Higher Task Return: Rather than sacrificing performance for novelty, IPD actually achieved the highest or competitive task scores across all continuous control tasks:
  • Hopper-v3: $2536 \pm 557$ (IPD) vs. $1292 \pm 650$ (PPO) and $1699 \pm 573$ (TNB).
  • HalfCheetah-v3: $1875 \pm 533$ (IPD) vs. $1127 \pm 308$ (PPO) and $887 \pm 178$ (TNB).
  • Walker2d-v3: $2282 \pm 206$ (IPD) vs. $2196 \pm 200$ (PPO) and $1788 \pm 214$ (TNB).
  • Higher Stability and Success Rate: Defining success as matching or beating median PPO performance, IPD achieved success rates of 1.0 in Hopper, 0.6 in Walker2d, and 0.9 in HalfCheetah, consistently outpacing multi-objective baselines (which dropped as low as 0.0 to 0.1).
  • Qualitative Diversity: Visualizing motion patterns confirmed distinct behaviors: IPD agents in Walker2d learned bipedal walking rather than single-leg hopping, while HalfCheetah agents discovered multiple distinct postures (running head-up, head-down, or stretched forward).

Limitations and Future Work

  • Threshold Sensitivity: The novelty threshold $r_0$ dictates the constraint tightness. If $r_0$ is set too aggressively, the feasible region shrinks to the point where finding viable policies becomes excessively difficult, degrading performance.
  • Approximation Limits of State Distributions: Approximating the stationary visitation distribution using importance sampling incurs larger approximation errors as a new policy becomes increasingly distinct from reference behaviors.
  • Scope of Environments: The empirical evaluation focuses strictly on continuous-action locomotion tasks built atop PPO; extending and validating the method in discrete action domains, pixel-based environments, or multi-task settings remains open for future exploration.

Summary updated

BibTeX
@inproceedings{sun2022novel,
  author = {Hao Sun and Zhenghao Peng and Bo Dai and Dahua Lin and Bolei Zhou},
  title = {{Novel Policy Seeking with Constrained Optimization}},
  booktitle = {DeepRL @ NeurIPS},
  year = {2022},
  url = {https://openreview.net/forum?id=jlTb5di9Eg8},
}
Figure