跳到主要导航 跳到搜索 跳到主要内容

FineQ: Software-Hardware Co-Design for Low-Bit Fine-Grained Mixed-Precision Quantization of LLMs

  • Xilong Xie
  • , Liang Wang*
  • , Limin Xiao*
  • , Meng Han
  • , Lin Sun
  • , Shuai Zheng
  • , Xiangrong Xu
  • *此作品的通讯作者
  • Beihang University
  • Ltd.

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Large language models (LLMs) have significantly advanced the natural language processing paradigm but impose substantial demands on memory and computational resources. Quantization is one of the most effective ways to reduce memory consumption of LLMs. However, advanced single-precision quantization methods experience significant accuracy degradation when quantizing to ultra-low bits. Existing mixed-precision quantization methods are quantized by groups with coarse granularity. Employing high precision for group data leads to substantial memory overhead, whereas low precision severely impacts model accuracy. To address this issue, we propose FineQ, software-hardware co-design for low-bit fine-grained mixed-precision quantization of LLMs. First, FineQ partitions the weights into finer-grained clusters and considers the distribution of outliers within these clusters, thus achieving a balance between model accuracy and memory overhead. Then, we propose an outlier protection mechanism within clusters that uses 3 bits to represent outliers and introduce an encoding scheme for index and data concatenation to enable aligned memory access. Finally, we introduce an accelerator utilizing temporal coding that effectively supports the quantization algorithm while simplifying the multipliers in the systolic array. FineQ achieves higher model accuracy compared to the SOTA mixed-precision quantization algorithm at a close average bit-width. Meanwhile, the accelerator achieves up to 1.79x energy efficiency and reduces the area of the systolic array by 61.2%.

源语言英语
主期刊名2025 Design, Automation and Test in Europe Conference, DATE 2025 - Proceedings
出版商Institute of Electrical and Electronics Engineers Inc.
ISBN(电子版)9783982674100
DOI
出版状态已出版 - 2025
活动2025 Design, Automation and Test in Europe Conference, DATE 2025 - Lyon, 法国
期限: 31 3月 20252 4月 2025

出版系列

姓名Proceedings -Design, Automation and Test in Europe, DATE
ISSN(印刷版)1530-1591

会议

会议2025 Design, Automation and Test in Europe Conference, DATE 2025
国家/地区法国
Lyon
时期31/03/252/04/25

联合国可持续发展目标

此成果有助于实现下列可持续发展目标:

  1. 可持续发展目标 7 - 经济适用的清洁能源
    可持续发展目标 7 经济适用的清洁能源

学术指纹

探究 'FineQ: Software-Hardware Co-Design for Low-Bit Fine-Grained Mixed-Precision Quantization of LLMs' 的科研主题。它们共同构成独一无二的学术指纹。

引用此