{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,14]],"date-time":"2026-11-14T20:54:16Z","timestamp":1794689656285,"version":"4.9.1"},"reference-count":32,"publisher":"Springer Science and Business Media LLC","issue":"2","license":[{"start":{"date-parts":[[2024,9,12]],"date-time":"2024-09-12T00:00:00Z","timestamp":1726099200000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"},{"start":{"date-parts":[[2024,9,12]],"date-time":"2024-09-12T00:00:00Z","timestamp":1726099200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0"}],"funder":[{"name":"US Government","award":["FA8075-18-D-0008"],"award-info":[{"award-number":["FA8075-18-D-0008"]}]},{"name":"US Government","award":["FA8075-18-D-0008"],"award-info":[{"award-number":["FA8075-18-D-0008"]}]},{"name":"US Government","award":["FA8075-18-D-0008"],"award-info":[{"award-number":["FA8075-18-D-0008"]}]},{"DOI":"10.13039\/100006919","name":"Massachusetts Institute of Technology","doi-asserted-by":"crossref","id":[{"id":"10.13039\/100006919","id-type":"DOI","asserted-by":"crossref"}]}],"content-domain":{"domain":["link.springer.com"],"crossmark-restriction":false},"short-container-title":["Genet Program Evolvable Mach"],"published-print":{"date-parts":[[2024,12]]},"abstract":"<jats:title>Abstract<\/jats:title><jats:p>Algorithms that use Large Language Models (LLMs) to evolve code arrived on the Genetic Programming (GP) scene very recently. We present LLM_GP, a general LLM-based evolutionary algorithm designed to evolve code. Like GP, it uses evolutionary operators, but its designs and implementations of those operators significantly differ from GP\u2019s because they enlist an LLM, using prompting and the LLM\u2019s pre-trained pattern matching and sequence completion capability. We also present a demonstration-level variant of LLM_GP and share its code. By presentations that range from formal to hands-on, we cover design and LLM-usage considerations as well as the scientific challenges that arise when using an LLM for genetic programming.<\/jats:p>","DOI":"10.1007\/s10710-024-09494-2","type":"journal-article","created":{"date-parts":[[2024,9,12]],"date-time":"2024-09-12T15:04:00Z","timestamp":1726153440000},"update-policy":"https:\/\/doi.org\/10.1007\/springer_crossmark_policy","source":"Crossref","is-referenced-by-count":62,"title":["Evolving code with a large language model"],"prefix":"10.1007","volume":"25","author":[{"given":"Erik","family":"Hemberg","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Stephen","family":"Moskal","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Una-May","family":"O\u2019Reilly","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"297","published-online":{"date-parts":[[2024,9,12]]},"reference":[{"key":"9494_CR1","unstructured":"A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A.N. Gomez, L. Kaiser, I. Polosukhin, Attention is all you need. In: Proceedings of the 31st International Conference on Neural Information Processing Systems. NIPS\u201917. (Curran Associates Inc., Red Hook, NY, USA, 2017) pp. 6000\u20136010"},{"key":"9494_CR2","unstructured":"Griffith, Shane, Kaushik Subramanian, Jonathan Scholz, L. Charles, Isbell, and Andrea Thomaz. Policy shaping: integrating human feedback with reinforcement learning.\" In Proceedings of the 26th International Conference on Neural Information Processing Systems 2, pp. 2625\u20132633. (2013)"},{"key":"9494_CR3","doi-asserted-by":"crossref","unstructured":"H. Bradley, H. Fan, T. Galanos, R. Zhou, D. Scott, J. Lehman, The openelm library: leveraging progress in language models for novel evolutionary algorithms. in Genetic Programming Theory and Practice XX  (2024)","DOI":"10.1007\/978-981-99-8413-8_10"},{"key":"9494_CR4","unstructured":"A. Chen, D. Dohan, D. So, Evoprompting: language models for code-level neural architecture search. Adv. Neural Inf. Process. Syst. 36 (2024)"},{"key":"9494_CR5","doi-asserted-by":"crossref","unstructured":"V. Liventsev, A. Grishina, A. H\u00e4rm\u00e4, L. Moonen, Fully autonomous programming with large language models. Preprint at arXiv arXiv:2304.10423 (2023)","DOI":"10.1145\/3583131.3590481"},{"issue":"9","key":"9494_CR6","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1145\/3560815","volume":"55","author":"P Liu","year":"2023","unstructured":"P. Liu, W. Yuan, J. Fu, Z. Jiang, H. Hayashi, G. Neubig, Pre-train, prompt, and predict: a systematic survey of prompting methods in natural language processing. ACM Comput. Surv. 55(9), 1\u201335 (2023)","journal-title":"ACM Comput. Surv."},{"issue":"8","key":"9494_CR7","first-page":"9","volume":"1","author":"A Radford","year":"2019","unstructured":"A. Radford, J. Wu, R. Child, D. Luan, D. Amodei, I. Sutskever et al., Language models are unsupervised multitask learners. OpenAI Blog 1(8), 9 (2019)","journal-title":"OpenAI Blog"},{"key":"9494_CR8","unstructured":"T.B. Brown, Language models are few-shot learners. Preprint at arXiv  arXiv:2005.14165 (2022)"},{"key":"9494_CR9","unstructured":"R. Open AI, Gpt-4 technical report. View in Article, 2(5) (2023). arxiv 2303.08774"},{"key":"9494_CR10","unstructured":"M. Phuong, M. Hutter, Formal algorithms for transformers. Preprint at arXiv arXiv:2207.09238 (2022)"},{"key":"9494_CR11","unstructured":"M. Mitchell, On evaluating understanding and generalization in the ARC domain. https:\/\/aiguide.substack.com\/p\/on-evaluating-understanding-and-generalization. Accessed 27 Oct 2023"},{"key":"9494_CR12","unstructured":"T. Dietterich, Connectionists: Chomsky\u2019s apple. https:\/\/mailman.srv.cs.cmu.edu\/pipermail\/connectionists\/2023-March\/039546.html. Accessed 27 Oct 2023"},{"key":"9494_CR13","doi-asserted-by":"crossref","unstructured":"D. Sobania, M. Briesch, C. Hanna, J. Petke, An analysis of the automatic bug fixing performance of chatgpt. 2023 ieee. in ACM International Workshop on Automated Program Repair, pp. 23\u201330 (2023)","DOI":"10.1109\/APR59189.2023.00012"},{"key":"9494_CR14","unstructured":"B. Roziere, J. Gehring, F. Gloeckle, S. Sootla, I. Gat, X.E. Tan, Y. Adi, J. Liu, T. Remez, J. Rapin, et al., Code llama: open foundation models for code. Preprint at arXiv arXiv:2308.12950 (2023)"},{"key":"9494_CR15","doi-asserted-by":"publisher","unstructured":"D. Sobania, M. Briesch, F. Rothlauf, Choose your programming copilot: a comparison of the program synthesis performance of github copilot and genetic programming. in Proceedings of the Genetic and Evolutionary Computation Conference. GECCO \u201922. Association for Computing Machinery, (New York, NY, USA, 2022) pp. 1019\u20131027. https:\/\/doi.org\/10.1145\/3512290.3528700","DOI":"10.1145\/3512290.3528700"},{"key":"9494_CR16","unstructured":"J. Koza, Preparatory steps of genetic programming. http:\/\/www.genetic-programming.com\/gppreparatory.html. Accessed 27 Oct 2023"},{"key":"9494_CR17","doi-asserted-by":"crossref","unstructured":"T. Ling, L. Chen, Y. Lai, H.-L. Liu, Evolutionary verbalizer search for prompt-based few shot text classification (2023)","DOI":"10.1007\/978-3-031-40292-0_23"},{"key":"9494_CR18","unstructured":"E. Zelikman, E. Lorch, L. Mackey, A.T. Kalai, Self-taught optimizer (stop): recursively self-improving code generation. in OPT 2023: Optimization for Machine Learning (2023)"},{"key":"9494_CR19","doi-asserted-by":"crossref","unstructured":"J. Lehman, J. Gordon, S. Jain, K. Ndousse, C. Yeh, K.O Stanley, 2023. Evolution through large models. In Handbook of Evolutionary Machine Learning (pp. 331\u2013366). Singapore: Springer Nature Singapore.","DOI":"10.1007\/978-981-99-3814-8_11"},{"key":"9494_CR20","doi-asserted-by":"crossref","unstructured":"E. Meyerson, M.J Nelson, H. Bradley, A. Gaier, A. Moradi, A.K Hoover,  J. Lehman. Language model crossover: Variation through few-shot prompting. arXiv preprint arXiv:2302.12170 (2023)","DOI":"10.1145\/3694791"},{"key":"9494_CR21","unstructured":"Y.J. Ma, W. Liang, G. Wang, D.A  Huang, O. Bastani, D. Jayaraman, Y. Zhu, L. Fan, A. Anandkumar. Eureka: Human-level reward design via coding large language models. arXiv preprint arXiv:2310.12931 (2023)"},{"key":"9494_CR22","doi-asserted-by":"crossref","unstructured":"M.U. Nasir, S. Earle, J. Togelius, S.D. James, C.W. Cleghorn, Llmatic: Neural architecture search via large language models and quality-diversity optimization. arXiv:2306.01102 (2023)","DOI":"10.1145\/3638529.3654017"},{"key":"9494_CR23","unstructured":"Q. Guo, R. Wang, J. Guo, B. Li, K. Song, X. Tan, G. Liu, J. Bian, Y. Yang. Connecting large language models with evolutionary algorithms yields powerful prompt optimizers. arXiv preprint arXiv:2309.08532 (2023)"},{"key":"9494_CR24","unstructured":"C. Fernando, D.  Banarse, H. Michalewski, S.  Osindero,  T. Rockt\u00e4schel. Promptbreeder: Self-referential self-improvement via prompt evolution. arXiv preprint arXiv:2309.16797 (2023)"},{"key":"9494_CR25","unstructured":"C. Xu, Q. Sun, K. Zheng, X. Geng, P. Zhao, J. Feng, C. Tao, D. Jiang, Wizardlm: Empowering large language models to follow complex instructions. arXiv preprint arXiv:2304.12244 (2023)"},{"key":"9494_CR26","doi-asserted-by":"crossref","unstructured":"P.L. Lanzi, D. Loiacono, Chatgpt and other large language models as evolutionary engines for online interactive collaborative game design. arXiv preprint arXiv:2303.02155 (2023)","DOI":"10.1145\/3583131.3590351"},{"key":"9494_CR27","unstructured":"S. Sudhakaran, M.  Gonz\u00e1lez-Duque, M. Freiberger, C. Glanois, E. Najarro, S. Risi. Mariogpt: Open-ended text2level generation through large language models. Advances in Neural Information Processing Systems, 36 (2024)"},{"issue":"3","key":"9494_CR28","doi-asserted-by":"publisher","first-page":"375","DOI":"10.1007\/s10710-022-09434-y","volume":"23","author":"T Helmuth","year":"2022","unstructured":"T. Helmuth, P. Kelly, Applying genetic programming to psb2: the next generation program synthesis benchmark suite. Genet. Program. Evolvable Mach. 23(3), 375\u2013404 (2022)","journal-title":"Genet. Program. Evolvable Mach."},{"key":"9494_CR29","unstructured":"S. Yao, J.  Zhao, D. Yu, N. Du, I. Shafran, K. Narasimhan,  Y. Cao. React: Synergizing reasoning and acting in language models. arXiv preprint arXiv:2210.03629 (2022)"},{"key":"9494_CR30","doi-asserted-by":"publisher","unstructured":"A. Webson, E. Pavlick, Do prompt-based models really understand the meaning of their prompts? In: Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 2300\u20132344. Association for Computational Linguistics, Seattle, United States (2022). https:\/\/doi.org\/10.18653\/v1\/2022.naacl-main.167 . https:\/\/aclanthology.org\/2022.naacl-main.167","DOI":"10.18653\/v1\/2022.naacl-main.167"},{"key":"9494_CR31","unstructured":"B. Lipkin, L. Wong, G. Grand, J.B. Tenenbaum, Evaluating statistical language models as pragmatic reasoners (2023)"},{"key":"9494_CR32","doi-asserted-by":"crossref","unstructured":"L. Chen, M. Zaharia, J. Zou, How is chatgpt\u2019s behavior changing over time? arXiv preprint arXiv:2307.09009 (2023)","DOI":"10.1162\/99608f92.5317da47"}],"container-title":["Genetic Programming and Evolvable Machines"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10710-024-09494-2.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/article\/10.1007\/s10710-024-09494-2\/fulltext.html","content-type":"text\/html","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/link.springer.com\/content\/pdf\/10.1007\/s10710-024-09494-2.pdf","content-type":"application\/pdf","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2024,11,25]],"date-time":"2024-11-25T13:11:00Z","timestamp":1732540260000},"score":1,"resource":{"primary":{"URL":"https:\/\/link.springer.com\/10.1007\/s10710-024-09494-2"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2024,9,12]]},"references-count":32,"journal-issue":{"issue":"2","published-print":{"date-parts":[[2024,12]]}},"alternative-id":["9494"],"URL":"https:\/\/doi.org\/10.1007\/s10710-024-09494-2","relation":{},"ISSN":["1389-2576","1573-7632"],"issn-type":[{"value":"1389-2576","type":"print"},{"value":"1573-7632","type":"electronic"}],"subject":[],"published":{"date-parts":[[2024,9,12]]},"assertion":[{"value":"17 November 2023","order":1,"name":"received","label":"Received","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"4 June 2024","order":2,"name":"revised","label":"Revised","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"6 August 2024","order":3,"name":"accepted","label":"Accepted","group":{"name":"ArticleHistory","label":"Article History"}},{"value":"12 September 2024","order":4,"name":"first_online","label":"First Online","group":{"name":"ArticleHistory","label":"Article History"}},{"order":1,"name":"Ethics","group":{"name":"EthicsHeading","label":"Declarations"}},{"value":"The authors declare no conflict of interest. Una-May O\u2019Reilly is on the editorial board of Genetic Programming and Evolvable Machines.","order":2,"name":"Ethics","group":{"name":"EthicsHeading","label":"Conflict of interest"}}],"article-number":"21"}}