REG: In-Sample RL via Regularizing the Evaluation Gap

Hanpu Shen, Weining Shen, Roy FoxICML 2026

Offline Reinforcement Learning (RL) promises to train capable agents entirely from static, pre-collected datasets. This paradigm is essential for high-stakes domains like healthcare and autonomous driving, where real-world trial and error is prohibitively risky. However, offline RL faces a formidable "boss fight": distribution shift.

When an agent evaluates an out-of-distribution (OOD) action—one not present in the dataset—the value function (or "critic") often hallucinates, drastically overestimating the action's value. While implicit methods like Implicit Q-Learning (IQL) successfully mitigate this by restricting updates to in-sample data, they rely on heuristic loss functions like expectile regression. This leaves a gap in our theoretical understanding of exactly why these methods work and how policy extraction can be systematically improved.

The REG Framework: Bridging Theory and Practice

The Regularized Evaluation Gap (REG) framework bridges this gap by reframing policy evaluation as a robust optimization problem. Instead of merely fitting the available data, REG seeks a policy that performs well even under the "worst-case" plausible critic consistent with the offline dataset.

Through convex duality, the authors demonstrate that this robust approach naturally yields a one-sided regression objective. This critical insight provides a principled, theoretical foundation for the asymmetric updates that make IQL so successful, proving that IQL's heuristic expectile regression is actually an approximate solution to a robust optimization problem.

Orthogonal Policy Gradient (OPG): An Adaptive Safety Brake

Extracting a robust policy from a learned value function presents its own dilemma. You can use Weighted Behavior Cloning (WBC), which is safe and data-supported but tends to be "mode-covering" (averaging out optimal actions). Conversely, a standard Policy Gradient (PG) is aggressive and mode-seeking but risks chasing OOD hallucinations.

To resolve this, the authors introduce the Orthogonal Policy Gradient (OPG). OPG takes the aggressive PG and projects it onto the subspace orthogonal to the safe WBC gradient. This clever geometric solution acts as an adaptive safety brake: the agent is allowed to probe for better actions only in directions that do not contradict the known safe behaviors anchored in the dataset.

Experimental Validation and Key Results

Evaluated on the rigorous D4RL benchmark suite (including MuJoCo Locomotion and AntMaze tasks), REG proves that principled value regularization can substitute for complex generative models.

  • Efficiency Meets SOTA Performance: REG matches or exceeds the performance of state-of-the-art Gaussian-policy methods (like ReBRAC) and remains highly competitive with computationally heavy diffusion-based approaches (like IDQL and Diffusion-QL). Crucially, it achieves this using standard Gaussian policies, making it significantly faster to train and deploy.
  • Locomotion and Navigation Excellence: On MuJoCo "Medium-Replay" tasks, REG frequently claims the top spot, achieving an impressive score of 101.4 on Hopper-Medium-Replay. It also excels in complex navigation, scoring 61.2 on the challenging AntMaze-Large-Diverse task—more than doubling standard IQL's score of 30.3.
  • The Secret Sauce: Ablation studies confirm that the OPG update is the critical driver of success. Removing OPG and relying solely on standard behavior cloning drastically reduces performance across the board.

Limitations and Future Directions

While highly effective, the REG method introduces two primary hyperparameters that require task-dependent tuning: $\alpha$ (which controls conservatism) and $\lambda$ (which scales the OPG strength).

Furthermore, while REG achieves remarkable results with simple Gaussian policies, the authors suggest that integrating more expressive representations—such as flow-matching or diffusion—into the REG framework could push performance even higher. Finally, extending this robust offline framework to off-policy online settings, where an agent fine-tunes its offline initialization via active interaction, remains a highly promising frontier for future research.

Summary updated

BibTeX
@inproceedings{shen2026reg,
  author = {Hanpu Shen and Weining Shen and Roy Fox},
  title = {{REG: In-Sample RL via Regularizing the Evaluation Gap}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=375MRN00Z0},
}
Figure