mlsanityData to 7 Oct 2026

Skill-Based Few-Shot Selection for In-Context Learning

arXiv 2305.14210 ↗First posted 23 May 2023cs.CL cs.AIcited by 46

Not on the map. Why?

Abstract (arXiv)

In-context learning is the paradigm that adapts large language models to downstream tasks by providing a few examples. Few-shot selection -- selecting appropriate examples for each test instance separately -- is important for in-context learning. In this paper, we propose Skill-KNN, a skill-based few-shot selection method for in-context learning. The key advantages of Skill-KNN include: (1) it addresses the problem that existing methods based on pre-trained embeddings can be easily biased by surface natural language features that are not important for the target task; (2) it does not require training or fine-tuning of any models, making it suitable for frequently expanding or changing example banks. The key insight is to optimize the inputs fed into the embedding model, rather than tuning the model itself. Technically, Skill-KNN generates the skill-based descriptions for each test case and candidate example by utilizing a pre-processing few-shot prompting, thus eliminating unimportant surface features. Experimental results across five cross-domain semantic parsing datasets and six backbone models show that Skill-KNN significantly outperforms existing methods.

Key facts. Cited by 46 papers in the map (data through 7 Oct 2026). Builds on 60 of its 75 references that are in the map. First posted on arXiv 23 May 2023.

Builds on

60 of 75 references.

References · 60

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  3. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  5. 2020Measuring Massive Multitask Language Understandingcited by 7,768
  6. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  7. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  8. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  9. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,464
  10. 2022Training Compute-Optimal Large Language Modelscited by 2,927
  11. 2022Emergent Abilities of Large Language Modelscited by 2,483
  12. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
38 more
  1. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
  2. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  3. 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
  4. 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
  5. 2021Scaling Language Models: Methods, Analysis & Insights from Training Gophercited by 1,199
  6. 2021What Makes Good In-Context Examples for GPT-3?cited by 1,184
  7. 2023HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Facecited by 1,173
  8. 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
  9. 2018Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Taskcited by 1,120
  10. 2023Can LLM Already Serve as A Database Interface? A BIg Bench for Large-Scale Database Grounded Text-to-SQLscited by 667
  11. 2021Learning To Retrieve Prompts for In-Context Learningcited by 641
  12. 2022Using DeepSpeed and Megatron to Train Megatron-Turing NLG 530B, A Large-Scale Generative Language Modelcited by 557
  13. 2022Language Models are Multilingual Chain-of-Thought Reasonerscited by 518
  14. 2023Is ChatGPT a General-Purpose Natural Language Processing Task Solver?cited by 486
  15. 2023DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correctioncited by 465
  16. 2019RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parserscited by 420
  17. 2021PICARD: Parsing Incrementally for Constrained Auto-Regressive Decoding from Language Modelscited by 402
  18. 2022CodeT: Code Generation with Generated Testscited by 369
  19. 2022Text and Code Embeddings by Contrastive Pre-Trainingcited by 358
  20. 2023Chameleon: Plug-and-Play Compositional Reasoning with Large Language Modelscited by 352
  21. 2022Selection-Inference: Exploiting Large Language Models for Interpretable Logical Reasoningcited by 331
  22. 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 260
  23. 2022Binding Language Models in Symbolic Languagescited by 224
  24. 2019Towards Complex Text-to-SQL in Cross-Domain Database with Intermediate Representationcited by 210
  25. 2022Active Example Selection for In-Context Learningcited by 195
  26. 2023RESDSQL: Decoupling Schema Linking and Skeleton Parsing for Text-to-SQLcited by 191
  27. 2021Constrained Language Models Yield Few-Shot Semantic Parserscited by 162
  28. 2016Language to Logical Form with Neural Attentioncited by 158
  29. 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
  30. 2022Synchromesh: Reliable code generation from pre-trained language modelscited by 156
  31. 2023Compositional Exemplars for In-context Learningcited by 143
  32. 2022Diverse Demonstrations Improve In-context Compositional Generalizationcited by 136
  33. 2017SQLNet: Generating Structured Queries From Natural Language Without Reinforcement Learningcited by 135
  34. 2020Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsingcited by 133
  35. 2023A comprehensive evaluation of ChatGPT's zero-shot Text-to-SQL capabilitycited by 118
  36. 2021KaggleDBQA: Realistic Evaluation of Text-to-SQL Parserscited by 105
  37. 2023Finding Support Examples for In-Context Learningcited by 104
  38. 2022Evaluating the Text-to-SQL Capabilities of Large Language Modelscited by 101

50 most cited of 60 All 60 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 9; 2024: 16; 2025: 12; 2026: 9.

46 papers.

Sort:

