LLM weights can be compressed up to 22% losslessly, saving VRAM
Their Unweight system can reduce model size by up to 22% while preserving bit-exact outputs.
AI/ML Cloudflare Research 17 Apr 2026 Tooling Real-world evidence
Published as “Unweight: how we compressed an LLM 22% without sacrificing quality”
Why it matters
Reduces GPU memory usage by up to 22% enabling more models per GPU, but at the cost of 30-40% slower inference throughput.
Summary
The team built Unweight, a lossless compression system that Huffman-encodes the exponent byte of BF16 weights and decompresses them directly in GPU shared memory before tensor-core multiplication. On Llama-3.1-8B they achieve a 22% reduction in total model size for distribution bundles and a 13% reduction for inference bundles, with all outputs remaining bit-exact. The approach adds 30-40% throughput overhead on H100 GPUs, varying with batch size, and currently only compresses MLP weights, leaving attention and other layers untouched.
What they found 1
- Up to 22% model size reduction with 100% bit-exact lossless compression
“Unweight achieves: - ~13% model footprint reduction for inference bundles (compressing only gate/up MLP projections), or ~22% for distribution bundles (compressing all MLP projections including down). All compression is 100% bit-exact lossless.”
Caveats 7
- The compression incurs a 30-40% throughput overhead on H100 GPUs
- Only MLP weights are compressed; attention, embeddings, and layer norms remain uncompressed
- Down-projection weights are not yet compressed, limiting total size reduction
- Throughput overhead of 30-40% at current optimization level
- Results reported for only one model architecture and size
- Compression does not yet cover attention weights, embeddings, layer norms, or down-projection matrices
- Performance varies with batch size; small batches see higher overhead
What’s new here 4
- Lossless compression of BF16 exponent bytes using Huffman coding
- On-chip decompression fused with matrix multiplication to avoid HBM round-trips
- Autotuner that selects the optimal execution pipeline per weight matrix and batch size
- Open-sourced GPU kernels for the compression and decompression pipelines