Proceedings

In-Context Reinforcement Learning via Communicative World Models

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 253-261.

https://doi.org/10.24963/ijcai.2026/29

Abstract

Reinforcement learning (RL) agents often struggle to generalize to new tasks and contexts without updating their parameters, mainly because their learned representations and policies are overfit to the specifics of their training environments. To boost agents' in-context RL (ICRL) ability, this work formulates ICRL as a two-agent emergent communication problem and introduces CORAL (Communicative Representation for Adaptive RL), a framework that learns a transferable communicative context by functionally separating latent representation learning from control. In CORAL, an Information Agent (IA) is pre-trained as a world model on a diverse distribution of tasks. Its objective is not direct return maximization, but world modeling and distilling its understanding into concise messages. The emergent communication protocol is shaped by a novel Causal Influence Loss, which measures the effect that the message has on the next action. During deployment, the previously trained IA serves as a fixed contextualizer for a new Control Agent (CA), which learns to solve tasks by interpreting the provided communicative context. Our experiments demonstrate that this approach enables the CA to achieve significant gains in sample efficiency and successfully perform zero-shot adaptation with the help of pre-trained IA in diverse online and offline environments, validating the efficacy of learning a transferable communicative representation.

  1. [Bauer et al., 2023] Jakob Bauer, Kate Baumli, et al. Human- timescale adaptation in an open-ended task space. In ICML, 2023.
  2. [Bradbury et al., 2018] James Bradbury, Roy Frostig, Peter Hawkins, et al. JAX: composable transformations of Python+NumPy programs. http://github.com/jax-ml/jax, 2018. Link
  3. [Chen et al., 2021] Lili Chen, Kevin Lu, Aravind Rajeswaran, et al. Decision transformer: Reinforcement learning via sequence modeling. In NeurIPS, volume 34, pages 15084- 15097, 2021.
  4. [Chen et al., 2024] Jiayu Chen, Bhargav Ganguly, Yang Xu, et al. Deep generative models for offline policy learning: Tu- torial, survey, and perspectives on future directions. TMLR, 2024.
  5. [Cobbe et al., 2020] Karl Cobbe, Chris Hesse, Jacob Hilton, and John Schulman. Leveraging procedural generation to benchmark reinforcement learning. In ICML, pages 2048- 2056. PMLR, 2020.
  6. [Crawford and Sobel, 1982] Vincent P Crawford and Joel So- bel. Strategic information transmission. Econometrica, 50(6):1431, 1982.
  7. [Dong et al., 2024] Qingxiu Dong, Lei Li, Damai Dai, et al. A survey on in-context learning. In Proceedings of the 2024 Conference on Empirical Methods in Natural Lan- guage Processing, pages 1107-1128, Miami, Florida, USA, November 2024. Association for Computational Linguis- tics.
  8. [Duan et al., 2016] Yan Duan, John Schulman, Xi Chen, Pe- ter L Bartlett, Ilya Sutskever, and Pieter Abbeel. RLˆ2: Fast reinforcement learning via slow reinforcement learn- ing. arXiv:1611.02779, 2016.
  9. [Espeholt et al., 2018] Lasse Espeholt, Hubert Soyer, Remi Munos, et al. Impala: Scalable distributed deep-rl with importance weighted actor-learner architectures. In ICML, pages 1407-1416, 2018.
  10. [Eysenbach et al., 2022] Benjamin Eysenbach, Alexander Khazatsky, Sergey Levine, and Ruslan Salakhutdinov. Joint model-policy optimization of a lower bound for model- based RL. In NeurIPS, 2022.
  11. [Finn et al., 2017] Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In ICML, volume 70, pages 1126-1135, 2017.
  12. [Fu et al., 2020] Justin Fu, Aviral Kumar, Ofir Nachum, George Tucker, and Sergey Levine. D4rl: Datasets for deep data-driven reinforcement learning. arXiv preprint arXiv:2004.07219, 2020.
  13. [Furuta et al., 2021] Hiroki Furuta, Yutaka Matsuo, and Shix- iang Shane Gu. Generalized Decision Transformer for Offline Hindsight Information Matching. In ICLR, 2021.
  14. [Grigsby et al., 2024] Jake Grigsby, Linxi Fan, and Yuke Zhu. AMAGO: Scalable in-context rl for adaptive agents. In ICLR, 2024.
  15. [Ha and Schmidhuber, 2018] David Ha and Jürgen Schmid- huber. Recurrent world models facilitate policy evolution. In NeurIPS, volume 31, 2018.
  16. [Hafner et al., 2019] Danijar Hafner, Timothy Lillicrap, Ian Fischer, et al. Learning latent dynamics for planning from pixels. In ICML, volume 97 of Proceedings of Machine Learning Research, pages 2555-2565. PMLR, 09-15 Jun 2019.
  17. [Hafner et al., 2020] Danijar Hafner, Timothy Lillicrap, Jimmy Ba, and Mohammad Norouzi. Dream to control: Learning behaviors by latent imagination. In ICLR, 2020.
  18. [Hafner et al., 2025] Danijar Hafner, Jurgis Pasukonis, Jimmy Ba, and Timothy Lillicrap. Mastering di- verse control tasks through world models. Nature, 640(8059):647-653, 2025.
  19. [Hammar et al., 2025] Kim Hammar, Tao Li, Rolf Stadler, and Quanyan Zhu. Adaptive security response strategies through conjectural online learning. IEEE Transactions on Information Forensics and Security, 20:4055-4070, 2025.
  20. [Huang et al., 2024] Sili Huang, Jifeng Hu, Zhejian Yang, et al. Decision mamba: Reinforcement learning via hy- brid selective sequence modeling. In NeurIPS, 2024.
  21. [Ioffe and Szegedy, 2015] Sergey Ioffe and Christian Szegedy. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In ICML, pages 448-456. pmlr, 2015.
  22. [Kaelbling et al., 1998] Leslie Kaelbling, Michael Littman, and Anthony Cassandra. Planning and acting in partially ob- servable stochastic domains. Artificial intelligence, 101:99- 134, 1998.
  23. [Krishnamurthy et al., 2024] Akshay Krishnamurthy, Kee- gan Harris, Dylan J Foster, Cyril Zhang, and Aleksandrs Slivkins. Can LLM explore in-context? In ICML 2024 Workshop on In-Context Learning, 2024.
  24. [Laskin et al., 2023] Michael Laskin, Luyu Wang, Junhyuk Oh, et al. In-context reinforcement learning with algorithm distillation. In ICLR, 2023.
  25. [Lee et al., 2023] Jonathan Lee, Annie Xie, Aldo Pacchiano, et al. Supervised pretraining can learn in-context reinforce- ment learning. In NeurIPS, 2023.
  26. [Li and Zhu, 2023] Tao Li and Quanyan Zhu. On the price of transparency: A comparison between overt persuasion and covert signaling. In 2023 62nd IEEE Conference on Decision and Control (CDC), pages 4267-4272, 2023.
  27. [Li et al., 2023] Tao Li, Haozhe Lei, and Quanyan Zhu. Self- adaptive driving in nonstationary environments through conjectural online lookahead adaptation. In 2023 IEEE International Conference on Robotics and Automation (ICRA), pages 7205-7211, 2023.
  28. [Li et al., 2024] Tao Li, Henger Li, Yunian Pan, Tianyi Xu, Zizhan Zheng, and Quanyan Zhu. Meta Stackelberg game: Robust federated learning against adaptive and mixed poi- soning attacks. arXiv:2410.17431, 2024.
  29. [Li et al., 2025] Tao Li, Juan Guevara, Xinhong Xie, and Quanyan Zhu. Self-confirming transformer for belief- conditioned adaptation in offline multi-agent reinforcement learning. In Proceedings of the Seventh Workshop on Adap- tive and Learning Agents, pages 1-10, 2025.
  30. [Liu and Abbeel, 2023] Hao Liu and Pieter Abbeel. Emer- gent agentic transformer from chain of hindsight experi- ence. In International Conference on Machine Learning, pages 21362-21374. PMLR, 2023.
  31. [Lowe et al., 2019] Ryan Lowe, Jakob Foerster, Y-Lan Boureau, Joelle Pineau, and Yann Dauphin. On the pitfalls of measuring emergent communication. In Proceedings of the 18th International Conference on Autonomous Agents and MultiAgent Systems, pages 693-701, 2019.
  32. [Lu et al., 2022] Chris Lu, Jakub Kuba, Alistair Letcher, et al. Discovered policy optimisation. NeurIPS, 35:16455-16468, 2022.
  33. [Micheli et al., 2023] Vincent Micheli, Eloi Alonso, and Franc ¸ois Fleuret. Transformers are sample-efficient world models. In ICLR, 2023.
  34. [Mnih et al., 2015] Volodymyr Mnih, Koray Kavukcuoglu, David Silver, et al. Human-level control through deep reinforcement learning. Nature, 518(7540):529-533, 2015.
  35. [Moeini et al., 2025] Amir Moeini, Jiuqi Wang, Jacob Beck, et al. A survey of in-context reinforcement learning. arXiv:2502.07978, 2025.
  36. [Pan et al., 2025] Yunian Pan, Tao Li, and Quanyan Zhu. Model-agnostic hessian-free meta-policy optimization via zeroth-order estimation: A linear quadratic regulator per- spective. Dynamic Games and Applications, pages 1-40, 2025.
  37. [Pignatelli et al., 2024] Eduardo Pignatelli, Jarek Liesen, Robert Tjarko Lange, et al. Navix: Scaling minigrid envi- ronments with jax. arXiv:2407.19396, 2024.
  38. [Raparthy et al., 2024] Sharath Chandra Raparthy, Eric Ham- bro, Robert Kirk, Mikael Henaff, and Roberta Raileanu. Generalization to new sequential decision making tasks with in-context learning. In ICML, ICML, pages 42138- 42158, 2024.
  39. [Reed, 2022] Scott Reed. A generalist agent. Transactions on Machine Learning Research, 11 2022.
  40. [Robine et al., 2023] Jan Robine, Marc Höftmann, Tobias Uelwer, and Stefan Harmeling. Transformer-based world models are happy with 100k interactions. In The Eleventh International Conference on Learning Representations, 2023.
  41. [Schrittwieser et al., 2020] Julian Schrittwieser, Ioannis Antonoglou, Thomas Hubert, et al. Mastering atari, go, chess and shogi by planning with a learned model. Nature, 588(7839):604-609, 2020.
  42. [Schrittwieser et al., 2021] Julian Schrittwieser, Thomas Hu- bert, Amol Mandhane, et al. Online and offline rein- forcement learning by planning with a learned model. In NeurIPS, volume 34, pages 27580-27591, 2021.
  43. [Schulman et al., 2015] John Schulman, Philipp Moritz, Sergey Levine, Michael Jordan, and Pieter Abbeel. High- dimensional continuous control using generalized advan- tage estimation. arXiv:1506.02438, 2015.
  44. [Schulman et al., 2017] John Schulman, Filip Wolski, Pra- fulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv:1707.06347, 2017.
  45. [Schwarzer et al., 2021] Max Schwarzer, Nitarshan Rajku- mar, Michael Noukhovitch, et al. Pretraining represen- tations for data-efficient reinforcement learning. NeurIPS, 34:12686-12699, 2021.
  46. [Stooke et al., 2021] Adam Stooke, Kimin Lee, Pieter Abbeel, and Michael Laskin. Decoupling representation learning from reinforcement learning. In ICML, volume 139 of PMLR, pages 9870-9879, 2021.
  47. [Sukhbaatar et al., 2016] Sainbayar Sukhbaatar, Arthur Szlam, and Rob Fergus. Learning multiagent communica- tion with backpropagation. In NeurIPS, Red Hook, NY, USA, 2016.
  48. Curran Associates Inc. [Toledo and Prorok, 2024] Edan Toledo and Amanda Prorok. Codreamer: Communication-based decentralised world models. In Coordination and Cooperation for Multi-Agent Reinforcement Learning Methods Workshop, 2024.
  49. [Vaswani et al., 2017] Ashish Vaswani, Noam Shazeer, Niki Parmar, et al. Attention is all you need. NeurIPS, 30, 2017.
  50. [Wang et al., 2016] Jane X Wang, Zeb Kurth-Nelson, Dhruva Tirumala, et al. Learning to reinforcement learn. arXiv:1611.05763, 2016.
  51. [Wang et al., 2024] Jiuqi Wang, Ethan H Blaser, Hadi Daneshmand, and Shangtong Zhang. Transformers learn temporal difference methods for in-context reinforcement learning. In ICML 2024 Workshop on In-Context Learning, 2024.
  52. [Xu et al., 2022] Mengdi Xu, Yikang Shen, Shun Zhang, Yuchen Lu, Ding Zhao, Joshua Tenenbaum, and Chuang Gan. Prompting decision transformer for few-shot policy generalization. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceed- ings of Machine Learning Research, pages 24631-24645. PMLR, 17-23 Jul 2022.
  53. [Zhu et al., 2024] Changxi Zhu, Mehdi Dastani, and Shihan Wang. A survey of multi-agent deep reinforcement learning with communication. Autonomous Agents and Multi-Agent Systems, 38(1):4, 2024.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards