arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.10771cs.CL
收藏

kNN-ICL: 基于近邻上下文学习的组合式任务导向解析泛化

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

University of Illinois Chicago(伊利诺伊大学芝加哥分校);Salesforce Research(赛富时研究院);Huazhong University of Science and Technology(华中科技大学);Columbia University(哥伦比亚大学);The Hong Kong Polytechnic University(香港理工大学);State University of New York at Binghamton(纽约州立大学宾汉姆顿分校)

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

AI总结:

针对大语言模型应用于语义解析的提示设计、长度限制等问题,提出k近邻上下文学习方法kNN-ICL,可兼容任意提示策略并调用全部示例,在TOP任务上性能媲美强监督模型,且无需额外数据即可提升复杂请求理解能力。

摘要:

任务导向解析(Task-Oriented Parsing, TOP)可让对话助手解读用户用自然语言表达的指令,将其转换为融合自然语言元素与意图/槽位标签的结构化输出。近期,大语言模型(Large Language Models, LLMs)在根据自然语言提示合成计算机程序方面取得了亮眼表现,缩小了自然语言与结构化程序之间的差距。本文聚焦于利用LLMs的能力处理语义解析任务,围绕三个核心研究问题展开:1)如何有效将LLMs应用于语义解析任务?2)什么样的提示才算有效?3)LLMs如何通过纳入所有示例作为提示,克服长度限制并简化提示设计?我们提出了k近邻上下文学习(k Nearest Neighbor In-Context Learning, kNN-ICL),该方法可基于任意提示设计策略构建,同时能访问所有演示示例,从而简化了提示工程。大量实验表明:1)不使用kNN搜索的简单上下文学习(ICL)在TOP任务上可达到与强监督模型相当的性能;2)kNN-ICL通过将ICL与近邻方法无缝结合,显著提升了对复杂请求的理解能力。值得注意的是,这一性能提升无需额外数据或专门设计的提示。

英文摘要:

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 engineering by allowing it to be built on top of any design strategy while providing access to all demo examples. Extensive experiments show that: 1)Simple ICL without kNN search can achieve a comparable performance with strong supervised models on the TOP tasks, and 2) kNN-ICL significantly improves the comprehension of complex requests by seamlessly integrating ICL with a nearest-neighbor approach. Notably, this enhancement is achieved without the need for additional data or specialized prompts.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