As Implicações Arquitetônicas do Aprendizado por Reforço Distribuído em 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.
Resumo
Com métodos de aprendizado por reforço (RL) que superam as capacidades humanas em jogos, robótica e ambientes simulados, a escalada contínua do treinamento de RL é crucial para sua implantação na resolução de problemas complexos do mundo real. No entanto, melhorar a escalabilidade de desempenho e a eficiência energética do treinamento de RL, compreendendo as implicações arquitetônicas de sistemas CPU-GPU, permanece um problema aberto. Neste trabalho, investigamos e melhoramos o desempenho e a eficiência energética do treinamento distribuído de RL em sistemas CPU-GPU, abordando o problema não apenas sob a perspectiva da microarquitetura da GPU, mas seguindo uma abordagem de análise holística no nível do sistema. Quantificamos a utilização geral do hardware em um framework de treinamento distribuído de RL de estado da arte e identificamos empiricamente os gargalos causados por escolhas de design microarquiteturais de GPU, algorítmicos e de nível de sistema. Demonstramos que a microarquitetura da GPU em si está bem equilibrada para frameworks de RL de estado da arte, mas investigações adicionais revelam que o número de agentes executando interações com o ambiente e a quantidade de recursos de hardware disponíveis para eles são os principais limitadores de desempenho e eficiência energética. Para isso, introduzimos uma nova métrica de design de sistema, a razão CPU/GPU, e mostramos como encontrar o equilíbrio ótimo entre recursos de CPU e GPU ao projetar sistemas CPU-GPU escaláveis e eficientes para treinamento 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.