By area:

  1. 2024A Systematic Survey and Critical Review on Evaluating Large Language Models: Challenges, Limitations, and Recommendationscited by 84
  2. 2023In-Context Learning with Iterative Demonstration Selectioncited by 74
  3. 2023SQL-PaLM: Improved Large Language Model Adaptation for Text-to-SQL (extended)cited by 42
  4. 2024PURPLE: Making a Large Language Model a Better SQL Writercited by 34
  5. 2023Selective Demonstrations for Cross-domain Text-to-SQLcited by 21
  6. 2023Generative Calibration for In-context Learningcited by 20
  7. 2024Improving Retrieval-augmented Text-to-SQL with AST-based Ranking and Schema Pruningcited by 16
  8. 2023A Survey on Stability of Learning with Limited Labelled Data and its Sensitivity to the Effects of Randomnesscited by 14
  9. 2023SUQL: Conversational Search over Structured and Unstructured Data with Large Language Modelscited by 13
  10. 2024Unraveling the Mechanics of Learning-Based Demonstration Selection for In-Context Learningcited by 9
  11. 2024Natural Language Outlines for Code: Literate Programming in the LLM Eracited by 9
  12. 2025The CoT Encyclopedia: Analyzing, Predicting, and Controlling how a Reasoning Model will Thinkcited by 9
34 more
  1. 2023Adapt and Decompose: Efficient Generalization of Text-to-SQL via Domain Adapted Least-To-Most Promptingcited by 8
  2. 2023LaRS: Latent Reasoning Skills for Chain-of-Thought Reasoningcited by 8
  3. 2024Unlocking Instructive In-Context Learning with Tabular Prompting for Relational Triple Extractioncited by 7
  4. 2024Bayesian Example Selection Improves In-Context Learning for Speech, Text, and Visual Modalitiescited by 7
  5. 2024PTD-SQL: Partitioning and Targeted Drilling with LLMs in Text-to-SQLcited by 7
  6. 2024Use Random Selection for Now: Investigation of Few-Shot Selection Strategies in LLM-based Text Augmentation for Classificationcited by 7
  7. 2024Demonstration Selection for In-Context Learning via Reinforcement Learningcited by 7
  8. 2024PII-Scope: A Comprehensive Study on Training Data PII Extraction Attacks in LLMscited by 6
  9. 2025The Role of Diversity in In-Context Learning for Large Language Modelscited by 6
  10. 2025Unveiling Chain of Step Reasoning for Vision-Language Models with Fine-grained Rewardscited by 6
  11. 2025You only need 4 extra tokens: Synergistic Test-time Adaptation for LLMscited by 6
  12. 2025AdaptMI: Adaptive Skill-based In-context Math Instruction for Small Language Modelscited by 5
  13. 2024Automatic Combination of Sample Selection Strategies for Few-Shot Learningcited by 4
  14. 2024Learning Metadata-Agnostic Representations for Text-to-SQL In-Context Example Selectioncited by 2
  15. 2024The Future of Intelligent Healthcare: A Systematic Analysis and Discussion on the Integration and Impact of Robots Using Large Language Models for Healthcarecited by 2
  16. 2024PERC: Plan-As-Query Example Retrieval for Underrepresented Code Generationcited by 2
  17. 2025Learning to Search Effective Example Sequences for In-Context Learningcited by 2
  18. 2025PIAST: Rapid Prompting with In-context Augmentation for Scarce Training datacited by 2
  19. 2026Optimal Skill Selection for LLM Agents with Provable Bicriteria Guaranteescited by 2
  20. 2025Few-Shot Optimization for Sensor Data Using Large Language Models: A Case Study on Fatigue Detectioncited by 1
  21. 2025STARE at the Structure: Steering ICL Exemplar Selection with Structural Alignmentcited by 1
  22. 2025ORANGE: An Online Reflection ANd GEneration framework with Domain Knowledge for Text-to-SQLcited by 1
  23. 2026TATRA: Training-Free Instance-Adaptive Prompting Through Rephrasing and Aggregationcited by 1
  24. 2026The Structural Attention Tax: How Retrieval Format Hijacks In-Context Learning Independent of Contentcited by 1
  25. 2023dIR -- Discrete Information Retrieval: Conversational Search over Unstructured (and Structured) Data with Large Language Modelscited by 0
  26. 2024Do the Right Thing, Just Debias! Multi-Category Bias Mitigation Using LLMscited by 0
  27. 2025Retrieval and Augmentation of Domain Knowledge for Text-to-SQL Semantic Parsingcited by 0
  28. 2025In-Context-Learning-Assisted Quality Assessment Vision-Language Models for Metal Additive Manufacturingcited by 0
  29. 2026The Alchemy of Thought: Understanding In-Context Learning Through Supervised Classificationcited by 0
  30. 2026Meta-Sel: Efficient Demonstration Selection for In-Context Learning via Supervised Meta-Learningcited by 0
  31. 2026UCS: Estimating Unseen Coverage for Improved In-Context Learningcited by 0
  32. 2026Medical Incident Causal Factors and Preventive Measures Generation Using Tag-based Example Selection in Few-shot Learningcited by 0
  33. 2026Gradient-free Task-Conditioned Retrieval for On-Device In-Context Learningcited by 0
  34. 2026Downstream-Aware Context Selection for Online In-Context Reinforcement Learningcited by 0