Efficiently Training A Flat Neural Network Before It has been Quantizated

Peng Xia, Junbiao Pang, Tianyang Cai
11/3/2025
cs.CVcs.AI

No confident code implementation found for this paper.

Abstract

Post-training quantization (PTQ) for vision transformers (ViTs) has garnered significant attention due to its efficiency in compressing models. However, existing methods typically overlook the relationship between a well-trained NN and the quantized model, leading to considerable quantization error for PTQ. However, it is unclear how to efficiently train a model-agnostic neural network which is tailored for a predefined precision low-bit model. In this paper, we firstly discover that a flat full precision neural network is crucial for low-bit quantization. To achieve this, we propose a framework that proactively pre-conditions the model by measuring and disentangling the error sources. Specifically, both the Activation Quantization Error (AQE) and the Weight Quantization Error (WQE) are statistically modeled as independent Gaussian noises. We study several noise injection optimization methods to obtain a flat minimum. Experimental results attest to the effectiveness of our approach. These results open novel pathways for obtaining low-bit PTQ models.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{xia2025efficiently,
  title  = {Efficiently Training A Flat Neural Network Before It has been Quantizated},
  author = {Peng Xia and Junbiao Pang and Tianyang Cai},
  year   = {2025},
  eprint = {2511.01462},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.01462v1}
}

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/2511.01462.svg)](https://codeofpaper.com/paper/2511.01462)

Discussion