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

通过自动数据标注与精炼增强大型语言模型中的上下文学习

Augmenting In-Context-Learning in LLMs via Automatic Data Labeling and Refinement

IBM Research AI(IBM研究院AI部门)

Joseph Shtok, Amit Alfassy, Foad Abo Dahood, Eliyahu Schwartz, Sivan Doveh, Assaf Arbelle

AI总结:

本文提出ADLR方法,从少量手工示例自动生成并过滤含中间步骤的示例,在表格问答和数学推理中实现高达5.5%的性能提升。

摘要:

已有研究表明,使用思维链或上下文学习可以通过展示少量示例来解决任务,从而提升大型语言模型在许多任务上的性能。然而,尽管包含输入输出对的数据集相对容易生成,但提供包含中间步骤的示例却需要繁琐的手工工作。这些步骤可能是可执行的程序(如智能体流程),或者是逐步的推理(如CoT)。在本研究中,我们提出了自动数据标注与精炼(ADLR)方法,从少量手工制作的示例种子出发,自动生成并过滤包含上述中间步骤的示例。我们在基于代码的表格问答和数学推理中展示了ADLR的优势,实现了高达5.5%的性能提升。实现该方法的代码已在补充材料中提供,并将公开发布。

英文摘要:

It has been shown that Large Language Models' (LLMs) performance can be improved for many tasks using Chain of Thought (CoT) or In-Context Learning (ICL), which involve demonstrating the steps needed to solve a task using a few examples. However, while datasets with input-output pairs are relatively easy to produce, providing demonstrations which include intermediate steps requires cumbersome manual work. These steps may be executable programs, as in agentic flows, or step-by-step reasoning as in CoT. In this work, we propose Automatic Data Labeling and Refinement (ADLR), a method to automatically generate and filter demonstrations which include the above intermediate steps, starting from a small seed of manually crafted examples. We demonstrate the advantage of ADLR in code-based table QA and mathematical reasoning, achieving up to a 5.5% gain. The code implementing our method is provided in the Supplementary material and will be made available.

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

↑