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

基于假设类引导的上下文学习

In-Context Learning with Hypothesis-Class Guidance

University of Wisconsin-Madison(威斯康星大学麦迪逊分校)

Ziqian Lin, Shubham Kumar Bharti, Kangwook Lee

AI总结:

本文提出ICL-HCG,一种包含假设类文字描述与示例对的上下文学习合成数据模型,实验证明Transformer能泛化至新假设类,且指令显著提升准确率。

摘要:

近期研究已在理论和实证层面探讨了上下文学习(ICL)的底层机制,通常使用由简单函数类生成的数据。然而,现有工作往往仅关注由带标签示例组成的序列,而在实际应用中,带标签示例通常伴随一条指令,提供关于任务的一些辅助信息。在本工作中,我们提出基于假设类引导的上下文学习(ICL-HCG),一种新颖的ICL合成数据模型,其中输入上下文包含一个(有限)假设类H的文字描述以及从H中选定的一个假设所生成的(x,y)对。在我们的ICL-HCG框架下,我们进行了大量实验以探究:(i)对新假设类的多种泛化能力;(ii)不同模型架构;(iii)样本复杂度;(iv)上下文内数据不平衡;(v)指令的作用;以及(vi)预训练假设多样性的影响。结果表明,(a)Transformer能够成功学习ICL-HCG并泛化到未见过的假设及未见过的假设类,(b)与无指令的ICL相比,ICL-HCG实现了显著更高的准确率,从而证明了指令的作用。

英文摘要:

Recent research has investigated the underlying mechanisms of in-context learning (ICL) both theoretically and empirically, often using data generated from simple function classes. However, the existing work often focuses on the sequence consisting solely of labeled examples, while in practice, labeled examples are typically accompanied by an instruction, providing some side information about the task. In this work, we propose ICL with hypothesis-class guidance (ICL-HCG), a novel synthetic data model for ICL where the input context consists of the literal description of a (finite) hypothesis class H and $(x,y)$ pairs from a hypothesis chosen from H. Under our framework ICL-HCG, we conduct extensive experiments to explore: (i) a variety of generalization abilities to new hypothesis classes; (ii) different model architectures; (iii) sample complexity; (iv) in-context data imbalance; (v) the role of instruction; and (vi) the effect of pretraining hypothesis diversity. As a result, we show that (a) Transformers can successfully learn ICL-HCG and generalize to unseen hypotheses and unseen hypothesis classes, and (b) compared with ICL without instruction, ICL-HCG achieves significantly higher accuracy, demonstrating the role of instructions.

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

↑