Cited by 139Advanced Neural Network ApplicationsTopic ModelingNatural Language Processing Techniques

Learned Token Pruning for Transformers

Open access
Kim, Sehoon, Shen, Sheng, Thorsley, David, Gholami, Amir, Kwon, Woosuk, Hassoun, Joseph, Keutzer, Kurt·2022·Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining

Abstract

Efficient deployment of transformer models in practice is challenging due to their inference cost including memory footprint, latency, and power consumption, which scales quadratically with input sequence length. To address this, we present a novel token reduction method dubbed Learned Token Pruning (LTP) which adaptively removes unimportant tokens as an input sequence passes through transformer layers. In particular, LTP prunes tokens with an attention score below a threshold, whose value is learned for each layer during training. Our threshold-based method allows the length of the pruned sequence to vary adaptively based on the input sequence, and avoids algorithmically expensive operations such as top-k token selection. We extensively test the performance of LTP on GLUE and SQuAD tasks and show that our method outperforms the prior state-of-the-art token pruning methods by up to ∽2.5% higher accuracy with the same amount of FLOPs. In particular, LTP achieves up to 2.1× FLOPs reduction with less than 1% accuracy drop, which results in up to 1.9× and 2.0× throughput improvement on Intel Haswell CPUs and NVIDIA V100 GPUs. Furthermore, we demonstrate that LTP is more robust than prior methods to variations in input sequence lengths. Our code has been developed in PyTorch and open-sourced

Integrity signals

Registry

Crossref · 10.1145/3534678.3539260

Cites

10 of 10 references verified0 citation errors · 0 not checkable

Statistics

Recomputing p-values needs the paper’s full text.

Claims the paper makes

We couldn’t retrieve this paper’s full text, so its claims and self-check weren’t run. The registry and citation checks still apply.

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

  • Applying the same pruning percentage can potentially under-prune short sequences or over-prune long sequences.

    “Therefore, applying the same pruning percentage can potentially under-prune short sequence or over-prune long sequence [103].”

    From A Survey of Techniques for Optimizing Transformer Inference (2023) · cites this paper as [103]

Cites

Flagged first, then by citations

Cited by

Sorted by citations

Authors
Kim, S., Shen, S., Thorsley, D., Gholami, A., Kwon, W., Hassoun, J., & Keutzer, K.
Affiliations
  • University of California, Berkeley (US)
  • Samsung Semiconductor (United States) (US)
Venue
Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining
Publisher
ACM
Published
2022-08-14
Pages
784-794
OpenAlex
W3180037928
Cited by
139
References
10
Citations by year
2026: 22 · 2025: 43 · 2024: 44 · 2023: 22 · 2022: 6 · 2021: 2
FWCI
10.43
Type
conference paper
Language
en
Open access
Locations
  • ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD) (publishedVersion, cc-by)
  • arXiv (Cornell University) (submittedVersion)
  • arXiv (Cornell University)
Topics
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
  • Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
  • Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
Keywords
token pruning, transformer models, inference efficiency, FLOPs reduction, throughput improvement, input sequence length, memory usage, power consumption

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review