Automatic Constraint Policy Optimization based on Continuous Constraint Interpolation Framework for Offline Reinforcement Learning

Xinchen Han, Qiuyang Fang, Hossam Afifi, Michel MarotNeurIPS 2026

TL;DR

In Offline Reinforcement Learning, agents learn from static datasets without ever interacting with the real world—a setup that requires strict mathematical guardrails to keep the agent from hallucinating wildly optimistic outcomes for actions it has never seen. Instead of forcing engineers to manually choose between three competing types of guardrails, this paper proves they are actually points along a single mathematical spectrum. Better yet, the authors build an algorithm with a self-tuning "dial" that automatically slides along this spectrum during training, achieving state-of-the-art results across standard robotics and industrial benchmarks.

What Problem Does This Paper Address?

Reinforcement Learning (RL) usually thrives on trial and error. But when you are controlling a nuclear fusion reactor or administering healthcare, "trial and error" is off the table. Enter Offline RL, where an agent must learn an optimal policy purely from pre-collected, static logs.

The central villain in Offline RL is extrapolation error. If an agent wonders, "What happens if I take an action not in the dataset?", its value estimator often hallucinates a wildly high reward. Bootstrapping amplifies these errors until the policy collapses. To prevent this, researchers leash the learned policy to the "behavior policy" (the unknown strategy that originally generated the dataset). Historically, the field has split into three camps for designing this leash:

  1. Weighted Behavior Cloning (wBC): Purely imitate the dataset, just give higher weight to better-performing actions.
  2. KL-based Density Regularization: Allow small deviations, penalizing the agent if its action probabilities drift too far from the dataset's distribution.
  3. Support Constraints: Don't worry about matching the dataset's exact probabilities—just ensure the agent only picks actions that have greater-than-zero probability in the dataset.

Too tight a leash, and you never improve beyond the dataset; too loose, and OOD (out-of-distribution) hallucinations ruin everything. Until now, these three constraint families were treated as separate paradigms, requiring tedious, task-specific manual selection.

Methods

The authors introduce two main contributions—one theoretical, one practical:

  • What's New — Continuous Constraint Interpolation (CCI): The authors formulate a constrained maximum-entropy optimization problem where the expected log-likelihood of the behavior policy must stay above a threshold $\epsilon$. When solved via a Lagrangian dual variable $\lambda$, something remarkable happens: $\lambda$ acts as a continuous interpolation dial. Depending on the value of $\lambda$ relative to the entropy temperature $\alpha$, the objective smoothly transforms from a Support Constraint ($\lambda = 0$), to KL Density Regularization ($\lambda = \alpha$), all the way to wBC ($\lambda \gg \alpha$).
The constraint spectrum induced by the interpolation parameter $\lambda$ in the CCI framework.
  • What's New — Automatic Constraint Policy Optimization (ACPO): Rather than picking $\lambda$ by hand, ACPO treats it as a learnable parameter in a primal–dual optimization loop. If the policy strays into sketchy, low-likelihood actions (violating threshold $\epsilon$), projected gradient descent cranks $\lambda$ up. If the policy is playing it too safe, $\lambda$ dials down.
  • What's Standard: Underneath this adaptive constraint dial, ACPO relies on standard Offline RL machinery: pre-training a behavior policy estimator ($\pi_\beta$) via maximum likelihood, and evaluating policies using standard maximum-entropy Clipped Double Q-Learning. The authors also back their framework with novel theoretical performance lower bounds.

Datasets

The authors test ACPO across two distinct benchmark suites:

  • D4RL: The classic Offline RL proving ground, featuring Gym-MuJoCo (continuous robotic locomotion), plus AntMaze and Kitchen—challenging, sparse-reward tasks that require "stitching" together suboptimal trajectory snippets to solve long-horizon puzzles.
  • NeoRL2: A recent "Near Real-World" benchmark motivated by industrial control, nuclear fusion, and healthcare (e.g., Simglucose, RocketRecovery, Fusion). Unlike clean physics simulators, NeoRL2 features pronounced time delays, external disturbances, and smaller datasets with limited state-action coverage.

