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

上下文即环境

Context is Environment

Meta AI;MIT CSAIL(麻省理工学院计算机科学与人工智能实验室)

Sharut Gupta, Stefanie Jegelka, David Lopez-Paz, Kartik Ahuja

AI总结:

本文提出上下文即环境的观点,并设计上下文风险最小化(ICRM)算法,利用无标签上下文示例聚焦测试环境风险最小化器,从而显著提升分布外泛化性能。

摘要:

两条研究路线正在人工智能研究中占据核心地位。一方面,社区正日益努力构建能够摒弃虚假相关性并在新测试环境中实现更好泛化的模型。遗憾的是,迄今为止的苦涩教训是,没有任何方案能令人信服地超越简单的经验风险最小化基线。另一方面,大型语言模型(LLMs)作为能够进行上下文学习的算法异军突起,能够即时泛化到用户通过提示所施加的各种多样上下文情境中。在本文中,我们主张上下文即环境,并提出上下文学习是改善领域泛化的关键。通过广泛的理论和实验,我们表明,关注上下文——即到达的无标签示例——使得我们提出的上下文风险最小化(ICRM)算法能够聚焦于测试环境风险最小化器,从而带来显著的分布外性能提升。从这一切中可以得出两点值得铭记的信息。领域泛化研究者应将环境视为上下文,并利用上下文学习的自适应能力。大型语言模型研究者应将上下文视为环境,以更好地组织数据以实现泛化。

英文摘要:

Two lines of work are taking the central stage in AI research. On the one hand, the community is making increasing efforts to build models that discard spurious correlations and generalize better in novel test environments. Unfortunately, the bitter lesson so far is that no proposal convincingly outperforms a simple empirical risk minimization baseline. On the other hand, large language models (LLMs) have erupted as algorithms able to learn in-context, generalizing on-the-fly to eclectic contextual circumstances that users enforce by means of prompting. In this paper, we argue that context is environment, and posit that in-context learning holds the key to better domain generalization. Via extensive theory and experiments, we show that paying attention to context$\unicode{x2013}\unicode{x2013}$unlabeled examples as they arrive$\unicode{x2013}\unicode{x2013}$allows our proposed In-Context Risk Minimization (ICRM) algorithm to zoom-in on the test environment risk minimizer, leading to significant out-of-distribution performance improvements. From all of this, two messages are worth taking home. Researchers in domain generalization should consider environment as context, and harness the adaptive power of in-context learning. Researchers in LLMs should consider context as environment, to better structure data towards generalization.

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

↑