[論文レビュー] signSGD with Majority Vote is Communication Efficient And Byzantine Fault Tolerant
この論文は、多数決を用いた signSGD を提案し、分散型ディープラーニングのための通信効率が良く、Byzantine 故障に耐性がある最適化手法を提示する。勾配の符号のみを送信し、多数決による集約を行うことで、通信量を32倍削減し、大規模バッチおよびミニバッチ設定でも収束を達成し、最大50%の悪意あるワーカーに対しても耐性を示す。15台のマシンで ImageNet の ResNet-50 を学習する際、NCCL よりも25%高速に学習を完了する。
Training neural networks on large datasets can be accelerated by distributing the workload over a network of machines. As datasets grow ever larger, networks of hundreds or thousands of machines become economically viable. The time cost of communicating gradients limits the effectiveness of using such large machine counts, as may the increased chance of network faults. We explore a particularly simple algorithm for robust, communication-efficient learning---signSGD. Workers transmit only the sign of their gradient vector to a server, and the overall update is decided by a majority vote. This algorithm uses $32 imes$ less communication per iteration than full-precision, distributed SGD. Under natural conditions verified by experiment, we prove that signSGD converges in the large and mini-batch settings, establishing convergence for a parameter regime of Adam as a byproduct. We model adversaries as those workers who may compute a stochastic gradient estimate and manipulate it, but may not coordinate with other adversaries. Aggregating sign gradients by majority vote means that no individual worker has too much power. We prove that unlike SGD, majority vote is robust when up to 50% of workers behave adversarially. On the practical side, we built our distributed training system in Pytorch. Benchmarking against the state of the art collective communications library (NCCL), our framework---with the parameter server housed entirely on one machine---led to a 25% reduction in time for training resnet50 on Imagenet when using 15 AWS p3.2xlarge machines.
研究の動機と目的
- 高パラメータ数のモデルを用いた大規模分散型ディープラーニングにおける通信ボトルネックを解消すること。
- 勾配を操作する可能性がある最大50%のByzantineワーカーに対しても耐性を持つ強固な最適化手法を開発すること。
- 分散学習における収束性やモデル精度を損なわずに通信コストを低減すること。
- NCCL などの最先端の集合通信ライブラリを凌駕する実用的なシステムを設計すること。
提案手法
- ワーカーは、フル精度の勾配ではなく、勾配ベクトルの符号のみを送信することで、1イテレーションあたり通信量を32倍削減する。
- パラメータサーバーは、符号勾配の多数決を用いて更新を集約し、1人のワーカーが更新に支配的になるのを防ぐ。
- 本手法は、大バッチおよびミニバッチ設定の両方で自然な条件下で収束することが証明されており、Adam のパrameter 制御領域への拡張も達成している。
- 悪意あるワーカーは、協調しないエンティティとしてモデル化され、確率的勾配推定値を計算・操作可能だが、他のワーカーと協調できないものとする。
- 実用的なデプロイとベンチマークを可能にするために、中央集権的なパラメータサーバーを備えた PyTorch で実装されている。
- 本フレームワークは、15台の AWS p3.2xlarge マシンを用いて ImageNet における ResNet-50 の学習を評価し、NCCL と性能を比較している。
実験結果
リサーチクエスチョン
- RQ1符号ベースの勾配集約手法は、ディープラーニングにおける大バッチおよびミニバッチ設定でも収束を達成できるか?
- RQ2多数決集約は、分散学習におけるByzantineワーカーに対する耐性にどのように寄与するか?
- RQ3モデル精度や収束速度を損なわずに、通信量をどの程度まで削減できるか?
- RQ4単純な signSGD と多数決フレームワークは、実世界の学習ワークロードにおいて、最適化された通信ライブラリ(例:NCCL)を凌駆できるか?
主な発見
- signSGD と多数決は、フル精度の分散SGDと比較して、1イテレーションあたり通信量を32倍削減する。
- 本手法は、大バッチおよびミニバッチ設定の両方で収束を達成しており、Adam のパrameter 制御領域への収束も副次的かつ明確に示されている。
- パラメータサーバーが1台のマシンに集中しているにもかかわらず、最大50%のワーカーが悪意を持って動作しても、多数決による集約により、1人のワーカーが更新に支配的になるのを防ぎ、耐性を示す。
- 15台の AWS p3.2xlarge マシンを用いた実験では、本フレームワークは、NCCL よりも ImageNet における ResNet-50 の学習時間を25%短縮した。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。