EntroPack: Fast and Accurate Entropy-Coded Weight Compression at Arbitrary Bitrates
Abstract
Weight compression helps large neural networks fit deployment memory budgets, but common fixed-width formats offer only coarse storage choices. Entropy coding supports finer rates, yet the achieved size depends on the quantized weight distribution and coding overhead. Exploiting this flexibility requires accurate rate selection and efficient weight reconstruction for inference. We present EntroPack, an entropy-coded weight compressor that supports arbitrary target bitrates without activation calibration or fine-tuning. It combines row-normalized lattice quantization with a conditional probability model of lattice coordinates. Sampled storage estimates select the quantization resolution without repeated full-stream encoding. The final coordinates are entropy-coded in independently decodable tiles, enabling fast, fused symbol decoding and numerical weight reconstruction on the GPU. EntroPack supports floating-point and integer weight containers, such as BF16, FP16, FP8, and INT8, with storage bitrate controlled independently of numerical precision. Online decoding adds latency that grows with weight count, making the method well suited to compute-intensive workloads such as diffusion denoising and Transformer prefill. Experiments demonstrate fast encoding and modest inference overhead in these settings. When compressing the linear-layer weights of the image generator Z-Image-Turbo, EntroPack achieves substantially lower weight error and higher image fidelity relative to the BF16 reference than fixed-width formats at comparable storage rates, with modest denoising-step overhead. Targeting 4 bits per parameter, it achieves about 24% lower relative weight error than NF4 while using less storage. Source code is available at https://github.com/modelscope/entropack.
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI
Related papers
SealKV: Accurate Low-Bit KV Compression for Faster LLM Inference
Shared title terminologycs.LGLijie Yang, Tri Dao, Ravi Netravali et al.
CADENCE: A Confidence-Adaptive Dual-Expert Network for Fast and Accurate Time Series Classification
Shared title terminologycs.LGOnisa Mapunda
Geometry-Screened Refit-Aware Compression of ReLU Networks
Shared title terminologycs.LGRavi Dhiman
PolicyPolish: LLM-Guided Weight Editing of Reinforcement Learning Policies for Dynamic RMSA in Elastic Optical Networks
Shared title terminologycs.LGMasayuki Shimoda
Learning interpretable Schur forms of recurrent weight matrices
Shared title terminologycs.LGAlexander Lanine, Liana Akobian, N Alex Cayco-Gajic
ReAgent: Closed-Loop Self-Healing for Open-Weight Tool-Calling Agents, from Structural Hallucinations to Decision Errors
Shared title terminologycs.LGCharlie Galvin, Katie Kitchen, Chiara Picardi