atlas

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

MEND: Meta Demonstration Distillation for Efficient and Effective In-Context Learning

ICLR 2024 · Large language models › Instruction and fine-tuning · approach: Fine-tuning generalization and delta compression · 0 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 MEND, a small language model that distills lengthy ICL demonstrations into compact vectors, trained with a KL-based knowledge distillation objective through a frozen LLM in meta-distillation pretraining (C4) and finetuning (MetaICL).

Problem

In-context learning with many demonstrations incurs quadratic self-attention cost; existing demonstration distillation into vectors (hypernetworks, HyperTuning) either needs retraining per task or degrades ICL performance relative to vanilla ICL.

Approach

A small distillation LM (gpt2-small or t5-small-lm-adapt) produces soft prompt vectors from demonstrations and is trained so that a frozen LLM conditioned on these vectors matches the output distribution of the LLM conditioned on full demonstrations (KL distillation), after a meta-distillation pretraining stage on C4 and a finetuning stage on ICL tasks.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use MEND instead of Vanilla ICLGPT-2 large · MetaICL AVGscore: 41.93 -> 43.05Helped
use MEND instead of Vanilla ICLGPT-2 XL · MetaICL AVGscore: 42.15 -> 43.12Helped
use MEND instead of Vanilla ICLT5 large · MetaICL AVGscore: 38.15 -> 39.79Helped
remove prediction loss during finetuning (ablation)MEND · MetaICL average ablationscore: 43.65 -> 40.41Hurt
remove distillation loss during finetuning (ablation)MEND · MetaICL average ablationscore: 43.65 -> 40.64Hurt
remove meta-distillation pretraining (ablation)MEND · MetaICL average ablationscore: 43.65 -> 40.10Hurt
replace MEND pretraining objective with CLM (ablation)MEND · MetaICL average ablationscore: 43.65 -> 42.92Hurt
combine CLM and distillation loss during pretraining (ablation)MEND · MetaICL average ablationscore: 43.65 -> 42.24Hurt
increase the number of demonstrations from 1 through 16 (ablation)MEND · Class → ClassscoreHelped
increase distilled-vector length from 1 to 100 (ablation)MEND · Class → ClassscoreHelped
retrieve demonstrations with dense k-NN rather than random sampling (ablation)MEND · Class → Classscore: 43.35 -> 48.81Helped
remove demonstration inputs while retaining labels (ablation)MEND · Class → Classscore: 43.35 -> 44.29Helped

Surprising findings

Limitations

Experimental setup

Datasets: C4 MetaICL CrossFit UnifiedQA

Benchmarks: MetaICL seven partitions (Class→Class, non-Class→Class, non-NLI→NLI, non-QA→QA, QA→QA, HR→LR, non-Para→Para)

Metrics: accuracy Macro-F1 FLOPs inference time peak GPU memory

Baselines: Zero-shot Vanilla ICL PromptTuning HyperTuning

Builds on: HyperTuning MetaICL Prompt Tuning Knowledge distillation

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