Efficient Integer Quantization for Compressed DETR Models
The Transformer-based target detection model, DETR, has powerful feature extraction and recognition capabilities, but its high computational and storage requirements limit its deployment on resource-constrained devices. To solve this problem, we first replace the ResNet-50 backbone network in DETR with Swin-T, which realizes the unification of the backbone network with the Transformer encoder and decoder under the same Transformer processing paradigm. On this basis, we propose a quantized inference scheme based entirely on integers, which effectively serves as a data compression method for reducing memory occupation and computational complexity. Unlike previous approaches that only quantize the linear layer of DETR, we further apply integer approximation to all non-linear operational layers (e.g., Sigmoid, Softmax, LayerNorm, GELU), thus realizing the execution of the entire inference process in the integer domain. Experimental results show that our method reduces the computation and storage to 6.3% and 25% of the original model, respectively, while the average accuracy decreases by only 1.1%, which validates the effectiveness of the method as an efficient and hardware-friendly solution for target detection.
Authors
- Nanfeng Zhang
- Congduan Li (ORCID: https://orcid.org/0000-0003-0495-332X)
- Li Wang (ORCID: https://orcid.org/0000-0001-5986-7184)
- Peng Liu (ORCID: https://orcid.org/0000-0001-5183-8768)
- Jingfeng Yang
Institutions
- Sun Yat-sen University (CN)
- Tianjin University (CN)
- Shanghai Customs College (CN)
- Guangdong Institute of Intelligent Manufacturing (CN)
Publication Details
- Journal
- Entropy
- Published
- 2025-04-13
- DOI
- https://doi.org/10.3390/e27040422
- Citations
- 1
- Primary Topic
- Advanced Neural Network Applications
- Type
- article
- Field-Weighted Citation Impact
- 1.28
Funders
- National Natural Science Foundation of China