GlowQ: 组共享低秩近似用于量化大语言模型
GlowQ: Group-Shared LOw-Rank Approximation for Quantized LLMs
AI总结:
GlowQ通过组共享低秩近似方法优化量化大语言模型,减少延迟和内存开销,同时提升准确率和吞吐量。
摘要:
量化技术如BitsAndBytes、AWQ和GPTQ常用于部署大语言模型,但低比特表示(如4比特)会降低精度。低秩校正方法(如LQER、QERA、ASER)虽然能缓解此问题,但需恢复所有层并插入误差校正模块,导致延迟和内存开销增加。为解决此限制,我们提出GlowQ,一种组共享低秩近似方法,为每个输入共享组缓存单个共享右因子,并仅恢复带来最高精度提升的组或层。GlowQ在每个输入共享组计算高精度投影并重用该投影,减少参数和内存开销,同时保留层特定校正的表达性。我们还提出一种选择性变体GlowQ-S,仅在提供最大收益的区域应用缓存的共享模块。与强基线相比,我们的方法在平均上将TTFB减少5.6%,吞吐量增加9.6%,在WikiText-2上将perplexity减少0.17%,下游准确率提高0.42个百分点。选择性模型GlowQ-S进一步减少延迟,将TTFB减少23.4%,吞吐量增加37.4%,平均精度保持在0.2个百分点内。代码可在https://github.com/ahnselim/GlowQ获取。
英文摘要:
Quantization techniques such as BitsAndBytes, AWQ, and GPTQ are widely used as a standard method in deploying large language models but often degrades accuracy when using low-bit representations, e.g., 4 bits. Low-rank correction methods (e.g., LQER, QERA, ASER) has been proposed to mitigate this issue, however, they restore all layers and insert error-correction modules into every decoder block, which increases latency and memory overhead. To address this limitation, we propose GlowQ, a group-shared low-rank approximation for quantized LLMs that caches a single shared right factor per input-sharing group and restores only the groups or layers that yield the highest accuracy benefit. GlowQ computes the high-precision projection once per input-sharing group and reuses it across its modules, reducing parameter and memory overhead, and retaining the expressivity of layer-specific corrections. We also propose a selective variant, GlowQ-S, that applies the cached shared module only where it provides the largest benefit. Compared with strong baselines, our approach reduces TTFB by (5.6%) and increases throughput by (9.6%) on average, while reducing perplexity on WikiText-2 by (0.17%) and increasing downstream accuracy by 0.42 percentage points. The selective model GlowQ-S further reduces latency, cutting TTFB by (23.4%) and increasing throughput by (37.4%), while maintaining accuracy within 0.2 percentage points on average. Code is available at https://github.com/ahnselim/GlowQ.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。