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

智能体式上下文学习:Transformer在闭环交互中能学习到什么算法?

Agentic In-Context Learning: What Algorithms Can Transformers Learn in Closed-Loop Interaction?

Tsinghua University(清华大学);Beijing Institute of Mathematical Sciences and Applications(北京数学科学与应用研究院)

Shiguang Wu, Yaqing Wang, Quanming Yao

AI总结:

该研究提出智能体式上下文学习(Agentic ICL),构建因果Transformer近似主动学习等算法,通过实验证明Transformer可学习执行递归,不同奖励会产生不同决策策略,过程监督与结果最优偏好对齐可改变学习决策。

摘要:

上下文学习(ICL)的学习算法视角研究固定参数的Transformer如何从提供的示例中学习。语言模型智能体通过交互扩展了这一设置:它们的动作决定了接下来进入上下文的证据,我们将这种机制称为智能体式上下文学习(Agentic ICL)。现有研究大多依赖外部提供的上下文或带有奖励的交互历史,而关于通用工具使用智能体的工作缺乏学习算法视角。我们通过状态、更新和决策规则来表示交互式学习者,涵盖主动学习、多臂老虎机和在线强化学习(RL)。为了保证表达能力,我们构建了因果Transformer,使其在有限时间范围内近似这些算法,并对由此产生的回报损失进行了界定。在训练方面,我们明确了优化过程奖励何时能保留最大化最终结果的行为。蒸馏实验表明,Transformer可以学习执行三种代表性递归。随后,我们像RL后训练一样,从结果奖励或过程奖励中训练模型,无需神谕动作或状态目标。不同的奖励会产生不同的决策策略,使过程监督与结果最优动作偏好对齐会相应改变学习到的决策,这种行为差异在预训练语言模型中通过文本改写持续存在。

英文摘要:

The learning algorithm view of in-context learning (ICL) studies how fixed-parameter Transformers learn from supplied examples. Language model agents extend this setting through interaction: their actions determine what evidence enters context next. We call this regime Agentic In-Context Learning (Agentic ICL). Existing studies largely depend on externally supplied contexts or reward-bearing interaction histories, while work on general tool-using agents lacks a learning algorithm view. We represent an interactive learner by its state, update, and decision rule, covering active learning, bandits, and online reinforcement learning (RL). For expressivity, we construct causal Transformers that approximate these algorithms over a finite horizon, and bound the resulting loss in return. For training, we characterize when optimizing process rewards preserves behavior that maximizes the final outcome. Distillation experiments show that Transformers can learn to execute three representative recursions. We then train models from outcome or process rewards without oracle action or state targets, as in RL post-training. Different rewards yield distinct decision policies. Improving the alignment of process supervision with outcome-optimal action preferences shifts learned decisions accordingly. Such behavioral differences persist in a pretrained language model across textual paraphrases.

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

↑