mlsanityData to 14 Oct 2026

FastGAS: Fast Graph-based Annotation Selection for In-Context Learning

arXiv 2406.03730 ↗First posted 6 Jun 2024cs.LG cs.AIcited by 8

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

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  5. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  6. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
  7. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
  8. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
  9. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,392
  10. 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,317
  11. 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,256
  12. 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,253
18 more
  1. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,195
  2. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
  3. 2021Learning To Retrieve Prompts for In-Context Learningcited by 648
  4. 2022One Embedder, Any Task: Instruction-Finetuned Text Embeddingscited by 333
  5. 2022Selective Annotation Makes Language Models Better Few-Shot Learnerscited by 243
  6. 2021Want To Reduce Labeling Cost? GPT-3 Can Helpcited by 196
  7. 2023Knowledge Editing for Large Language Models: A Surveycited by 194
  8. 2022In-context Examples Selection for Machine Translationcited by 172
  9. 2022Self-Generated In-Context Learning: Leveraging Auto-regressive Language Models as a Demonstration Generatorcited by 68
  10. 2022ProGen: Progressive Zero-shot Dataset Generation via In-context Feedbackcited by 67
  11. 2022Data Curation Alone Can Stabilize In-context Learningcited by 59
  12. 2017Active Learning for Graph Embeddingcited by 54
  13. 2023ICL-D3IE: In-Context Learning with Diverse Demonstrations Updating for Document Information Extractioncited by 38
  14. 2019Active Learning for Graph Neural Networks via Node Feature Propagationcited by 37
  15. 2024Efficient Prompt Optimization Through the Lens of Best Arm Identificationcited by 37
  16. 2019Graph-based Semi-Supervised & Active Learning for Edge Flowscited by 25
  17. 2023Noise-Robust Fine-Tuning of Pretrained Language Models via External Guidancecited by 24
  18. 2023Few-shot Node Classification with Extremely Weak Supervisioncited by 14

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 6; 2026: 1.

8 papers.