eDKM: An Efficient and Accurate Train-time Weight Clustering for Large Language Models
Not on the map. Why?
Abstract (arXiv)
Since Large Language Models or LLMs have demonstrated high-quality performance on many complex language tasks, there is a great interest in bringing these LLMs to mobile devices for faster responses and better privacy protection. However, the size of LLMs (i.e., billions of parameters) requires highly effective compression to fit into storage-limited devices. Among many compression techniques, weight-clustering, a form of non-linear quantization, is one of the leading candidates for LLM compression, and supported by modern smartphones. Yet, its training overhead is prohibitively significant for LLM fine-tuning. Especially, Differentiable KMeans Clustering, or DKM, has shown the state-of-the-art trade-off between compression ratio and accuracy regression, but its large memory complexity makes it nearly impossible to apply to train-time LLM compression. In this paper, we propose a memory-efficient DKM implementation, eDKM powered by novel techniques to reduce the memory footprint of DKM by orders of magnitudes. For a given tensor to be saved on CPU for the backward pass of DKM, we compressed the tensor by applying uniquification and sharding after checking if there is no duplicated tensor previously copied to CPU. Our experimental results demonstrate that prjname can fine-tune and compress a pretrained LLaMA 7B model from 12.6 GB to 2.5 GB (3bit/weight) with the Alpaca dataset by reducing the train-time memory footprint of a decoder layer by 130×, while delivering good accuracy on broader LLM benchmarks (i.e., 77.7% for PIQA, 66.1% for Winograde, and so on).
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 19 of its 22 references that are in the map. First posted on arXiv 2 Sep 2023.
Builds on
19 of 22 references.
References · 19
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
- 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
- 2016XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networkscited by 829
- 2018HAQ: Hardware-Aware Automated Quantization with Mixed Precisioncited by 426
- 2023LLM-QAT: Data-Free Quantization Aware Training for Large Language Modelscited by 320
- 2018Model compression via distillation and quantizationcited by 287
- 2019HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural Networkscited by 250
- 2017NISP: Pruning Networks using Neuron Importance Score Propagationcited by 228
- 2020Training with Quantization Noise for Extreme Model Compressioncited by 145
7 more
- 2017Soft Weight-Sharing for Neural Network Compressioncited by 99
- 2019And the Bit Goes Down: Revisiting the Quantization of Neural Networkscited by 78
- 2020Lookahead: A Far-Sighted Alternative of Magnitude-based Pruningcited by 61
- 2018Value-aware Quantization for Training and Inference of Neural Networkscited by 49
- 2018Deep k-Means: Re-Training and Parameter Sharing with Harder Cluster Assignments for Compressing Deep Convolutionscited by 33
- 2021DKM: Differentiable K-Means Clustering Layer for Neural Network Compressioncited by 31
- 2019Neural Epitome Search for Architecture-Agnostic Network Compressioncited by 8
Built on by
Citing papers per year: 2023: 1; 2024: 2; 2025: 1.
4 papers.
- 2023CompGS: Smaller and Faster Gaussian Splatting with Vector Quantizationcited by 127
- 2024KV-Runahead: Scalable Causal LLM Inference by Parallel Key-Value Cache Generationcited by 6
- 2024On-Device LLMs for SMEs: Challenges and Opportunitiescited by 2
- 2025HybridEP: Scaling Expert Parallelism to Cross-Datacenter Scenario via Hybrid Expert/Data Transmissioncited by 2
- 2025HybridEP: Scaling Expert Parallelism to Cross-Datacenter Scenario via Hybrid Expert/Data Transmission22 Oct 2025
- 2024On-Device LLMs for SMEs: Challenges and Opportunities21 Oct 2024
- 2024KV-Runahead: Scalable Causal LLM Inference by Parallel Key-Value Cache Generation8 May 2024
- 2023CompGS: Smaller and Faster Gaussian Splatting with Vector Quantization30 Nov 2023