arXiv:2608.26926cs.LG2026-08被引 1

为小模型量化设计速度与质量平衡的层重要性度量

A Layer Importance Metric for Quantization Accounting for the Speed-Quality Trade-off in Autoregressive Models

论文配图:A Layer Importance Metric for Quantization Accounting for the Speed-Quality Trade-off in Autoregressive Models
图 1 · 摘自论文原文
  • 结合信息保留与吞吐增益构建复合优先级系数
  • 对Gemma 3 1B测试,预测加速误差仅4%
  • 适合资源受限设备上的模型压缩与部署

小语言模型(sLLMs)常部署在内存和算力受限的设备上。在自回归推理中,计算受内存带宽限制:均匀量化往往损害这类模型性能,因其结构冗余少,仅有少数层对低精度不敏感。本文提出一种复合度量,融合信息保留(基于归一化SQNR系数)与吞吐增益(基于屋顶线延迟分析)两个正交指标。通过分析Gemma 3 1B,发现前馈网络块和嵌入矩阵是最具加速潜力的目标。对每个候选层,我们基于模拟量化估算归一化质量分数,基于屋顶线建模估算归一化速度分数,无需实际执行即可组合为综合优先级系数,灵活调节速度与质量权衡。该方法通用,可应用于单个模块、子层或整层。在多个模型架构上评估,预测加速比误差约4%。相比进化搜索、专用加速器或基于Shapley值的方法,本方法更倾向于将资源分配给表达力强的层。该解析方法使sLLM量化成为可预测的工程任务。

原文摘要 · Abstract (English)

Small language models (sLLMs) are nowadays hosted on devices with limited memory and computational budget. In an autoregressive setup, inference is memory-bandwidth bound: uniform quantization is often detrimental to such models, since their architecture has limited redundancies and only a few layers are not very sensitive to lower precision. We propose a composite metric that combines two orthogonal criteria: information retention (measured in terms of a normalized SQNR-based coefficient) and throughput gains (modeled using a roofline-based latency analysis). By profiling Gemma 3 1B, we find that Feed-Forward Network blocks and the embedding matrix are the most promising targets for acceleration. For each candidate, we estimate a normalized quality score based on simulated quantization and a normalized speed score based on roofline modeling with no actual execution needed. We combine the two scores in a composite priority coefficient, allowing us to tune the trade-off between speed and quality as needed. Our metric is general and can be used to prioritize individual blocks, their projection sublayers, or transformer layers as a whole. We evaluate our approach on several model architectures, showing that our estimates have at around 4% prediction error for the accelerated speedup. We find that our method generally allocates more resources to the most expressive layers compared to evolutionary search, specialized accelerators, or Shapley-value-based approaches that require expensive approximate inference. Our analytical approach makes sLLM quantization a predictable engineering task.

量化小模型性能优化自回归

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。