atlas

Research map / Large language models / Language, safety and interpretability

GistScore: Learning Better Representations for In-Context Example Selection with Gist Bottlenecks

ICML 2024 · Large language models › Language, safety and interpretability · approach: In-context learning analysis · 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.

Trains encoder-decoder gist models with an attention bottleneck so that a few gist-token embeddings score and select in-context examples via GistScore, either per dataset or via one multi-task model usable out-of-the-box.

Problem

Choosing in-context examples for LLMs strongly affects ICL performance, but off-the-shelf retrievers are suboptimal, trained selectors need task data or LLM feedback, and BERTScore-Recall is quadratic and costly for long text.

Approach

Adapt Instruction Gisting to example encoding: fine-tune encoder-decoder models so the output can only attend to a few gist tokens over the input, then score candidates by a BERTScore-Recall-style similarity over those few gist embeddings (GistScore), with a multi-task variant that gists instructions plus inputs for training-free use.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace off-the-shelf retrieval with dataset-fine-tuned GistScoreICL example selection · 21 ICL datasetsICL performance: over 20% absolute gain over off-the-shelf retrievers; 5% over the best prior methodsHelped
Use multi-task-trained GistScore without task-specific fine-tuningICL example selection · New tasks and datasetsICL performanceHelped
Use set-selection with 15 gist tokens instead of independent ranking with a single token (ablation)GistScore for Semantic Parsing · Semantic ParsingExact-Match Accuracy: 15 tokensHelped
Use set-selection with 15 gist tokens (ablation)GS[Multitask] · Semantic ParsingExact-Match Accuracy: 15 tokensHelped
Use more gist tokens without set-selection (ablation)GS[Finetune] · Semantic ParsingExact-Match AccuracyHelped
Use more gist tokens without set-selection (ablation)GS[Multitask] · Semantic ParsingExact-Match AccuracyNo clear effect
Use set-selection rather than independent ranking (ablation)GistScore for Semantic Parsing · Semantic ParsingExact-Match AccuracyHelped
Use a single gist token rather than additional gist tokens (ablation)GistScore · Most datasetsICL performanceHelped
Use 2 selected examples instead of 8 (ablation)GistScore selection · ICL with GPT-Neo-2.7BICL performance: just 2 examplesHelped
Use single-token GistScore instead of BSRTraining-free example selection · ICL example selectionselection time: up to four orders of magnitude fasterHelped

Surprising findings

Limitations

Experimental setup

Datasets: FLAN 2022 (subset, ~5M prompts) MNLI QNLI RTE MedNLI WANLI XNLI GSM8K AGNews SST5 SST2 Rotten Tomatoes

Benchmarks: MNLI QNLI RTE MedNLI WANLI XNLI GSM8K AGNews SST5 SST2 Rotten Tomatoes MRPC

Metrics: accuracy exact match ROUGE-L

Baselines: SBERT BM25 BSR Set-BSR EPR CEIL LLM-R Random

Builds on: Gisting BERTScore-Recall EPR CEIL LLM-R

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