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

UniQL: 面向自适应边缘LLM的统一量化与低秩压缩

UniQL: Unified Quantization and Low-rank Compression for Adaptive Edge LLMs

Hung-Yueh Chiang, Chi-Chih Chang, Yu-Chen Lu, Chien-Yu Lin, Kai-Chiang Wu, Mohamed S. Abdelfattah, Diana Marculescu

AI总结:

UniQL通过统一量化与低秩压缩技术,实现边缘LLM的高效部署,支持多种模型结构,提升内存效率与吞吐量,保持高精度。

摘要:

在移动平台上部署大型语言模型(LLMs)面临重大挑战,因为设备的内存有限且计算资源共享。资源可用性可能成为问题,因为它直接受到当前设备工作负载的影响,增加了模型部署的不确定性。我们引入了UniQL,一种统一的后训练量化和低秩压缩框架,具有设备可配置的剪枝率,用于边缘LLMs。UniQL是一个通用框架,整合了针对Transformer、状态空间模型(SSMs)和混合模型的量化和低秩压缩,以支持多样的边缘应用。在我们提出的联合框架中,我们引入了一种高效的结构化权重排序方法,使计算速度提高了20倍,量化感知的奇异值分解(SVD)以最小化量化误差,针对SSMs的状态感知权重排序,以及为剪枝模型融合的旋转位置嵌入(RoPE)内核。我们的框架在云中执行权重排序、微调和量化,采用单次工作流,同时允许设备上配置剪枝率高达35%。我们的实验表明,量化和剪枝后的模型在内存上减少了4倍至5.7倍,并在令牌吞吐量上提高了2.7倍至3.4倍,保持在15%剪枝下,Transformer(Llama3和Qwen2.5)、SSMs(Mamba2)和混合模型(Nemotron-H和Bamba-v2)的精度与原始模型相差在5%以内。代码和量化模型可在:https://github.com/enyac-group/UniQL 上获得。

英文摘要:

Deploying large language models (LLMs) on mobile platforms faces significant challenges due to the limited memory and shared computational resources of the device. Resource availability may be an issue as it is directly impacted by the current device workload, adding to the uncertainty of model deployment. We introduce UniQL, a unified post-training quantization and low-rank compression framework with on-device configurable pruning rates for edge LLMs. UniQL is a general framework that integrates quantization and low-rank compression for Transformers, State Space Models (SSMs), and hybrid models to support diverse edge applications. In our proposed joint framework, we introduce an efficient structured weight-sorting method that speeds up computation by 20x, quantization-aware singular value decomposition (SVD) to minimize quantization errors, state-aware weight sorting for SSMs, and a fused rotary positional embedding (RoPE) kernel for pruned models. Our framework performs weight-sorting, fine-tuning, and quantization in the cloud in a single-pass workflow, while enabling on-device configurable pruning rates up to 35%. Our experiments show that quantized and pruned models achieve a memory reduction of 4x-5.7x and a token-throughput improvement of 2.7x-3.4x, maintaining accuracy within 5% of the original models at 15% pruning across Transformers (Llama3 and Qwen2.5), SSMs (Mamba2), and hybrid models (Nemotron-H and Bamba-v2). The code and quantized models are available at: https://github.com/enyac-group/UniQL.

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

↑