scimeatlas

Research map / Large language models / Language, safety and interpretability

kNN-ICL: Compositional Task-Oriented Parsing Generalization with Nearest Neighbor In-Context Learning

Wenting Zhao, Ye Liu, Yao Wan, Yibo Wang, Qingyang Wu, Zhongfen Deng, Jiangshu Du, Shuaiqi Liu, Yunlong Xu, Philip S. Yu

NAACL 2024Large language models › Language, safety and interpretabilityapproach: In-context learning analysisopen problems in this approach

University of Illinois Chicago · Salesforce · Huazhong University of Science and Technology · Columbia University · The Hong Kong Polytechnic University · State University of New York at Binghamton

Read the paperPlace an idea next to itCheck your own paper ↗

11measured effects
8improved
1no clear effect
1hurt
1mixed

AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add kNN search (kNN-ICL) to ICLGPT-NeoX · TOPv2 average, SPIS10exact match: 8.30 -> 14.52Improved
add kNN search (kNN-ICL) to ICLCodeGen · TOPv2 average, SPIS10exact match: 8.66 -> 15.79Improved
add prompt demos to kNN-LM (kNN-ICL vs kNN-LM)CodeGen · TOPv2 average, SPIS10exact match: 1.68 -> 15.79Improved
add kNN search to ICL-Retrieve with 2000-demo poolCodeGen · TOPv2 average, 2000 demosexact match: 43.58 -> 44.85Improved
add kNN search to ICL-Retrieve with 2000-demo poolGPT-NeoX · TOPv2 average, 2000 demosexact match: 42.48 -> 42.63No clear effect
add kNN search (kNN-ICL) to ICL at nesting depth 3CodeGen · TOPv2 Navigation depth 3exact match: 0.16 -> 4.98Improved
add API documentation to prompt (ablation)GPT-NeoX · TOPv2 Navigation, unsupervised selectionexact match: 6.23 -> 4.04Hurt
add API documentation to prompt (ablation)Codex · TOPv2 Navigation, unsupervised selectionexact match: 36.03 -> 39.23Improved
use unsupervised SentenceBERT instead of random exemplar selection (ablation)Codex · TOPv2 Navigation, no documentationexact match: 19.20 -> 36.03Improved
use supervised paraphrase selection instead of SentenceBERT, no documentation (ablation)Codex · TOPv2 Navigationexact match: 36.03 -> 37.54Mixed
use Codex kNN-ICL (estimated, similar demos) instead of fine-tuned RINECodex · TOPv2 average, SPIS10exact match: 35.94 -> 47.00Improved

Later papers that compared with this method

1 later accepted paper reports KNN-ICL as a baseline in their results tables; 1 of them report a better number on most of the results they share with it.

Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.

Open problems in in-context learning analysis

Which in-context learning methods hold up beyond English classification on small open models, and what do they cost?

All 5 open problems and what was already tried →

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy