arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.04062cs.LGcs.AI
收藏

EdgeRazor: 一种通过混合精度量化感知蒸馏实现大语言模型轻量化的框架

EdgeRazor: A Lightweight Framework for Large Language Models via Mixed-Precision Quantization-Aware Distillation

National Key Laboratory for Novel Software Technology, Nanjing University(南京大学新型软件技术国家重点实验室);School of Intelligent Science and Technology, Nanjing University(南京大学智能科学与技术学院);School of Artificial Intelligence, Nanjing University(南京大学人工智能学院);Microsoft AI(微软AI)

Shu-Hao Zhang, Le-Tong Huang, Xiang-Sheng Deng, Xin-Yi Zou, Chen Wu, Nan Li, Shao-Qun Zhang, Zhi-Hua Zhou

AI总结:

本文提出EdgeRazor框架,通过混合精度量化感知蒸馏方法,在资源受限设备上部署大语言模型,实现了更高的压缩比和更高效的性能。

摘要:

量化已成为在资源受限设备上部署大语言模型(LLMs)的主流方法,但将精度压缩到低于4位通常会导致严重的性能退化或高昂的重训练成本。在本文中,我们提出了EdgeRazor,一种通过混合精度量化感知蒸馏实现LLM轻量化的框架。它包含三个模块:混合精度结构量化用于精细控制位宽,层自适应特征蒸馏动态选择最信息丰富的特征进行对齐,以及熵感知KL散度用于在人工标注和蒸馏数据集上实现前向-反向平衡。在MobileLLM和Qwen系列上的评估表明,在权重-激活量化下,1.88位的Qwen3-0.6B-EdgeRazor在2位基准上表现优异,优于11.27,超过最强的3位基准4.38。在效率方面,EdgeRazor在所有位宽下实现了更高的压缩比,1.58位的Qwen3-0.6B-EdgeRazor将存储从1.11 GB减少到0.19 GB,同时在16位基准上加速解码15.16倍。这些结果经验上验证了EdgeRazor的有效性和效率。代码可以从GitHub和Huggingface访问。

英文摘要:

Quantization has emerged as a mainstream approach for deploying Large Language Models (LLMs) on resource-constrained devices, yet compressing precision below 4-bit typically causes severe performance degradation or prohibitive retraining costs. In this paper, we propose EdgeRazor, a lightweight framework for LLMs via Mixed-Precision Quantization-Aware Distillation. It contains three modules: Structural Quantization with Mixed Precision for fine-grained control of bit-widths, Layer-Adaptive Feature Distillation that dynamically selects the most informative features for alignment, and Entropy-Aware KL Divergence for forward-reverse balance on both human-annotated and distilled datasets. Evaluations conducted on MobileLLM and Qwen families show that under weight-activation quantization, the 1.88-bit Qwen3-0.6B-EdgeRazor outperforms the state-of-the-art 2-bit baselines by 11.27 and surpasses the strongest 3-bit baselines by 4.38, while the quantized MobileLLM-350M-EdgeRazor requires a training budget 4-10$\times$ lower than the leading quantization-aware training method. In terms of efficiency, EdgeRazor achieves higher compression ratios at all bit-widths, and the 1.58-bit Qwen3-0.6B-EdgeRazor reduces storage from 1.11 GB to 0.19 GB while accelerating decoding by 15.16$\times$ over the 16-bit baseline. These results empirically validate the effectiveness and efficiency of EdgeRazor. The codes can be accessed from \href{https://github.com/zhangsq-nju/EdgeRazor}{GitHub} and \href{https://huggingface.co/collections/zhangsq-nju/edgerazor-nbit}{Huggingface}.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