Cited by 23Advanced Neural Network ApplicationsDomain Adaptation and Few-Shot LearningLow-power high-performance VLSI design

Quantformer: Learning Extremely Low-Precision Vision Transformers

Wang, Ziwei, Wang, Changyuan, Xu, Xiuwei, Zhou, Jie, Lu, Jiwen·2023·IEEE Transactions on Pattern Analysis and Machine Intelligence

Abstract

In this article, we propose extremely low-precision vision transformers called Quantformer for efficient inference. Conventional network quantization methods directly quantize weights and activations of fully-connected layers without considering properties of transformer architectures. Quantization sizably deviates the self-attention compared with full-precision counterparts, and the shared quantization strategy for diversely distributed patch features causes severe quantization errors. To address these issues, we enforce the self-attention rank in quantized transformers to mimic that in full-precision counterparts with capacity-aware distribution for information retention, and quantize patch features with group-wise discretization strategy for quantization error minimization. Specifically, we efficiently preserve the self-attention rank consistency by minimizing the distance between the self-attention in quantized and real-valued transformers with adaptive concentration degree, where the optimal concentration degree is selected according to the self-attention entropy for model capacity adaptation. Moreover, we partition patch features in different dimensions with differentiable group assignment, so that features in different groups leverage various discretization strategies with minimal rounding and clipping errors. Experimental results show that our Quantformer outperforms the state-of-the-art network quantization methods by a sizable margin across various vision transformer architectures in image classification and object detection. We also integrate our Quantformer with mixed-precision quantization to further enhance the performance of the vanilla models.

Integrity signals

Registry

Crossref · 10.1109/tpami.2022.3229313

Cites

62 of 62 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?

  • Quantformer leverages entropy information as a capacity-aware metric to maintain consistency of self-attention ranks by minimizing discrepancy between quantized and full-precision self-attention layers.

    “Quantformer [60] leverages entropy information as a capacityaware metric to maintain the consistency of self-attention ranks by minimizing the discrepancy between quantized and full-precision self-attention layers.”

Cites

Flagged first, then by citations

6 of the 68 references couldn’t be matched to a known paper.

Cited by

Sorted by citations

Authors
Wang, Z., Wang, C., Xu, X., Zhou, J., & Lu, J.
Affiliations
Beijing National Research Center for Information Science and Technology (CN)
Venue
IEEE Transactions on Pattern Analysis and Machine Intelligence
Published
2023-07-01
Volume
45
Issue
7
Pages
8813-8826
ISSN
  • 0162-8828 (ISSN-L)
  • 2160-9292
  • 1939-3539
OpenAlex
W4312453883
Cited by
22
References
68
Citations by year
2026: 5 · 2025: 12 · 2024: 3 · 2023: 2
FWCI
1.39
Type
journal article
Language
en
Open access
closed
Locations
  • IEEE Transactions on Pattern Analysis and Machine Intelligence (publishedVersion)
  • PubMed (publishedVersion)
Funders
  • National Key Research and Development Program of China (2017YFA0700802)
  • National Natural Science Foundation of China (62125603, 61822603)
  • Beijing Academy of Artificial Intelligence
Topics
  • Physical Sciences › Computer Science › Computer Vision and Pattern Recognition › Advanced Neural Network Applications
  • Physical Sciences › Computer Science › Artificial Intelligence › Domain Adaptation and Few-Shot Learning
  • Physical Sciences › Engineering › Electrical and Electronic Engineering › Low-power high-performance VLSI design
Keywords
vision transformer, neural network quantization, low-precision inference, attention entropy, mixed-precision quantization, inference efficiency, image classification, object detection

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