arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.11038cs.LG
收藏

EfQAT:一种高效的量化感知训练框架

EfQAT: An Efficient Framework for Quantization-Aware Training

ETH Zurich(苏黎世联邦理工学院);Axelera AI(阿克塞拉人工智能公司)

Saleh Ashkboos, Bram Verhoef, Torsten Hoefler, Evangelos Eleftheriou, Martino Dazzi

AI总结:

提出EfQAT框架,通过仅优化量化模型的关键参数子集,在加速反向传播的同时显著提升PTQ准确率并保留QAT的大部分精度。

摘要:

量化感知训练(QAT)方案已被证明能够达到接近全精度的准确率。它们通过训练量化模型多个周期来实现这一点。这在计算上非常昂贵,主要原因是全精度的反向传播。另一方面,训练后量化(PTQ)方案不涉及训练,因此计算成本低廉,但通常会导致准确率显著下降。我们通过提出EfQAT来解决这些挑战,该框架通过仅优化量化模型的一个参数子集来泛化这两种方案。EfQAT首先将PTQ方案应用于预训练模型,并仅更新最关键的网络参数,同时冻结其余参数,从而加速反向传播。我们在使用不同GPU的各种CNN和基于Transformer的模型上展示了EfQAT的有效性。具体而言,我们表明EfQAT比PTQ准确率显著更高,且仅需极少的额外计算量。此外,EfQAT能将QAT反向传播加速1.44-1.64倍,同时保留大部分准确率。

英文摘要:

Quantization-aware training (QAT) schemes have been shown to achieve near-full precision accuracy. They accomplish this by training a quantized model for multiple epochs. This is computationally expensive, mainly because of the full precision backward pass. On the other hand, post-training quantization (PTQ) schemes do not involve training and are therefore computationally cheap, but they usually result in a significant accuracy drop. We address these challenges by proposing EfQAT, which generalizes both schemes by optimizing only a subset of the parameters of a quantized model. EfQAT starts by applying a PTQ scheme to a pre-trained model and only updates the most critical network parameters while freezing the rest, accelerating the backward pass. We demonstrate the effectiveness of EfQAT on various CNNs and Transformer-based models using different GPUs. Specifically, we show that EfQAT is significantly more accurate than PTQ with little extra compute. Furthermore, EfQAT can accelerate the QAT backward pass between 1.44-1.64x while retaining most accuracy.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