Hybrid Dynamic Pruning: A Pathway to Efficient Transformer Inference

Ghadeer Jaradat, Mohammed Tolba, Ghada Alsuhli, Hani Saleh, Mahmoud Al-Qutayri +2 more
7/17/2024
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

In the world of deep learning, Transformer models have become very significant, leading to improvements in many areas from understanding language to recognizing images, covering a wide range of applications. Despite their success, the deployment of these models in real-time applications, particularly on edge devices, poses significant challenges due to their quadratic computational intensity and memory demands. To overcome these challenges we introduce a novel Hybrid Dynamic Pruning (HDP), an efficient algorithm-architecture co-design approach that accelerates transformers using head sparsity, block sparsity and approximation opportunities to reduce computations in attention and reduce memory access. With the observation of the huge redundancy in attention scores and attention heads, we propose a novel integer-based row-balanced block pruning to prune unimportant blocks in the attention matrix at run time, also propose integer-based head pruning to detect and prune unimportant heads at an early stage at run time. Also we propose an approximation method that reduces attention computations. To efficiently support these methods with lower latency and power efficiency, we propose a HDP co-processor architecture.

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{jaradat2024hybrid,
  title  = {Hybrid Dynamic Pruning: A Pathway to Efficient Transformer Inference},
  author = {Ghadeer Jaradat and Mohammed Tolba and Ghada Alsuhli and Hani Saleh and Mahmoud Al-Qutayri and Thanos Stouraitis and Baker Mohammad},
  year   = {2024},
  eprint = {2407.12893},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.12893v1}
}

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/2407.12893.svg)](https://codeofpaper.com/paper/2407.12893)

Discussion