[論文レビュー] Hydra: A Peer to Peer Distributed Training & Data Collection Framework.
Hydra は、スマートフォンやデスクトップなどの低性能デバイスの空き計算リソースを活用して、分散学習とクラウドソーシング型のデータ収集を可能にする、分散型でピアツーピアのフレームワークを提案する。これは、Bittorrentにインspiredされた通信プロトコル、フェイルセーフな All-Reduce アルゴリズム、およびハイドラコイン(Hydra Coin)を用いたトークンベースの報酬制度を採用しており、高品質なデータ寄付を促進するとともに、多様で不安定なネットワーク環境における耐障害性を確保する。
The world needs diverse and unbiased data to train deep learning models. Currently data comes from a variety of sources that are unmoderated to a large extent. The outcomes of training neural networks with unverified data yields biased models with various strains of homophobia, sexism and racism. Another trend observed in the world of deep learning is the rise of distributed training. Although cloud companies provide high performance compute for training models in the form of GPU's connected with a low latency network, using these services comes at a high cost. We propose Hydra, a system that seeks to solve both of these problems in a novel manner by proposing a decentralized distributed framework which utilizes the substantial amount of idle compute of everyday electronic devices like smartphones and desktop computers for training and data collection purposes. Hydra couples a specialized distributed training framework on a network of these low powered devices with a reward scheme that incentivizes users to provide high quality data to unleash the compute capability on this training framework. Such a system has the ability to capture data from a wide variety of diverse sources which has been an issue in the current scenario of deep learning. Hydra brings in several new innovations in training on low powered devices including a fault tolerant version of the All Reduce algorithm. Furthermore we introduce a reinforcement learning policy to decide the size of training jobs on different machines on a heterogeneous cluster of devices with varying network latencies for Synchronous SGD. The novel thing about such a network is the ability of each machine to shut down and resume training capabilities at any point of time without restarting the overall training. To enable such an asynchronous behaviour we propose a communication framework inspired by the Bittorrent protocol and the Kademlia DHT.
研究の動機と目的
- ディープラーニングにおける多様でバイアスのない訓練データの増大するニーズに対応するため、幅広いユーザーから分散型でデータ収集を行う。
- 消費者向けデバイスの空き計算リソースを活用することで、クラウドプロバイダーへの依存を減らし、分散型学習を実現する。
- 分散型学習環境におけるノードの信頼性の低さ、ネットワーク状態の変動、データ品質のばらつきといった課題を克服する。
- 暗号通貨のトークンオファーにインspiredした新規報酬メカニズムを通じて、高品質なデータ寄付を促進する。
- 最適化された通信および学習戦略を用いて、異種で低性能なデバイスでも効率的かつフェイルセーフな学習を実現する。
提案手法
- ネットワークへの参加とデータセットの追跡を管理するピアノードとブートストラップサーバーを備えたピアツーピアネットワークアーキテクチャを採用する。
- 効率的で耐障害性の高いデータおよびモデル重みの配布を実現するため、Bittorrentにインspiredされた通信プロトコルと Kademlia DHT を使用する。
- ノード障害や動的接続性の変化に対しても学習の一貫性を保つために、All-Reduceアルゴリズムのフェイルセーフな変種を導入する。
- 同期的SGDにおけるデバイスの能力とネットワーク遅延に応じて動的に学習ジョブのサイズを調整するための強化学習ポリシーを適用する。
- メモリ使用量と帯域幅を削減するため、混合精度学習(16ビット重み、32ビットマスターキャプション)に損失スケーリングと勾配圧縮(DGC)を適用する。
- ニューラルネットワークスコアリングとユーザーフィードバックを組み合わせたハイブリッドデータ検証システムを実装し、低品質または悪意あるデータを検出しフィルタリングする。
実験結果
リサーチクエスチョン
- RQ1信頼できない、多様なデバイスから、分散型でピアツーピアのシステムが、多様で高品質な訓練データを効果的に収集できるか。
- RQ2信頼性の低い、断続的に利用可能なノードからなる動的ネットワークにおいて、フェイルセーフ性と学習の一貫性を保証するメカニズムは何か。
- RQ3ネットワーク状態が変動し、メモリが限られている低性能デバイスにおいて、学習効率を最大限に高めることは可能か。
- RQ4ユーザーが正確で価値あるデータを寄付するよう効果的に促すインcentiveモデルは何か。一方でスパムや悪意ある入力を防げるか。
- RQ5混合精度学習と勾配圧縮は、分散型P2P学習環境において、モデルの収束性と正確性をどの程度維持できるか。
主な発見
- Hydraフレームワークは、ノード障害に対しても学習の進行を維持できるフェイルセーフな All-Reduce の変種を用いることで、異種で信頼性の低い低性能デバイスのネットワークにおいても分散学習を成功裏に実現した。
- 損失スケーリングと勾配圧縮を併用した混合精度学習により、メモリ消費量が最大で8分の1に削減され、最適化された半精度演算を備えたデバイスではスループットが向上した。
- 強化学習に基づくジョブサイズ調整ポリシーは、デバイスの異種性とネットワーク遅延に動的に適応し、同期的SGD環境における学習効率を向上させた。
- ニューラルスコアリングとユーザーフィードバックを組み合わせたハイブリッドデータ検証システムは、重複データ、関係のないデータ、悪意あるデータを効果的にフィルタリングし、データセットの品質を向上させた。
- Bittorrentにインspiredされた通信プロトコルにより、効率的で耐障害性の高いデータおよびモデル重みの配布が可能となり、ノードが参加・切断・再開してもグローバルな再起動が不要となった。
- 本システムは、中央集権的なクラウドインfraに依存を減らし、データの多様性と品質を促進する、分散型でインcentive駆動のAI学習パイプラインの実現可能性を示した。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。