超越激活对齐:任务感知的大语言模型量化中的对齐-多样性权衡
Beyond Activation Alignment:The Alignment-Diversity Tradeoff in Task-Aware LLM Quantization
AI总结:
本文揭示混合精度量化中的困惑度幻觉和对齐-多样性权衡,提出TASA框架联合优化校准数据组成和比特分配,在3.5比特平均精度下匹配或超越4比特基线。
摘要:
混合精度量化(MPQ)已成为在严格内存和计算约束下部署大型语言模型的关键技术。我们首先发现一种称为困惑度幻觉的现象:基于困惑度敏感性被列为重要的层,与对复杂推理性能影响最大的层几乎没有秩相关性,在我们的分析中Kendall $\tau \approx 0$。我们进一步揭示了对齐-多样性权衡:仅使用目标任务校准数据会降低量化后性能,而加入通用领域数据可稳定敏感性估计并提高跨任务的鲁棒性。基于这些观察,我们提出了TASA(任务感知敏感性分析),一个联合优化校准数据组成和混合精度比特分配的两级框架。具体地,TASA使用无训练梯度迹对齐准则搜索校准数据混合,然后聚合困惑度和面向推理的敏感性信号以指导层间和层内比特分配。在LLaMA-3-8B和Qwen2.5-7B上的实验揭示了精度反转:适当分配的3.5比特模型可以匹配或超越任务感知较弱的4比特基线。在3.5比特平均精度下,TASA在总体准确率上匹配或超越多个有竞争力的4比特均匀基线,并在LLaMA-3-8B上对GSM8K的改进超过最强W3基线20个绝对百分点。这些结果表明校准数据组成显著影响任务敏感量化,这是先前工作中未充分探索的因素。
英文摘要:
Mixed-precision quantization (MPQ) has become a key technique for deploying large language models under stringent memory and compute constraints. We first identify a phenomenon that we term the Perplexity Illusion: layers ranked as important by perplexity-based sensitivity show little rank correlation with those that are most influential for complex reasoning performance, with Kendall $τ\approx 0$ in our analysis. We further reveal an Alignment-Diversity Tradeoff: using only target-task calibration data can degrade post-quantization performance, whereas incorporating general-domain data stabilizes sensitivity estimation and improves robustness across tasks. Based on these observations, we propose TASA (Task-Aware Sensitivity Analysis), a two-level framework that jointly optimizes calibration-data composition and mixed-precision bit allocation. Specifically, TASA searches for a calibration-data mixture using a training-free gradient-trace alignment criterion, and then aggregates perplexity and reasoning-oriented sensitivity signals to guide both inter-layer and intra-layer bit allocation. Experiments on LLaMA-3-8B and Qwen2.5-7B reveal a precision inversion: appropriately allocated 3.5-bit models can match or surpass less task-aware 4-bit baselines. At an average precision of 3.5 bits, TASA matches or outperforms several competitive 4-bit uniform baselines in aggregate accuracy, and improves over the strongest W3 baseline on GSM8K by more than 20 absolute points on LLaMA-3-8B. These results show that calibration-data composition substantially affects task-sensitive quantization, a factor underexplored in prior work.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。