ELMER: Evolutionary LLM for Program Search and Refinement

Matthew Siper, Ahmed Khalifa, Julian Togelius· August 12, 2026 View original

Key takeaways

  • ELMER uses an LLM to evolve programs by searching natural-language policy descriptions.
  • Conditional semantic mutation allows for steerable control over behavioral changes.
  • Fine-tuning with DPO improves search efficiency and behavioral calibration.
  • Natural language proves effective as an execution-grounded search representation for programs.

Who benefits

Software DevelopmentRoboticsGame DevelopmentAI ResearchAutomation

Summary

ELMER is an Evolutionary Language Model that searches over natural-language policy descriptions and compiles typed programs for execution, using a fine-tuned Qwen3-8B model with conditional semantic mutation. It improves behavioral calibration and search efficiency, demonstrating that language can serve as a steerable, execution-grounded search representation for executable program space.

In program evolution, assessing whether a code mutation is beneficial is straightforward, but controlling the behavioral impact of that mutation is difficult. Small syntactic changes can lead to drastic behavioral shifts, while large rewrites might preserve execution traces. This paper introduces ELMER (Evolutionary Language Model that Explores and Refines), a novel approach that leverages language models for program search and refinement. ELMER operates by searching through natural-language descriptions of policies and then compiling these descriptions into typed programs for execution. At its core is a fine-tuned Qwen3-8B model, which learns three key task-conditioned operations: conditional semantic mutation, natural language to domain-specific language (GPTL) compilation, and GPTL to natural language translation. The model is fine-tuned using Direct Preference Optimization (oDPO), with conditional input specifying the desired mutation strength (low, medium, high). Across 252 fixed-budget evolutionary searches, the oDPO fine-tuning significantly improved both behavioral calibration and the efficiency of the search process. Natural language descriptions achieved the highest observed held-out fitness. Analysis revealed that the conditional input systematically alters the composition of semantic edits, and language-based mutations are better at preserving parent fitness for matched small-to-moderate behavioral displacements. These results highlight the potential of language as a steerable, execution-grounded representation for exploring and refining executable program spaces.

Why it matters

For engineers and researchers developing autonomous agents or complex software, ELMER offers a more intuitive and controllable way to evolve programs and policies using natural language, potentially accelerating development and improving robustness.

How to implement this in your domain

  1. 1Explore using large language models as a search representation for program synthesis or policy generation in your projects.
  2. 2Investigate fine-tuning LLMs with conditional inputs to control the semantic impact of generated code or policies.
  3. 3Consider integrating natural language descriptions as an intermediate representation for evolving and refining executable programs.
  4. 4Apply Direct Preference Optimization (DPO) or similar techniques to align LLM-generated code with desired behavioral outcomes.
  5. 5Develop tools that compile natural language policy descriptions into domain-specific languages or executable code for automated system development.

Original post by Matthew Siper, Ahmed Khalifa, Julian Togelius

"arXiv:2608.10196v1 Announce Type: new Abstract: Program evolution can measure whether a mutation helped, but it rarely controls how far the mutation moves in behavior space. Syntactic edit size is an unreliable proxy: a small code change can alter nearly every action, while a lar…"

View on X

Originally posted by Matthew Siper, Ahmed Khalifa, Julian Togelius on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses