Reproduce “SQuant: On-the-Fly Data-Free Quantization via Diagonal Hessian Approximation” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Cong Guo, Yuxian Qiu, Jingwen Leng, Xiaotian Gao, Chen Zhang, Yunxin Liu, Fan Yang, Yuhao Zhu and 1 more

SQUANT introduces a data-free quantization framework for deep neural networks, leveraging diagonal Hessian approximation to achieve high accuracy and sub-second processing times. The method eliminates the need for any training data, outperforming prior data-free techniques in accuracy (e.g., >30% improvement at 4-bit) while enabling on-the-fly quantization.

Key insights

  • Effective quantization optimization can be achieved by approximating the second-order loss degradation with a data-free diagonal Hessian, enabling robust performance without any training data.
  • Optimizing a 'Constrained Absolute Sum of Error' (CASE) based purely on weight perturbations, rather than data-dependent metrics like Mean Squared Error, provides an efficient and accurate data-free quantization objective.
  • A progressive multi-granularity optimization strategy, which sequentially refines quantization decisions from element-wise to kernel-wise and then channel-wise, can effectively improve accuracy while maintaining computational efficiency.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.