Lune

MICRO2022顶会

DFX: A Low-latency Multi-FPGA Appliance for Accelerating Transformer-based Text Generation

Seongmin Hong, Seungjae Moon, Junsoo Kim, Sungjae Lee, Minsub Kim, Dongsoo Lee, Joo-Young Kim

摘要

Transformer is a deep learning language model widely used for natural language processing (NLP) services in datacenters. Among transformer models, Generative Pretrained Transformer (GPT) has achieved remarkable performance in text generation, or natural language generation (NLG), which needs the processing of a large input context in the summarization stage, followed by the generation stage that produces a single word at a time. The conventional platforms such as GPU are specialized for the parallel processing of large inputs in the summarization stage, but their performance significantly degrades in the generation stage due to its sequential characteristic. Therefore, an efficient hardware platform is required to address the high latency caused by the sequential characteristic of text generation. In this paper, we present DFX, a multi-FPGA acceleration appliance that executes GPT-2 model inference end-to-end with low latency and high throughput in both summarization and generation stages. DFX uses model parallelism and optimized dataflow that is model-and-hardware-aware for fast simultaneous workload execution among devices. Its compute cores operate on custom instructions and provide GPT-2 operations end-to-end. We implement the proposed hardware architecture on four Xilinx Alveo U280 FPGAs and utilize all of the channels of the high bandwidth memory (HBM) and the maximum number of compute resources for high hardware efficiency. DFX achieves 5.58×\times speedup and 3.99×\times energy efficiency over four NVIDIA V100 GPUs on the modern GPT-2 model. DFX is also 8.21×\times more cost-effective than the GPU appliance, suggesting that it is a promising solution for text generation workloads in cloud datacenters.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 19 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • EdgeBERT: Sentence-Level Energy Optimizations for Latency-Aware Multi-Task NLP Inference 引用了 SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruning
  • IANUS: Integrated Accelerator based on NPU-PIM Unified Memory System 引用了 Sanger: A Co-Design Framework for Enabling Sparse Attention using Reconfigurable Architecture
  • IANUS: Integrated Accelerator based on NPU-PIM Unified Memory System 引用了 SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruning
  • IANUS: Integrated Accelerator based on NPU-PIM Unified Memory System 引用了 ELSA: Hardware-Software Co-design for Efficient, Lightweight Self-Attention Mechanism in Neural Networks
  • Duplex: A Device for Large Language Models with Mixture of Experts, Grouped Query Attention, and Continuous Batching 引用了 Sanger: A Co-Design Framework for Enabling Sparse Attention using Reconfigurable Architecture
  • Duplex: A Device for Large Language Models with Mixture of Experts, Grouped Query Attention, and Continuous Batching 引用了 SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruning
  • Duplex: A Device for Large Language Models with Mixture of Experts, Grouped Query Attention, and Continuous Batching 引用了 Language Models are Few-Shot Learners
  • Duplex: A Device for Large Language Models with Mixture of Experts, Grouped Query Attention, and Continuous Batching 引用了 ELSA: Hardware-Software Co-design for Efficient, Lightweight Self-Attention Mechanism in Neural Networks
  • Tender: Accelerating Large Language Models via Tensor Decomposition and Runtime Requantization 引用了 Sanger: A Co-Design Framework for Enabling Sparse Attention using Reconfigurable Architecture
  • Tender: Accelerating Large Language Models via Tensor Decomposition and Runtime Requantization 引用了 SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruning
  • Tender: Accelerating Large Language Models via Tensor Decomposition and Runtime Requantization 引用了 ELSA: Hardware-Software Co-design for Efficient, Lightweight Self-Attention Mechanism in Neural Networks
  • PAPI: Exploiting Dynamic Parallelism in Large Language Model Decoding with a Processing-In-Memory-Enabled Computing System 引用了 Sanger: A Co-Design Framework for Enabling Sparse Attention using Reconfigurable Architecture
  • PAPI: Exploiting Dynamic Parallelism in Large Language Model Decoding with a Processing-In-Memory-Enabled Computing System 引用了 Language Models are Few-Shot Learners
  • PAPI: Exploiting Dynamic Parallelism in Large Language Model Decoding with a Processing-In-Memory-Enabled Computing System 引用了 IANUS: Integrated Accelerator based on NPU-PIM Unified Memory System
  • PAPI: Exploiting Dynamic Parallelism in Large Language Model Decoding with a Processing-In-Memory-Enabled Computing System 引用了 ELSA: Hardware-Software Co-design for Efficient, Lightweight Self-Attention Mechanism in Neural Networks
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper19

  1. IANUS: Integrated Accelerator based on NPU-PIM Unified Memory SystemMinseok Seo, Xuan Truong Nguyen, Seok Joong Hwang, Yongkee Kwon 等ASPLOS 2024 · 57 次引用
  2. Allo: A Programming Model for Composable Accelerator DesignHongzheng Chen, Niansong Zhang, Shaojie Xiang, Zhichen Zeng 等PLDI 2024 · 41 次引用
  3. Tender: Accelerating Large Language Models via Tensor Decomposition and Runtime RequantizationJungi Lee, Wonbeom Lee, Jaewoong SimISCA 2024 · 41 次引用
  4. Duplex: A Device for Large Language Models with Mixture of Experts, Grouped Query Attention, and Continuous BatchingSungmin Yun, Kwanhee Kyung, Juhwan Cho, Jaewan Choi 等MICRO 2024 · 40 次引用
  5. PAPI: Exploiting Dynamic Parallelism in Large Language Model Decoding with a Processing-In-Memory-Enabled Computing SystemYintao He, Haiyu Mao, Christina Giannoula, Mohammad Sadrosadati 等ASPLOS 2025 · 37 次引用

