Neural Weight Compression for Language Models

Jegwang Ryu, Minkyu Kim, Seungjun Shin, Hee Min Choi, Dokwan Oh, Jaeho Lee · DOI

Abstract

Neural Weight Compression (NWC) introduces a paradigm shift in model compression by replacing handcrafted quantization rules with learned neural codecs. By treating model weights as a distinct data modality and optimizing for downstream performance rather than simple reconstruction error, NWC achieves state-of-the-art accuracy-compression tradeoffs. Evaluations across diverse language and vision architectures demonstrate its effectiveness in the 4–6 bit regime, outperforming traditional methods like GPTQ and AWQ.

Introduction

As Large Language Models (LLMs) scale toward trillions of parameters, the memory and storage requirements for distributed training and edge deployment become prohibitive. Traditional compression techniques primarily rely on quantization—reducing numerical precision—often coupled with handcrafted transforms (e.g., Hadamard) to normalize weight distributions. However, these rigid methods fail to capture the complex statistical properties of neural weights or their varying impact on model performance.

Comparison of weight compression paradigms: (a) standard weight quantization, (b) search-based methods, and (c) the proposed Neural Weight Compression (NWC).

Neural Weight Compression (NWC) addresses these limitations by framing weight compression as a "neural codec" learning problem. Instead of manual rule design, NWC learns to compress weights by optimizing a rate-distortion objective that prioritizes weights critical to the model's functional integrity.

Methodology

The NWC framework treats weight compression as an end-to-end learning task involving preprocessing, importance-aware training, and a neural codec architecture.

Chunk-and-Normalize Preprocessing

To accommodate the diverse shapes of weight tensors across different layers (e.g., projection vs. up-projection layers), NWC partitions weights into fixed-length chunks of size $d=16$. These chunks are normalized to create a uniform data stream suitable for processing by a neural network.

Importance-Aware Training

Recognizing that not all weights contribute equally to model performance, NWC utilizes the Hessian diagonal as a proxy for weight sensitivity. The Hessian measures how much the model's loss changes with respect to a specific weight. By incorporating this into the training objective, the compression network learns to allocate more bits to high-importance weights while compressing less sensitive ones more aggressively.

The NWC pipeline: Preprocessing involves chunking and sorting by Hessian importance (left), followed by a neural codec architecture featuring an encoder $g_a$ and decoder $g_s$ with residual blocks (right).

Neural Codec Architecture

The core of NWC is an autoencoder paired with entropy coding. The encoder ($g_a$) maps weights into a latent space, which is subsequently quantized. These quantized latents are compressed using arithmetic encoding (AE). At inference time, the arithmetic decoder (AD) and the neural decoder ($g_s$) reconstruct the weights. The use of Entropy-Constrained Quantization (ECSQ) allows NWC to approach the Shannon limit more closely than fixed-rate quantization, especially for the heavy-tailed distributions typical of neural weights.

Error Compensation Mechanisms

To further refine performance, NWC employs two compensation strategies:

  1. Intra-layer feedback: Adjusting uncompressed weights within a layer to offset errors introduced by previously compressed weights.
  2. Inter-layer fine-tuning: Briefly optimizing uncompressed layers within a transformer block to adapt to the compressed state of neighboring layers.

Evaluation and Results

NWC was trained on Llama 3-8B weights and evaluated across multiple benchmarks including WikiText-2, C4, and zero-shot tasks like MMLU and ARC.

Language and Vision Performance

NWC consistently achieved state-of-the-art (SOTA) tradeoffs in the 4–6 bits-per-parameter (bpp) range, outperforming established baselines such as AWQ, GPTQ, and QuIP#. Notably, the codec generalized well to architectures it was not trained on, including Mixtral and various vision models (CLIP, DINOv2), suggesting a shared "statistical language" across neural weights.

Key Insights

  • Weights as a Modality: Treating weights like images or audio allows the application of advanced deep-learning-based compression techniques that surpass traditional rounding methods.
  • Steering vs. Minimizing Error: NWC demonstrates that minimizing Mean Squared Error (MSE) is not always optimal for model performance. The learned transforms "steer" the compression to preserve features essential for model logic.
  • Practical Latency: By leveraging GPU-accelerated entropy decoding libraries like nvCOMP, NWC achieves inference speeds competitive with standard quantization methods, making it viable for real-world applications.

Conclusion

Neural Weight Compression represents a significant step toward more efficient LLM deployment. By shifting from manual quantization to learned codecs, it offers superior flexibility and performance. Future research will focus on developing highly optimized fused kernels to further reduce latency and exploring progressive coding schemes to enable "streaming" model weights.

Summary updated

BibTeX
@inproceedings{ryu2026neural,
  author = {Jegwang Ryu and Minkyu Kim and Seungjun Shin and Hee Min Choi and Dokwan Oh and Jaeho Lee},
  title = {{Neural Weight Compression for Language Models}},
  booktitle = {AdaptFM @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=nV7k7G5k5l},
}
Figure