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

TL;DR
This paper introduces kNN-ICL, a method that enhances large language models' ability to perform semantic parsing in task-oriented dialogue by combining in-context learning with nearest neighbor retrieval, improving understanding of complex commands.
Contribution
The paper proposes kNN-ICL, a novel approach that simplifies prompt design and improves semantic parsing performance by integrating nearest neighbor retrieval with in-context learning.
Findings
Simple ICL achieves performance comparable to supervised models.
kNN-ICL significantly improves understanding of complex requests.
Enhancement occurs without extra data or specialized prompts.
Abstract
Task-Oriented Parsing (TOP) enables conversational assistants to interpret user commands expressed in natural language, transforming them into structured outputs that combine elements of both natural language and intent/slot tags. Recently, Large Language Models (LLMs) have achieved impressive performance in synthesizing computer programs based on a natural language prompt, mitigating the gap between natural language and structured programs. Our paper focuses on harnessing the capabilities of LLMs for semantic parsing tasks, addressing the following three key research questions: 1) How can LLMs be effectively utilized for semantic parsing tasks? 2) What defines an effective prompt? and 3) How can LLM overcome the length constraint and streamline prompt design by including all examples as prompts? We introduce k Nearest Neighbor In-Context Learning(kNN-ICL), which simplifies prompt…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsNatural Language Processing Techniques · Topic Modeling · Software Engineering Research
