|
International Journal of Computer Applications
Foundation of Computer Science (FCS), NY, USA
|
| Volume 187 - Issue 120 |
| Published: June 2026 |
| Authors: Nimrod Rothstein, Ariel Rothstein |
10.5120/ijcaa71cdd2650e6
|
Nimrod Rothstein, Ariel Rothstein . Practical Limits of Lossless Compression for bf16 Transformer LLM Weights, with Companion Measurements on Q4 K Tensors in GGUF Q4 K M Files. International Journal of Computer Applications. 187, 120 (June 2026), 1-12. DOI=10.5120/ijcaa71cdd2650e6
@article{ 10.5120/ijcaa71cdd2650e6,
author = { Nimrod Rothstein,Ariel Rothstein },
title = { Practical Limits of Lossless Compression for bf16 Transformer LLM Weights, with Companion Measurements on Q4 K Tensors in GGUF Q4 K M Files },
journal = { International Journal of Computer Applications },
year = { 2026 },
volume = { 187 },
number = { 120 },
pages = { 1-12 },
doi = { 10.5120/ijcaa71cdd2650e6 },
publisher = { Foundation of Computer Science (FCS), NY, USA }
}
%0 Journal Article
%D 2026
%A Nimrod Rothstein
%A Ariel Rothstein
%T Practical Limits of Lossless Compression for bf16 Transformer LLM Weights, with Companion Measurements on Q4 K Tensors in GGUF Q4 K M Files%T
%J International Journal of Computer Applications
%V 187
%N 120
%P 1-12
%R 10.5120/ijcaa71cdd2650e6
%I Foundation of Computer Science (FCS), NY, USA
This paper quantifies how far bf16 transformer large language model (LLM) weights—and Q4 K-typed tensors inside GGUF Q4 K M files—can be compressed with no loss of information. Every method is scored under one accounting discipline: a trained profile is billed to its method on each file, each run is checked for a byte-exact roundtrip, and the train/test partition is taken over source models rather than individual tensors. For bf16 weights the marginal-byte ceiling sits at ≈1.495× (model-level 95% confidence interval [1.487, 1.502]); the strongest coder that can be run end-to-end under the present accounting—the bf16 split coder introduced here—reaches 1.488×, just below that ceiling. For Q4 K-typed tensors the marginal-byte ceiling is ≈1.076× at the tensor-stream level, dropping to 1.041–1.045× once whole GGUF artifacts are scored, because Q4 K M files also carry Q6 K tensors that barely compress (near 1.01×); the mixture-CDF coder presented here attains 1.052×, whereas a dictionary-trained zstd ends up enlarging the stream once its dictionary is billed per file. Between adjacent same-role weight matrices at bf16 precision no exploitable linear redundancy is found (median Pearson +0.0004 over 250 layer pairs drawn from two Qwen2.5 models). Across 11,942 verified-roundtrip method-evaluations spanning 7,960 distinct benchmark rows, not a single roundtrip failed; the contribution is the comparison protocol itself rather than another compressor. Each ceiling is a compression-ratio bound—hardware independent and confirmed on weights up to 7B parameters (Qwen2.5-7B-Instruct); the single-core x86 (Sapphire Rapids) host constrains only the throughput figures, which are reported for comparability rather than as deployment numbers.