Papers › FrameQuant: Flexible Low-Bit Quantization for Transformers

FrameQuant: Flexible Low-Bit Quantization for Transformers

10 Mar 2024arXiv:2403.06082archive 2025-07-28

Harshavardhan Adepu, Zhanpeng Zeng, Li Zhang, Vikas Singh

Transformers are the backbone of powerful foundation models for many Vision and Natural Language Processing tasks. But their compute and memory/storage footprint is large, and so, serving such models is expensive often requiring high-end hardware. To mitigate this difficulty, Post-Training Quantization seeks to modify a pre-trained model and quantize it to eight bits or lower, significantly boosting compute/memory/latency efficiency. Such models have been successfully quantized to four bits with some performance loss. In this work, we outline a simple scheme to quantize Transformer-based models to just two bits (plus some overhead) with only a small drop in accuracy. Key to our formulation is a concept borrowed from Harmonic analysis called Fusion Frames. Our main finding is that the quantization must take place not in the original weight space, but instead in the Fusion Frame representations. If quantization is interpreted as the addition of noise, our casting of the problem allows invoking an extensive body of known consistent recovery and noise robustness guarantees. Further, if desired, de-noising filters are known in closed form. We show empirically, via a variety of experiments, that (almost) two-bit quantization for Transformer models promises sizable efficiency gains. The code is available at https://github.com/vsingh-group/FrameQuant

PaperPDFCodeCode 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="2403.06082")

Code

Syntology Ran 12 of 18 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 11 ran with no contract checked.

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

vsingh-group/framequant officialmentioned in papermentioned on GitHubpytorch 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

18 samples harvested; 12 ran; 0 honoured the contract we drafted; 6 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 · our draft was wrong
11ran
6unverified

Licence: 18 of the 18 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 vsingh-group/framequant. “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.

array_code_gen vsingh-group/framequant/fast-hadamard-transform/csrc/code_gen.py official repository ran no licence file found · pointer only · 5e48070287726d38 · report
construct_real_tff vsingh-group/framequant/utils/construct_tff.py official repository ran no licence file found · pointer only · 04cf3834e0e305e6 · report
construct_tight_frames vsingh-group/framequant/utils/construct_tff.py official repository ran no licence file found · pointer only · decbe159fea96172 · report
find_layers vsingh-group/framequant/modelutils.py official repository ran · our draft was wrong no licence file found · pointer only · a9e7f2cdf016b88b · report
llama_eval vsingh-group/framequant/utils/eval_utils.py official repository ran no licence file found · pointer only · 0f5810ef333bc3dc · report
load_llama_from_config vsingh-group/framequant/inference.py official repository ran no licence file found · pointer only · 9f18bcbf55043e12 · report
profile vsingh-group/framequant/packbit/kernel.py official repository ran no licence file found · pointer only · 7e27a0f1e3ced11b · report
quantize vsingh-group/framequant/quant.py official repository ran no licence file found · pointer only · ff8ffe5499b035fb · report
quantize_float_bias vsingh-group/framequant/quant.py official repository ran no licence file found · pointer only · 80cef67ba93a9352 · report
quantize_int_bias vsingh-group/framequant/quant.py official repository ran no licence file found · pointer only · c36798d3ae59a462 · report
string_to_array vsingh-group/framequant/fast-hadamard-transform/csrc/code_gen.py official repository ran no licence file found · pointer only · d4a256fbc9029891 · report
tffet vsingh-group/framequant/utils/construct_tff.py official repository ran no licence file found · pointer only · 4c72411332a6c17d · report
get_c4 vsingh-group/framequant/datautils.py official repository unverified no licence file found · pointer only · 4d29e98e5f0e4149 · report
get_llama vsingh-group/framequant/llama.py official repository unverified no licence file found · pointer only · 7ca52cb5d1719b2f · report
get_ptb vsingh-group/framequant/datautils.py official repository unverified no licence file found · pointer only · 3265f727a396f15d · report
get_wikitext2 vsingh-group/framequant/datautils.py official repository unverified no licence file found · pointer only · ab19b8a72ceae217 · report
llama_pack3 vsingh-group/framequant/llama.py official repository unverified no licence file found · pointer only · effa493c10026adc · report
load_quant vsingh-group/framequant/inference.py official repository unverified no licence file found · pointer only · e6ca4726f327dc2c · report

Tasks

Quantization

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

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