LAPA: Log-Domain Prediction-Driven Dynamic Sparsity Accelerator for Transformer Model

Huizheng Wang, Hongbin Wang, Shaojun Wei, Yang Hu, Shouyi Yin
11/26/2025
cs.LGcs.CV

No confident code implementation found for this paper.

Abstract

Attention-based Transformers have revolutionized natural language processing (NLP) and shown strong performance in computer vision (CV) tasks. However, as the input sequence varies, the computational bottlenecks in Transformer models exhibit dynamic behavior across stages, which calls for a cross-stage sparse acceleration strategy. Unfortunately, most existing sparse Transformer approaches are single-stage based, and their sparsity prediction mechanisms lead to significant power overhead when applied across multiple stages. To this end, this paper proposes a log-domain attention prediction algorithm-architecture co-design, named LAPA. First, an asymmetric leading one computing (ALOC) scheme is designed to eliminate expensive multiplications. Next, a mixed-precision multi-round shifting accumulation (MRSA) mechanism is further proposed to mitigate the accumulation overhead. A data-feature dependent filter (DDF) strategy is designed to work in concert with the MRSA process. Finally, an elaborate accelerator is designed to translate the theoretical enhancement into practical hardware improvement. Experimental results show that LAPA achieves 3.52x, 3.24x and 2.79x higher energy efficiency than the state-of-the-art (SOTA) works Spatten, Sanger and FACT, respectively.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2025lapa,
  title  = {LAPA: Log-Domain Prediction-Driven Dynamic Sparsity Accelerator for Transformer Model},
  author = {Huizheng Wang and Hongbin Wang and Shaojun Wei and Yang Hu and Shouyi Yin},
  year   = {2025},
  eprint = {2512.07855},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.07855v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.07855.svg)](https://codeofpaper.com/paper/2512.07855)

Discussion