NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

NAQ: Nonlinearity-Aware Quantization

Jonathan S. Lew, Tor M. AamodtOpenReview 2025 · Submission to ICLR 2025 · Rejected

Abstract

Transformer-based large language models and vision transformers have achieved remarkable performance, but at a high energy cost. Nonlinearities (e.g., GELU, softmax) have regions where the magnitude of the gradient is small, which means that errors in pre-nonlinearity inputs result in small output error. We propose Nonlinearity-Aware Quantization (NAQ), which involves computing the FC layer outputs and attention scores at low precision, predicting the magnitude of the gradient of the nonlinearity, and recomputing the pre-nonlinearity if the gradient magnitude is large. With future hardware support, models with NAQ would avoid up to 62% of full precision pre-nonlinearity computation and it would achieve up to 29% reduction in energy consumption, with small effects on model performance.
BibTeX
@misc{lew2025naq,
  author = {Jonathan S. Lew and Tor M. Aamodt},
  title = {{NAQ: Nonlinearity-Aware Quantization}},
  year = {2025},
  url = {https://openreview.net/forum?id=EWiWMoynco},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2025},
}

Loading related content...

Figure