GistScore: Learning Better Representations for In-Context Example Selection with Gist Bottlenecks
Not on the map. Why?
Abstract (arXiv)
In-context Learning (ICL) is the ability of Large Language Models (LLMs) to perform new tasks when conditioned on prompts comprising a few task examples. However, ICL performance can be critically sensitive to the choice of examples. To dynamically select the best examples for every test input, we propose Example Gisting, a novel approach for training example encoders through supervised fine-tuning with an attention bottleneck between the inputs and outputs. These gist models form the basis for GistScore, a novel metric for scoring and selecting informative examples. Further, we experiment with two variations: (1) fine-tuning gist models for each dataset and (2) multi-task training a single model on a large collection of datasets. The latter can be used for new tasks out-of-the-box, enabling a training-free ICL pipeline. Evaluations with 21 datasets spanning 9 tasks and 8 diverse LLMs show that our fine-tuned models get state-of-the-art ICL performance with over 20% absolute gain over off-the-shelf retrievers and 5% over the best prior methods. Further, our multi-task model generalizes well to new tasks, datasets, and prompt templates. Selection using this model matches or outperforms prior methods while being three orders of magnitude faster than the strongest training-free baseline.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 50 of its 75 references that are in the map. First posted on arXiv 16 Nov 2023.
Builds on
50 of 75 references.
References · 50
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2019BERTScore: Evaluating Text Generation with BERTcited by 5,462
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2017Billion-scale similarity search with GPUscited by 2,477
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
38 more
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,793
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2018Neural Network Acceptability Judgmentscited by 952
- 2020Exploiting Cloze Questions for Few Shot Text Classification and Natural Language Inferencecited by 934
- 2018XNLI: Evaluating Cross-lingual Sentence Representationscited by 913
- 2018Adafactor: Adaptive Learning Rates with Sublinear Memory Costcited by 896
- 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 883
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
- 2020TweetEval: Unified Benchmark and Comparative Evaluation for Tweet Classificationcited by 414
- 2019PAWS: Paraphrase Adversaries from Word Scramblingcited by 395
- 2023Learning to Compress Prompts with Gist Tokenscited by 379
- 2019PAWS-X: A Cross-lingual Adversarial Dataset for Paraphrase Identificationcited by 262
- 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
- 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 242
- 2021LongT5: Efficient Text-To-Text Transformer for Long Sequencescited by 232
- 2022Exploring Length Generalization in Large Language Modelscited by 204
- 2022WANLI: Worker and AI Collaboration for Natural Language Inference Dataset Creationcited by 200
- 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
- 2020MTOP: A Comprehensive Multilingual Task-Oriented Semantic Parsing Benchmarkcited by 156
- 2023Compositional Exemplars for In-context Learningcited by 143
- 2020Task-Oriented Dialogue as Dataflow Synthesiscited by 122
- 2022Compositional Semantic Parsing with Large Language Modelscited by 95
- 2022Complementary Explanations for Effective In-Context Learningcited by 71
- 2023Learning to Retrieve In-Context Examples for Large Language Modelscited by 60
- 2023Coverage-based Example Selection for In-Context Learningcited by 58
- 2022Evaluating the Impact of Model Scale for Compositional Generalization in Semantic Parsingcited by 50
- 2022In-Context Learning for Few-Shot Dialogue State Trackingcited by 47
- 2021MedNLI Is Not Immune: Natural Language Inference Artifacts in the Clinical Domaincited by 17
- 2022Simplifying Semantic Annotations of SMCalFlowcited by 7
- 2023Submodular Minimax Optimization: Finding Effective Setscited by 7
Built on by
Citing papers per year: 2024: 2; 2025: 3; 2026: 1.
6 papers.
- 2026Compositional Steering of Large Language Models with Steering Tokenscited by 5
- 2024Aggregation Artifacts in Subjective Tasks Collapse Large Language Models' Posteriorscited by 4
- 2025Leveraging In-Context Learning for Language Model Agentscited by 4
- 2025Unraveling Indirect In-Context Learning Using Influence Functionscited by 3
- 2024URL: Universal Referential Knowledge Linking via Task-instructed Representation Compressioncited by 1
- 2025Learning to Substitute Components for Compositional Generalizationcited by 1
- 2026Compositional Steering of Large Language Models with Steering Tokens8 Jan 2026
- 2025Leveraging In-Context Learning for Language Model Agents16 Jun 2025
- 2025Learning to Substitute Components for Compositional Generalization28 Feb 2025
- 2025Unraveling Indirect In-Context Learning Using Influence Functions1 Jan 2025
- 2024Aggregation Artifacts in Subjective Tasks Collapse Large Language Models' Posteriors17 Oct 2024
- 2024URL: Universal Referential Knowledge Linking via Task-instructed Representation Compression24 Apr 2024