Analytic Energy-Guided Policy Optimization for Offline Reinforcement Learning
Jifeng Hu, Sili Huang, Zhejian Yang, Shengchao Hu, Li Shen, Hechang Chen, Lichao Sun, Yi Chang, Dacheng Tao
TL;DR
Offline reinforcement learning with diffusion-based policy generation faces the challenge of computing the intermediate energy in the log-expectation term. AEPO derives a closed-form intermediate energy under conditional Gaussian diffusion, and uses Taylor expansion plus a Gaussian posterior to approximate the log-expectation term $\log\mathbb{E}_{\mu_{0|t}}[e^{\beta Q(s,a_0)}]$, enabling analytic guidance. It trains a Q-function with expectile regression and an intermediate energy network, and introduces guidance rescaling to stabilize inference. Across 30+ D4RL tasks, AEPO achieves competitive or state-of-the-art performance against dozens of baselines, demonstrating the practical effectiveness of analytic energy guidance for offline diffusion-based RL.
Abstract
Conditional decision generation with diffusion models has shown powerful competitiveness in reinforcement learning (RL). Recent studies reveal the relation between energy-function-guidance diffusion models and constrained RL problems. The main challenge lies in estimating the intermediate energy, which is intractable due to the log-expectation formulation during the generation process. To address this issue, we propose the Analytic Energy-guided Policy Optimization (AEPO). Specifically, we first provide a theoretical analysis and the closed-form solution of the intermediate guidance when the diffusion model obeys the conditional Gaussian transformation. Then, we analyze the posterior Gaussian distribution in the log-expectation formulation and obtain the target estimation of the log-expectation under mild assumptions. Finally, we train an intermediate energy neural network to approach the target estimation of log-expectation formulation. We apply our method in 30+ offline RL tasks to demonstrate the effectiveness of our method. Extensive experiments illustrate that our method surpasses numerous representative baselines in D4RL offline reinforcement learning benchmarks.
