Skip to main content
QUICK REVIEW

[论文解读] Boosting Entropy with Bell Box Quantization

Ningfeng Yang, Tor M. Aamodt|arXiv (Cornell University)|Mar 2, 2026
Advanced Neural Network ApplicationsComputer Science被引用 0
一句话总结

BBQ 是首个信息理论上最优的 ITO 量化方法,通过在输入域执行 ITO 并映射到更易计算的输出域,在 QAPT 设置中对低比特量化的困惑度有提升。

ABSTRACT

Quantization-Aware Pre-Training (QAPT) is an effective technique to reduce the compute and memory overhead of Deep Neural Networks while improving their energy efficiency on edge devices. Existing QAPT methods produce models stored in compute-efficient data types (e.g. integers) that are not information theoretically optimal (ITO). On the other hand, existing ITO data types (e.g. Quantile/NormalFloat Quantization) are not compute-efficient. We propose BBQ, the first ITO quantization method that is also compute-efficient. BBQ builds on our key insight that since learning is domain-agnostic, the output of a quantizer does not need to reside in the same domain as its input. BBQ performs ITO quantization in its input domain, and returns its output in a compute-efficient domain where ITO data types are mapped to compute-efficient data types. Without sacrificing compute efficiency, BBQ outperforms prior SOTA QAPT methods by a perplexity reduction of up to 2 points for 4-bit models, up to 4 points for 3-bit models, up to 5 points for 2-bit models, and up to 18 points for 1-bit models. Code is available at https://github.com/1733116199/bbq.

研究动机与目标

  • 在边缘设备的量化感知预训练(QAPT)中,激发对信息利用率提升的需求。
  • 提出 Bell Box Quantization(BBQ),在保持计算效率的同时最大化熵。
  • 证明 BBQ 相对于最先进的 QAPT 方法(QuEST、LSQ)在 LLaMA/GPT 模型上 1–4 位精度的困惑度方面的优势。
  • 通过训练过程中的熵测量对学习容量利用进行分析。
  • 讨论 BBQ 在 QAFT/PTQ 场景中的局限性与未来方向。

提出的方法

  • 在输入域使用 Hadamard 变换和 RMS 归一化将数据高斯化。
  • 在进行 b 比特的均匀量化前,应用概率积分变换(高斯 CDF)以最大化熵。
  • 使用可学习的缩放因子对量化后的数据进行去量化,以映射回适合低精度矩阵运算的计算高效域。
  • 提供带有梯度缩放的可训练 gamma 参数,以在不同精度下稳定训练。
  • 可选包含 BBQ-Fast 变体,通过 EMA 基于缩放在激活归一化阶段实现推理更快但困惑度保持一致。
Weights or Activations
Weights or Activations

实验结果

研究问题

  • RQ1在输出映射到计算高效域时,ITO 量化是否在 QAPT 中优于非 ITO 方法?
  • RQ2BBQ 在大语言模型的 1–4 位精度下,是否提供比 QuEST 与 LSQ 更高的熵利用率和更低的困惑度?
  • RQ3Hadamard 变换、PIT/Φ 与可学习 gamma 初始化如何影响 BBQ 的性能与训练稳定性?
  • RQ4相较于 FP16 和 NF4 基线,BBQ 在推理阶段的延迟与吞吐量有何影响?
  • RQ5在应用于 QAFT 与 QAPT 或 PTQ 时,BBQ 的局限性有哪些?

主要发现

  • 在所报道的实验中,BBQ 在相同精度下对 LLaMA/GPT 模型始终实现比 QuEST 和 LSQ 更高的熵和更低的困惑度。
  • BBQ 能在训练初期达到 2 位权重的理论最大熵,并在训练过程中自适应熵,显示更好的学习容量利用。
  • BBQ-Fast 通过激活归一化开销的降低实现了可忽略的困惑度损失,维持与 BBQ 相似的性能同时提升推理速度。
  • 端到端的 LLaMA 推理在 BBQ 下显示显著的加速(例如在评估设置中比 FP16 快 40%、比 NF4 快 48%),尽管额外存在激活量化步骤。
  • 在专业化场景(如 1 位)中,BBQ 受益于基于 Φ 的更平滑变换,相较于 QuEST 的裁剪,带来更低的困惑度。
  • 熵被观察为定量化模型中预测质量和学习容量的有用代理指标。
(a) HT & RMS
(a) HT & RMS

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。