Papers › Solving Oscillation Problem in Post-Training Quantization Through a Theoretical Perspective

Solving Oscillation Problem in Post-Training Quantization Through a Theoretical Perspective

21 Mar 2023CVPR 2023 1arXiv:2303.11906archive 2025-07-28

Yuexiao Ma, Huixia Li, Xiawu Zheng, Xuefeng Xiao, Rui Wang, Shilei Wen, Xin Pan, Fei Chao, Rongrong Ji

Post-training quantization (PTQ) is widely regarded as one of the most efficient compression methods practically, benefitting from its data privacy and low computation costs. We argue that an overlooked problem of oscillation is in the PTQ methods. In this paper, we take the initiative to explore and present a theoretical proof to explain why such a problem is essential in PTQ. And then, we try to solve this problem by introducing a principled and generalized framework theoretically. In particular, we first formulate the oscillation in PTQ and prove the problem is caused by the difference in module capacity. To this end, we define the module capacity (ModCap) under data-dependent and data-free scenarios, where the differentials between adjacent modules are used to measure the degree of oscillation. The problem is then solved by selecting top-k differentials, in which the corresponding modules are jointly optimized and quantized. Extensive experiments demonstrate that our method successfully reduces the performance drop and is generalized to different neural networks and PTQ methods. For example, with 2/4 bit ResNet-50 quantization, our method surpasses the previous state-of-the-art method by 1.9%. It becomes more significant on small model quantization, e.g. surpasses BRECQ method by 6.61% on MobileNetV2*0.5.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2303.11906")

Code

Syntology Ran 9 of 17 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 1 ran · violated contract; 3 ran · our draft was wrong; 2 ran · fixture could not drive it; 3 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

bytedance/mrecg officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 9 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
3ran · our draft was wrong
2ran · fixture could not drive it
3ran
8unverified

Licence: 0 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from bytedance/mrecg. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

layer_has_weights bytedance/mrecg/MRECG.py official repository ran · violated contract Apache-2.0 (permissive) · 734e5f593576355a · report
accuracy bytedance/mrecg/utils/evaluate.py official repository ran · fixture could not drive it Apache-2.0 (permissive) · b0f936d4d6ae3b8c · report
conv3x3 bytedance/mrecg/models/resnet.py official repository ran · our draft was wrong Apache-2.0 (permissive) · fac5364e2f53c6db · report
conv_1x1_bn bytedance/mrecg/models/mobilenet_v2.py official repository ran · our draft was wrong Apache-2.0 (permissive) · a0131fb70c267a9e · report
conv_bn bytedance/mrecg/models/mobilenet_v2.py official repository ran · our draft was wrong Apache-2.0 (permissive) · e087cbfa1e53486d · report
drop_path bytedance/mrecg/models/layer/drop_path.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 3ac6b7d76e8e3584 · report
is_absorbing bytedance/mrecg/utils/fold_bn.py official repository ran Apache-2.0 (permissive) · bc1bf5bb29e60206 · report
is_bn bytedance/mrecg/utils/fold_bn.py official repository ran Apache-2.0 (permissive) · 06ddc213753098ff · report
parse_config bytedance/mrecg/utils/utils.py official repository ran Apache-2.0 (permissive) · afb8f93395a730c8 · report
adjust_ws_gs_comp bytedance/mrecg/models/regnet.py official repository unverified Apache-2.0 (permissive) · 776c7e0f77f8b8e1 · report
evaluate bytedance/mrecg/utils/evaluate.py official repository unverified Apache-2.0 (permissive) · 088c8a23c164541f · report
get_stages_from_blocks bytedance/mrecg/models/regnet.py official repository unverified Apache-2.0 (permissive) · cf37365adf0e1e42 · report
load_calibrate_data bytedance/mrecg/ptq_main.py official repository unverified Apache-2.0 (permissive) · ef330de8e9d4a16f · report
node2modules bytedance/mrecg/MRECG.py official repository unverified Apache-2.0 (permissive) · 747681743b94e243 · report
qnode2fpnode bytedance/mrecg/MRECG.py official repository unverified Apache-2.0 (permissive) · 012346fa47909d5e · report
quantize_float bytedance/mrecg/models/regnet.py official repository unverified Apache-2.0 (permissive) · a7f56f01db1812a0 · report
search_fold_and_remove_bn bytedance/mrecg/utils/fold_bn.py official repository unverified Apache-2.0 (permissive) · ef0fe1948e3ae202 · report

Tasks

Quantization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections