FastGAS: Fast Graph-based Annotation Selection for In-Context Learning
Not on the map. Why?
Abstract (arXiv)
In-context learning (ICL) empowers large language models (LLMs) to tackle new tasks by using a series of training instances as prompts. Since generating the prompts needs to sample from a vast pool of instances and annotate them (e.g., add labels in classification task), existing methods have proposed to select a subset of unlabeled examples for annotation, thus enhancing the quality of prompts and concurrently mitigating annotation costs. However, these methods often require a long time to select instances due to their complexity, hindering their practical viability. To address this limitation, we propose a graph-based selection method, FastGAS, designed to efficiently identify high-quality instances while minimizing computational overhead. Initially, we construct a data similarity graph based on instance similarities. Subsequently, employing a graph partitioning algorithm, we partition the graph into pieces. Within each piece (i.e., subgraph), we adopt a greedy approach to pick the most representative nodes. By aggregating nodes from diverse pieces and annotating the corresponding instances, we identify a set of diverse and representative instances for ICL. Compared to prior approaches, our method not only exhibits superior performance on different tasks but also significantly reduces selection time. In addition, we demonstrate the efficacy of our approach in LLMs of larger sizes.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 30 of its 59 references that are in the map. First posted on arXiv 6 Jun 2024.
Builds on
30 of 59 references.
References · 30
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,256
- 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,253
18 more
- 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
- 2022One Embedder, Any Task: Instruction-Finetuned Text Embeddingscited by 333
- 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 243
- 2021Want To Reduce Labeling Cost? GPT-3 Can Helpcited by 196
- 2023Knowledge Editing for Large Language Models: A Surveycited by 194
- 2022In-context Examples Selection for Machine Translationcited by 172
- 2022Self-Generated In-Context Learning: Leveraging Auto-regressive Language Models as a Demonstration Generatorcited by 68
- 2022ProGen: Progressive Zero-shot Dataset Generation via In-context Feedbackcited by 67
- 2022Data Curation Alone Can Stabilize In-context Learningcited by 59
- 2017Active Learning for Graph Embeddingcited by 54
- 2023ICL-D3IE: In-Context Learning with Diverse Demonstrations Updating for Document Information Extractioncited by 38
- 2019Active Learning for Graph Neural Networks via Node Feature Propagationcited by 37
- 2024Efficient Prompt Optimization Through the Lens of Best Arm Identificationcited by 37
- 2019Graph-based Semi-Supervised & Active Learning for Edge Flowscited by 25
- 2023Noise-Robust Fine-Tuning of Pretrained Language Models via External Guidancecited by 24
- 2023Few-shot Node Classification with Extremely Weak Supervisioncited by 14
Built on by
Citing papers per year: 2024: 1; 2025: 6; 2026: 1.
8 papers.
- 2024Towards Graph Foundation Models: Learning Generalities Across Graphs via Task-Treescited by 32
- 2025AnyMAC: Cascading Flexible Multi-Agent Collaboration via Next-Agent Predictioncited by 25
- 2025MAPLE: Many-Shot Adaptive Pseudo-Labeling for In-Context Learningcited by 13
- 2025A Survey of Scaling in Large Language Model Reasoningcited by 10
- 2025Are Large Language Models Good In-context Learners for Financial Sentiment Analysis?cited by 5
- 2026VIOLA: Towards Video In-Context Learning with Minimal Annotationscited by 2
- 2025From Cross-Task Examples to In-Task Prompts: A Graph-Based Pseudo-Labeling Framework for In-context Learningcited by 1
- 2025Separate the Wheat from the Chaff: Winnowing Down Divergent Views in Retrieval Augmented Generationcited by 0
- 2026VIOLA: Towards Video In-Context Learning with Minimal Annotations22 Jan 2026
- 2025Separate the Wheat from the Chaff: Winnowing Down Divergent Views in Retrieval Augmented Generation1 Nov 2025
- 2025From Cross-Task Examples to In-Task Prompts: A Graph-Based Pseudo-Labeling Framework for In-context Learning28 Oct 2025
- 2025AnyMAC: Cascading Flexible Multi-Agent Collaboration via Next-Agent Prediction21 Jun 2025
- 2025MAPLE: Many-Shot Adaptive Pseudo-Labeling for In-Context Learning22 May 2025
- 2025A Survey of Scaling in Large Language Model Reasoning2 Apr 2025
- 2025Are Large Language Models Good In-context Learners for Financial Sentiment Analysis?6 Mar 2025
- 2024Towards Graph Foundation Models: Learning Generalities Across Graphs via Task-Trees21 Dec 2024