Skip to main content
QUICK REVIEW

[論文レビュー] CHARM: Composing Heterogeneous Accelerators for Matrix Multiply on Versal ACAP Architecture

Jinming Zhuang, Jason Lau|arXiv (Cornell University)|Jan 6, 2023
Parallel Computing and Optimization TechniquesComputer Science被引用数 7
ひとこと要約

CHARMはAMD/Xilinx Versal ACAP上で複数の異種MMアクセレータを設計・自動構成し、モノリシックなアクセレータに対してエンドツーエンドのスループットを大幅に向上させる。

ABSTRACT

Dense matrix multiply (MM) serves as one of the most heavily used kernels in deep learning applications. To cope with the high computation demands of these applications, heterogeneous architectures featuring both FPGA and dedicated ASIC accelerators have emerged as promising platforms. For example, the AMD/Xilinx Versal ACAP architecture combines general-purpose CPU cores and programmable logic with AI Engine processors optimized for AI/ML. With 400 AIEs, it provides up to 6.4 TFLOPs performance for 32-bit floating-point data. However, machine learning models often contain both large and small MM operations. While large MM operations can be parallelized efficiently across many cores, small MM operations typically cannot. We observe that executing some small MM layers from the BERT natural language processing model on a large, monolithic MM accelerator in Versal ACAP achieved less than 5% of the theoretical peak performance. Therefore, one key question arises: How can we design accelerators to fully use the abundant computation resources under limited communication bandwidth for applications with multiple MM layers of diverse sizes? We identify the biggest system throughput bottleneck resulting from the mismatch of massive computation resources of one monolithic accelerator and the various MM layers of small sizes in the application. To resolve this problem, we propose the CHARM framework to compose multiple diverse MM accelerator architectures working concurrently towards different layers in one application. We deploy the CHARM framework for four different applications, including BERT, ViT, NCF, MLP, on the AMD Versal ACAP VCK190 evaluation board. Our experiments show that we achieve 1.46 TFLOPs, 1.61 TFLOPs, 1.74 TFLOPs, and 2.94 TFLOPs inference throughput for BERT, ViT, NCF and MLP, which obtain 5.40x, 32.51x, 1.00x and 1.00x throughput gains compared to one monolithic accelerator.

研究の動機と目的

  • BERT、ViT、NCF、MLP などのDLモデルの層ごとにさまざまなサイズのMMを効率的に処理する必要性を動機づける。
  • 帯域幅制約下で全体のスループットを最大化するよう、資源を partition し多様なアクセレータを結合するフレームワークを開発する。
  • Versal ACAP上でエンドツーエンドのDLワークロードを支える設計空間探索、コード生成、ランタイムスケジューリングを自動化する。
  • Versalハードウェアでの再現性を確保するオープンソースツールを提供し、実用的な導入を示す。

提案手法

  • 専用ランタイムを備え、Versal ACAP上で複数の多様なMMアクセレータと非MMカーネルを結合するCHARMアーキテクチャを提案する。
  • CHARMフレームワークはCDSE(単一アクセレータの設計空間探索)、CDAC(多様なアクセレレータ結合)、CACG(自動コード生成)、CRTS(ランタイムスケジューラ)を構成する。
  • 2段階のソートベースのワークロード分割と資源分割アルゴリズムを用いて、MMカーネルを多様なアクセレータへ割り当て、スループットを最適化する。
  • データ移動と計算をモデル化し、DSEとタイルサイズ選択(A,B,C,X,Y,Z)を導く最適化形式を導出する。
  • AIE、PL、ホストコードの生成を自動化し、Versalツールと統合してエンドツーエンドのバイナリを作成する。
  • BERT、ViT、NCF、MLPを用いてVCK190ボード上で実証し、各ワークロードに対してマルチ-TFLOPのスループットを達成する。

実験結果

リサーチクエスチョン

  • RQ1エンドツーエンドのDLモデルにおいてMM層のサイズが大きく異なる場合、オフチップ帯域幅が限られていても高スループットをどう維持できるか?
  • RQ2異種MMアクセレータの結合は、BERTやViTのような実世界のDLワークロードに対してモノリシックなアクセレータよりも性能を上回るか?
  • RQ3資源の効率的な分割と多様なアクセレータのスケジューリングには、どのような設計空間探索・データフロー戦略・自動化が必要か?
  • RQ4自動コード生成とランタイムスケジューリングはVersal ACAP上で実用的なエンドツーエンド導入をどう実現するか?

主な発見

  • CHARMはVCK190での推論スループットとして1.46 TFLOPs(BERT)、1.61 TFLOPs(ViT)、1.74 TFLOPs(NCF)、2.94 TFLOPs(MLP)を達成。
  • モノリシックなアクセレータと比較して、BERTで5.29×、ViTで32.51×、NCFとMLPでそれぞれ1.00×のスループット向上を提供。
  • 大きなMM層には大きなアクセレータを、小さなMM層には小さなアクセレータを割り当てることで、パディングとデータ移動の無駄を削減し、利用率を向上させる。
  • 設計空間探索、コード生成、ランタイムスケジューリングを自動化し、多様なアクセレータを用いたエンドツーエンドのDLワークロードを実現する。
  • 著者はVersal用のホワイトボックス実装としてオープンソースツールを提供し、結果の再現性を確保する。

この論文を読む

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

Nubintでこの論文を読む

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