跳到主要导航 跳到搜索 跳到主要内容

Compressing Large Language Models by Joint Sparsification and Quantization

  • Jinyang Guo
  • , Jianyu Wu
  • , Zining Wang
  • , Jiaheng Liu
  • , Ge Yang
  • , Yifu Ding
  • , Ruihao Gong
  • , Haotong Qin
  • , Xianglong Liu*
  • *此作品的通讯作者
  • Beihang University
  • SenseTime Group Limited
  • Swiss Federal Institute of Technology Zurich

科研成果: 期刊稿件会议文章同行评审

摘要

In this paper, we introduce a novel model compression technique named Joint Sparsification and Quantization (JSQ), explicitly tailored for large language models (LLMs). Traditional methods employ either sparsification or quantization individually to compress LLMs, leading to performance degradation at high compression ratios. In contrast, our JSQ approach integrates sparsification and quantization cohesively. As sparsification tend to preserve outliers that is harmful to quantization, we introduce a novel sparsity metric to serves as a bridge between the sparsification and quantization. Moreover, it is proven outliers in LLMs have significant impact but harmful to compression. Current solutions are highly coupled with quantization process, which is not helpful to sparsification. To this end, we also introduce a search-based activation editor to automatically eliminate relatively useless outliers. Comprehensive experiments across various datasets and architectures affirm the efficacy of our JSQ framework. Notably, our JSQ achieves 7.96× computation reduction without crashing for the representative model LLaMA. This accomplishment stands in stark contrast to the limitations of most state-of-the-art LLM compression methods, which typically fail under such extreme compression ratios. Our code is released at https://github.com/uanu2002/JSQ.

源语言英语
页(从-至)16945-16957
页数13
期刊Proceedings of Machine Learning Research
235
出版状态已出版 - 2024
活动41st International Conference on Machine Learning, ICML 2024 - Vienna, 奥地利
期限: 21 7月 202427 7月 2024

指纹

探究 'Compressing Large Language Models by Joint Sparsification and Quantization' 的科研主题。它们共同构成独一无二的指纹。

引用此