Attribution-Driven Adaptive Token Pruning for Transformers

Yaoyao Yan, Hui Yu, Wei-Zhi Xu
1/1/2025
transformer-attentionquantization-pruning

No confident code implementation found for this paper.

Abstract

Transformers have been widely adopted in natural language processing, computer vision, and other domains due to their exceptional performance across a variety of tasks. However, the computational cost of Transformers is prohibitively high, particularly when handling long input sequences, significantly increasing both training and inference time.

Show full abstract

Although various token pruning methods have been proposed to reduce the computational burden of Transformers, most approaches overlook critical differences in sequences in terms of length and complexity, leading to suboptimal compression efficiency. In this paper, we propose AD-TP, an Attribution-Driven Adaptive Token Pruning method designed to retain only the most informative tokens. We analyze the performance of using accumulated attention values to measure token importance and find that attention values do not accurately reflect the actual contribution of each token to text understanding. Additionally, we observe significant variations in the length and complexity of different sequences within the dataset. Based on these insights, we adopt Integrated Gradients to evaluate token importance and introduce a lightweight adaptive token retainer module that dynamically generates pruning configurations for each input sequence. In addition, we incorporate both teacher supervision and self-supervised learning objectives to enhance the training efficiency, accuracy, and robustness of the model. Experiments conducted on GLUE, SQuAD, and 20News demonstrate that AD-TP outperforms state-of-the-art token pruning and model compression methods in both accuracy and computational efficiency. On GLUE, AD-TP reduces FLOPs by an average of 7.8× while improving performance by 0.6%.

DOISemantic Scholar

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{yan2025attributiondriven,
  title  = {Attribution-Driven Adaptive Token Pruning for Transformers},
  author = {Yaoyao Yan and Hui Yu and Wei-Zhi Xu},
  year   = {2025},
  doi    = {10.52202/085713-1746},
  url    = {https://doi.org/10.52202/085713-1746},
  journal = {Neural Information Processing Systems}
}

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

Discussion