Skip to main content
QUICK REVIEW

[논문 리뷰] Fast Distributed Training of Deep Neural Networks: Dynamic Communication Thresholding for Model and Data Parallelism.

Vipul Gupta, Dhruv Choudhary|arXiv (Cornell University)|2020. 10. 18.
Stochastic Gradient Optimization TechniquesComputer Science참고 문헌 67인용 수 11
한 줄 요약

이 논문은 하이브리드 모델 병렬 및 데이터 병렬 훈련에서 통신 효율성을 향상시키기 위해 가장 관련성이 높은 기울기와 활성화 값을 하드-스레시딩을 통해 필터링하는 압축 프레임워크인 동적 통신 임계값 설정(Dynamic Communication Thresholding, DCT)을 제안한다. DCT는 산업 규모의 모델에서 통신량을 20배 줄이고 종단 간 훈련 속도를 37% 향상시키며, 암묵적 정규화를 통해 수렴성과 모델 성능을 유지한다.

ABSTRACT

Data Parallelism (DP) and Model Parallelism (MP) are two common paradigms to enable large-scale distributed training of neural networks. Recent trends, such as the improved model performance of deeper and wider neural networks when trained with billions of data points, have prompted the use of hybrid parallelism---a paradigm that employs both DP and MP to scale further parallelization for machine learning. Hybrid training allows compute power to increase, but it runs up against the key bottleneck of communication overhead that hinders scalability. In this paper, we propose a compression framework called Dynamic Communication Thresholding (DCT) for communication-efficient hybrid training. DCT filters the entities to be communicated across the network through a simple hard-thresholding function, allowing only the most relevant information to pass through. For communication efficient DP, DCT compresses the parameter gradients sent to the parameter server during model synchronization, while compensating for the introduced errors with known techniques. For communication efficient MP, DCT incorporates a novel technique to compress the activations and gradients sent across the network during the forward and backward propagation, respectively. This is done by identifying and updating only the most relevant neurons of the neural network for each training sample in the data. Under modest assumptions, we show that the convergence of training is maintained with DCT. We evaluate DCT on natural language processing and recommender system models. DCT reduces overall communication by 20x, improving end-to-end training time on industry scale models by 37%. Moreover, we observe an improvement in the trained model performance, as the induced sparsity is possibly acting as an implicit sparsity based regularization.

연구 동기 및 목표

  • 대규모 분산 딥 러닝 훈련에서의 통신 오버헤드 병목 현상을 해결하기 위해.
  • 모델 병렬 및 데이터 병렬을 효율적으로 조합하여 스케일러블한 하이브리드 병렬화를 가능하게 하기 위해.
  • 분산 훈련에서 통신량을 극적으로 줄이면서도 수렴성을 유지하기 위해.
  • 유도된 희박성으로 암묵적 정규화 효과를 유도하여 모델 성능을 향상시키기 위해.
  • 실제 세계의 NLP 및 추천 시스템 모델에 적용 가능한 통신 효율적인 프레임워크를 설계하기 위해.

제안 방법

  • DCT는 네트워크를 통해 전송하기 전에 덜 관련성이 높은 기울기와 활성화 값을 하드-스레시딩 함수를 적용하여 필터링한다.
  • 데이터 병렬 환경에서는 DCT가 파라미터 서버로 전송되는 기울기를 압축하며, 수렴성을 유지하기 위해 오차 보정 기법을 사용한다.
  • 모델 병렬 환경에서는 DCT가 각 훈련 샘플에 대해 가장 관련성이 높은 뉴런만 식별하고 업데이트하여 활성화 및 기울기 전송량을 줄인다.
  • 압축으로 인한 오차가 발생하더라도 수렴성을 보장하는 데 필요한 낮은 수준의 가정을 바탕으로 프레임워크가 작동한다.
  • DCT는 스레시딩으로 인한 정보 손실를 보완하기 위해 기존의 오차 보정 기법을 통합한다.
  • 훈련 중 파라미터와 활성화의 중요도에 따라 임계값을 동적으로 조정한다.

실험 결과

연구 질문

  • RQ1하이브리드 모델 병렬 및 데이터 병렬 훈련에서 통신 오버헤드를 모델 수렴성 또는 성능을 희생시키지 않고 크게 줄일 수 있는가?
  • RQ2분산 DNN 훈련에서 기울기와 활성화의 하드-스레시딩이 통신량을 얼마나 효과적으로 줄이는가?
  • RQ3스레시딩으로 유도된 희박성이 실제로 유익한 정규화 효과로 작용하는가?
  • RQ4모든 조건이 충족되지 않는 상황에서도 DCT가 대규모 분산 훈련에서 수렴 보장을 유지할 수 있는가?
  • RQ5실제 모델에서 DCT를 적용했을 때 종단 간 훈련 속도 향상과 통신 절감 효과는 어느 정도인가?

주요 결과

  • DCT는 하이브리드 모델 병렬 및 데이터 병렬 훈련 환경에서 총 통신량을 20배 줄였다.
  • DCT를 사용한 산업 규모의 모델에서 종단 간 훈련 시간이 37% 향상되었다.
  • 모델 성능이 약간 향상되어, 유도된 희박성이 암묵적 정규화 효과로 작용하는 것으로 나타났다.
  • 낮은 수준의 가정 하에 수렴성이 유지되어 이론적 탄탄함이 입증되었다.
  • 프레임워크는 NLP 및 추천 시스템 모델을 포함한 다양한 워크로드에 효과적으로 적용되었다.
  • 복잡한 압축 기법이나 모델 재학습 없이도 높은 압축 효율성을 달성했다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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