Skip to main content
QUICK REVIEW

[논문 리뷰] Performance Analysis and Comparison of Distributed Machine Learning Systems

Salem Alqahtani, Murat Demirbaş|arXiv (Cornell University)|2019. 09. 04.
Privacy-Preserving Technologies in DataComputer Science인용 수 17
한 줄 요약

이 논문은 Tensorflow와 Horovod를 사용하여 분석적 모델링과 실증 평가를 통해 세 가지 분산 딥러닝 훈련 아키텍처—Parameter Server(PS), Peer-to-Peer(P2P), Ring Allreduce(RA)—의 체계적 성능 분석을 제시한다. RA는 계산과 통신을 효과적으로 겹치고 워커 수에 따른 네트워크 사용을 분리함으로써 우수한 확장성과 성능을 달성하는 것으로 밝혀졌으며, PS와 P2P는 네트워크 혼잡과 로드 불균형으로 인해 성능에 악영향을 미친다.

ABSTRACT

Deep learning has permeated through many aspects of computing/processing systems in recent years. While distributed training architectures/frameworks are adopted for training large deep learning models quickly, there has not been a systematic study of the communication bottlenecks of these architectures and their effects on the computation cycle time and scalability. In order to analyze this problem for synchronous Stochastic Gradient Descent (SGD) training of deep learning models, we developed a performance model of computation time and communication latency under three different system architectures: Parameter Server (PS), peer-to-peer (P2P), and Ring allreduce (RA). To complement and corroborate our analytical models with quantitative results, we evaluated the computation and communication performance of these system architectures of the systems via experiments performed with Tensorflow and Horovod frameworks. We found that the system architecture has a very significant effect on the performance of training. RA-based systems achieve scalable performance as they successfully decouple network usage from the number of workers in the system. In contrast, 1PS systems suffer from low performance due to network congestion at the parameter server side. While P2P systems fare better than 1PS systems, they still suffer from significant network bottleneck. Finally, RA systems also excel by virtue of overlapping computation time and communication time, which PS and P2P architectures fail to achieve.

연구 동기 및 목표

  • 분산 딥러닝 훈련 시스템에서의 통신 병목 현상을 규명하고 분석하기.
  • 지연 시간과 처리량 측면에서 주요 시스템 아키텍처인 Parameter Server(PS), Peer-to-Peer(P2P), Ring Allreduce(RA)의 성능을 비교하기.
  • 동기적 SGD 훈련 중 시스템 아키텍처가 확장성과 네트워크 활용도에 미치는 영향을 조사하기.
  • 각 아키텍처에서 계산 시간과 통신 시간 간 겹침 정도를 평가하기.
  • 하드웨어 및 워크로드 특성에 기반한 시스템 아키텍처와 구성 선택을 위한 실용적 지침 제공하기.

제안 방법

  • PS, P2P, RA 아키텍처의 계산 및 통신 지연에 대한 분석적 성능 모델 개발.
  • 총 훈련 에포크 시간을 계산 시간과 통신 시간의 합으로 모델링하였으며, 통신 시간은 데이터 볼륨과 네트워크 토폴로지에 따라 달라짐.
  • MNIST 데이터셋을 대상으로 TensorFlow와 Horovod 프레임워크를 사용해 처리량과 지연 시간을 측정하기 위한 실증 실험 수행.
  • 워커 수와 파라미터 서버 구성(1PS, 2PS, 4PS)을 다양하게 설정하여 확장성 평가.
  • 핵심 성능 요소인 통신-계산 겹침 효율성 평가.
  • 분석 모델의 결과를 정량적 실험 결과와 대조하여 네트워크 혼잡과 성능 병목 현상에 대한 발견 검증.

실험 결과

연구 질문

  • RQ1분산 DNN 훈련에서 PS, P2P, RA 아키텍처 간 통신 병목 현상은 어떻게 다를까?
  • RQ2동기적 SGD에서 시스템 아키텍처는 훈련 처리량과 지연 시간에 어떤 영향을 미치는가?
  • RQ3PS, P2P, RA 시스템에서 통신과 계산을 얼마나 효과적으로 겹칠 수 있는가?
  • RQ4PS와 P2P 시스템에서는 워커 수 증가에 따라 네트워크 혼잡이 어떻게 증가하는가? RA와 비교해보면 어떻게 되는가?
  • RQ5어떤 아키텍처 선택이 분산 훈련에서 더 나은 확장성과 네트워크 대역폭 효율적 사용을 이끌어내는가?

주요 결과

  • Ring Allreduce(RA) 시스템은 워커 수에 따른 네트워크 사용을 분리함으로써 확장 가능한 성능을 달성하고, 처리량이 선형적으로 증가한다.
  • 1PS 시스템은 파라미터 서버에서 심각한 네트워크 혼잡을 겪어 확장성이 떨어지고 처리량 증가가 비선형적이다.
  • P2P 시스템은 1PS보다는 성능이 좋지만, 공유 대역폭과 효율적인 통신 패tern의 부재로 인해 여전히 심각한 네트워크 병목 현상에 시달린다.
  • RA 시스템은 PS와 P2P보다 더 높은 통신-계산 겹침 효율을 달성하여 유휴 시간을 줄이고 전체 효율을 향상시킨다.
  • PS와 P2P 시스템은 딥러닝 레이어 간 텐서 크기의 다양성으로 인해 워커 간 로드 불균형을 보이며, 이는 통신 병목 현상을 악화시킨다.
  • TensorFlow와 Horovod를 활용한 실증 결과는 RA가 스케일이 클수록 PS와 P2P보다 처리량과 지연 시간 모두에서 뛰어난 성능을 보임을 확인한다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.