DAPA: Distribution Aware Piecewise Activation Functions for On-Device Transformer Inference and Training
Not on the map. Why?
Abstract (arXiv)
Non-linear activation functions play a pivotal role in on-device inference and training, as they not only consume substantial hardware resources but also impose a significant impact on system performance and energy efficiency. In this work, we propose Distribution-Aware Piecewise Activation (DAPA), a differentiable and hardware-friendly activation function for Transformer architectures by exploiting the distribution of pre-activation data. DAPA employs a non-uniform piecewise approximation that allocates finer segments to high-probability regions of the distribution, improving generalizability over prior piecewise linear methods. The resulting approximation is further quantized using Distribution-Weighted Mean Square Error to reduce latency and resource utilization for hardware deployment. Our HLS implementation demonstrates that DAPA speeds up GELU computation by 16× and decreases DSP utilization by 16× while maintaining comparable or better performance across vision Transformers and GPT-2 models.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 12 of its 24 references that are in the map. First posted on arXiv 19 Mar 2026.
Builds on
12 of 24 references.
References · 12
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,215
- 2021I-BERT: Integer-only BERT Quantizationcited by 250
- 2022Auto-ViT-Acc: An FPGA-Aware Automatic Acceleration Framework for Vision Transformer with Mixed-Scheme Quantizationcited by 28
- 2023SwiftTron: An Efficient Hardware Accelerator for Quantized Transformerscited by 17
- 2024PEANO-ViT: Power-Efficient Approximations of Non-Linearities in Vision Transformerscited by 13
- 2023Flex-SFU: Accelerating DNN Activation Functions by Non-Uniform Piecewise Approximationcited by 8
- 2024HG-PIPE: Vision Transformer Acceleration with Hybrid-Grained Pipelinecited by 7
- 2024Reusing Softmax Hardware Unit for GELU Computation in Transformerscited by 3
Built on by
Not cited yet.