Research Papers 论文研究 3h ago Updated 48m ago 更新于 48分钟前 43

ARCHead: Activation-Metric Residual Correction for Large Language Model Output Heads ARCHead:基于激活度量的残差校正用于大语言模型输出头

ARCHead is a packed LM-head compressor that eliminates the need for dense BF16/FP16 output heads in quantized LLMs It combines a quantized low-rank core, group-wise INT4 residuals, and a low-rank correction fitted using an activation-derived metric On Qwen3-8B-Base, ARCHead reduces LM-head storage by 3.7-3.9x (using only 25.6% of BF16 head storage) while achieving 1.007 relative perplexity Naive INT4 quantization of the same storage budget yields significantly worse perplexity (1.14-1.16), demon ARCHead是一种针对LLM输出头(LM-head)的压缩方法,解决权重量化后LM-head仍需保留BF16/FP16精度的存储浪费问题 该方法结合量化低秩核心、逐组INT4残差和激活派生度量拟合的低秩校正,无需存储密集BF16头 在Qwen3-8B-Base上,ARCHead仅用25.6%的BF16头存储即可达到1.007相对困惑度,显著优于存储匹配的朴素INT4(1.14-1.16) 替换AWQ或bitsandbytes遗留的BF16头仅增加0.006-0.007交叉熵,吞吐量损失不足2% 代码已开源,为块量化器提供了完整的LM-head压缩补充方案

55
Hot 热度
70
Quality 质量
60
Impact 影响力

Analysis 深度分析

TL;DR

  • ARCHead is a packed LM-head compressor that eliminates the need for dense BF16/FP16 output heads in quantized LLMs
  • It combines a quantized low-rank core, group-wise INT4 residuals, and a low-rank correction fitted using an activation-derived metric
  • On Qwen3-8B-Base, ARCHead reduces LM-head storage by 3.7-3.9x (using only 25.6% of BF16 head storage) while achieving 1.007 relative perplexity
  • Naive INT4 quantization of the same storage budget yields significantly worse perplexity (1.14-1.16), demonstrating the value of the residual correction approach
  • ARCHead integrates seamlessly with existing block quantizers like AWQ and bitsandbytes, adding only 0.006-0.007 cross-entropy and less than 2% throughput overhead

Why It Matters

Weight-only quantization has been highly effective for compressing transformer blocks, but the LM-head remains a persistent bottleneck because naive quantization severely degrades vocabulary-logit distributions. ARCHead addresses this gap by providing a practical compression strategy for the output projection layer, enabling end-to-end quantized deployments without sacrificing generation quality. This is directly relevant to anyone deploying quantized LLMs in production who wants to minimize memory footprint without retaining large BF16 heads.

Technical Details

  • Architecture: ARCHead decomposes the LM-head into three components: (1) a quantized low-rank core that captures the dominant projection structure, (2) group-wise INT4 residuals that encode fine-grained correction terms, and (3) a low-rank correction matrix fitted using an activation-derived metric that aligns the compressed head with actual input distributions
  • Training/Calibration: The low-rank correction is fitted using an activation-derived metric, meaning it adapts to the statistical properties of hidden states rather than relying solely on weight statistics, which is critical for preserving logit distribution fidelity
  • Benchmarks: Evaluated on Qwen3-8B-Base, achieving 1.007 relative perplexity with only 25.6% of the original BF16 head storage; storage-matched naive INT4 quantization yields 1.14-1.16 relative perplexity, a substantial degradation
  • Integration: Designed to complement existing block quantizers (AWQ, bitsandbytes) that typically leave the LM-head untouched; replacing their retained BF16 head with ARCHead adds only 0.006-0.007 cross-entropy and less than 2% throughput change
  • Storage Reduction: Achieves 3.7-3.9x compression of the persistent LM-head storage with no dense BF16 head required

Industry Insight

  • Full-stack quantization becomes viable: ARCHead closes the last major gap in weight-only quantization pipelines by compressing the LM-head, enabling truly end-to-end quantized deployments without memory compromises on the output projection
  • Activation-aware correction is a generalizable technique: The use of activation-derived metrics for fitting low-rank corrections could be extended beyond LM-heads to other sensitive projection layers in transformer architectures, potentially improving quantization robustness across model components
  • Near-zero overhead makes adoption frictionless: With less than 2% throughput impact and minimal perplexity degradation, ARCHead can be drop-in integrated into existing quantization workflows (AWQ, bitsandbytes), making it immediately actionable for practitioners optimizing inference cost

TL;DR

  • ARCHead是一种针对LLM输出头(LM-head)的压缩方法,解决权重量化后LM-head仍需保留BF16/FP16精度的存储浪费问题
  • 该方法结合量化低秩核心、逐组INT4残差和激活派生度量拟合的低秩校正,无需存储密集BF16头
  • 在Qwen3-8B-Base上,ARCHead仅用25.6%的BF16头存储即可达到1.007相对困惑度,显著优于存储匹配的朴素INT4(1.14-1.16)
  • 替换AWQ或bitsandbytes遗留的BF16头仅增加0.006-0.007交叉熵,吞吐量损失不足2%
  • 代码已开源,为块量化器提供了完整的LM-head压缩补充方案

为什么值得看

本文针对大模型量化中常被忽视的LM-head存储优化问题提出了有效解决方案,填补了权重量化后输出投影层压缩的技术空白。对于追求端到端模型压缩的AI工程师和部署团队,ARCHead提供了可落地的存储节省方案,同时保持几乎无损的推理精度。

技术解析

  • 核心架构:ARCHead采用三层压缩策略——量化低秩核心捕获主要投影信息,逐组INT4残差捕捉量化误差,激活派生度量拟合的低秩校正项进一步补偿精度损失,三者结合实现高压缩比下的低精度损耗。
  • 实验基准:在Qwen3-8B-Base模型上验证,对比对象包括原始BF16头、朴素INT4量化,以及与AWQ和bitsandbytes等主流量化方案配合使用的场景。
  • 性能指标:存储压缩比达3.7-3.9倍,相对困惑度仅1.007(BF16为基准1.0),交叉熵增量0.006-0.007,吞吐量变化<2%,各项指标均表现优异。
  • 实现细节:该方法不依赖密集BF16头存储,通过激活分布引导的校正机制有效缓解了直接量化导致的词汇logit分布扰动问题。

行业启示

  • 量化完整性:当前LLM量化研究多聚焦于Transformer块内部权重,LM-head作为最终输出投影层常被遗漏,ARCHead提示行业需关注端到端压缩的完整性。
  • 部署效率优化:对于边缘设备或大规模部署场景,LM-head存储优化可带来显著的系统级收益,建议量化框架(如AWQ、bitsandbytes)原生集成此类压缩技术。
  • 激活感知设计趋势:利用激活分布信息指导量化策略是提升低比特模型精度的有效路径,未来可探索更多激活派生的校正机制应用于其他模型组件。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

LLM 大模型 Quantization 量化 Inference 推理 Research 科学研究