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

大型语言模型可以实现策略迭代

Large Language Models can Implement Policy Iteration

University of Michigan(密歇根大学)

Ethan Brooks, Logan Walls, Richard L. Lewis, Satinder Singh

AI总结:

本文提出 ICPI 算法,利用基础模型通过试错交互迭代更新提示来实现无专家演示、无梯度的上下文强化学习,并在无领域先验知识的 Codex 上验证。

摘要:

本工作提出了 In-Context Policy Iteration(上下文策略迭代),这是一种使用基础模型在上下文中执行强化学习(RL)的算法。尽管将基础模型应用于 RL 已受到相当多关注,但大多数方法要么依赖于:(1)整理专家演示(通过人工设计或特定任务预训练),要么依赖于(2)使用梯度方法适配感兴趣的任务(微调或训练适配器层)。这两类技术都有缺点:收集演示耗费人力,而且依赖演示的算法无法超越演示来源的专家;所有梯度技术本质上都很慢,牺牲了最初使上下文学习具有吸引力的“少样本”特性。在本工作中,我们提出了 ICPI 算法,它无需专家演示或梯度即可学习执行 RL 任务。相反,我们提出了一种策略迭代方法,其中提示内容是学习的全部所在。ICPI 通过与 RL 环境的试错交互,迭代更新其用于推导策略的提示内容。为了消除权重内学习的作用(Decision Transformer 等方法严重依赖这种学习),我们使用 Codex 演示了该算法;Codex 是一个语言模型,对我们评估它所用的领域没有先验知识。

英文摘要:

This work presents In-Context Policy Iteration, an algorithm for performing Reinforcement Learning (RL), in-context, using foundation models. While the application of foundation models to RL has received considerable attention, most approaches rely on either (1) the curation of expert demonstrations (either through manual design or task-specific pretraining) or (2) adaptation to the task of interest using gradient methods (either fine-tuning or training of adapter layers). Both of these techniques have drawbacks. Collecting demonstrations is labor-intensive, and algorithms that rely on them do not outperform the experts from which the demonstrations were derived. All gradient techniques are inherently slow, sacrificing the "few-shot" quality that made in-context learning attractive to begin with. In this work, we present an algorithm, ICPI, that learns to perform RL tasks without expert demonstrations or gradients. Instead we present a policy-iteration method in which the prompt content is the entire locus of learning. ICPI iteratively updates the contents of the prompt from which it derives its policy through trial-and-error interaction with an RL environment. In order to eliminate the role of in-weights learning (on which approaches like Decision Transformer rely heavily), we demonstrate our algorithm using Codex, a language model with no prior knowledge of the domains on which we evaluate it.

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

↑