跳到主要导航 跳到搜索 跳到主要内容

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

  • Shengnan An
  • , Bo Zhou
  • , Zeqi Lin
  • , Qiang Fu
  • , Bei Chen
  • , Nanning Zheng
  • , Weizhu Chen
  • , Jian Guang Lou
  • Xi'an Jiaotong University
  • Microsoft USA
  • Northeastern University

科研成果: 书/报告/会议事项章节会议稿件同行评审

27 引用 (Scopus)

摘要

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.

源语言英语
主期刊名EMNLP 2023 - 2023 Conference on Empirical Methods in Natural Language Processing, Proceedings
编辑Houda Bouamor, Juan Pino, Kalika Bali
出版商Association for Computational Linguistics (ACL)
13472-13492
页数21
ISBN(电子版)9798891760608
DOI
出版状态已出版 - 2023
活动2023 Conference on Empirical Methods in Natural Language Processing, EMNLP 2023 - Hybrid, Singapore, 新加坡
期限: 6 12月 202310 12月 2023

丛书

姓名EMNLP 2023 - 2023 Conference on Empirical Methods in Natural Language Processing, Proceedings

会议

会议2023 Conference on Empirical Methods in Natural Language Processing, EMNLP 2023
国家/地区新加坡
Hybrid, Singapore
时期6/12/2310/12/23

学术指纹

探究 'Skill-Based Few-Shot Selection for In-Context Learning' 的科研主题。它们共同构成独一无二的学术指纹。

引用此