Papers › AnyBCQ: Hardware Efficient Flexible Binary-Coded Quantization for Multi-Precision LLMs

AnyBCQ: Hardware Efficient Flexible Binary-Coded Quantization for Multi-Precision LLMs

12 Oct 2025ICLRarXiv:2510.10467added by Syntology

Gunho Park, Jeongin Bae, Beomseok Kwon, Byeongwook Kim, Se Jung Kwon, Dongsoo Lee

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

The deployment of large language models (LLMs) is increasingly constrained by memory and latency bottlenecks, motivating the need for quantization techniques that flexibly balance accuracy and efficiency. Recent work has introduced multi-precision models, which enable inference at multiple precisions within a single model depending on runtime constraints. To support such flexibility, quantized weights are often stored as bit-planes, where hardware efficiency improves when the compute operates directly at the bit-plane level and activates only the precision required by each request. In this work, we present AnyBCQ, a hardware-friendly multi-precision extension of Binary-Coded Quantization (BCQ) that supports direct bit-plane operations. By representing weights as binary bit-planes with corresponding scale factors, AnyBCQ enables bit-plane-level computation and maps naturally to accelerator-friendly, bit-parallel arithmetic. Our progressive precision expansion mechanism incrementally refines scaling factors while reusing previously assigned binary codes, yielding monotonic improvements in accuracy as additional bits are enabled. We further co-design a specialized kernel that exploits the BCQ structure to support dynamic per-request precision selection with negligible overhead. Experiments on recent LLMs demonstrate that AnyBCQ significantly narrows the accuracy drop in the low-bit regime (e.g. 2-bit), remains competitive at higher precision, and achieves throughput gains of up to 3.0x over half precision and 1.2x over state-of-the-art multi-precision methods. By aligning algorithmic flexibility with hardware efficiency, AnyBCQ provides a practical foundation for multi-precision LLM deployment across diverse service-level objectives.

PaperPDFCode 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="2510.10467")

Code

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

By repository: found in paper text by Syntology: 27 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.

naver-aics/anybcq found in paper text by Syntology report

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

27 samples harvested; 12 ran; 0 honoured the contract we drafted; 15 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.

2ran · our draft was wrong
1ran · fixture could not drive it
9ran
15unverified

Licence: 0 of the 27 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 naver-aics/anybcq. “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.

GetLayerInpOut_fp naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology ran Apache-2.0 (permissive) · 4c7e38d4c326ec3e · report
LossFunction naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · f2815670c1e3ec0e · report
Packer naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology ran · metamorphic tier: invariant Apache-2.0 (permissive) · 129c89ce16e482bc · report
Packer32 naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology ran Apache-2.0 (permissive) · def899bb58fc029e · report
batch_cg_torch naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology ran Apache-2.0 (permissive) · acb9fdb9c2e1fa94 · report
find_B_torch naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 21d15db8dac451ac · report
greedy_mean_torch naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology ran Apache-2.0 (permissive) · 4b56b022f857caf8 · report
greedy_mean_torch_asym naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology ran Apache-2.0 (permissive) · c187d2fb3f613894 · report
list_binary_vecs naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 52bd9d12c195e4e2 · report
lp_loss naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · ea5af2ff88120865 · report
refine_mean_torch naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology ran Apache-2.0 (permissive) · fbec1b688a62c155 · report
refine_mean_torch_asym naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology ran Apache-2.0 (permissive) · cf4cd62ace9548d0 · report
AnyBCQ naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology unverified Apache-2.0 (permissive) · e0191fe4148769d4 · report
AnyBCQLinear naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 80d71ac7f84b5979 · report
BCQLinear naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 523211640563f229 · report
BCQLinearFunction naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology unverified Apache-2.0 (permissive) · ff02617f4660c1c6 · report
CachedDataset naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 8eb99e60a176d56f · report
DataCacheWrapper naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 854a59d470d67896 · report
GetLayerInpOut_q naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 628b9d1ac1377fd3 · report
GradientScale naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology unverified Apache-2.0 (permissive) · f1d59376e6dff570 · report
add_onebit_linear_v2 naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology unverified Apache-2.0 (permissive) · e33891668a082a3e · report
add_onebit_model naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology unverified Apache-2.0 (permissive) · eb0dda0ce920bfde · report
quantize naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 121de7b5e46dc9b5 · report
replace_bcq_with_lutgemm naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 6f5c30c3f0c1890d · report
save_alpha_and_beta_in_bcqlinear naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 1642689e1e80931a · report
swap_quant_linear naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 58488365cdb5c810 · report
swap_quant_model naver-aics/anybcq/anybcq/quantization/anybcq.py found in paper text by Syntology unverified Apache-2.0 (permissive) · e90f86e2354b96dd · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2510.10467, was issued in October 2025, after that date, so the archive has no leaderboard rows for it.

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