Proceedings

Searching for Programmatic Policies in Semantic Spaces

Download BibTeX Cite

Proceedings of the Thirty-Third International Joint Conference on Artificial Intelligence. Main Track. Pages 5990-5998.

https://doi.org/10.24963/ijcai.2024/662

Abstract

Syntax-guided synthesis is commonly used to generate programs encoding policies. In this approach, the set of programs, that can be written in a domain-specific language defines the search space, and an algorithm searches within this space for programs that encode strong policies. In this paper, we propose an alternative method for synthesizing programmatic policies, where we search within an approximation of the language's semantic space. We hypothesized that searching in semantic spaces is more sample-efficient compared to syntax-based spaces. Our rationale is that the search is more efficient if the algorithm evaluates different agent behaviors as it searches through the space, a feature often missing in syntax-based spaces. This is because small changes in the syntax of a program often do not result in different agent behaviors. We define semantic spaces by learning a library of programs that present different agent behaviors. Then, we approximate the semantic space by defining a neighborhood function for local search algorithms, where we replace parts of the current candidate program with programs from the library. We evaluated our hypothesis in a real-time strategy game called MicroRTS. Empirical results support our hypothesis that searching in semantic spaces can be more sample-efficient than searching in syntax-based spaces.

  1. [Aguas et al., 2018] Javier Segovia Aguas, Sergio Jiménez, and Anders Jonsson. Computing hierarchical finite state controllers with classical planning. Journal of Artificial Intelligence Research, 62:755-797, 2018.
  2. [Aleixo and Lelis, 2023] David S. Aleixo and Levi H. S. Lelis. Show me the way! Bilevel search for synthesiz- ing programmatic strategies. In Proceedings of the AAAI Conference on Artificial Intelligence. AAAI Press, 2023.
  3. [Alur et al., 2013] Rajeev Alur, Rastislav Bodik, Garvit Ju- niwal, Milo Martin, Mukund Raghothaman, Sanjit Seshia, Rishabh Singh, Armando Solar-Lezama, Emina Torlak, and Abhishek Udupa. Syntax-guided synthesis. pages 1- 17, 10 2013.
  4. [Barriga et al., 2017a] Nicolas Barriga, Marius Stanescu, and Michael Buro. Combining strategic learning and tac- tical search in real-time strategy games. In Proceedings of the AAAI Conference on Artificial Intelligence and Inter- active Digital Entertainment, pages 9-15. AAAI, 2017.
  5. [Barriga et al., 2017b] Nicolas Barriga, Marius Stanescu, and Michael Buro. Game tree search based on non- deterministic action scripts in real-time strategy games. IEEE Transactions on Computational Intelligence and AI in Games, pages 69-77, 2017.
  6. [Bastani et al., 2018] Osbert Bastani, Yewen Pu, and Ar- mando Solar-Lezama. Verifiable reinforcement learning via policy extraction. In Advances in Neural Information Processing Systems, pages 2499-2509, 2018.
  7. [Bonet et al., 2010] Blai Bonet, Héctor Palacios, and Héctor Geffner. Automatic derivation of finite-state machines for behavior control. In Proceedings of the AAAI Conference on Artificial Intelligence, page 1656-1659. AAAI Press, 2010.
  8. [Bowers et al., 2023] Matthew Bowers, Theo X. Olausson, Lionel Wong, Gabriel Grand, Joshua B. Tenenbaum, Kevin Ellis, and Armando Solar-Lezama. Top-down syn- thesis for library learning. Procedings of the ACM on Pro- gramming Languages, 7(POPL), 2023.
  9. [Cao et al., 2023] David Cao, Rose Kunkel, Chandrakana Nandi, Max Willsey, Zachary Tatlock, and Nadia Polikar- pova. Babble: Learning better abstractions with e-graphs and anti-unification. Procedings of the ACM on Program- ming Languages, 7(POPL), 2023.
  10. [Carvalho et al., 2024] Tales Henrique Carvalho, Kenneth Tjhia, and Levi H. S. Lelis. Reclaiming the source of pro- grammatic policies: Programmatic versus latent spaces. In The Twelfth International Conference on Learning Repre- sentations, 2024.
  11. [Dahlbom and Niklasson, 2006] Anders Dahlbom and Lars Niklasson. Goal-directed hierarchical dynamic scripting for rts games. In Proceedings of the AAAI Conference on Artificial Intelligence and Interactive Digital Entertain- ment, pages 21-28, 2006.
  12. [Ellis et al., 2023] Kevin Ellis, Lionel Wong, Maxwell Nye, Mathias Sabl-Meyer, Luc Cary, Lore Pozo, Luke Hewitt, Armando Solar-Lezama, and Joshua Tenenbaum. Dream- coder: growing generalizable, interpretable knowledge with wake-sleep bayesian program learning. Philosoph- ical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 381, 06 2023.
  13. [Hu and De Giacomo, 2013] Yuxiao Hu and Giuseppe De Giacomo. A generic technique for synthesizing bounded finite-state controllers. Proceedings of the International Conference on Automated Planning and Scheduling, 23(1):109-116, 2013.
  14. [Husien and Schewe, 2016] Idress Husien and Sven Schewe. Program generation using simulated annealing and model checking. In Rocco De Nicola and Eva Kühn, editors, Soft- ware Engineering and Formal Methods, pages 155-171. Springer International Publishing, 2016.
  15. [Inala et al., 2020] Jeevana Priya Inala, Osbert Bastani, Zenna Tavares, and Armando Solar-Lezama. Synthe- sizing programmatic policies that inductively generalize. In International Conference on Learning Representations. OpenReview.net, 2020.
  16. [Koza, 1992] J. R. Koza. Genetic Programming: On the Pro- gramming of Computers by Means of Natural Selection. MIT Press, Cambridge, MA, 1992.
  17. [Lanctot et al., 2017] Marc Lanctot, Vinicius Zambaldi, Au- drunas Gruslys, Angeliki Lazaridou, Karl Tuyls, Julien Pérolat, David Silver, and Thore Graepel. A unified game- theoretic approach to multiagent reinforcement learning. Advances in neural information processing systems, 30, 2017.
  18. [Lelis, 2021] Levi H. S. Lelis. Planning algorithms for zero- sum games with exponential action spaces: A unifying perspective. In Proceedings of the Twenty-Ninth Interna- tional Conference on International Joint Conferences on Artificial Intelligence, pages 4892-4898, 2021.
  19. [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. arXiv preprint arXiv:2301.12950, 2023.
  20. [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 Artifi- cial Intelligence, volume 35, pages 381-389, 2021.
  21. [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 strate- gies. In Proceedings of the AAAI Conference on Artificial Intelligence, pages 7761-7769. AAAI Press, 2022.
  22. [Moraes and Lelis, 2018] Rubens O. Moraes and Levi H. S. Lelis. Asymmetric action abstractions for multi-unit con- trol in adversarial real-time scenarios. In Proceedings of the Thirty-Second AAAI Conference on Artificial Intelli- gence. AAAI, 2018.
  23. [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
  24. [Ontañón, 2017] Santiago Ontañón. Combinatorial multi- armed bandits for real-time strategy games. Journal of Artificial Intelligence Research, 58:665-702, 2017.
  25. [Ponsen and Spronck, 2004] Marc Ponsen and Pieter Spronck. Improving adaptive game AI with evolutionary learning. PhD thesis, Citeseer, 2004.
  26. [Schulman et al., 2017] John Schulman, Filip Wolski, Pra- fulla Dhariwal, Alec Radford, and Oleg Klimov. Prox- imal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
  27. [Silva et al., 2018] Cleyton Silva, Rubens O Moraes, Levi HS Lelis, and Kobi Gal. Strategy generation for multi-unit real-time games via voting. IEEE Transactions on Games, 2018.
  28. [Spronck et al., 2004] Pieter Spronck, Ida Sprinkhuizen- Kuyper, and Eric Postma. Online adaptation of game op- ponent ai with dynamic scripting. International Journal of Intelligent Games and Simulation, 3(1):45-53, 2004.
  29. [Srivastava et al., 2011] Siddharth Srivastava, Neil Immer- man, Shlomo Zilberstein, and Tianjiao Zhang. Directed search for generalized plans using classical planners. In Proceedings of the International Conference on Auto- mated Planning and Scheduling. AAAI, 2011.
  30. [Trivedi et al., 2021] Dweep Trivedi, Jesse Zhang, Shao-Hua Sun, and Joseph J Lim. Learning to synthesize programs as interpretable and generalizable policies. Advances in neural information processing systems, 34:25146-25163, 2021.
  31. [Verma et al., 2018a] Abhinav Verma, Vijayaraghavan Mu- rali, Rishabh Singh, Pushmeet Kohli, and Swarat Chaud- huri. Programmatically interpretable reinforcement learn- ing. In Proceedings of the International Conference on Machine Learning, pages 5052-5061, 2018.
  32. [Verma et al., 2018b] Abhinav Verma, Vijayaraghavan Mu- rali, Rishabh Singh, Pushmeet Kohli, and Swarat Chaud- huri. Programmatically interpretable reinforcement learn- ing. In International Conference on Machine Learning, pages 5045-5054. PMLR, 2018.
  33. [Verma et al., 2019] Abhinav Verma, Hoang Le, Yisong Yue, and Swarat Chaudhuri. Imitation-projected program- matic reinforcement learning. In Advances in Neural In- formation Processing Systems, volume 32, pages 1-12.
  34. Curran Associates, Inc., 2019.

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

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