arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.04318cs.CLcs.AI
收藏

学习 vs 检索:上下文示例在大语言模型回归任务中的作用

Learning vs Retrieval: The Role of In-Context Examples in Regression with Large Language Models

Michigan State University(密歇根州立大学);Florida Institute for Human and Machine Cognition(佛罗里达人机认知研究所);University of West Florida(西佛罗里达大学)

Aliakbar Nafar, Kristen Brent Venable, Parisa Kordjamshidi

AI总结:

针对大语言模型上下文学习机制研究不一致的问题,本研究提出回归任务评估框架,分析内部知识检索与上下文示例学习的混合机制及影响因素,为提示词设计提供启示。

摘要:

生成式大语言模型(LLMs)具备上下文学习能力,但上下文学习(ICL)的底层机制仍是重要研究问题,关于模型如何利用ICL的实验结果也并非总是一致。本研究针对回归任务提出一个评估ICL机制的框架,认为其是检索内部知识与从上下文示例学习的结合。首先,我们展示LLMs可解决真实世界回归问题,然后设计实验衡量模型检索内部知识与从上下文示例学习的程度,认为该过程处于这两个极端之间的连续谱。我们深入分析不同因素(如任务先验知识、上下文示例提供的信息类型和丰富度)对这些机制触发程度的影响。我们使用三个LLMs和多个数据集验证研究结果的鲁棒性。研究结果为如何设计提示词以根据问题利用上下文示例元学习和促进知识检索提供了启示。

英文摘要:

Generative Large Language Models (LLMs) are capable of being in-context learners. However, the underlying mechanism of in-context learning (ICL) is still a major research question, and experimental research results about how models exploit ICL are not always consistent. In this work, we propose a framework for evaluating in-context learning mechanisms, which we claim are a combination of retrieving internal knowledge and learning from in-context examples by focusing on regression tasks. First, we show that LLMs can solve real-world regression problems and then design experiments to measure the extent to which the LLM retrieves its internal knowledge versus learning from in-context examples. We argue that this process lies on a spectrum between these two extremes. We provide an in-depth analysis of the degrees to which these mechanisms are triggered depending on various factors, such as prior knowledge about the tasks and the type and richness of the information provided by the in-context examples. We employ three LLMs and utilize multiple datasets to corroborate the robustness of our findings. Our results shed light on how to engineer prompts to leverage meta-learning from in-context examples and foster knowledge retrieval depending on the problem being addressed.

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

↑