SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.23918 · ICLR · 2025

BitStack: Any-Size Compression of Large Language Models in Variable Memory Environments

Dong Zhang, Bo Wang, Xipeng Qiu, Yunhua Zhou, Xinghao Wang, Pengyu Wang

arXiv · PDF · Open in the Atlas

Code that ran

6 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 4 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2410.23918.json · badge: /api/ran/2410.23918.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
xinghaow99/BitStack canonical (classifier label)
classifier basis: census
6 ran · 4 no recorded run
FunctionStatusWhere it lives
append_str_prefix Ran
ran; our contract draft was wrong, not the code
xinghaow99/BitStack/bitstack/utils/scale_utils.py
pointer only (licence: NONE) · get_code("ad238aea2fb2cb76")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinghaow99/BitStack when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_bit_masks Ran
ran, honoured the contract we drafted
xinghaow99/BitStack/bitstack/utils/pack_utils.py
pointer only (licence: NONE) · get_code("67290f2ce6e58428")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinghaow99/BitStack when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_op_by_name Ran
ran; our contract draft was wrong, not the code
xinghaow99/BitStack/bitstack/utils/scale_utils.py
pointer only (licence: NONE) · get_code("480f04fc99ac2309")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinghaow99/BitStack when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_op_name Ran
ran; our contract draft was wrong, not the code
xinghaow99/BitStack/bitstack/utils/scale_utils.py
pointer only (licence: NONE) · get_code("10d5993b8024ad65")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinghaow99/BitStack when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sort_layers_and_bits_average Ran
ran; our contract draft was wrong, not the code
xinghaow99/BitStack/bitstack/utils/model_utils.py
pointer only (licence: NONE) · get_code("6f64e506ebfe38b2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinghaow99/BitStack when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

unpack_sign Ran
ran; our contract draft was wrong, not the code
xinghaow99/BitStack/bitstack/utils/pack_utils.py
pointer only (licence: NONE) · get_code("b67bb47a256366f7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinghaow99/BitStack when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_c4_new Not yet run
unverified (harvested, no recorded run)
xinghaow99/BitStack/bitstack/utils/data_utils.py
pointer only (licence: NONE) · get_code("86f00d2d48bfb9c2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinghaow99/BitStack when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_red_pajama Not yet run
unverified (harvested, no recorded run)
xinghaow99/BitStack/bitstack/utils/data_utils.py
pointer only (licence: NONE) · get_code("6f93456246f10e4f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinghaow99/BitStack when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

get_wikitext2 Not yet run
unverified (harvested, no recorded run)
xinghaow99/BitStack/bitstack/utils/data_utils.py
pointer only (licence: NONE) · get_code("ded9ae110292b62d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinghaow99/BitStack when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

pack_sign Not yet run
unverified (harvested, no recorded run)
xinghaow99/BitStack/bitstack/utils/pack_utils.py
pointer only (licence: NONE) · get_code("2382d05f17c08353")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xinghaow99/BitStack when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 1 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_op_by_name 2 other papers
2 dated earlier
2302.13971 (2023-02)
LLaMA: Open and Efficient Foundation Language Models
2402.18158 (2024-02)
Evaluating Quantized Large Language Models
append_str_prefix 1 other paper
1 dated earlier
2402.18158 (2024-02)
Evaluating Quantized Large Language Models
get_op_name 1 other paper
1 dated earlier
2402.18158 (2024-02)
Evaluating Quantized Large Language Models
get_red_pajama 1 other paper
1 later
2411.17525 (2024-11)
Pushing the Limits of Large Language Model Quantization via the Linearity Theorem

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large language models (LLMs) have revolutionized numerous applications, yet their deployment remains challenged by memory constraints on local devices. While scaling laws have enhanced LLM capabilities, the primary bottleneck has shifted from capability to availability, emphasizing the need for efficient memory management. Traditional compression methods, such as quantization, often require predefined compression ratios and separate compression processes for each setting, complicating deployment in variable memory environments. In this paper, we introduce BitStack, a novel, training-free weight compression approach that enables megabyte-level trade-offs between memory usage and model performance. By leveraging weight decomposition, BitStack can dynamically adjust the model size with minimal transmission between running memory and storage devices. Our approach iteratively decomposes weight matrices while considering the significance of each parameter, resulting in an approximately 1-bit per parameter residual block in each decomposition iteration. These blocks are sorted and stacked in storage as basic transmission units, with different quantities loaded based on current memory availability. Extensive experiments across a wide range of tasks demonstrate that, despite offering finegrained size control, BitStack consistently matches or surpasses strong quantization baselines, particularly at extreme compression ratios. To the best of our knowledge, this is the first decomposition-based method that effectively bridges the gap to practical compression techniques like quantization. Code is available at https://github.com/xinghaow99/BitStack.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2410.23918")
get_code_for_paper("2410.23918")
have("2410.23918")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2410.23918.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2410.23918.svg)](https://syntology.ai/paper/2410.23918)

Connect an agent — have() is free.