SwiftRL: Towards Efficient Reinforcement Learning on Real Processing-In-Memory Systems
Kailash Gogineni, Sai Santosh Dayapule, Juan Gómez-Luna, Karthikeya Gogineni, Peng Wei, Tian Lan, Mohammad Sadrosadati, Onur Mutlu, Guru Venkataramani
TL;DR
SwiftRL addresses memory bottlenecks in reinforcement learning training by deploying Tabular Q-learning and SARSA on real Processing-In-Memory (PIM) hardware (UPMEM). The approach partitions experience data across thousands of PIM cores, uses fixed-point INT32 arithmetic to cope with hardware limitations, and explores single- and multi-agent configurations across two OpenAI Gym environments. Key contributions include a roofline-based analysis of RL memory behavior, a suite of six Q-learning and six SARSA variants with three sampling strategies, strong scaling up to 2,000 PIM cores, and comprehensive CPU/GPU comparisons, plus open-source releases. The results show near-linear performance scaling and substantial speedups over CPU and GPU baselines, highlighting PIM’s potential for memory-intensive RL workloads in practical settings.
Abstract
Reinforcement Learning (RL) trains agents to learn optimal behavior by maximizing reward signals from experience datasets. However, RL training often faces memory limitations, leading to execution latencies and prolonged training times. To overcome this, SwiftRL explores Processing-In-Memory (PIM) architectures to accelerate RL workloads. We achieve near-linear performance scaling by implementing RL algorithms like Tabular Q-learning and SARSA on UPMEM PIM systems and optimizing for hardware. Our experiments on OpenAI GYM environments using UPMEM hardware demonstrate superior performance compared to CPU and GPU implementations.
