arXiv:2611.23067cs.AINov 2026

Manuscript Offprint

arXiv:2611.23067

Values Shape What Self-Improving Coding Agents Build

Jason Liang, Dylan Waldner, Risto Miikkulainen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Self-improving agents are typically optimized for the results they produce, with less attention to how they produce them. Their instructions give designers limited ways to shape how they work, especially when the task is open-ended. This paper studies whether a short value statement in an agent’s persistent instruction file changes not only how well the agent performs but also what it builds. Four higher-order value types in Schwartz’s theory of basic human values were evaluated: openness to change, conservation, self-enhancement, and self-transcendence. Across diverse coding tasks, the values were held fixed within each run over multiple iterations of self-improvement. Three findings emerged: (1) Values matter for performance across a diverse set of tasks. The openness values increase performance on held-out data, whereas the opposite conservation values result in scores below those of an agent given no values. (2) Values change what agents build, producing solution algorithms that differ in size, complexity and approach. (3) Human oversight is still needed for designing values. Allowing the agent to revise its own values narrows performance differences between them, and values distilled from the AI literature provide no detectable gain over having no values. Properly designed values can thus influence what a self-improving coding agent builds and, where the task permits, how well it performs.

1 Introduction

Systems that improve their own code have a long history in AI research (Schmidhuber, 2003; Zelikman et al., 2024). This paper studies their most recent form: a large language model (LLM) agent that iteratively improves a solver, i.e. a program that produces a solution for a task, and the tools around it. The agent works in sessions, each starting from the code the last one committed, so that improvements accumulate through repeated coding and evaluation. Self-improvement matters because it lifts the ceiling of a single attempt: gains can compound from session to session without a person in the loop. In this manner, LLMs editing programs inside an evolutionary search have discovered algorithms that beat handwritten ones (Romera-Paredes et al., 2024; Novikov et al., 2025) and improved machine-found solutions at a lower sample cost (Lange et al., 2026). Agents that rewrite their own implementations go further and improve themselves (Zhang et al., 2026a; Robeyns et al., 2025). As these systems run longer with less supervision, what they produce may drift from what their designers intended, or it can stay boxed in by the instructions they were first given. Therefore, how they improve matters as much as how far they improve: the means matter, not only the ends.

Existing methods for improving agents and prompts use task performance to evaluate progress, with behavior steered by fixed, manually written meta-agent prompt templates (Hu et al., 2025), prompts the agent can edit itself (Robeyns et al., 2025), or instructions optimized for task accuracy (Yang et al., 2024). Yet within each session the agent makes many choices that the score does not specify: which part of the solver to rewrite, whether to replace an algorithm or only tune it, and when to keep or discard a change. The score reflects what counts as improvement but says little about how to achieve it, so these choices fall to whatever dispositions the model brings. A value statement is task-general guidance for the decisions that the task and its evaluation metric leave open. It is a natural instrument for shaping those dispositions, and it can have a large effect on the final outcome.

Whether a value statement changes what an agent builds has not been tested. Prior designs do not isolate the contribution of values from the task specification, the method guidance and the score-based selection, and the literature surveyed in Section 2 contains no controlled experiment that isolates it. Therefore, the question this paper asks is whether different values alter what the agent builds under a shared self-improvement protocol. At stake is how much of the result is decided by a disposition it is explicitly given, as opposed to the task itself and the model’s own biases.

As shown by Figure 2, one useful source of agent dispositions is Schwartz’s theory of basic human values (Schwartz, 1992; Schwartz, 2012), a widely used and empirically grounded map of what people value. It suits the purpose for two reasons. It defines values as goals that transcend any one situation, so the same values can serve any task. Its ten basic values group into four higher-order types on two opposing axes, openness against conservation and self-enhancement against self-transcendence. In this manner, each type has an opposite to test against. This paper explores all four types by inserting short, carefully designed value statements into the agent’s instruction file at every iteration of an agentic self-improvement loop. The four Schwartz values are compared against two controls, no values and a placebo of similar length, across six diverse coding tasks: ALE-Bench, Circle Packing, Entity Matching, Game 2048, Symbolic Regression, and SZ-Tetris. In Circle Packing, the best generated solutions exceed AlphaEvolve and ShinkaEvolve at n=26n=26 (Novikov et al., 2025; Lange et al., 2026) and beat records across many other sizes (Tables C2 and C3).

(a) Pre-run agent instructions(b) Self-improvement loop(c) Post-run evaluation and scoring

Figure 1: Value-based self-improvement framework. (a) The framework fixes the values, task package and safety invariants. (b) Each iteration restores workspace WW to the preceding commit, reloads the instructions, runs a coding session and saves its code. (c) A separate scorer evaluates saved solvers on held-out data outside WW and tracks how fixed values shape code and performance across iterations.

The main findings of this paper are as follows:

  1. Values matter for performance across a diverse set of tasks. Relative to the no-values control, values can shift scores in both directions. Furthermore, the opposing values of openness and conservation perform significantly differently from one another.
  2. Values affect the approach used for solving each task. Under different values the agent writes solvers that differ in algorithms and heuristics on the same task. Across tasks, held-out performance tracks solver size and complexity more closely than evaluation count, API cost, or total run time.
  3. Human oversight is still needed for designing values. Allowing the agent to revise its own values narrows performance differences between them: the best-performing values decline while the worst-performing improve. Values distilled from the AI literature provide no detectable gain over having no values.

The paper is organized as follows. Section 2 reviews related work in LLM-based coding, self-improvement, and values. Section 3 describes the methodology in detail, and Section 4 presents the experimental results within and across tasks. Section 5 evaluates the three contributions and proposes future work on value-based self-improvement. The appendices provide protocol details, value specifications, task details with published comparisons, cross-task statistics, solver algorithm analyses, and empirical evaluations of several framework variations.

References (59)