Manuscript Offprint

arXiv:2610.09916

NeuralZip: Reusable Setup for Fast Lossless Compression

Martín Bravo, Samuel Horváth, Gonzalo Navarro, Andrés Abeliuk

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Lossless compression can reduce the storage and movement of model weights without changing their floating-point values, but repeated statistical analysis and code construction add computational overhead. We study whether the statistical structure of exponents can be prepared once and reused. For this, we introduce NEURALZIP, which groups chunks with similar exponent distributions, shares Huffman codes, and selectively represents recurring exponent tuples using packed exponents, thereby achieving additional moderate compression ratios. A setup chooses these representations before subsequent encodings, while every encoding still processes the current tensor values. In floating-point model checkpoints, post-setup compression is 1.81−21.33×1.81-21.33\times faster than the baselines and achieves exact bit-to-bit reconstruction. We show that this setup can be precomputed and transferred from another compatible architecture, preserving similar compression ratios and avoiding the need to amortize setup costs. Therefore, compression adaptation is transferable and reusable. Training checkpoints demonstrate continued reuse as the weights evolve. Finally, GPU experiments reduce active memory usage by up to 27.5% while reproducing the logits exactly.

1 INTRODUCTION

Modern society increasingly relies on intelligent systems, which have motivated the training of models at a very large scale. These models solve problems in areas such as medicine (Singhal et al., 2023), education (Kasneci et al., 2023), and software development (Chen et al., 2021). Foundation models, in particular, have undergone a rapid transformation in recent years, with substantial improvements in performance, precision, and practical usefulness (Bommasani et al., 2021, OpenAI, 2023).

The exponential growth in the size of foundation models has introduced significant challenges in storage and energy consumption (Hershcovitch et al., 2025, Patterson et al., 2021). Given this, compression has become a natural partial solution to this problem. For example, deployment is difficult on devices with limited resources, such as mobile phones, embedded systems, local agents, and edge environments. Compression can allow resource-constrained edge devices to load models that would otherwise be too large. Similarly, model hubs distribute checkpoints to inference machines at increasing scale. Nearly three million public model repositories and approximately two billion downloads across the Qwen family were recorded during the first seven months of 2026 (Yakefu et al., 2026). Therefore, it is important to find techniques that allow compression to be fast and efficient.

To address this, several compression techniques have been developed, such as quantization (Gholami et al., 2021, Gray, 1984), which reduces numerical precision to decrease the model size and accelerate inference. Pruning (LeCun et al., 1989, Zhu and Gupta, 2017) removes low-relevance connections or parameters. Knowledge distillation (Gou et al., 2021) trains a smaller model to imitate a larger one. Low-rank factorization (Saha et al., 2024, Sundrani et al., 2025) and parameter sharing reduce redundancy in model parameters, and sparse or selectively activated models (Ma et al., 2022) use only a fraction of their parameters during inference.

These techniques introduce important limitations. First, they do not preserve the original model: after compression, the exact original weights cannot be recovered unless a copy is stored. Second, the reduction is lossy, so it can degrade accuracy or generation quality. Third, they may require additional training, which adds computational cost. These limitations moti-

∗^{*}Correspondence to: martin.bravo@mbzuai.ac.ae.

Figure

1: Qwen 3.5 0.8B

3: DINov3 ConvNeXt-B

5: SigLIP 2 Base

2: Gemma 3 1B

4: DINov3 ViT-B/16

6: Parakeet TDT 0.6B v3

Figure 1: Empirical entropy by floating-point field in BF16.

vate studying compression methods that reduce storage while keeping the original parameters exactly recoverable and enabling fast compression of models already available in model hubs and on end devices.

A notable example of a lossless compressor is ZIPNN (Hershcovitch et al., 2025), which exploits the skewed distribution of floating-point exponents and compresses them using Huffman coding. ZIPNN reports strong compression results across vision and language models while preserving the original parameters exactly. Another relevant approach is DFLOAT11 (Zhang et al., 2025), which introduces a dynamic-length floating-point representation for efficient GPU inference while preserving the model parameters exactly. These methods show that lossless compression is both feasible and useful, but their compression procedures can incur substantial computational overhead. For example, recomputing similar codebooks as if they were different distributions leaves an open question: Can we exploit all the statistical regularity available in floating-point weights?

To address this, we identify and empirically characterize two useful properties. First, exponent distributions vary among parameter blocks while forming similar groups, a property we study here as the heterogeneity of the exponents. Sharing precomputed codebooks across these groups can accelerate compression, but may increase the exponent storage ratio. To offset this cost, we show that grouping adjacent exponent values into new symbols can reveal local regularities, a property we call local exponent redundancy.

Using this, we propose NEURALZIP to take advantage of the two phenomena observed in the evaluated architectures. We combine both ideas in one algorithm: Jensen–Shannon clustering enables Huffman-code sharing while activating packed exponents. On top of that, we show that this setup is sharable across different model architectures. In summary, our contributions 1^{1} are:

  1. We show evidence of different exponent distribution groups and local redundancy in floating-point model weights.

  2. We propose a lossless compressor that combines shared codebooks with exponent packing to reduce repeated computation while retaining moderate compression ratios.

  3. We propose a setup-transfer mechanism that enables compression of compatible target models without target-side codebook construction.

References (66)