What if an AI could evolve its own goals mid-search — converting plain-language targets into runnable code to score each new attempt?
How does compiling natural language goals into executable code enable objective evolution?
This explores how turning a plain-language goal into runnable code lets an agent rewrite what it's optimizing for mid-search, rather than treating the objective as a fixed input.
This explores how turning a plain-language goal into runnable code lets an agent rewrite what it's optimizing for mid-search, rather than treating the objective as a fixed input. The clearest answer in the corpus comes from SAGA's bi-level design Can agents evolve their own objectives during search?: an outer LLM loop proposes new objectives in natural language and *compiles them into a scoring function* the inner optimization loop can use immediately. The compilation step is what makes evolution possible — a goal expressed as prose can't score candidates, but a goal expressed as executable code can, so the results of one round of optimization become evidence the outer loop uses to redraft the objective for the next round. Goal design stops being a one-time human input and becomes part of the discovery loop.
Why code specifically? Because language is generative but not directly measurable, and executable functions are measurable but not easily reimagined. Compositional language lets an agent *imagine* goals it has never seen by recombining familiar concepts Can language help agents imagine goals they've never seen? — that's the proposal half. Compiling to code closes the gap between an imagined goal and a testable one. This mirrors a broader finding that tools (and code is a tool) provably expand what a model can reason about, unlocking strategies that are impossible or hopelessly verbose in pure text Do tools actually expand what language models can reason about?. An objective you can only describe is inert; an objective you can execute can be scored, compared, and mutated.
The deeper reason this matters is that self-improvement is bounded by a generation–verification gap: a model can propose fixes endlessly, but every reliable improvement needs something external to check it What stops large language models from improving themselves? What actually constrains large language models from self-improvement?. Compiling goals into code is a way of *manufacturing that external verifier from the goal itself* — the compiled function becomes the ground truth that scores the search, so the loop isn't just the model grading its own homework in prose. The Darwin Gödel Machine makes the same move at the level of whole agents: it abandons formal proofs of improvement in favor of empirical benchmarking against runnable tests, keeping an evolutionary archive of variants Can AI systems improve themselves through trial and error?. Executable objectives are what let 'did this actually get better?' be answered by running something instead of arguing about it.
There's a useful way to place this in the landscape of self-improving agents, which tend to split into a slow parametric loop that rewrites model weights and a fast non-parametric loop that rewrites prompts, memory, and tools Do self-improving agents really split into two distinct loops?. Evolving compiled objectives lives in that fast loop — cheap and reversible, because rewriting a scoring function is far less costly than retraining. It connects to the view of language agents as optimizable computational graphs, where the structure being tuned is code you can edit and rewire, not weights you have to relearn Can we automatically optimize both prompts and agent coordination?.
The caveat worth carrying away: compiling a goal into code guarantees it's *executable*, not that it's *right*. A scoring function can be run, optimized against, and still point at the wrong thing — symbolic goal encoding without contact with the real world can drift between what you stated and what actually matters Can AI systems achieve real alignment without world contact?. Objective evolution buys you a search that can rewrite its own target; it doesn't buy you a search that knows the target is worth reaching.
Sources 9 notes
SAGA's bi-level architecture closes a feedback loop from optimization results back to goal design by having an outer LLM loop propose new objectives and compile them into code the inner loop can immediately use, enabling objective formulation as part of discovery rather than a fixed input.
IMAGINE demonstrates that agents using compositional language descriptions can target novel outcomes by combining familiar concepts, with modularity and social guidance amplifying generalization from imagined to real exploration.
Formal proof shows tool-integrated reasoning enables strategies impossible or prohibitively verbose in text alone, expanding both empirical and feasible support. The advantage spans abstract reasoning, not just arithmetic, and Advantage Shaping Policy Optimization stabilizes training without reward distortion.
Self-improvement in LLMs is formally bounded by the generation-verification gap, meaning every reliable fix requires something external to validate and enforce it. Models cannot escape this constraint through metacognition alone.
LLMs cannot reliably improve themselves without external verification; metacognition must be externalized rather than learned. Alignment philosophy is shifting from preferentism to normative standards, but coherent values at scale include problematic self-valuation requiring utility engineering beyond output control.
Show all 9 sources
DGM replaces formal proofs with empirical benchmarking and maintains an evolutionary archive of agent variants, achieving 2.5× improvement on SWE-bench and 2.2× on Polyglot by discovering capabilities like better code editing and context management.
A survey framework organizes self-improving agents into two update mechanisms: slow parametric loops updating foundation model weights, and fast non-parametric loops updating prompts, memory, and tools. Recent progress concentrates in the fast loop because scaffold updates are cheaper and reversible than weight updates.
Language agents represented as computational graphs—where nodes are operations and edges define information flow—reveal that CoT, ToT, and Reflexion are formally equivalent structures. This unified view enables automatic optimization of both node prompts and edge connectivity without manual redesign.
Peircean semiotics reveals that symbolic goal encoding without world contact and social mediation cannot guarantee correspondence to actual values. LLMs operating in pure symbol manipulation risk divergence between stated goals and real-world outcomes.
Papers this line draws on 8
The research behind the notes this line reads — ranked by how closely each paper relates.
- Self-Improvements in Modern Agentic Systems: A Survey
- Darwin Godel Machine: Open-Ended Evolution of Self-Improving Agents
- Mind the Gap: Examining the Self-Improvement Capabilities of Large Language Models
- The Red Queen Gödel Machine: Co-Evolving Agents and Their Evaluators
- Hyperagents
- Self-Improving Model Steering
- Beyond Accuracy: The Role of Calibration in Self-Improving Large Language Models
- Toward Self-Improvement of LLMs via Imagination, Searching, and Criticizing