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

可扩展的上下文Q学习

Scalable In-Context Q-Learning

Nanjing University(南京大学);Australian National University(澳大利亚国立大学);Tianjin University(天津大学);University of Technology Sydney(悉尼大学)

Jinmei Liu, Fuhong Liu, Zhenhong Sun, Jianye Hao, Huaxiong Li, Bo Wang, Daoyi Dong, Chunlin Chen, Zhi Wang

AI总结:

本文提出S-ICQL框架,通过动态规划和世界建模实现高效的奖励最大化和任务泛化,适用于决策领域。

摘要:

最近语言模型的进步展示了显著的上下文学习能力,促使探索上下文强化学习(ICRL)以扩展到决策领域。由于涉及更复杂的动态和时间相关性,现有的ICRL方法可能在学习亚最优轨迹和实现精确的上下文推断方面面临挑战。在本文中,我们提出可扩展的上下文Q学习(S-ICQL),一种创新框架,利用动态规划和世界建模来引导ICRL向高效的奖励最大化和任务泛化发展,同时保留监督预训练的可扩展性和稳定性。我们设计了一种基于提示的多头Transformer架构,通过单独的头同时预测最优策略和上下文价值函数。我们预训练了一个通用的世界模型以捕捉任务相关的信息,使能够构建一个紧凑的提示,以促进快速且精确的上下文推断。在训练过程中,我们通过拟合状态价值函数到Q函数的上分位数进行迭代策略改进,并通过优势加权回归将上下文价值函数蒸馏到策略提取中。在各种离散和连续环境中的广泛实验显示,与各种类型的基线相比,表现有持续的提升,尤其是在学习亚最优数据时。我们的代码可在https://github.com/NJU-RL/SICQL获取。

英文摘要:

Recent advancements in language models have demonstrated remarkable in-context learning abilities, prompting the exploration of in-context reinforcement learning (ICRL) to extend the promise to decision domains. Due to involving more complex dynamics and temporal correlations, existing ICRL approaches may face challenges in learning from suboptimal trajectories and achieving precise in-context inference. In the paper, we propose \textbf{S}calable \textbf{I}n-\textbf{C}ontext \textbf{Q}-\textbf{L}earning (\textbf{S-ICQL}), an innovative framework that harnesses dynamic programming and world modeling to steer ICRL toward efficient reward maximization and task generalization, while retaining the scalability and stability of supervised pretraining. We design a prompt-based multi-head transformer architecture that simultaneously predicts optimal policies and in-context value functions using separate heads. We pretrain a generalized world model to capture task-relevant information, enabling the construction of a compact prompt that facilitates fast and precise in-context inference. During training, we perform iterative policy improvement by fitting a state value function to an upper-expectile of the Q-function, and distill the in-context value functions into policy extraction using advantage-weighted regression. Extensive experiments across a range of discrete and continuous environments show consistent performance gains over various types of baselines, especially when learning from suboptimal data. Our code is available at \textcolor{magenta}{\href{https://github.com/NJU-RL/SICQL}{https://github.com/NJU-RL/SICQL}}.

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

↑