SHARP-Q: Spectral Hessian Alignment and Rectification for Post-training Quantization

Menghao Lv, Huiqiong Wang, Li Sun, Mingli SongICML 2026

Introduction

To deploy massive AI models on edge devices like smartphones or IoT sensors, developers rely on quantization to reduce the precision of weights and activations from 32-bit floats to low-bit integers. Post-Training Quantization (PTQ) is typically the preferred method because it is fast and does not require access to the original training data.

However, pushing precision down to ultra-low bit-widths (e.g., 2-bit or 3-bit) usually causes model accuracy to plummet. SHARP-Q is a unified PTQ framework that solves this by leveraging Information Geometry to "rectify" the warped optimization landscape of neural networks. By doing so, it enables simple, hardware-friendly uniform quantizers to outperform complex, specialized designs across Convolutional Neural Networks (CNNs), Vision Transformers (ViTs), and State Space Models (SSMs).

The Core Problem: Ill-Conditioned Error Surfaces

Why does accuracy fall off a cliff at 2 or 3 bits? The authors argue that the "error surface" of a deep neural network is fundamentally ill-conditioned. It is highly anisotropic, meaning the optimization landscape is stretched out in some directions and compressed in others.

Standard quantization methods, such as those based on Mean Squared Error (MSE), implicitly assume this landscape is uniform. This mismatch leads to rounding errors that destroy model performance. Previous attempts to fix this issue either ignored the complex interactions between parameters or required architectural modifications (like swapping activation functions), which defeats the plug-and-play purpose of post-training deployment.

The SHARP-Q Solution: Rectify-then-Approximate

SHARP-Q introduces a "Rectify-then-Approximate" strategy grounded in Information Geometry, consisting of two primary stages:

  1. Hessian-Aware Rectification (HAR): Instead of passively trying to optimize over a warped landscape, HAR proactively transforms it. It learns a preconditioning operator that "squashes" the spectral envelope of the Hessian (the matrix describing the landscape's curvature). This makes the optimization surface more isotropic (spherical), making it much easier for a quantizer to navigate.
  2. Dynamic Fisher-Subspace Compensation (DFSC): Once the landscape is rectified, the model must identify which specific directions are most sensitive to noise. DFSC builds a "Hybrid Fisher Surrogate"—a mathematical proxy for the model's sensitivity. It combines a stable diagonal baseline with a dynamic, low-rank subspace correction ($r=5$) that tracks how perturbations evolve during the quantization process.

A key technical innovation enabling this is the Fisher-KL Oracle. The authors derived a method to estimate the Fisher Information Matrix (which captures curvature) using only the gradients of the KL divergence between the original and quantized models. This bypasses the massive computational cost of directly calculating second-order derivatives.

Key Insights

  • Geometry Trumps Complexity: A major takeaway is that complex, non-uniform quantizers (which are notoriously difficult to implement in hardware) are unnecessary if the quantization process is aligned with the model's intrinsic geometry. SHARP-Q proves that geometrically aligned uniform quantizers can actually beat specialized non-uniform designs.
  • The Power of Preconditioning: Most PTQ methods are "passive," accepting the landscape as it is. SHARP-Q demonstrates that proactively alleviating ill-conditioning is a prerequisite for high-fidelity recovery at ultra-low bit-widths.
  • Universal Applicability: Because SHARP-Q focuses on the underlying geometry of the loss function rather than architectural hacks, it works seamlessly across wildly different architectures.

Empirical Results

The authors evaluated SHARP-Q across three major architectural families on standard benchmarks (like ImageNet and image super-resolution datasets): ViTs (ViT, DeiT, Swin), CNNs (ResNet, MobileNetV2, RegNet, MNasNet), and SSMs (MambaIRv2-light). The framework established new state-of-the-art (SOTA) results:

  • Vision Transformers: In the challenging W3A3 (3-bit weight/activation) setting, SHARP-Q improved Top-1 accuracy on ViT-S by 3.76% over the previous best method.
  • CNN Robustness: On ResNet-18 at W2A2, it achieved 56.74% accuracy, outperforming the previous SOTA (CL-Calib) by 2.29%.
  • State Space Models: For image super-resolution (W4A4), SHARP-Q outperformed specialized Mamba-PTQ methods by 1.25 dB in PSNR on the Manga109 dataset.
  • Efficiency: The method is roughly 70x faster than Quantization-Aware Training (QAT) and adds negligible overhead to inference (an approximate 0.1% to 0.2% increase in FLOPs), as most of the rectification is fused into the weights offline.

Limitations and Future Work

While SHARP-Q is highly effective, the authors note that extending it to massive Large Language Models (7B+ parameters) is currently challenging. This is due to the iterative optimization overhead of the underlying reconstruction solver (AdaRound). Developing more efficient solvers is identified as a critical next step to bring these geometric insights to giant foundation models.

Summary updated

BibTeX
@inproceedings{lv2026sharp,
  author = {Menghao Lv and Huiqiong Wang and Li Sun and Mingli Song},
  title = {{SHARP-Q: Spectral Hessian Alignment and Rectification for Post-training Quantization}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=Xn9Eu2x7Hw},
}
Figure