atlas

Research map / Architectures and efficiency / Pruning and efficient tuning

SliceGPT: Compress Large Language Models by Deleting Rows and Columns

ICLR 2024 · Architectures and efficiency › Pruning and efficient tuning · approach: Layer-wise pruning of LLMs · 8 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes SliceGPT, a post-training structured pruning method that uses computational invariance under orthogonal transformations and PCA to delete rows and columns of weight matrices, reducing the embedding dimension of LLMs.

Problem

Large language models are costly to run in compute and memory; existing sparsification methods need extra data structures or give limited real speedup on current hardware, and many structured pruning methods require expensive recovery fine-tuning.

Approach

Exploit computational invariance in RMSNorm-connected transformers: insert orthogonal transforms per block (computed by PCA on calibration activations) that leave the network unchanged, then slice off the minor principal components so weight matrices and the residual stream become smaller dense matrices.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
slice 25% of embedding dimensionsLlama 70B · WikiText-2perplexity: 4.98 -> 4.60Helped
slice 30% of embedding dimensionsOPT 66B · WikiText-2perplexity: 10.22 -> 9.85Helped
slice 25% of embedding dimensionsLlama 70B · Zero-shot average accuracy, Alpaca calibrationaccuracy: 76.57 -> 73.59Hurt
apply recovery fine-tuning on Alpaca after 30% slicingLlama 70B · Zero-shot average accuracyaccuracy: 66.11 -> 74.3Helped
apply recovery fine-tuning on Alpaca after 25% slicingPhi-2 · Zero-shot average accuracyaccuracy: 54.46 -> 65.24Helped
use FP32 instead of double precision for PCA (ablation)SliceGPT · WikiText-2 perplexity, Llama 70B at 25% slicingperplexity: 4.60 -> 7.01Hurt
reduce calibration set size from 1024 to 128 (ablation)SliceGPT · WikiText-2 perplexity, Llama 70B at 25% slicingperplexity: 4.60 -> 4.89Hurt
vary slicing level by layer instead of using constant 25% slicing (ablation)OPT 66B · WikiText-2perplexity: 9.75 -> 9.63Helped
vary slicing level by layer instead of using constant 25% slicing (ablation)Llama 70B · WikiText-2perplexity: 4.44 -> 4.63Hurt
slice 25% of embedding dimensionsLlama 70B · Single-token inference on A100 (40GB)total compute: 500 GPUms -> 330 GPUmsHelped
slice 50% of embedding dimensionsOPT 66B · Tokens/s on H100 80GBthroughput: 141 -> 441 (6.26×)Helped

Surprising findings

Limitations

Experimental setup

Datasets: WikiText-2 Alpaca

Benchmarks: WikiText-2 PIQA WinoGrande HellaSwag ARC-e ARC-c

Metrics: perplexity zero-shot accuracy throughput (tokens/s) per-token inference time (GPUms)

Baselines: SparseGPT 2:4 LLM-Pruner magnitude pruning

Builds on: SparseGPT LoRA Optimal Brain Surgeon GPTQ

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy