Exploration as Constrained Policy-Space Optimization

Victor AzadNeurIPS 2026

TL;DR

In reinforcement learning, giving an agent a "curiosity bonus" helps it explore, right up until it masters the task—at which point curiosity actively lures it away from optimal paths and ruins final performance. This paper proves that this degradation is an inevitable geometric conflict, not just bad hyperparameter tuning. To solve it, the author introduces Kantorovich Dual Shaping (KDS), an Optimal Transport filter that dynamically reshapes exploration bonuses so the agent only gets curious in directions that don't sabotage its primary goal.

What Problem Does This Paper Address?

Imagine teaching a robot to walk. If you only reward forward progress, it might get stuck in an awkward shuffle. To encourage discovery, researchers use Bonus-Based Exploration (BBE): adding an "intrinsic" novelty bonus to the environment's "extrinsic" task reward.

It’s a great idea with a frustrating catch: curiosity often kills the cat's final score. As training progresses, intrinsic bonuses tend to push the agent off optimal trajectories. Existing fixes either globally dial down curiosity using a single scalar weight—which suffocates helpful exploration everywhere—or perform "gradient surgery" during parameter updates. The catch with gradient surgery is that it acts downstream: by the time you fix the actor's gradients, the raw curiosity bonuses have already poisoned the replay buffer and distorted the critic's value estimates.

Figure 1: The Geometric Conflict. Uncon- strained exploration (braw) can oppose the task gradient ∇J(π) in negative-advantage regions (H−), leading to conflicting updates. Kantorovich Dual Shaping (KDS) reshapes the intrinsic reward by projecting it toward task-aligned directions, guiding exploration toward the task-compatible manifold (H+) while preserving the overall exploration sig- nal.

Methods

Instead of scaling rewards globally or patching gradients after the fact, this paper fixes the problem upstream in policy space before value estimation ever happens.

First, the author defines the Exploration Incompatibility Index, which is simply the covariance between the task advantage (how much better an action is than average) and the novelty bonus. Using this, the author frames safe exploration as a Constrained Optimal Transport (OT) problem: how do we move the "exploration probability mass" the shortest geometric distance (measured via Wasserstein distance) so that it stops opposing the task advantage?

Because the exact mathematical solution produces exponentially huge numbers that destabilize deep neural networks, the author introduces Kantorovich Dual Shaping (KDS)—a fast, numerically stable mini-batch approximation:

  1. Random Projection: States in a mini-batch are mapped via a fixed random projection to compute a geometric cost matrix between samples.
  2. Sinkhorn-Knopp Iterations: Using standard base bonuses (like Random Network Distillation or ensemble disagreement) and task advantages, KDS runs the Sinkhorn-Knopp algorithm to solve an entropy-regularized OT problem on the batch.
  3. Spatial Reweighting: The resulting OT dual potentials are clipped and normalized into sample-by-sample spatial weights ($w_i$). Multiplying the raw bonus by $w_i$ preserves the overall exploration budget while redistributing it—suppressing curiosity in harmful regions and amplifying it in task-compatible ones.
Dynamic spatial filtering induced by KDS

Datasets

In reinforcement learning, agents learn interactively in simulated environments rather than from static datasets. No new benchmarks were introduced; instead, KDS was evaluated across standard continuous-control environments (using both state-based and pixel-based observations in the appendices):

  • Dense-reward locomotion: HalfCheetah, Walker, and Humanoid.
  • Sparse-reward navigation and manipulation: AntMaze and FetchPush (plus a deceptive RiverSwim task in the appendix).

Key Insights and Ideas

  • Late-stage failure is mathematically guaranteed: Through the Advantage–Novelty Anti-Correlation Theorem, the paper proves that as an agent gets good at its job, it frequently visits high-advantage states, causing novelty there to dry up. Novelty remains high only in bad, unvisited states—guaranteeing that raw curiosity will eventually point in the exact opposite direction of task improvement.
  • An automatic exploration-to-exploitation curriculum: Early in training, when the agent knows nothing and advantage variance is near zero, KDS naturally leaves the raw curiosity bonus untouched. As the agent learns what works and advantage variance grows, KDS automatically shifts weights to align with high-advantage regions.
  • Upstream beats downstream: Mathematically, a first-order expansion of KDS recovers the exact same task-aligned correction as parameter-space gradient projection (like PCGrad), plus an extra compatibility term—all while protecting Bellman value backups from getting corrupted in the first place.

Key Results

Evaluated at 300,000 environment steps across off-policy (SAC) and on-policy (PPO) algorithms, KDS consistently prevented dense-reward degradation while unlocking massive gains on sparse tasks:

  • Dense tasks: Naive curiosity actively hurt performance—for instance, SAC + RND dropped episode returns by 6.6% on HalfCheetah and 3% on Humanoid. Wrapping KDS around curiosity flipped these losses into consistent wins, boosting SAC on Humanoid by 32% over the baseline (from 2470 to 3264).
  • Sparse tasks: Where standard curiosity flatlined, KDS shone. On AntMaze, SAC + Disagreement achieved a 0% success rate, whereas adding KDS jumped success to 37% (and 66% with RND). With PPO on AntMaze, KDS (RND) hit a 95% success rate compared to just 6% for naive RND. On FetchPush, KDS more than doubled baseline success rates across the board.
Figure 3: Performance on Continuous Control Benchmarks. (Top) SAC learning curves comparing the baseline against naive Disagreement and KDS-shaped Disagreement. KDS extracts gains on dense tasks and unlocks performance on sparse tasks. (Bottom) PPO learning curves showing that the benefits of KDS carry over to on-policy algorithms.

Limitations and Future Work

  • Exact vs. Bounded Trade-off: The ideal mathematical OT solution generates exponential density ratios that break critic continuity in deep RL, forcing KDS to rely on clipped, batch-level approximations with worst-case geometric tolerances.
  • No Monotonicity Guarantee: While KDS guarantees that exploration gradients stay neatly inside a task-compatible convex hull on the batch, it does not mathematically guarantee monotonic improvement of expected returns (which would require strict assumptions on step sizes and objective curvature).
  • Future Directions: The author suggests that geometric optimal transport isn't just for curiosity—it offers a natural, general-purpose foundation for resolving broader multi-objective conflicts across reinforcement learning.

Summary updated

BibTeX
@inproceedings{azad2026exploration,
  author = {Victor Azad},
  title = {{Exploration as Constrained Policy-Space Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=OUryWodGWl},
}
Figure