它引用的 Paper10

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head PruningHanrui Wang, Zhekai Zhang, Song HanHPCA 2021 · 412 次引用
  3. Sanger: A Co-Design Framework for Enabling Sparse Attention using Reconfigurable ArchitectureLiqiang Lu, Yicheng Jin, Hangrui Bi, Zizhang Luo 等MICRO 2021 · 221 次引用
  4. ELSA: Hardware-Software Co-design for Efficient, Lightweight Self-Attention Mechanism in Neural NetworksTae Jun Ham, Yejin Lee, Seong Hoon Seo, Soosung Kim 等ISCA 2021 · 185 次引用
  5. EdgeBERT: Sentence-Level Energy Optimizations for Latency-Aware Multi-Task NLP InferenceThierry Tambe, Coleman Hooper, Lillian Pentecost, Tianyu Jia 等MICRO 2021 · 117 次引用

相关 Paper

  1. AttAcc! Unleashing the Power of PIM for Batched Transformer-based Generative Model InferenceJaehyun Park, Jaewan Choi, Kwanhee Kyung, Michael Jaemin Kim 等ASPLOS 2024 · 125 次引用
  2. LightSeq2: Accelerated Training for Transformer-Based Models on GPUsXiaohui Wang, Yang Wei, Ying Xiong, Guyue Huang 等SC 2022 · 25 次引用
  3. FASOP: Fast yet Accurate Automated Search for Optimal Parallelization of Transformers on Heterogeneous GPU ClustersSunyeol Hwang, Eungyeong Lee, Hongseok Oh, Youngmin YiHPDC 2024 · 4 次引用
  4. SpeedDETR: Speed-aware Transformers for End-to-end Object DetectionPeiyan Dong, Zhenglun Kong, Xin Meng, Peng Zhang 等ICML 2023 · 21 次引用
  5. SOFA: A Compute-Memory Optimized Sparsity Accelerator via Cross-Stage Coordinated TilingHuizheng Wang, Jiahao Fang, Xinru Tang, Zhiheng Yue 等MICRO 2024 · 31 次引用
黄昏的海面,两侧是细线勾勒的悬崖