[Paper Review] DFX: A Low-latency Multi-FPGA Appliance for Accelerating Transformer-based Text Generation
DFX is a multi-FPGA appliance that accelerates end-to-end GPT-2 inference with low latency and high throughput by leveraging model parallelism, custom compute cores with optimized dataflow, and full utilization of high-bandwidth memory (HBM). It achieves 5.58× speedup, 3.99× better energy efficiency, and 8.21× higher cost-effectiveness over a multi-GPU baseline using four Xilinx Alveo U280 FPGAs.
Transformer is a deep learning language model widely used for natural language processing (NLP) services in datacenters. Among transformer models, Generative Pre-trained 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.58x speedup and 3.99x energy efficiency over four NVIDIA V100 GPUs on the modern GPT-2 model. DFX is also 8.21x more cost-effective than the GPU appliance, suggesting that it is a promising solution for text generation workloads in cloud datacenters.
Motivation & Objective
- To address the high latency of GPU-based systems in the sequential generation stage of transformer-based text generation.
- To design a unified, programmable hardware platform that supports end-to-end GPT inference across both summarization and generation stages.
- To maximize hardware utilization by fully exploiting HBM bandwidth and compute resources in a multi-FPGA system.
- To improve cost-effectiveness and energy efficiency for datacenter-scale text generation workloads.
- To provide a reconfigurable, scalable solution for evolving transformer models without ASIC redesign costs.
Proposed method
- DFX employs model parallelism across four Xilinx Alveo U280 FPGAs to distribute the GPT-2 workload evenly and scale compute capacity.
- It uses a custom programmable compute core optimized for single-token generation, enabling high utilization in the inherently sequential generation phase.
- An efficient tiling scheme and GPT-aware dataflow maximize HBM2 bandwidth usage, reducing memory bottlenecks.
- The system leverages custom instructions to accelerate key GPT-2 operations, including attention computation, layer normalization, and residual connections.
- Full utilization of HBM2 (460 GB/s) and all available DSP and BRAM resources ensures high hardware efficiency.
- The design is fully reprogrammable, enabling support for evolving transformer architectures with minimal redesign overhead.
Experimental results
Research questions
- RQ1How can a hardware accelerator reduce latency in the sequential generation phase of GPT-based text generation, where GPUs underperform?
- RQ2What system-level optimizations are required to achieve high throughput and low latency in multi-FPGA deployment for transformer inference?
- RQ3How can HBM2 bandwidth be maximized in a multi-FPGA system for memory-intensive transformer models like GPT-2?
- RQ4What performance, energy, and cost advantages does a reconfigurable FPGA-based appliance offer over GPU-based alternatives in datacenter workloads?
- RQ5Can model parallelism combined with custom instruction sets and dataflow optimization achieve end-to-end acceleration of GPT-2 with high hardware utilization?
Key findings
- DFX achieves 5.58× speedup over a multi-GPU baseline using four NVIDIA V100 GPUs on the GPT-2 model.
- It delivers 3.99× better energy efficiency compared to the GPU-based appliance.
- DFX is 8.21× more cost-effective than the GPU appliance, with a lower upfront cost and higher performance-per-dollar.
- The system fully utilizes all HBM2 channels and compute resources on four U280 FPGAs, achieving high hardware efficiency.
- The custom compute core and optimized dataflow enable high throughput and low latency in both the parallel summarization and sequential generation stages.
- The reconfigurable FPGA design allows efficient adaptation to evolving transformer models without ASIC redesign.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.