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}}.
Towards Large-Scale In-Context Reinforcement Learning by Meta-Training in Randomized Worlds
University of Science and Technology of China(中国科学技术大学);Shenzhen Institute of Artificial Intelligence and Robotics for Society(深圳人工智能与机器人研究院);Baidu Inc(百度公司)
A Comprehensive Survey on Inverse Constrained Reinforcement Learning: Definitions, Progress and Challenges
The Chinese University of Hong Kong, Shenzhen(香港中文大学(深圳));University of Waterloo(滑铁卢大学);Pennsylvania State University(宾夕法尼亚州立大学);Vector Institute(向量研究所)
Learning in Context, Guided by Choice: A Reward-Free Paradigm for Reinforcement Learning with Transformers
Department of Electrical and Computer Engineering, Duke University, Durham, US(电子工程系,杜克大学,达勒姆,美国);Department of Computer Science, Duke University, Durham, US(计算机科学系,杜克大学,达勒姆,美国);Department of Biostatistics and Bioinformatics, Duke University, Durham, US(生物统计学与生物信息学系,杜克大学,达勒姆,美国);Department of Statistics and Data Science, Yale University, New Haven, US(统计学与数据科学系,耶鲁大学,纽 Haven,美国)
In-Context Reinforcement Learning via Communicative World Models
Department of Computer and Information Sciences, Fordham University(福特汉姆大学计算机与信息科学系);Department of Systems Engineering, City University of Hong Kong(香港城市大学系统工程系);IBM Research(IBM研究院)
Benchmarking the Limits of In-Context Reinforcement Learning for Ad-Hoc Teamwork
C$^{2}$DL, Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所C²DL实验室);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);School of Future Technology, University of Chinese Academy of Sciences(中国科学院大学未来技术学院);Shenzhen Institutes of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究所);Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系);University of Science and Technology of China(中国科学技术大学);Qwen Team, Alibaba Group(阿里集团Qwen团队)
Robust In-Context Reinforcement Learning Under Reward Poisoning Attacks
Department of Computing Science, University of Alberta, Edmonton, Canada.(阿尔伯塔大学计算机科学系,加拿大埃德蒙顿);Alberta Machine Intelligence Institute (Amii), Edmonton, Canada.(阿尔伯塔机器智能研究所(Amii),加拿大埃德蒙顿)
Can LLMs Reason Over Non-Text Modalities in a Training-Free Manner? A Case Study with In-Context Representation Learning
College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算机与数据科学学院);AI-X, Interdisciplinary Graduate Programme, Nanyang Technological University(南洋理工大学人工智能交叉研究生项目);Lee Kong Chian School of Medicine, Nanyang Technological University(南洋理工大学李科钦医学院);Centre of AI in Medicine (C-AIM), Nanyang Technological University(南洋理工大学医学人工智能中心);University of Toronto(多伦多大学);Brigham and Women’s Hospital, Harvard Medical School(哈佛医学院布里洛妇女医院);Massachusetts Institute of Technology(麻省理工学院)
ICPRL: Acquiring Physical Intuition from Interactive Control
Institute of Software, Chinese Academy of Science(中国科学院软件研究所);University of Chinese Academy of Sciences(中国科学院大学);Alibaba Group(阿里巴巴集团);RUC(中国人民大学);PUC-Rio(里约热内卢联邦大学)
In-Context Reinforcement Learning From Suboptimal Historical Data
Department of Electrical and Computer Engineering, Duke University, Durham, US(电气与计算机工程系,杜克大学,达勒姆,美国);Department of Biostatistics and Bioinformatics, Duke University, Durham, US(生物统计学与生物信息学系,杜克大学,达勒姆,美国);Department of Statistics and Data Science, Yale University, New Haven, US(统计学与数据科学系,耶鲁大学,新 Haven,美国)
In-Context Reinforcement Learning for Tool Use in Large Language Models
National University of Singapore(新加坡国立大学);Salesforce AI Research(Salesforce AI研究);University of California Berkeley(加州大学伯克利分校);University of California, Santa Cruz(加州大学圣克ruz分校)
Scalable Context-Aware Graph Attention for Unsupervised Anomaly Detection in Large-Scale Mobile Networks
Telenor Research and Innovation(Telenor研究与创新);Telenor Denmark OSS & Tech Analytics(Telenor丹麦OSS与技术分析);Norwegian University of Science and Technology (NTNU)(挪威科学与技术大学(NTNU));SINTEF Digital(SINTEF数字);Hance
SHINE: A Scalable In-Context Hypernetwork for Mapping Context to LoRA in a Single Pass
Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院);Technion, NVIDIA(技术学院与NVIDIA);University of Oxford(牛津大学);School of Electronics Engineering(电子工程学院);Computer Science, Peking University(计算机科学,北京大学)
Scalable Defense against In-the-wild Jailbreaking Attacks with Safety Context Retrieval
School of EECS, Peking University(电子工程系,北京大学);School of Mathematical Sciences, Peking University(数学系,北京大学);State Key Lab of General Artificial Intelligence, School of Intelligence Science and Technology, Peking University(通用人工智能国家重点实验室,智能科学与技术学校,北京大学);Institute for Artificial Intelligence, Peking University(人工智能研究院,北京大学)