atlas

Research map / Large language models / Instruction and fine-tuning

Soft Prompt Recovers Compressed LLMs, Transferably

ICML 2024 · Large language models › Instruction and fine-tuning · approach: Efficient LLM fine-tuning systems

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.

Learns a vanilla soft prompt on C4 that is attached to pruned or quantized LLMs to recover their perplexity and downstream accuracy, and shows the prompt transfers across datasets, tasks, and compression levels.

Problem

Compressed LLMs (pruned or quantized) suffer significant accuracy degradation, and existing recovery methods require intricate engineering; the question is whether cheap prompt tuning can restore compressed model performance.

Approach

Apply vanilla soft prompt tuning (100 learnable prompt embeddings prepended to inputs) on top of a frozen compressed model, so the prompt is learned with gradients flowing through compressed weights; the learned prompt is then shown to transfer zero-shot across datasets, tasks, and compression settings.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add a learned soft prompt to 3-bit LLaMA-2-13BLLaMA-2-13B · C4 validationPPL: 9.24 -> 6.75Helped
Add a learned soft prompt to 3-bit BLOOM-7BBLOOM-7B · C4 validationPPL: 18.40 -> 13.54Helped
Use a transferred C4-trained soft prompt rather than no prompt3-bit LLaMA-2-13B · Wikitext2 testPPL: 7.88 -> 5.89Helped
Use a transferred C4-trained soft prompt rather than no prompt3-bit BLOOM-7B · Wikitext2 testPPL: 16.06 -> 12.42Helped
Add a C4-trained soft prompt to LLaMA-7B compressed with 50% sparsity and 4-bit quantizationLLaMA-7B · C4 validationPPL: 10.94 -> 7.38Helped
Add a C4-trained soft prompt to LLaMA-7B compressed with 50% sparsity and 4-bit quantizationLLaMA-7B · Wikitext-2 testPPL: 9.67 -> 7.31Helped
Add a C4-trained soft prompt to LLaMA-7B compressed with 50% sparsity and 4-bit quantizationLLaMA-7B · PTB testPPL: 17.39 -> 10.64Helped
Use a target-trained rather than C4-transferred prompt4-bit LLaMA-7B · PTB testPPL: 9.25 -> 7.04Helped
Add a transferred C4-trained soft prompt4-bit LLaMA-7B · PTB testPPL: 11.65 -> 9.25Helped
Add a transferred C4-trained soft prompt3-bit LLaMA-7B · PTB testPPL: 15.74 -> 10.81Helped
Add a transferred C4-trained soft prompt2-bit LLaMA-7B · PTB testPPL: 5883.13 -> 29.82Helped
Increase the soft prompt from 0 to 100 tokens (ablation)3-bit LLaMA-7B · PTB testPPL: 15.74 -> 7.76Helped

Surprising findings

Limitations

Experimental setup

Datasets: C4 Wikitext-2 Penn Treebank OpenbookQA Hellaswag PIQA High School European History

Benchmarks: C4 Wikitext-2 Penn Treebank OpenbookQA Hellaswag PIQA High School European History

Metrics: perplexity normalized accuracy

Baselines: SparseGPT GPTQ LoRA hard prompt

Builds on: prompt tuning (Lester et al., 2021) SparseGPT GPTQ LoRA

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