mlsanityData to 7 Oct 2026

Faster Inference of Integer SWIN Transformer by Removing the GELU Activation

arXiv 2402.01169 ↗First posted 2 Feb 2024cs.CV cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

SWIN transformer is a prominent vision transformer model that has state-of-the-art accuracy in image classification tasks. Despite this success, its unique architecture causes slower inference compared with similar deep neural networks. Integer quantization of the model is one of the methods used to improve its inference latency. However, state-of-the-art has not been able to fully quantize the model. In this work, we improve upon the inference latency of the state-of-the-art methods by removing the floating-point operations, which are associated with the GELU activation in Swin Transformer. While previous work proposed to replace the non-integer operations with linear approximation functions, we propose to replace GELU with ReLU activation. The advantage of ReLU over previous methods is its low memory and computation complexity. We use iterative knowledge distillation to compensate for the lost accuracy due to replacing GELU with ReLU. We quantize our GELU-less SWIN transformer and show that on an RTX 4090 NVIDIA GPU we can improve the inference latency of the quantized SWIN transformer by at least 11% while maintaining an accuracy drop of under 0.5% on the ImageNet evaluation dataset.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 11 of its 16 references that are in the map. First posted on arXiv 2 Feb 2024.

Builds on

11 of 16 references.

References · 11

  1. 2017Attention Is All You Needcited by 59,932
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  4. 2021Post-Training Quantization for Vision Transformercited by 274
  5. 2021I-BERT: Integer-only BERT Quantizationcited by 250
  6. 2021FQ-ViT: Post-Training Quantization for Fully Quantized Vision Transformercited by 148
  7. 2022Q-ViT: Accurate and Fully Quantized Low-bit Vision Transformercited by 106
  8. 2021Softermax: Hardware/Software Co-Design of an Efficient Softmax for Transformerscited by 52
  9. 2022Q-ViT: Fully Differentiable Quantization for Vision Transformercited by 36
  10. 2020Towards Fully 8-bit Integer Inference for the Transformer Modelcited by 35
  11. 2022VAQF: Fully Automatic Software-Hardware Co-Design Framework for Low-Bit Vision Transformercited by 27

Built on by

Not cited yet.