arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2611.00654cs.LG
收藏

GateTrim:面向大语言模型的自适应秩量化方法

GateTrim: Adaptive-Rank Quantization for Large Language Models

Hongwei Ren, Jincheng Ren, Yuchuan Zhou, Jingchun Ling

AI总结:

提出自适应秩量化方法GateTrim,在W4A8设置下对5种大语言模型评估发现,阈值0.7可降低平均保留秩与困惑度,且性能优于TwinQuant,重建可进一步提升Qwen3-8B性能且不增加资源占用。

摘要:

我们提出GateTrim,一种面向大语言模型的自适应秩后训练量化方法,该方法通过门控优化和基于阈值的秩选择学习矩阵特定的秩。GateTrim对量化的低秩-残差表示的低秩因子进行标准化,为每个目标权重矩阵学习单独的门控向量,并使用共享阈值自动确定其保留的秩。所得秩可因矩阵而异,随后重建紧凑的量化表示。我们在W4A8设置下对Qwen3-4B/8B/14B、Llama-3.2-3B-Instruct和Llama-3.1-8B-Instruct这5种模型评估GateTrim。在所有模型中,我们观察到一个反直觉的发现:将阈值从τ=0.3提高到τ=0.7,平均保留秩降低46.60%至67.89%,同时WikiText-2困惑度降低0.59%至5.17%。在测试的三个阈值0.3、0.5、0.7中,阈值0.7实现最低的平均保留秩和最终困惑度,且相比0.3,目标导出大小减少1.50%至4.25%。GateTrim使用一个8×512 token的拟合池和一个相同大小的单独开发池。在跨研究比较中,Qwen3-4B/8B/14B在τ=0.7时的困惑度数值低于TwinQuant使用128×2048 token校准池发布的W4A8值。在Qwen3-8B上,阈值0.7的配置在两种测试初始化种子下,重建前已具有最低困惑度;重建进一步提升其性能,且不增加保留秩或导出大小。

英文摘要:

We introduce GateTrim, an adaptive-rank post-training quantization method for large language models that learns matrix-specific ranks through gate optimization and threshold-based rank selection. GateTrim standardizes the low-rank factors of a quantized low-rank--residual representation, learns a separate gate vector for each target weight matrix, and uses a shared threshold to automatically determine its retained rank. The resulting ranks can differ across matrices, and the compact quantized representations are subsequently reconstructed. We evaluate GateTrim under W4A8 on Qwen3-4B/8B/14B, Llama-3.2-3B-Instruct, and Llama-3.1-8B-Instruct. Across all five models, we observe a counterintuitive finding: increasing the threshold from $τ=0.3$ to $τ=0.7$ reduces the mean retained rank by 46.60%--67.89% while simultaneously lowering WikiText-2 perplexity by 0.59%--5.17%. Threshold 0.7 achieves the lowest mean retained rank and final perplexity among the three tested thresholds, 0.3, 0.5, and 0.7, and reduces measured target-export size by 1.50%--4.25% relative to 0.3. GateTrim uses an $8\times512$-token fitting pool and a separate development pool of the same size. Its Qwen3-4B/8B/14B perplexities at $τ=0.7$ are numerically below TwinQuant's published W4A8 values, reported with a $128\times2048$-token calibration pool, in a cross-study comparison. On Qwen3-8B, the threshold-0.7 configuration already has the lowest perplexity before reconstruction under both tested initialization seeds; reconstruction improves it further without increasing retained rank or export size.

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

↑