Improvement of Offline Reinforcement Learning Based on Prior Sampling Mechanism
Abstract
Offline reinforcement learning (RL) circumvents real-time environmental interaction by leveraging pre-collected historical data, yet it faces critical challenges of distributional shift and suboptimal data distribution in experience replay buffers. To enhance agent training efficacy, this study proposes two novel prioritized sampling mechanisms: one anchored in temporal-difference (TD) error estimation and the other grounded in martingale theory. The TD error-based mechanism captures supplementary experiential data to mitigate out-of-distribution (OOD) state risks, while the martingale-theoretic counterpart prioritizes positive samples for policy optimization and suppresses negative sample interference. Integrating these mechanisms with Batch-Constrained Deep Q-Learning (BCQ) yields two enhanced algorithms: TD-PBCQ and M-PBCQ. Extensive experiments on D4RL (Ant, HalfCheetah, Hopper, Walker2d) and Torcs datasets demonstrate that the proposed sampling models selectively collect valuable experiential data, achieving significantly improved reward performance compared to the baseline BCQ. Comparative analysis shows TD-PBCQ excels in tasks with fast-converging behavior policies and low-error datasets, while M-PBCQ adapts better to high-error offline buffers. This work provides a data-driven solution for advancing offline RL performance via efficient sampling design.
References
- Sun Chang-Yin, Mu Chao-Xu. Important scientific problems of multi-agent deep reinforcement learning. Acta Automatica Sinica, 2020, 46(7): 1301−1312.
- Wu Xiao-Guang, Liu Shao-Wei, Yang Lei, Deng Wen-Qiang, Jia Zhe-Heng. A gait control method for biped robot on slope based on deep reinforcement learning. Acta Automatica Sinica, 2021, 47(8): 1976−1987.
- Yin Lin-Fei, Chen Lv-Peng, Yu Tao, Zhang Xiao-Shun. Lazy reinforcement learning through parallel systems and social system for real-time economic generation dispatch and control. Acta Automatica Sinica, 2019, 45(4): 706−719.
- Chen Jin-Yin, Zhang Yan, Wang Xue-Ke, Cai Hong-Bin, Wang Jue, Ji Shou-Ling. A survey of attack, defense and related security analysis for deep reinforcement learning. Acta Automatica Sinica, 2022, 48(1): 21−39.
- Hu Y L, Skyrms B, Tarrès P. Reinforcement learning in signaling game. arXiv preprint arXiv: 1103.5818, 2011.