The Cost of Compression: Investigating the Impact of Compression on Parametric Knowledge in Language Models

Satya Sai Srinath Namburi, Makesh Sreedhar, Srinath Srinivasan, Frederic Sala
12/1/2023
cs.CLcs.AIcs.LG

No official code found. Best implementation: NamburiSrinath/LLMCompression (6 stars, last commit 2023-12-07).

Abstract

Compressing large language models (LLMs), often consisting of billions of parameters, provides faster inference, smaller memory footprints, and enables local deployment. Two standard compression techniques are pruning and quantization, with the former eliminating redundant connections in model layers and the latter representing model parameters with fewer bits. The key tradeoff is between the degree of compression and the impact on the quality of the compressed model. Existing research on LLM compression primarily focuses on performance in terms of general metrics like perplexity or downstream task accuracy. More fine-grained metrics, such as those measuring parametric knowledge, remain significantly underexplored. To help bridge this gap, we present a comprehensive analysis across multiple model families (ENCODER, ENCODER-DECODER, and DECODER) using the LAMA and LM-HARNESS benchmarks in order to systematically quantify the effect of commonly employed compression techniques on model performance. A particular focus is on tradeoffs involving parametric knowledge, with the goal of providing practitioners with practical insights to help make informed decisions on compression. We release our codebase1 to enable further research.

View on arXivView PDF

Code Implementations(1)

Official codebase for the EMNLP 2023 findings paper titled "The Cost of Compression: Investigating the Impact of Compression on Parametric Knowledge in Language Models"

62PythonOct 16, 20232 years ago

Cite this paper

@article{namburi2023cost,
  title  = {The Cost of Compression: Investigating the Impact of Compression on Parametric Knowledge in Language Models},
  author = {Satya Sai Srinath Namburi and Makesh Sreedhar and Srinath Srinivasan and Frederic Sala},
  year   = {2023},
  eprint = {2312.00960},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.00960v1}
}

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/2312.00960.svg)](https://codeofpaper.com/paper/2312.00960)

Discussion