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

探究大型语言模型中上下文学习的决策边界

Probing the Decision Boundaries of In-context Learning in Large Language Models

University of California Los Angeles(加州大学洛杉矶分校)

Siyan Zhao, Tung Nguyen, Aditya Grover

AI总结:

本文从二分类决策边界视角分析 LLM 的上下文学习,评估免训练、微调、架构与主动提示等因素,发现其边界常不规则,并提出提升平滑性、鲁棒性与泛化性的方法。

摘要:

上下文学习是大型语言模型(LLM)中的一种关键范式,它使模型能够通过仅用少量示例提示这些模型来泛化到新任务和领域,而无需显式更新参数。已有许多研究尝试将 LLM 中的上下文学习理解为模型规模、预训练数据及其他因素的函数。在本工作中,我们提出一种新机制,从上下文二分类的决策边界视角来探究和理解上下文学习。决策边界易于可视化,并能提供有关标准分类器归纳偏置定性行为的重要信息。令我们惊讶的是,我们发现当前 LLM 在简单二分类任务中学到的决策边界通常是不规则且非平滑的,无论底层任务是否线性可分。本文研究了影响这些决策边界的因素,并探索增强其泛化能力的方法。我们评估了多种途径,包括面向 LLM 的免训练和微调方法、模型架构的影响,以及主动提示技术在以数据高效方式平滑决策边界方面的有效性。我们的发现加深了对上下文学习动态的理解,并为增强上下文学习的鲁棒性和泛化能力提供了切实改进。

英文摘要:

In-context learning is a key paradigm in large language models (LLMs) that enables them to generalize to new tasks and domains by simply prompting these models with a few exemplars without explicit parameter updates. Many attempts have been made to understand in-context learning in LLMs as a function of model scale, pretraining data, and other factors. In this work, we propose a new mechanism to probe and understand in-context learning from the lens of decision boundaries for in-context binary classification. Decision boundaries are straightforward to visualize and provide important information about the qualitative behavior of the inductive biases of standard classifiers. To our surprise, we find that the decision boundaries learned by current LLMs in simple binary classification tasks are often irregular and non-smooth, regardless of linear separability in the underlying task. This paper investigates the factors influencing these decision boundaries and explores methods to enhance their generalizability. We assess various approaches, including training-free and fine-tuning methods for LLMs, the impact of model architecture, and the effectiveness of active prompting techniques for smoothing decision boundaries in a data-efficient manner. Our findings provide a deeper understanding of in-context learning dynamics and offer practical improvements for enhancing robustness and generalizability of in-context learning.

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

↑