# GPTQ-2D: Cubic-Time Two-Sided Adaptive Rounding

DevFeed: [GPTQ-2D: Cubic-Time Two-Sided Adaptive Rounding](<https://devfeed.tech/articles/gptq-2d-cubic-time-two-sided-adaptive-rounding-120463.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2607.27042>)

Author: Jiale Chen, Torsten Hoefler, Dan Alistarh

Published: 2026-11-06T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [Large Language Model](<https://devfeed.tech/topics/llm.md>), [polynomials](<https://devfeed.tech/topics/polynomials.md>)

Tags: [adaptive](<https://devfeed.tech/tags/adaptive.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [blocking](<https://devfeed.tech/tags/blocking.md>), [cs-ds](<https://devfeed.tech/tags/cs-ds.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cubic](<https://devfeed.tech/tags/cubic.md>), [experiments](<https://devfeed.tech/tags/experiments.md>), [gptq](<https://devfeed.tech/tags/gptq.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [kl-divergence](<https://devfeed.tech/tags/kl-divergence.md>), [large-language-model](<https://devfeed.tech/tags/large-language-model.md>), [layer](<https://devfeed.tech/tags/layer.md>), [llama](<https://devfeed.tech/tags/llama.md>), [llama-3-1](<https://devfeed.tech/tags/llama-3-1.md>), [llm](<https://devfeed.tech/tags/llm.md>), [model](<https://devfeed.tech/tags/model.md>), [nvidia](<https://devfeed.tech/tags/nvidia.md>), [nvidia-rtx](<https://devfeed.tech/tags/nvidia-rtx.md>), [parallel](<https://devfeed.tech/tags/parallel.md>), [rtx](<https://devfeed.tech/tags/rtx.md>), [work](<https://devfeed.tech/tags/work.md>)

## AI overview

GPTQ-2D reduces YAQA's two-sided adaptive-rounding error-feedback work from quartic to cubic in the size of a square layer while provably producing the same rounding; entries on each anti-diagonal can still be rounded in parallel. Its GPU implementation uses two levels of blocking, and the method is extended to Hessians with any number of Kronecker factors. In experiments, it is reported as accurate as YAQA and reduced quantization time for Llama-3.1-70B-Instruct on one NVIDIA RTX A6000 from 8.6 days to 1.6 hours.

## Source excerpt

arXiv:2607.27042v2 Announce Type: replace-cross Abstract: Adaptive rounding methods such as GPTQ quantize the weights of a large language model (LLM) one at a time, propagating each rounding error to the weights not yet rounded. YAQA lowers the KL divergence from the original model with two-sided adaptive rounding under a Kronecker-factored Hessian, but its error feedback takes quartic work in the size of a square layer. We present GPTQ-2D, which provably computes the same rounding with cubic work, while still rounding the entries of each anti-diagonal in parallel. Its GPU implementation uses two levels of blocking to improve hardware utilization. We also extend the algorithm to Hessians with any number of Kronecker factors. In our experiments, GPTQ-2D is as accurate as YAQA and cuts the time to quantize Llama-3.1-70B-Instruct on a single NVIDIA RTX A6000 GPU from 8.6 days to 1.6 hours. Source code is available at https://github.com/IST-DASLab/GPTQ-2D.