Lune

NeurIPS2022顶会

FP8 Quantization: The Power of the Exponent

Andrey Kuzmin, Mart van Baalen, Yuwei Ren, Markus Nagel, Jorn Peters, Tijmen Blankevoort

摘要

When quantizing neural networks for efficient inference, low-bit integers are the go-to format for efficiency. However, low-bit floating point numbers have an extra degree of freedom, assigning some bits to work on an exponential scale instead. This paper in-depth investigates this benefit of the floating point format for neural network inference. We detail the choices that can be made for the FP8 format, including the important choice of the number of bits for the mantissa and exponent, and show analytically in which settings these choices give better performance. Then we show how these findings translate to real networks, provide an efficient implementation for FP8 simulation, and a new algorithm that enables the learning of both the scale parameters and the number of exponent bits in the FP8 format. Our chief conclusion is that when doing post-training quantization for a wide range of networks, the FP8 format is better than INT8 in terms of accuracy, and the choice of the number of exponent bits is driven by the severity of outliers in the network. We also conduct experiments with quantization-aware training where the difference in formats disappears as the network is trained to reduce the effect of outliers.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 23 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Intriguing Properties of Quantization at Scale 引用了 Up or Down? Adaptive Rounding for Post-Training Quantization
  • Outlier Suppression+: Accurate quantization of large language models by equivalent and effective shifting and scaling 引用了 Learned Step Size quantization
  • Outlier Suppression+: Accurate quantization of large language models by equivalent and effective shifting and scaling 引用了 HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
  • Outlier Suppression+: Accurate quantization of large language models by equivalent and effective shifting and scaling 引用了 Up or Down? Adaptive Rounding for Post-Training Quantization
  • Learning from Students: Applying t-Distributions to Explore Accurate and Efficient Formats for LLMs 引用了 Pruning vs Quantization: Which is Better?
  • Pruning vs Quantization: Which is Better? 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Pruning vs Quantization: Which is Better? 引用了 Learned Step Size quantization
  • Pruning vs Quantization: Which is Better? 引用了 HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
  • Pruning vs Quantization: Which is Better? 引用了 Up or Down? Adaptive Rounding for Post-Training Quantization
  • Up or Down? Adaptive Rounding for Post-Training Quantization 引用了 Learned Step Size quantization
  • Up or Down? Adaptive Rounding for Post-Training Quantization 引用了 HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-Precision
  • Ladder: Enabling Efficient Low-Precision Deep Learning Computing through Hardware-aware Tensor Transformation 引用了 An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper23

  1. Pruning vs Quantization: Which is Better?Andrey Kuzmin, Markus Nagel, Mart van Baalen, Arash Behboodi 等NeurIPS 2023 · 152 次引用
  2. Intriguing Properties of Quantization at ScaleArash Ahmadian, Saurabh Dash, Hongyu Chen, Bharat Venkitesh 等NeurIPS 2023 · 56 次引用
  3. Ladder: Enabling Efficient Low-Precision Deep Learning Computing through Hardware-aware Tensor TransformationLei Wang, Lingxiao Ma, Shijie Cao, Quanlu Zhang 等OSDI 2024 · 56 次引用
  4. Outlier Suppression+: Accurate quantization of large language models by equivalent and effective shifting and scalingXiuying Wei, Yunchen Zhang, Yuhang Li, Xiangguo Zhang 等EMNLP 2023 · 40 次引用
  5. Learning from Students: Applying t-Distributions to Explore Accurate and Efficient Formats for LLMsJordan Dotzel, Yuzong Chen, Bahaa Kotb, Sushma Prasad 等ICML 2024 · 20 次引用

它引用的 Paper10

  1. An Image is Worth 16x16 Words: Transformers for Image Recognition at ScaleAlexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn 等ICLR 2021 · 21,477 次引用
  2. SemanticKITTI: A Dataset for Semantic Scene Understanding of LiDAR SequencesJens Behley, Martin Garbade, Andres Milioto, Jan Quenzel 等ICCV 2019 · 2,345 次引用
  3. Learned Step Size quantizationSteven K. Esser, Jeffrey L. McKinstry, Deepika Bablani, Rathinakumar Appuswamy 等ICLR 2020 · 1,037 次引用
  4. Up or Down? Adaptive Rounding for Post-Training QuantizationMarkus Nagel, Rana Ali Amjad, Mart van Baalen, Christos Louizos 等ICML 2020 · 816 次引用
  5. HAWQ: Hessian AWare Quantization of Neural Networks With Mixed-PrecisionZhen Dong, Zhewei Yao, Amir Gholami, Michael W. Mahoney 等ICCV 2019 · 645 次引用

相关 Paper

  1. Shifted and Squeezed 8-bit Floating Point format for Low-Precision Training of Deep Neural NetworksLéopold Cambier, Anahita Bhiwandiwalla, Ting Gong, Oguz H. Elibol 等ICLR 2020 · 53 次引用
  2. Unit Scaling: Out-of-the-Box Low-Precision TrainingCharlie Blake, Douglas Orr, Carlo LuschiICML 2023 · 15 次引用
  3. MERSIT: A Hardware-Efficient 8-bit Data Format with Enhanced Post-Training Quantization DNN AccuracyNguyen-Dong Ho, Gyujun Jeong, Cheol-Min Kang, Seungkyu Choi 等DAC 2024 · 3 次引用
  4. µnit Scaling: Simple and Scalable FP8 LLM TrainingSaaketh Narayan, Abhay Gupta, Mansheej Paul, Davis W. BlalockICML 2025
  5. Scaling Laws for Floating-Point Quantization TrainingXingwu Sun, Shuaipeng Li, Ruobing Xie, Weidong Han 等ICML 2025
黄昏的海面,两侧是细线勾勒的悬崖