Lune

DAC2022Top-tier venue

NN-LUT: neural approximation of non-linear operations for efficient transformer inference

Joonsang Yu, Junki Park, Seongmin Park, Minsoo Kim, Sihwa Lee, Dong Hyun Lee, Jungwook Choi

Abstract

Non-linear operations such as GELU, Layer normalization, and Soft-max are essential yet costly building blocks of Transformer models. Several prior works simplified these operations with look-up tables or integer computations, but such approximations suffer inferior accuracy or considerable hardware cost with long latency. This paper proposes an accurate and hardware-friendly approximation framework for efficient Transformer inference. Our framework employs a simple neural network as a universal approximator with its structure equivalently transformed into a Look-up table(LUT). The proposed framework called Neural network generated LUT(NN-LUT) can accurately replace all the non-linear operations in popular BERT models with significant reductions in area, power consumption, and latency.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

9 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • LUT-DLA: Lookup Table as Efficient Extreme Low-Bit Deep Learning Accelerator cites Softermax: Hardware/Software Co-Design of an Efficient Softmax for Transformers
  • PICACHU: Plug-In CGRA Handling Upcoming Nonlinear Operations in LLMs cites SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruning
  • PICACHU: Plug-In CGRA Handling Upcoming Nonlinear Operations in LLMs cites Softermax: Hardware/Software Co-Design of an Efficient Softmax for Transformers
  • Genetic Quantization-Aware Approximation for Non-Linear Operations in Transformers cites Softermax: Hardware/Software Co-Design of an Efficient Softmax for Transformers
  • IANUS: Integrated Accelerator based on NPU-PIM Unified Memory System cites SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head Pruning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. IANUS: Integrated Accelerator based on NPU-PIM Unified Memory SystemMinseok Seo, Xuan Truong Nguyen, Seok Joong Hwang, Yongkee Kwon et al.ASPLOS 2024 · 57 citations
  2. PICACHU: Plug-In CGRA Handling Upcoming Nonlinear Operations in LLMsJiajun Qin, Tianhua Xia, Cheng Tan, Jeff Zhang et al.ASPLOS 2025 · 17 citations
  3. Genetic Quantization-Aware Approximation for Non-Linear Operations in TransformersPingcheng Dong, Yonghao Tan, Dong Zhang, Tianwei Ni et al.DAC 2024 · 12 citations
  4. LUT-DLA: Lookup Table as Efficient Extreme Low-Bit Deep Learning AcceleratorGuoyu Li, Shengyu Ye, Chunyun Chen, Yang Wang et al.HPCA 2025 · 7 citations
  5. VITA: ViT Acceleration for Efficient 3D Human Mesh Recovery via Hardware-Algorithm Co-DesignShilin Tian, Chase Szafranski, Ce Zheng, Fan Yao et al.DAC 2024 · 5 citations

Builds on3

  1. MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited DevicesZhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu et al.ACL 2020 · 660 citations
  2. SpAtten: Efficient Sparse Attention Architecture with Cascade Token and Head PruningHanrui Wang, Zhekai Zhang, Song HanHPCA 2021 · 412 citations
  3. Softermax: Hardware/Software Co-Design of an Efficient Softmax for TransformersJacob R. Stevens, Rangharajan Venkatesan, Steve Dai, Brucek Khailany et al.DAC 2021 · 143 citations

Related papers

  1. MA-BERT: Towards Matrix Arithmetic-only BERT Inference by Eliminating Complex Non-Linear FunctionsNeo Wei Ming, Zhehui Wang, Cheng Liu, Rick Siow Mong Goh et al.ICLR 2023
  2. Range-Invariant Approximation of Non-Linear Operations for Efficient BERT Fine-TuningJanghyeon Kim, Janghwan Lee, Jungwook Choi, JeongHo Han et al.DAC 2023 · 9 citations
  3. I-BERT: Integer-only BERT QuantizationSehoon Kim, Amir Gholami, Zhewei Yao, Michael W. Mahoney et al.ICML 2021 · 439 citations
  4. Look-Up Table based Energy Efficient Processing in Cache Support for Neural Network AccelerationAkshay Krishna Ramanathan, Gurpreet S. Kalsi, Srivatsa Srinivasa, Tarun Makesh Chandran et al.MICRO 2020 · 50 citations
  5. Plug-and-Play Spiking Operators: Breaking the Nonlinearity Bottleneck in Spiking TransformersXinzhe Yuan, Xiang Peng, Bin Gu, Huan XiongICML 2026
Dusk over the sea between two cliffs drawn in fine vertical lines