SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2310.01382 · ICLR · 2024

Compressing LLMs: The Truth is Rarely Pure and Never Simple

Zhangyang Wang, Zhe Gan, Yinfei Yang, Bowen Zhang, Xianzhi Du, Ajay Jaiswal

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 8 functions out of this paper's own repositories and ran 2 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
VITA-Group/llm-kick canonical 2 of 8
FunctionStatusWhere it lives
get_llama Ran VITA-Group/llm-kick/GPTQ_experiment/llama.py
pointer only (licence: NONE) · get_code("2c201f017173954b")
get_wikitext2 Ran VITA-Group/llm-kick/GPTQ_experiment/lib/data.py
pointer only (licence: NONE) · get_code("dee8be97b2cf4692")
get_c4 Not yet run VITA-Group/llm-kick/GPTQ_experiment/lib/data.py
pointer only (licence: NONE) · get_code("c00c627524c6a86f")
get_llama Not yet run VITA-Group/llm-kick/GPTQ_experiment/llama_inference.py
pointer only (licence: NONE) · get_code("ffa71b6ff9b64407")
get_llm Not yet run VITA-Group/llm-kick/in-context_summarization/compressed_model.py
pointer only (licence: NONE) · get_code("4b6935721148ba31")
get_loaders Not yet run VITA-Group/llm-kick/GPTQ_experiment/lib/data.py
pointer only (licence: NONE) · get_code("e871931ae9a838f9")
get_neox Not yet run VITA-Group/llm-kick/GPTQ_experiment/neox.py
pointer only (licence: NONE) · get_code("25b86fdd91fb3a3b")
prepare_calibration_input Not yet run VITA-Group/llm-kick/GPTQ_experiment/lib/prune.py
pointer only (licence: NONE) · get_code("7b4247187069337f")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Despite their remarkable achievements, modern Large Language Models (LLMs) face exorbitant computational and memory footprints. Recently, several works have shown significant success in training-free and data-free compression (pruning and quantization) of LLMs that achieve 50 -60% sparsity and reduce the bit width to 3 or 4 bits per weight, with negligible degradation of perplexity over the uncompressed baseline. As recent research efforts are focused on developing increasingly sophisticated compression methods, our work takes a step back and re-evaluates the effectiveness of existing SoTA compression methods, which rely on a fairly simple and widely questioned metric, perplexity (even for dense LLMs). We introduce Knowledge-Intensive Compressed LLM Bench-marK (LLM-KICK), a collection of carefully curated tasks to redefine the evaluation protocol for compressed LLMs, which have significant alignment with their dense counterparts and perplexity fail to capture subtle change in their true capabilities. LLM-KICK unveils many favorable merits and unfortunate plights of current SoTA compression methods: all pruning methods suffer significant performance degradation, sometimes at trivial sparsity ratios (e.g., 25-30%), and fail for N:M sparsity in knowledge-intensive tasks; current quantization methods are more successful than pruning; yet, pruned LLMs even at ≥ 50% sparsity are robust in-context retrieval and summarization systems; among others. LLM-KICK is designed to holistically access compressed LLMs' ability for language understanding, reasoning, generation, in-context retrieval, incontext summarization, etc. We hope our study can foster the development of better LLM compression methods. The reproduced codes are available at https://github.com/VITA-Group/llm-kick.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2310.01382")
get_code_for_paper("2310.01382")
have("2310.01382")

Connect an agent — have() is free.