arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2510.08372cs.CLcs.LG
收藏

论表示选择与上下文学习之间的关系

On the Relationship Between the Choice of Representation and In-Context Learning

NYU(纽约大学)

Ioana Marinescu, Kyunghyun Cho, Eric Karl Oermann

AI总结:

本研究探讨上下文学习中表示选择与学习能力的独立性,通过枚举标签集验证假设,发现表示决定基线准确率,学习在此基础上提升,二者正交。

摘要:

上下文学习(ICL)是大语言模型(LLM)从上下文中呈现的少量示例中学习新任务的能力。以往研究将ICL的成功很大程度归因于这些上下文示例的表示方式,特别是在分类任务中标签的表示方式。另一方面,关于ICL学习能力(即更多上下文示例能在多大程度上带来更高性能)的观察结果不一,且ICL常被认为仅在特定条件下发生。ICL中表示与学习这两个方面之间的相互作用至今尚未被深入研究。我们假设这两者在很大程度上相互独立,即示例的表示决定了ICL的基线准确率,而从额外示例中学习仅在此基线上提升性能。我们通过开发一种优化算法来验证这一假设,该算法能够枚举一系列语义相关性不同的可能标签集(表示)。随后,我们针对每个标签集使用不同数量的上下文示例进行ICL实验。我们观察到,无论标签集本身质量如何,学习都会发生,尽管其效率(以随上下文示例数量增加的改善斜率衡量)取决于标签集质量和底层语言模型的参数数量。尽管学习现象出现,但标签集(表示)选择的相对质量(准确率)在学习过程中基本保持不变,这证实了我们的假设并暗示它们的正交性。我们的工作揭示了ICL中一个此前未被充分探索的方面:从示例中学习与其表示对ICL性能的独立影响。

英文摘要:

In-context learning (ICL) is the ability of a large language model (LLM) to learn a new task from a few demonstrations presented as part of the context. Past studies have attributed a large portion of the success of ICL to the way these in-context demonstrations are represented, particularly to how labels are represented in classification tasks. On the other hand, observations of the learning capacity of ICL (i.e., the extent to which more in-context demonstrations can lead to higher performance) have been mixed, and ICL is often thought to occur only under specific conditions. The interaction between these two aspects in ICL, representation and learning, has not been studied in depth until now. We hypothesize that they are largely independent of one another, such that the representation of demonstrations determines the baseline accuracy of ICL, while learning from additional demonstrations improves only on top of this baseline. We validate this hypothesis by developing an optimization algorithm that can enumerate a spectrum of possible label sets (representations) varying in semantic relevance. We then perform ICL with varying numbers of in-context demonstrations for each of these label sets. We observed that learning happens regardless of the quality of the label set itself, although its efficiency, measured by the slope of improvement over in-context demonstrations, is conditioned on both the label set quality and the parameter count of the underlying language model. Despite the emergence of learning, the relative quality (accuracy) of the choice of a label set (representation) is largely maintained throughout learning, confirming our hypothesis and implying their orthogonality. Our work reveals a previously underexplored aspect of ICL: the independent effects of learning from demonstrations and their representations on ICL performance.

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

↑