BoA: Attention-aware Post-training Quantization without Backpropagation

Junhan Kim, Ho-young Kim, Eulrang Cho, Chungman Lee, Joonyoung Kim +1 more
6/19/2024
cs.LGcs.AI

Official code: SamsungLabs/BOA (5 stars, last commit 2025-11-28).

Abstract

Post-training quantization (PTQ) is a promising solution for deploying large language models (LLMs) on resource-constrained devices. Early methods developed for small-scale networks, such as ResNet, rely on gradient-based optimization, which becomes impractical for hyper-scale LLMs with billions of parameters. While recently proposed backpropagation-free or transformation-based methods alleviate this issue, they ignore inter-layer interactions or use the naive nearest-rounding-based quantized weight assignment to save the heavy computational cost of weight optimization. In this paper, we introduce a novel backpropagation-free PTQ algorithm that optimizes quantized weights by considering inter-layer dependencies. The key innovation is the development of attention-aware Hessian matrices that capture inter-layer interactions within the attention module. Extensive experiments demonstrate that our approach not only outperforms existing weight quantization methods but also shows good synergy with conventional methods to suppress activation outliers, leading to state-of-the-art weight-activation quantization performance. The code will be available at https://github.com/SamsungLabs/BoA.

View on arXivView PDF

Code Implementations(1)

SamsungLabs/BOAOfficial100%
51PythonOct 16, 202510 months agoNOASSERTION

Cite this paper

@article{kim2024boa,
  title  = {BoA: Attention-aware Post-training Quantization without Backpropagation},
  author = {Junhan Kim and Ho-young Kim and Eulrang Cho and Chungman Lee and Joonyoung Kim and Yongkweon Jeon},
  year   = {2024},
  eprint = {2406.13474},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.13474v3},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.13474.svg)](https://codeofpaper.com/paper/2406.13474)

Discussion