Implicaciones arquitectónicas del aprendizaje por refuerzo distribuido en sistemas CPU-GPU
The Architectural Implications of Distributed Reinforcement Learning on CPU-GPU Systems
The Architectural Implications of Distributed Reinforcement Learning on CPU-GPU Systems
@misc{inci2020the,
title = {The Architectural Implications of Distributed Reinforcement Learning on CPU-GPU Systems},
author = {Ahmet Inci and Evgeny Bolotin and Yaosheng Fu and Gal Dalal and Shie Mannor and David Nellans and Diana Marculescu},
year = {2020},
eprint = {2012.04210},
archivePrefix = {arXiv},
primaryClass = {cs.LG},
url = {https://arxiv.org/abs/2012.04210}
}
Inci, A., Bolotin, E., Fu, Y., Dalal, G., Mannor, S., Nellans, D., & Marculescu, D. (2020). The Architectural Implications of Distributed Reinforcement Learning on CPU-GPU Systems [Preprint]. arXiv. https://doi.org/10.48550/arXiv.2012.04210
INCI A, BOLOTIN E, FU Y, et al. The Architectural Implications of Distributed Reinforcement Learning on CPU-GPU Systems[EB/OL]. (2020-12-08)[2026-11-30]. https://arxiv.org/abs/2012.04210.
Resumen
Con los métodos de aprendizaje por refuerzo (RL) que superan las capacidades humanas en juegos, robótica y entornos simulados, la escalada continua del entrenamiento de RL es crucial para su despliegue en la resolución de problemas complejos del mundo real. Sin embargo, mejorar la escalabilidad del rendimiento y la eficiencia energética del entrenamiento de RL mediante la comprensión de las implicaciones arquitectónicas de los sistemas CPU-GPU sigue siendo un problema abierto. En este trabajo, investigamos y mejoramos el rendimiento y la eficiencia energética del entrenamiento de RL distribuido en sistemas CPU-GPU abordando el problema no solo desde la perspectiva de la microarquitectura de GPU, sino siguiendo un enfoque de análisis a nivel de sistema holístico. Cuantificamos la utilización general del hardware en un marco de entrenamiento de RL distribuido de estado del arte e identificamos empíricamente los cuellos de botella causados por decisiones de diseño a nivel de microarquitectura de GPU, algorítmico y de sistema. Mostramos que la microarquitectura de GPU en sí está bien equilibrada para los marcos de RL de estado del arte, pero una investigación adicional revela que el número de actores que ejecutan las interacciones con el entorno y la cantidad de recursos de hardware disponibles para ellos son los principales limitadores del rendimiento y la eficiencia energética. Para ello, introducimos una nueva métrica de diseño de sistema, la relación CPU/GPU, y mostramos cómo encontrar el equilibrio óptimo entre los recursos de CPU y GPU al diseñar sistemas CPU-GPU escalables y eficientes para el entrenamiento de RL.
With deep reinforcement learning (RL) methods achieving results that exceed human capabilities in games, robotics, and simulated environments, continued scaling of RL training is crucial to its deployment in solving complex real-world problems. However, improving the performance scalability and power efficiency of RL training through understanding the architectural implications of CPU-GPU systems remains an open problem. In this work we investigate and improve the performance and power efficiency of distributed RL training on CPU-GPU systems by approaching the problem not solely from the GPU microarchitecture perspective but following a holistic system-level analysis approach. We quantify the overall hardware utilization on a state-of-the-art distributed RL training framework and empirically identify the bottlenecks caused by GPU microarchitectural, algorithmic, and system-level design choices. We show that the GPU microarchitecture itself is well-balanced for state-of-the-art RL frameworks, but further investigation reveals that the number of actors running the environment interactions and the amount of hardware resources available to them are the primary performance and power efficiency limiters. To this end, we introduce a new system design metric, CPU/GPU ratio, and show how to find the optimal balance between CPU and GPU resources when designing scalable and efficient CPU-GPU systems for RL training.