LoopQ: 递归变换器的量化
LoopQ: Quantization for Looped Language Models
AI总结:
本文提出LoopQ框架,针对递归变换器的量化挑战,通过激活缩放、选择性变换等方法提升模型精度与效率。
摘要:
Looped语言模型(LoopLMs)通过递归重用Transformer块提高参数效率,但在训练后量化(PTQ)中易出现脆弱性。本文首次系统研究LoopLMs的量化问题,识别出三个挑战:角色间的分布偏移、循环转换中的状态重用以及递归误差累积。提出LoopQ框架,通过共享量化主干和轻量级适应,结合激活缩放、选择性变换、跨循环状态对齐和轨迹感知优化,减少循环内的分布不匹配和跨循环的误差累积。实验表明,在W4A4量化下,LoopQ在七个基准测试中平均下游准确率提升68.8%,平均困惑度降低87.7%。
英文摘要:
Looped language models (LoopLMs) increase effective computational depth by repeatedly applying shared Transformer blocks without increasing the parameter count. However, this reuse makes them particularly sensitive to post-training quantization (PTQ). We systematically study PTQ in LoopLMs and identify three sources of degradation: distribution shift across roles, state reuse across loop transitions, and recursive error accumulation. We propose LoopQ, a loop-aware PTQ framework that preserves a shared quantized backbone while introducing lightweight adaptations. LoopQ combines loop-aware activation scaling and selective transformations to accommodate changing hidden-state distributions, cross-loop state alignment to stabilize transitions, and trajectory-aware calibration to limit accumulated error. Under W4A4 quantization, LoopQ achieves a 67.8% average relative improvement in five-task mean accuracy across four backbones and a conservative estimate of 75.2% for the average relative perplexity reduction across eight backbone-dataset pairs, compared with the strongest static PTQ baseline for each comparison.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。