Handling Delay in Real-Time Reinforcement Learning
Ivan Anokhin, Rishav Rishav, Matthew Riemer, Stephen Chung, Irina Rish, Samira Ebrahimi Kahou
TL;DR
This work tackles real-time reinforcement learning under observational delay caused by parallel neural computation. By introducing temporal skip connections and history-augmented observations, the authors reduce delay-induced regret while maintaining, and often enhancing, policy expressivity. They validate the approach across MuJoCo, MinAtar, and MiniGrid, showing strong performance and substantial inference-time speed-ups on GPUs (up to $350\%$) with modest trade-offs in more complex environments. The results establish a practical pathway for efficient, real-time RL agents and outline limitations and future directions, including stochastic delays and scaling to deeper architectures.
Abstract
Real-time reinforcement learning (RL) introduces several challenges. First, policies are constrained to a fixed number of actions per second due to hardware limitations. Second, the environment may change while the network is still computing an action, leading to observational delay. The first issue can partly be addressed with pipelining, leading to higher throughput and potentially better policies. However, the second issue remains: if each neuron operates in parallel with an execution time of $τ$, an $N$-layer feed-forward network experiences observation delay of $τN$. Reducing the number of layers can decrease this delay, but at the cost of the network's expressivity. In this work, we explore the trade-off between minimizing delay and network's expressivity. We present a theoretically motivated solution that leverages temporal skip connections combined with history-augmented observations. We evaluate several architectures and show that those incorporating temporal skip connections achieve strong performance across various neuron execution times, reinforcement learning algorithms, and environments, including four Mujoco tasks and all MinAtar games. Moreover, we demonstrate parallel neuron computation can accelerate inference by 6-350% on standard hardware. Our investigation into temporal skip connections and parallel computations paves the way for more efficient RL agents in real-time setting.
