arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.06516cs.CL
收藏

你只有一份工作:利用LLM隐藏表示进行每任务量化

You Had One Job: Per-Task Quantization Using LLMs' Hidden Representations

Technion—Israel Institute of Technology(技术ion—以色列理工学院);Zenity(Zenity公司);DeepKeep(DeepKeep公司);Ben-Gurion University of the Negev(巴伊兰大学);New York University(纽约大学)

Amit LeVi, Raz Lapid, Rom Himelstein, Chaim Baskin, Ravid Shwartz Ziv, Avi Mendelson

AI总结:

本文提出TAQ框架,通过任务校准提示分配更高精度给任务相关的transformer层,提升精度-内存比和部署性能。

摘要:

许多LLM应用只需窄能力,但标准后训练量化(PTQ)方法在分配精度时未考虑目标任务,导致浪费位数于不相关层并过度压缩关键层。我们提出任务感知量化(TAQ),一种无需训练的权重仅混合精度PTQ框架,利用少量未标记任务校准提示,在固定位预算下分配更高精度给任务相关的transformer层。TAQ通过隐藏表示和输出敏感性估计层重要性,并使用三种评分规则:TAQ-IS基于激活信息和稳定性;TAQ-KL基于量化噪声代理下的输出分布敏感性;TAQ-O是标签引导的oracle诊断用于分析层敏感性。在多个基准测试中,TAQ在大多数设置中优于任务无关基线,尤其在精度-内存比方面有显著提升。我们进一步通过硬件吞吐量和延迟测量验证这些增益在实际部署中的表现,并分析校准鲁棒性和残差流误差传播。总体而言,TAQ将混合精度PTQ从模型导向的压缩步骤转变为任务条件的精度分配问题。参考实现可在https://anonymous.4open.science/r/TAQ-9217/README.md获取。

英文摘要:

Many LLM applications require only narrow capabilities, yet standard post-training quantization (PTQ) methods allocate precision without considering the target task. This can waste bits on layers that are less relevant to the task signal while over-compressing layers that are critical for downstream behavior. We propose Task-Aware Quantization (TAQ), a training-free, weight-only mixed-precision PTQ framework that uses a small set of unlabeled task calibration prompts to allocate higher precision to task-relevant transformer layers under a fixed bit budget. TAQ estimates layer importance from hidden representations and output sensitivity, and we instantiate it with three scoring rules: TAQ-IS, based on activation information and stability; TAQ-KL, based on output-distribution sensitivity under a quantization-noise proxy; and TAQ-O, a label-informed oracle diagnostic for analyzing layer sensitivity. Across several benchmarks, TAQ outperforms task-agnostic baselines such in most settings, with especially strong gains in the accuracy--memory ratio. We further validate that these gains translate to real deployment behavior through hardware throughput and latency measurements, and analyze calibration robustness and residual-stream error propagation. Overall, TAQ turns mixed-precision PTQ from a model-centric compression step into a task-conditioned precision-allocation problem. A reference implementation is available at \href{https://anonymous.4open.science/r/TAQ-9217/README.md}{\includegraphics[height=1em]{imgs/github-mark.png}}.

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

↑