Key Insights and Ideas

  • Three Paradigms, One Equation: Showing that wBC, KL regularization, and support constraints are special cases of a single weight function is a great unifying "aha!" moment that simplifies how we view offline policy constraints.
  • The Non-Monotonic "Training Wheels" Effect: Watching ACPO tune $\lambda$ live reveals why static constraints fall short. Early in training, when the Q-value critic is uncalibrated and gullible, ACPO spikes $\lambda$ upward—acting like training wheels by pushing updates toward safe, high-density behavior actions. As the critic matures and value estimates stabilize, ACPO automatically decays $\lambda$ toward zero, relaxing into a support constraint so the actor can maximize rewards freely. And no, simple manual schedules (like linear decay) couldn't match this organic adaptation.
Figure 1: Constraint-regime comparisons and the evolution of λ learned by ACPO during training.
  • Simpler Density Estimators Can Beat Fancy Ones: ACPO needs a model to estimate $\log \pi_\beta(a|s)$. Surprisingly, a simple Gaussian estimator outperformed a more expressive Conditional Variational Auto-Encoder (CVAE) on complex Walker2d tasks. Why? Visualizing the log-likelihoods revealed that the CVAE failed to assign sufficiently low probabilities to perturbed OOD actions—accidentally telling ACPO that out-of-distribution territory was safe to explore.

Key Results

ACPO achieves state-of-the-art aggregate scores across every tested benchmark domain:

  • D4RL: ACPO takes first place in total normalized scores across all three suites: 802.7 on Locomotion (vs. 773.0 for runner-up SPOT), 432.0 on AntMaze (vs. 419.2 for ACTIVE), and 136.5 on Kitchen (vs. 130.1 for EQL).
  • NeoRL2: Where limited data coverage punishes rigid algorithms, ACPO shines—scoring a total of 512.2, decisively beating the strongest baseline, TD3+BC (448.6), and winning outright on 4 of the 7 tasks (including a jump from 75.1 to 94.9 on Simglucose).
Table 3: Averaged normalized scores on NeoRL2 benchmark over three seeds. Scores are reported as mean ± standard deviation. Bold indicates the best performance in each task.
  • Adaptive vs. Manual: Across nine MuJoCo tasks, ACPO's dual update (802.7) handily beat fixed regimes (wBC, AWAC, InAC) and manual $\lambda$ schedules (which topped out at 696.0).

Limitations and Future Work

  • Reliance on Behavior Estimation: Because ACPO's weights and dual updates explicitly depend on $\log \pi_\beta(a|s)$, inaccuracies in modeling the behavior policy directly weaken the constraint—as seen in the CVAE failure mode. Incorporating dataset filtering to clean up noisy behavior estimation is a key next step.
  • Hyperparameter Sensitivity: While ACPO is quite robust to the target threshold $\epsilon$, experiments show some sensitivity to aggressive dual learning rates ($\eta_\lambda$), favoring slower, steadier updates ($1\text{e-}5$).
  • Step-Level Myopia: Currently, ACPO enforces constraints at the single state-action level. Extending the framework to trajectory-level settings will be crucial for tackling harder long-horizon credit assignment and sparse-reward problems.

Summary updated

Abstract

Offline Reinforcement Learning (RL) relies on policy constraints to mitigate extrapolation error, where both the constraint form and constraint strength critically shape performance. However, most existing methods commit to a single constraint family: weighted behavior cloning, density regularization, or support constraints, without a unified principle that explains their connections or trade-offs. In this work, we propose Continuous Constraint Interpolation (CCI), a unified optimization framework in which these three constraint families arise as special cases along a common constraint spectrum. The CCI framework introduces a single interpolation parameter that enables smooth transitions and principled combinations across constraint types. Building on CCI, we develop Automatic Constraint Policy Optimization (ACPO), a practical primal--dual algorithm that adapts the interpolation parameter via a Lagrangian dual update. Moreover, we establish a maximum-entropy performance difference lemma and derive performance lower bounds for both the closed-form optimal policy and its parametric projection. Experiments on D4RL and NeoRL2 demonstrate robust gains across diverse domains, achieving state-of-the-art performance overall.
BibTeX
@inproceedings{han2026automatic,
  author = {Xinchen Han and Qiuyang Fang and Hossam Afifi and Michel Marot},
  title = {{Automatic Constraint Policy Optimization based on Continuous Constraint Interpolation Framework for Offline Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=axBS5thYfz},
}
Figure