EntroLLM: Entropy Encoded Weight Compression for Efficient Large Language Model Inference on Edge Devices

Arnab Sanyal, Prithwish Mukherjee, Gourav Datta, Sandeep P. ChinchaliarXiv 2025 · DOI

Introduction

The rapid advancement of Large Language Models (LLMs) has created a significant deployment challenge: the "AI memory wall." While models like Mistral-7B offer impressive capabilities, their memory footprint—often exceeding 14GB in standard 16-bit formats—far outstrips the capacity of common edge devices such as smartphones, drones, and robots.

Furthermore, the primary bottleneck in LLM inference on resource-constrained hardware is not raw computational power, but rather memory bandwidth. The speed of text generation is directly limited by how quickly weights can be transferred from memory to the processor. EntroLLM addresses this by moving beyond standard quantization, combining mixed-precision schemes with lossless entropy coding to achieve unprecedented compression and speedups on the edge.

Overview of the EntroLLM framework, illustrating the transition from cloud-based quantization to edge-based parallel decoding and inference.

The EntroLLM Methodology

EntroLLM introduces a novel three-stage pipeline designed to maximize compressibility without sacrificing model accuracy or inference speed.

1. Mixed Quantization for "Spikiness"

Traditional state-of-the-art (SOTA) quantization methods often utilize block-based approaches to minimize local error. However, this can "flatten" the distribution of weight values, making them harder to compress further. EntroLLM instead employs tensor-level quantization. By applying unsigned or asymmetric quantization across entire layers, the framework intentionally creates a "spikier" distribution of integer weights. This high-frequency concentration of specific values results in a low-entropy state that is highly amenable to subsequent compression.

2. Huffman Weight Encoding

Building on the low-entropy distributions created during quantization, EntroLLM applies Huffman coding—a classic lossless compression technique. In this scheme, frequently occurring weight values are assigned shorter bit-codes, while rarer values receive longer ones. This allows the model to reach "fractional" bit-widths. For instance, a model quantized to 4-bit integers can achieve an effective storage rate of just 1.39 bits per weight, significantly reducing the total data volume.

3. Parallel Decoding Strategy

A major historical drawback of entropy coding is that decoding is typically a serial, high-latency process. To overcome this, EntroLLM partitions weight tensors into independent segments. This enables the edge device to perform Parallel Huffman Decoding across multiple CPU or GPU cores. By decoding chunks in parallel, the system drastically reduces the latency overhead during both the "pre-fill" and "token generation" phases of inference.

Comparison between serial and parallel Huffman decoding strategies, showing how partitioning enables multi-core utilization.

Experimental Evaluation

The researchers benchmarked EntroLLM using three prominent open-source LLM families: smolLM-1.7B-Instruct, phi3-mini-4k-Instruct (3.8B parameters), and mistral-7B-Instruct. Performance was evaluated on the NVIDIA Jetson P3450, a representative low-power edge platform with 4GB of RAM.

Accuracy was measured across several standard benchmarks, including WikiText2 (perplexity), HellaSwag (common-sense reasoning), and GSM8K CoT (arithmetic reasoning).

Key Results and Insights

The evaluation demonstrated that EntroLLM provides a significant advantage over standard quantization techniques:

  • Enhanced Compressibility: EntroLLM improved downstream entropy compressibility by 7× for 8-bit models and 11.3× for 4-bit models compared to existing SOTA methods.
  • Substantial Storage Savings: The framework achieved up to 30% storage savings over standard uint8 models and 65% over uint4 models.
  • Inference Acceleration: On the Jetson hardware, 4-bit compressed models achieved a 146.6% improvement in token generation latency. This speedup is primarily attributed to the reduced data movement requirements—since the weights are smaller, the system spends less time stalled on memory bandwidth.
  • Accuracy Preservation: Crucially, these gains come with minimal impact on model performance. For example, the compressed phi3-mini maintained ~81% accuracy on HellaSwag, nearly matching the 82.2% achieved by the original 16-bit version.

Conclusion and Future Directions

EntroLLM proves that entropy coding is a viable and powerful tool for LLM deployment on the edge. By prioritizing global compressibility through tensor-level quantization and enabling fast parallel decoding, it breaks through the memory bandwidth bottleneck.

Future work will focus on developing native hardware support for fractional bit-widths to further reduce decoding overhead. Additionally, the authors plan to explore adaptive entropy coding schemes that can dynamically adjust to different hardware constraints and model architectures, potentially bringing even larger LLMs to the smallest of devices.

Summary updated

BibTeX
@misc{sanyal2025entrollm,
  author = {Arnab Sanyal and Prithwish Mukherjee and Gourav Datta and Sandeep P. Chinchali},
  title = {{EntroLLM: Entropy Encoded Weight Compression for Efficient Large Language Model Inference on Edge Devices}},
  year = {2025},
  eprint = {2505.02380},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.02380},
}
Figure