Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Beyond Penalization: Diffusion-based Out-of-Distribution Detection and Selective Regularization in Offline Reinforcement Learning

About

Offline reinforcement learning (RL) faces a critical challenge of overestimating the value of out-of-distribution (OOD) actions. Existing methods mitigate this issue by penalizing unseen samples, yet they fail to accurately identify OOD actions and may suppress beneficial exploration beyond the behavioral support. Although several methods have been proposed to differentiate OOD samples with distinct properties, they typically rely on restrictive assumptions about the data distribution and remain limited in discrimination ability. To address this problem, we propose DOSER (Diffusion-based OOD Detection and Selective Regularization), a novel framework that goes beyond uniform penalization. DOSER trains two diffusion models to capture the behavior policy and state distribution, using single-step denoising reconstruction error as a reliable OOD indicator. During policy optimization, it further distinguishes between beneficial and detrimental OOD actions by evaluating predicted transitions, selectively suppressing risky actions while encouraging exploration of high-potential ones. Theoretically, we prove that DOSER is a $\gamma$-contraction and therefore admits a unique fixed point with bounded value estimates. We further provide an asymptotic performance guarantee relative to the optimal policy under model approximation and OOD detection errors. Across extensive offline RL benchmarks, DOSER consistently attains superior performance to prior methods, especially on suboptimal datasets.

Qingjun Wang, Hongtu Zhou, Hang Yu, Junqiao Zhao, Yanping Zhao, Chen Ye, Ziqiao Wang, Guang Chen• 2026

Related benchmarks

TaskDatasetResultRank
Offline Reinforcement LearningD4RL Gym halfcheetah-expert
Normalized Return95.4
36
Offline Reinforcement LearningD4RL Gym hopper-expert
Normalized Avg Return111.6
35
Anomaly DetectionArrhythmia
F1 Score95.45
30
Offline Reinforcement LearningD4RL Gym halfcheetah-random
Normalized Score32.8
23
Offline Reinforcement LearningD4RL Gym-MuJoCo v2
HalfCheetah-Medium Return67.5
13
Offline Reinforcement LearningD4RL Gym-MuJoCo hopper-random
Normalized Score31.2
11
Offline Reinforcement LearningD4RL Gym-MuJoCo walker2d-expert
Normalized Score111.2
11
Offline Reinforcement LearningD4RL Gym-MuJoCo walker2d-random
Normalized Score3.5
11
Offline Reinforcement LearningD4RL Adroit v1
Score (pen-human)87.8
8
OOD DetectionKDDCUP
F1 Score0.9899
6
Showing 10 of 11 rows

Other info

Follow for update