Proceedings

InnateCoder: Learning Programmatic Options with Foundation Models

Download BibTeX Cite

Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence. Main Track. Pages 7652-7660.

https://doi.org/10.24963/ijcai.2025/851

Abstract

Outside of transfer learning settings, reinforcement learning agents start their learning process from a clean slate. As a result, such agents have to go through a slow process to learn even the most obvious skills required to solve a problem. In this paper, we present InnateCoder, a system that leverages human knowledge encoded in foundation models to provide programmatic policies that encode ``innate skills'' in the form of temporally extended actions, or options. In contrast to existing approaches to learning options, InnateCoder learns them from the general human knowledge encoded in foundation models in a zero-shot setting, and not from the knowledge the agent gains by interacting with the environment. Then, InnateCoder searches for a programmatic policy by combining the programs encoding these options into larger and more complex programs. We hypothesized that InnateCoder's way of learning and using options could improve the sampling efficiency of current methods for learning programmatic policies. Empirical results in MicroRTS and Karel the Robot support our hypothesis, since they show that InnateCoder is more sample efficient than versions of the system that do not use options or learn them from experience.

  1. [Achiam et al., 2018] Joshua Achiam, Harrison Edwards, Dario Amodei, and Pieter Abbeel. Variational option dis- covery algorithms. arXiv preprint arXiv:1807.10299, 2018.
  2. [Alikhasi and Lelis, 2024] Mahdi Alikhasi and Levi H. S. Lelis. Unveiling options with neural network decomposi- tion. In The Twelfth International Conference on Learning Representations, 2024.
  3. [Bacon et al., 2017] Pierre-Luc Bacon, Jean Harb, and Doina Precup. The option-critic architecture. In Proceedings of the AAAI conference on artificial intelligence, volume 31, 2017.
  4. [Baranes and Oudeyer, 2013] Adrien Baranes and Pierre- Yves Oudeyer. Active learning of inverse models with intrinsically motivated goal exploration in robots. Robotics and Autonomous Systems, 61:49-73, 2013.
  5. [Bastani et al., 2018] Osbert Bastani, Yewen Pu, and Ar- mando Solar-Lezama. Verifiable reinforcement learning via policy extraction. In Proceedings of the International Con- ference on Neural Information Processing Systems, pages 2499-2509, 2018.
  6. [Bellemare et al., 2020] Marc G. Bellemare, Salvatore Can- dido, Pablo S. Castro, Jun Gong, Marlos C. Machado, Subhodeep Moitra, Sameera Ponda, and Ziyu Wang. Au- tonomous navigation of stratospheric balloons using rein- forcement learning. Nature, 588:77-82, 2020.
  7. [Carvalho et al., 2024] Tales Henrique Carvalho, Kenneth Tjhia, and Levi H. S. Lelis. Reclaiming the source of programmatic policies: Programmatic versus latent spaces. In The Twelfth International Conference on Learning Rep- resentations, 2024.
  8. [Chen et al., 2018] Xinyun Chen, Chang Liu, and Dawn Song. Execution-guided neural program synthesis. In Inter- national Conference on Learning Representations, 2018.
  9. [Eysenbach et al., 2019] Benjamin Eysenbach, Abhishek Gupta, Julian Ibarz, and Sergey Levine. Diversity is all you need: Learning skills without a reward function. In Inter- national Conference on Learning Representations (ICLR), 2019. Frans et al., 2017]
  10. Kevin Frans, Jonathan Ho, Xi Chen, Pieter Abbeel, and John Schulman. Meta learning shared hierarchies. arXiv preprint arXiv:1710.09767, 2017.
  11. [Goodfriend, 2024] Scott Goodfriend. A competition win- ning deep reinforcement learning agent in microrts, 2024.
  12. [Igl et al., 2020] Maximilian Igl, Andrew Gambardella, Jinke He, Nantas Nardelli, N Siddharth, Wendelin Böhmer, and Shimon Whiteson. Multitask soft option learning. In Con- ference on Uncertainty in Artificial Intelligence, pages 969- 978, 2020.
  13. [Jinnai et al., 2020] Yuu Jinnai, Jee W. Park, Marlos C. Machado, and George Konidaris. Exploration in reinforce- ment learning with deep covering options. In International Conference on Learning Representations, 2020.
  14. [Khetarpal et al., 2022] Khimya Khetarpal, Matthew Riemer, Irina Rish, and Doina Precup. Towards continual reinforce- ment learning: A review and perspectives. J. Artif. Intell. Res., 75:1401-1476, 2022.
  15. [Klissarov and Machado, 2023] Martin Klissarov and Mar- los C. Machado. Deep laplacian-based options for temporally-extended exploration. In International Con- ference on Machine Learning, 2023.
  16. [Klissarov et al., 2024] Martin Klissarov, Pierluca D'Oro, Sh- agun Sodhani, Roberta Raileanu, Pierre-Luc Bacon, Pascal Vincent, Amy Zhang, and Mikael Henaff. Motif: Intrinsic motivation from artificial intelligence feedback. In The Twelfth International Conference on Learning Representa- tions, 2024.
  17. [Konidaris and Barto, 2007] George Konidaris and Andrew Barto. Building portable options: Skill transfer in rein- forcement learning. In International Joint Conference on Artificial Intelligence, pages 895-900, 2007. IJCAI
  18. [Liu et al., 2023] Guan-Ting Liu, En-Pei Hu, Pu-Jen Cheng, Hung-Yi Lee, and Shao-Hua Sun. Hierarchical program- matic reinforcement learning via learning to compose pro- grams. In Proceedings of the International Conference on Machine Learning, 2023.
  19. [Machado et al., 2017] Marlos C. Machado, Marc G. Belle- mare, and Michael Bowling. A laplacian framework for option discovery in reinforcement learning. In International Conference on Machine Learning (ICML), 2017.
  20. [Machado et al., 2018] Marlos C. Machado, Clemens Rosen- baum, Xiaoxiao Guo, Miao Liu, Gerald Tesauro, and Mur- ray Campbell. Eigenoption discovery through the deep successor representation. In International Conference on Learning Representations, 2018.
  21. [Mann and Mannor, 2014] Timothy Mann and Shie Mannor. Scaling up approximate value iteration with options: Bet- ter policies with fewer iterations. In Proceedings of the International Conference on Machine Learning, volume 32 of Proceedings of Machine Learning Research, pages 127- 135, 2014.
  22. [Mariño et al., 2021] Julian R. H. Mariño, Rubens O. Moraes, Tassiana C. Oliveira, Claudio Toledo, and Levi H. S. Lelis. Programmatic strategies for real-time strategy games. In Proceedings of the AAAI Conference on Artificial Intelli- gence, pages 381-389, 2021.
  23. [Medeiros et al., 2022] Leandro C. Medeiros, David S. Aleixo, and Levi H. S. Lelis. What can we learn even from the weakest? Learning sketches for programmatic strategies. In Proceedings of the AAAI Conference on Arti- ficial Intelligence, pages 7761-7769. AAAI Press, 2022.
  24. [Moraes and Lelis, 2024] Rubens O. Moraes and Levi H. S. Lelis. Searching for programmatic policies in semantic spaces. In Proceedings of the International Joint Confer- ence on Artificial Intelligence, 2024. IJCAI
  25. [Moraes et al., 2023] Rubens O. Moraes, David S. Aleixo, Lucas N. Ferreira, and Levi H. S. Lelis. Choosing well your opponents: How to guide the synthesis of program- matic strategies. In Proceedings of the International Joint Conference on Artificial Intelligence, pages 4847-4854, 2023. IJCAI
  26. [Moraes et al., 2025] Rubens O. Moraes, Quazi Asif Sad- mine, Hendrik Baier, and Levi H. S. Lelis. Innatecoder: Learning programmatic options with foundational models (extended version). 2025.
  27. [Ontañón, 2017] Santiago Ontañón. Combinatorial multi- armed bandits for real-time strategy games. Journal of Artificial Intelligence Research, 58:665-702, 2017.
  28. [Pattis, 1994] Richard E Pattis. Karel the robot: a gentle introduction to the art of programming. John Wiley & Sons, 1994.
  29. [Precup et al., 1998] Doina Precup, Richard S. Sutton, and Satinder Singh. Theoretical results on reinforcement learn- ing with temporally abstract options. In Claire Nedellec and Céline Rouveirol, editors, Machine Learning: ECML-98, 10th European Conference on Machine Learning, volume 1398 of Lecture Notes in Computer Science, pages 382-393. Springer, 1998.
  30. [Qiu and Zhu, 2022] Wenjie Qiu and He Zhu. Programmatic reinforcement learning without oracles. In The Tenth Inter- national Conference on Learning Representations, 2022.
  31. [Sutton et al., 1999] Richard S Sutton, Doina Precup, and Satinder Singh. Between MDPs and semi-MDPs: A frame- work for temporal abstraction in reinforcement learning. Artificial intelligence, 112(1-2):181-211, 1999.
  32. [Tessler et al., 2017] Chen Tessler, Shahar Givony, Tom Za- havy, Daniel Mankowitz, and Shie Mannor. A deep hi- erarchical approach to lifelong learning in minecraft. In Proceedings of the 31st AAAI Conference on Artificial In- telligence, pages 1553-1561, 2017.
  33. [Tinbergen, 1951] Nikolaas Tinbergen. The Study of Instinct. Oxford University Press, 1951.
  34. [Trivedi et al., 2021] Dweep Trivedi, Jesse Zhang, Shao-Hua Sun, and Joseph J. Lim. Learning to synthesize programs as interpretable and generalizable policies. In Advances in Neural Information Processing Systems, pages 25146- 25163, 2021.
  35. [Verma et al., 2018] A. Verma, V. Murali, R. Singh, P. Kohli, and S. Chaudhuri. Programmatically interpretable rein- forcement learning. In Proceedings of the International Conference on Machine Learning, pages 5052-5061, 2018.
  36. [Verma et al., 2019] Abhinav Verma, Hoang Le, Yisong Yue, and Swarat Chaudhuri. Imitation-projected programmatic reinforcement learning. Advances in Neural Information Processing Systems, 32, 2019.
  37. [Zhu et al., 2023] Zhuangdi Zhu, Kaixiang Lin, Anil K. Jain, and Jiayu Zhou. Transfer learning in deep reinforcement learning: A survey. IEEE Trans. Pattern Anal. Mach. Intell., 45(11):13344-13362, 2023.

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

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