Delta-CoMe: Training-Free Delta-Compression with Mixed-Precision for Large Language Models

Bowen Ping, Shuo Wang, Hanqing Wang, Xu Han, Yuzhuang Xu +5 more
6/1/2024
27 citations

Official code: thunlp/Delta-CoMe (59 stars, Python, Apache-2.0, last commit 2024-11-16).

Abstract

Fine-tuning is a crucial process for adapting large language models (LLMs) to diverse applications. In certain scenarios, such as multi-tenant serving, deploying multiple LLMs becomes necessary to meet complex demands.

Show full abstract

Recent studies suggest decomposing a fine-tuned LLM into a base model and corresponding delta weights, which are then compressed using low-rank or low-bit approaches to reduce costs. In this work, we observe that existing low-rank and low-bit compression methods can significantly harm the model performance for task-specific fine-tuned LLMs (e.g., WizardMath for math problems). Motivated by the long-tail distribution of singular values in the delta weights, we propose a delta quantization approach using mixed-precision. This method employs higher-bit representation for singular vectors corresponding to larger singular values. We evaluate our approach on various fine-tuned LLMs, including math LLMs, code LLMs, chat LLMs, and even VLMs. Experimental results demonstrate that our approach performs comparably to full fine-tuned LLMs, surpassing both low-rank and low-bit baselines by a considerable margin. Additionally, we show that our method is compatible with various backbone LLMs, such as Llama-2, Llama-3, and Mistral, highlighting its generalizability.

View on arXivView PDF

Code Implementations(1)

thunlp/Delta-CoMeOfficial100%
Apache-2.0

Delta-CoMe can achieve near loss-less 1-bit compressin which has been accepted by NeurIPS 2024

593Python, ShellNov 16, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{ping2024deltacome,
  title  = {Delta-CoMe: Training-Free Delta-Compression with Mixed-Precision for Large Language Models},
  author = {Bowen Ping and Shuo Wang and Hanqing Wang and Xu Han and Yuzhuang Xu and Yukun Yan and Yun Chen and Baobao Chang and Zhiyuan Liu and Maosong Sun},
  year   = {2024},
  eprint = {2406.08903},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2406.08903},
  url    = {https://arxiv.org/abs/2406.08903},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.08903.svg)](https://codeofpaper.com/paper/2406.08903)

Discussion