Skip to main navigation Skip to search Skip to main content

SHARP: Shift-Aware Hybrid Power-of-Two Quantization-Assisted Real-Time Vision Transformer Inference on FPGA Platforms

  • Seoul National University of Science and Technology (SNUST)

Research output: Contribution to journal › Article › peer-review

Abstract

Vision Transformers (ViTs) deliver superior accuracy but incur prohibitive computational costs for on-device inference due to multiplication-intensive matrix operations. We present SHARP, a fine-tuning-free ViT accelerator that combines sensitivity-aware mixed quantization with a fully pipelined architecture. SHARP assigns one of three quantization schemes—INT, Power-of-Two, or Hybrid—to each static matrix multiplication based on layer-wise sensitivity analysis, replacing a substantial fraction of multiplications with hardware (HW)-efficient shift operations while preserving model accuracy. To effectively support this mixed quantization approach, SHARP introduces dedicated compute engines optimized for each quantization scheme and employs resource allocation-based pipeline balancing to eliminate bubbles and maximize throughput. Implemented on a Xilinx ZCU102 FPGA, SHARP achieves 69.34% Top-1 accuracy on DeiT-Tiny without fine-tuning and delivers 351.2 FPS at 31.38 FPS/W. Compared to CPU, SHARP demonstrates 26.8× and 26.3× improvements in FPS/W and GOPS/W, respectively.

Keywords

  • FPGA Accelerator
  • Pipelined Architecture
  • Power-of-Two Quantization
  • Vision Transformer

Cite this