DEER: A Delay-Resilient Framework for Reinforcement Learning with Variable Delays
Bo Xia, Yilun Kong, Yongzhe Chang, Bo Yuan, Zhiheng Li, Xueqian Wang, Bin Liang
TL;DR
DEER addresses reinforcement learning under environmental delays by decoupling encoding from decision making. It trains a Seq2Seq encoder-decoder on delay-free offline data to map delayed information states and action histories into fixed-length context representations, which are then used by standard RL algorithms with no delay-specific modifications, while the encoder remains fixed during online learning. The framework generalizes across constant and random delays and is validated via SAC on Gym and MuJoCo tasks, showing competitive or superior performance to existing delay-aware RL methods. Key contributions include offline pretraining of a universal encoder, an interpretable two-stage architecture, and extensive analyses on representation dimension and dataset composition, highlighting practical guidelines for encoder data and performance. The approach offers improved robustness and interpretability, with potential extensions to visual RL and real-world robotic systems.
Abstract
Classic reinforcement learning (RL) frequently confronts challenges in tasks involving delays, which cause a mismatch between received observations and subsequent actions, thereby deviating from the Markov assumption. Existing methods usually tackle this issue with end-to-end solutions using state augmentation. However, these black-box approaches often involve incomprehensible processes and redundant information in the information states, causing instability and potentially undermining the overall performance. To alleviate the delay challenges in RL, we propose $\textbf{DEER (Delay-resilient Encoder-Enhanced RL)}$, a framework designed to effectively enhance the interpretability and address the random delay issues. DEER employs a pretrained encoder to map delayed states, along with their variable-length past action sequences resulting from different delays, into hidden states, which is trained on delay-free environment datasets. In a variety of delayed scenarios, the trained encoder can seamlessly integrate with standard RL algorithms without requiring additional modifications and enhance the delay-solving capability by simply adapting the input dimension of the original algorithms. We evaluate DEER through extensive experiments on Gym and Mujoco environments. The results confirm that DEER is superior to state-of-the-art RL algorithms in both constant and random delay settings.
