MemQuant: Towards Memory-aware Post-Training Quantization for Multimodal Transformers
Recently Transformer model has revolutionized the fields of natural language processing (NLP) and computer vision (CV). Even though it shows unprecedented efficiency and accuracy on most tasks, memory and computation overhead can be huge, making it inadequate for real-world applications such as edge devices. Post-training quantization (PTQ) can be an efficient way to overcome this bottleneck. In this paper, we propose a novel memory-aware mixed precision PTQ which will consider memory consumption of blocks and sub-blocks inside transformer model. Our motivation originates from profiling result which varies according to application. We evaluate the proposed methodology by employing both for language model for translation tasks and a vision-to-language model for image captioning tasks. Through our approach, we achieve significant memory savings while experiencing small degradation in accuracy. We are able to achieve 10× memory savings for the weights of the annotated transformer, 5× for T5 text-to-text, and 5.5× for weights of vision-to-language model.
Authors
- Foroozan Karimzadeh (ORCID: https://orcid.org/0000-0001-8849-7784)
- Zishen Wan (ORCID: https://orcid.org/0000-0002-2982-5351)
- Arijit Raychowdhury (ORCID: https://orcid.org/0000-0001-8391-0576)
- Kazi Barria Nine
Institutions
- Georgia Institute of Technology (US)
Publication Details
- Published
- 2025-04-28
- DOI
- https://doi.org/10.1109/aicas64808.2025.11173143
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 0.00