Research Papers 论文研究 1d ago Updated 1d ago 更新于 1天前 45

OCGQuant: Outlier-Companion Grouping for NVFP4 Quantization OCGQuant:面向NVFP4量化的异常值-伴随分组方法

OCGQuant introduces a novel post-training quantization (PTQ) method specifically designed for NVFP4 microscaling format, addressing activation outlier degradation in low-bit inference The key innovation is Outlier-Companion Grouping (OCG), which adaptively pairs outlier channels with low-magnitude companion channels to improve block composition and reduce Collateral Quantization Error Experiments on Llama3 and Qwen3 demonstrate OCGQuant achieves the lowest WikiText-2 perplexity and highest avera 提出OCGQuant方法,通过异常值-伴侣分组(Outlier-Companion Grouping)优化NVFP4量化中的激活值分布 定义"连带量化误差"(Collateral Quantization Error),揭示块内最大值主导尺度导致其他值量化误差增大的问题 在Llama3和Qwen3上实现最低WikiText-2困惑度和最高下游准确率,同时保持接近RTN的推理速度 无需额外计算开销,专为NVFP4格式设计的后训练量化(PTQ)方案

58
Hot 热度
72
Quality 质量
65
Impact 影响力

Analysis 深度分析

TL;DR

  • OCGQuant introduces a novel post-training quantization (PTQ) method specifically designed for NVFP4 microscaling format, addressing activation outlier degradation in low-bit inference
  • The key innovation is Outlier-Companion Grouping (OCG), which adaptively pairs outlier channels with low-magnitude companion channels to improve block composition and reduce Collateral Quantization Error
  • Experiments on Llama3 and Qwen3 demonstrate OCGQuant achieves the lowest WikiText-2 perplexity and highest average downstream accuracy among evaluated PTQ methods
  • The method maintains prefill speedup close to Round-to-Nearest (RTN) and matches its peak decoding memory, making it practically deployable

Why It Matters

NVFP4 quantization is becoming increasingly important for efficient low-bit inference, yet activation outliers remain a persistent challenge that degrades accuracy. OCGQuant provides a targeted solution that doesn't require additional computation overhead, making it directly applicable for practitioners deploying quantized models in production. This work bridges the gap between theoretical quantization accuracy and practical deployment constraints.

Technical Details

  • Collateral Quantization Error: The authors formally define the reducible error incurred by remaining block values when the block scale is dominated by outlier activations, providing a new analytical framework for understanding NVFP4 quantization limitations
  • Outlier-Companion Grouping (OCG): An adaptive channel-pairing strategy that groups high-magnitude outlier channels with low-magnitude companion channels within each quantization block, optimizing the distribution of values sharing the same scale
  • NVFP4-specific design: Unlike existing PTQ methods using mixed precision, rotation, or residual compensation (which are either not tailored to NVFP4 or add computation), OCGQuant is specifically engineered for the NVFP4 microscaling format
  • Evaluation: Tested on Llama3 and Qwen3 models with benchmarks including WikiText-2 perplexity and downstream accuracy, comparing against existing PTQ methods while measuring prefill speedup and peak decoding memory

Industry Insight

  • The channel-grouping perspective offers a new paradigm for tackling activation outliers in low-bit quantization that could be extended to other microscaling formats beyond NVFP4
  • The balance between accuracy improvement and computational efficiency (matching RTN's speed and memory characteristics) makes this approach highly attractive for production deployment of quantized LLMs
  • As NVFP4 gains adoption in hardware accelerators, PTQ methods specifically designed for this format will become increasingly valuable, and OCGQuant sets a new performance baseline for the field

TL;DR

  • 提出OCGQuant方法,通过异常值-伴侣分组(Outlier-Companion Grouping)优化NVFP4量化中的激活值分布
  • 定义"连带量化误差"(Collateral Quantization Error),揭示块内最大值主导尺度导致其他值量化误差增大的问题
  • 在Llama3和Qwen3上实现最低WikiText-2困惑度和最高下游准确率,同时保持接近RTN的推理速度
  • 无需额外计算开销,专为NVFP4格式设计的后训练量化(PTQ)方案

为什么值得看

本文针对NVFP4低比特推理中的激活异常值问题提出创新解决方案,填补了现有PTQ方法在NVFP4格式适配上的空白。该方法在保持推理效率的同时显著提升量化精度,对大模型高效部署具有重要参考价值。

技术解析

  • NVFP4量化挑战:在NVFP4块内,大激活值会主导块尺度,导致共享同一尺度的其他值量化误差增大,这是低比特推理的核心瓶颈。
  • 连带量化误差定义:作者从通道分组视角重新审视NVFP4,定义了在块最大值设定尺度下,其余块值产生的可约减误差为"连带量化误差"。
  • OCGQuant核心机制:自适应地将异常值通道与低幅度伴侣通道配对,优化NVFP4激活块组成,使块内数值分布更均衡。
  • 实验验证:在Llama3和Qwen3模型上测试,OCGQuant在WikiText-2困惑度和多项下游任务准确率上均优于现有PTQ方法,且prefill加速比接近RTN,峰值解码内存无增加。

行业启示

  • NVFP4等微缩放格式的低比特推理优化正从"通用PTQ适配"转向"格式专属设计",未来需关注硬件友好型量化算法的专门研究。
  • 激活值分布优化是突破低比特量化精度瓶颈的关键路径,异常值处理策略(如分组、配对、补偿)将成为量化技术的重要研究方向。
  • 在追求量化精度的同时保持推理效率(prefill速度、内存占用)是工业落地的核心约束,OCGQuant的零额外开销设计为工程实践提供了可行范式。

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

Quantization 量化 Inference 推理 Research 科学研究 GPU GPU