Reproduce “70% Size, 100% Accuracy: Lossless LLM Compression for Efficient GPU Inference via Dynamic-Length Float (DFloat11)” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Tianyi Zhang, Mohsen Hariri, Shaochen Zhong, Vipin Chaudhary, Yang Sui, Xia Hu, Anshumali Shrivastava

DFloat11 introduces a lossless compression framework for LLM and Diffusion Model weights, reducing their size by approximately 30% to an effective 11-bit representation while guaranteeing bit-for-bit identical outputs. This method allows deployment of models like Llama 3.1 405B on single GPU nodes and achieves up to 46.2 times higher inference throughput compared to CPU offloading.

Key insights

  • BFloat16 exponents in LLMs and DMs exhibit substantial redundancy, carrying only about 2.6 bits of information from their allocated 8 bits, which provides a significant opportunity for lossless compression.
  • Efficient parallel decompression of variable-length Huffman codes on GPUs requires specialized hardware-aware designs, such as hierarchical lookup tables and a two-phase kernel, to overcome inherent sequential processing challenges.
  • Batching decompression at the transformer block level effectively amortizes the constant overhead of on-the-fly decoding, ensuring that lossless compression introduces minimal latency during practical GPU inference.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.