Skip to main content
QUICK REVIEW

[論文レビュー] EdgeTran: Co-designing Transformers for Efficient Inference on Mobile Edge Platforms

Shikhar Tuli, Niraj K. Jha|arXiv (Cornell University)|Mar 24, 2023
Green IT and SustainabilityEngineering被引用数 3
ひとこと要約

EdgeTranは、ハードウェアに配慮したプロファイリング(ProTran)とベイズ最適化(BOSHCODE)を組み合わせることで、モバイルエッジプラットフォーム向けに効率的なトランスフォーマー・モデルを共同最適化する。モデルサイズを2.8倍小さくし、GLUEスコアを0.8%向上させるとともに、GPU上のBERT-Baseと比較して遅延を15.0%低減し、エネルギー消費を10.0倍、ピーク電力を10.8倍削減し、リアルタイムでエネルギー効率の高いエッジ推論を実現する。

ABSTRACT

Automated design of efficient transformer models has recently attracted significant attention from industry and academia. However, most works only focus on certain metrics while searching for the best-performing transformer architecture. Furthermore, running traditional, complex, and large transformer models on low-compute edge platforms is a challenging problem. In this work, we propose a framework, called ProTran, to profile the hardware performance measures for a design space of transformer architectures and a diverse set of edge devices. We use this profiler in conjunction with the proposed co-design technique to obtain the best-performing models that have high accuracy on the given task and minimize latency, energy consumption, and peak power draw to enable edge deployment. We refer to our framework for co-optimizing accuracy and hardware performance measures as EdgeTran. It searches for the best transformer model and edge device pair. Finally, we propose GPTran, a multi-stage block-level grow-and-prune post-processing step that further improves accuracy in a hardware-aware manner. The obtained transformer model is 2.8$ imes$ smaller and has a 0.8% higher GLUE score than the baseline (BERT-Base). Inference with it on the selected edge device enables 15.0% lower latency, 10.0$ imes$ lower energy, and 10.8$ imes$ lower peak power draw compared to an off-the-shelf GPU.

研究の動機と目的

  • 低計算能力のモバイルエッジプラットフォームに大規模で高精度なトランスフォーマーを、厳密な遅延、エネルギー、ピーク電力制約のもとで効果的にデプロイする課題に対処すること。
  • 多様なモデルとプラットフォームの組み合わせにおけるキーハードウェアパフォーマンス指標をプロファイリングすることで、トランスフォーマー・アーキテクチャとエッジデバイスの効率的共同最適化を可能にすること。
  • 実世界のエッジデプロイメントに適した、モデルの精度とハードウェア効率を同時に最適化するスケーラブルで自動化されたフレームワークの開発。
  • ハードウェアに配慮したブロック単位の成長・ pruning 法(GPTran)を用いて、最適化後のモデル効率を向上させること。
  • 新しいエッジプラットフォームのプロファイリングにかかる時間と計算コストを削減し、アクティブラーニングを活用した迅速なサーロゲートモデル生成を可能にすること。

提案手法

  • ProTranは、ターゲットエッジプラットフォーム上で多様なトランスフォーマー・アーキテクチャの遅延、エネルギー消費、ピーク電力消費を測定するハードウェアパフォーマンスプロファイラである。
  • 高価な評価回数を最小限に抑えるために、ガウス過程回帰、決定木、BOSHNASを用いたサーロゲートモデルを活用したアクティブラーニングを採用し、正確なパフォーマンス予測を実現する。
  • フレームワークは、微細な重み転送をサポートする拡張型で多様性のある設計空間を備えたFlexiBERT 2.0と統合されており、先行研究と比較して10^79倍も広い探索空間を実現する。
  • EdgeTranは、2次微分と異分散モデリングを用いたベイズ最適化(BOSHCODE)を適用し、ユーザーが定義した制約のもとで、モデルアーキテクチャとエッジデバイス選定を共同最適化する。
  • GPTranは、複数段階のブロック単位の成長・pruning後処理ステップを実行し、ハードウェア効率を維持したまま精度をさらに向上させる。
  • パイプライン全体は、事前にプロファイリングされたサーロゲートモデルを活用しており、初期の数時間にわたるプロファイリングフェーズを経た後、新しいプラットフォーム向けの共同最適化を数分で実行可能である。
Figure 1 : Overview of the EdgeTran framework: (a) ProTran used in conjunction with FlexiBERT 2.0 for modeling accuracy along with latency, energy consumption, and peak power draw (hardware measures) for different embedded platforms, using BOSHCODE [ 19 ] for co-design. (b) EdgeTran employs surrogat
Figure 1 : Overview of the EdgeTran framework: (a) ProTran used in conjunction with FlexiBERT 2.0 for modeling accuracy along with latency, energy consumption, and peak power draw (hardware measures) for different embedded platforms, using BOSHCODE [ 19 ] for co-design. (b) EdgeTran employs surrogat

実験結果

リサーチクエスチョン

  • RQ1多様なトランスフォーマー・アーキテクチャを、多様なモバイルエッジプラットフォーム上で、遅延、エネルギー、ピーク電力消費を効率的にプロファイリングする方法は何か?
  • RQ2トランスフォーマー・モデルとエッジデバイスを共同最適化する際、モデルの精度とハードウェア効率(遅延、エネルギー、ピーク電力)の最適なトレードオフは何か?
  • RQ3アクティブラーニングとサーロゲートモデリングは、トランスフォーマーのNASにおけるハードウェアパフォーマンス評価のサンプル複雑度を顕著に低減できるか?
  • RQ4ハードウェアに配慮したブロック単位の成長・pruning戦略は、効率性を損なわず、精度向上にどの程度効果的か?
  • RQ5事前にプロファイリングされたサーロゲートモデルは、新しいエッジプラットフォーム向けの共同最適化をどの程度高速化できるか?

主な発見

  • 最終的なEdgeTran最適化モデルは、BERT-Baseと比較して2.8倍小さく、GLUEスコアが0.8%向上し、精度と効率の両面で向上を実証した。
  • 選択されたエッジデバイス上で推論を実行したところ、A100 GPU上でのBERT-Baseと比較して遅延が15.0%低減した。
  • エネルギー消費は10.0倍、ピーク電力消費は10.8倍、同じ基準のA100 GPUベースラインと比較して削減された。
  • ProTranは、新しいエッジプラットフォーム(例:Raspberry Pi)を7時間以内にプロファイリング可能であり、最小限のオーバーヘッドで迅速な共同最適化を可能にする。
  • サーロゲートモデルが事前トレーニングされた後、共同最適化パイプラインは数分で完了するため、反復的デプロイメントに実用的である。
  • フレームワークは、同等の精度のもとで、サーバー側GPUベースラインと比較して最大で22.0%の遅延低減、3.7倍のエネルギー低減、48.8倍のピーク電力低減を達成した。
Figure 2 : BERT-Tiny in the FlexiBERT 2.0 representation.
Figure 2 : BERT-Tiny in the FlexiBERT 2.0 representation.

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。