mlsanityData to 7 Oct 2026

eDKM: An Efficient and Accurate Train-time Weight Clustering for Large Language Models

arXiv 2309.00964 ↗First posted 2 Sep 2023cs.LG cs.AIcited by 4

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

  1. 2022Training language models to follow instructions with human feedbackcited by 15,712
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  3. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  4. 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
  5. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
  6. 2016XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networkscited by 829
  7. 2018HAQ: Hardware-Aware Automated Quantization with Mixed Precisioncited by 426
  8. 2023LLM-QAT: Data-Free Quantization Aware Training for Large Language Modelscited by 320
  9. 2018Model compression via distillation and quantizationcited by 287
  10. 2019HAWQ-V2: Hessian Aware trace-Weighted Quantization of Neural Networkscited by 250
  11. 2017NISP: Pruning Networks using Neuron Importance Score Propagationcited by 228
  12. 2020Training with Quantization Noise for Extreme Model Compressioncited by 145
7 more
  1. 2017Soft Weight-Sharing for Neural Network Compressioncited by 99
  2. 2019And the Bit Goes Down: Revisiting the Quantization of Neural Networkscited by 78
  3. 2020Lookahead: A Far-Sighted Alternative of Magnitude-based Pruningcited by 61
  4. 2018Value-aware Quantization for Training and Inference of Neural Networkscited by 49
  5. 2018Deep k-Means: Re-Training and Parameter Sharing with Harder Cluster Assignments for Compressing Deep Convolutionscited by 33
  6. 2021DKM: Differentiable K-Means Clustering Layer for Neural Network Compressioncited by 31
  7. 2019Neural Epitome Search for Architecture-Agnostic Network Compressioncited by 8

Built on by

Cited by year

Citing papers per year: 2023: 1; 2024: 2; 2025: 1.

4 papers.