arXiv(opens in a new tab)cs.AIAug 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2608.24735

Metan^n: Recursive Self-Improvement through Emergent Depth

Zae Myung Kim, Young-Jun Lee, Seungyeon Jwa, Dongyeop Kang

Abstract

Self-improving LLM agents refine answers, not the process that produces those answers. Systems that add a meta-level hold that level fixed, and those that edit themselves must leave part of their own editing machinery untouched to stay stable, capping the meta-depth they realize at roughly two. We present Meta", which keeps the meta-operation fixed and recurses on its input instead. That operation, Ω\Omega, is applied repeatedly to its own products, reading the traces of the solver stack below together with the code that produced them, then writing the next layer as a strategic pre-process and a library of callable helpers. Because Ω\Omega never changes, it cannot destabilize the system, and because its input strictly grows, each layer reasons from a higher vantage than the last. Depth is set by convergence rather than fixed in advance, and an evolutionary archive searches over layer chains. Across two backbones, Meta" outperforms prior self-improving agents on all eight benchmark families. The sharpest case is ARC-AGI-2, built to resist skill memorization, where it alone scores above zero. Ablations indicate that most of the gain from recursion comes from the conditioning each layer passes to the next, and distinct layer roles emerge with depth although no prompt prescribes them. Code available at https://github.com/minnesotanlp/meta-n

Figure

Figure 1: Meta" at a glance. (left) A single universal meta-operation Ω\Omega is applied recursively, each meta-layer wrapping the stack below it (Base Solver →\rightarrow Layer 1 →\rightarrow Meta-Layers 2, 3, ..., n). Roles emerge with depth without manual design. (right) Search progress on LawBench charge prediction, where both Meta" variants climb faster and settle higher than Gödel Agent [Yin et al., 2024] and OpenEvolve [Sharma, 2025].

Preprint.

1 Introduction

A key component of intelligence is the capacity for meta-reasoning, the ability to step outside one's own chain of reasoning and arrive at insights that lie beyond it [Russell and Wefald, 1991, Kounios and Beeman, 2014, Ackerman and Thompson, 2017]. But how can a system get outside itself? In Gödel, Escher, Bach [Hofstadter, 1979], Hofstadter argues that intelligence and the sense of self emerge not from any single rule but from strange loops, that is, self-referential processes in which a system's own rules, applied recursively, fold back to operate on their own products. Today's self-improving LLM agents fall short of exactly this. They write algorithms for NP-hard optimization, operate terminal environments, and propose mathematical constructions, yet the dominant response to failure is self-refinement [Madaan et al., 2023, Shinn et al., 2023] (examine, revise, retry), a single layer of reflection in which the same mechanism generates, diagnoses, and repairs. Existing agents improve answers, not the process by which answers are improved.

Recent work adds an explicit meta-level: evolutionary methods maintain populations of candidate programs [Romera-Paredes et al., 2024, Novikov et al., 2025, Sharma, 2025]; self-modifying agents rewrite portions of their own source code [Yin et al., 2024, Zhang et al., 2025a, 2026, Zelikman et al., 2024]; meta-scaffolding systems search over the infrastructure around a base model [Hu et al., 2025, Zhang et al., 2025b, Lee et al., 2026, Fernando et al., 2024, Agrawal et al., 2026, Liu et al., 2026]. But the meta-mechanism itself is fixed. Search loops, mutation operators, and selection rules are not revised, and every system that does edit itself must hold some driver layer fixed for stability, capping realized meta-depth at ∼\sim2.5. We make these terms precise in §2.1 (Figure 2; full comparison in Appendix B).

We build Meta" around this principle. Rather than rewriting the improver itself, we hold a single universal meta-operation Ω\Omega fixed and apply it again and again to its own outputs, “given the full execution context of the system below you, write code that improves it.” The loop folds back through Ω\Omega's own accumulated products. Because Ω\Omega takes its own prior outputs as input, each level sees more of the system beneath it than the last, moving from surface bugs to strategic choices to meta-strategic reasoning (Figure 1). As an isolation check, removing recursion from Meta" drops CO-Bench archive-best validation from 0.845 to 0.714, a +0.131 gain from recursion alone. The effect reproduces on a second backbone and a second benchmark, and is largest where the inner loop leaves the most room (§3).

A concrete example. On CO-Bench's assignment_problem, a single LLM call produces a script that imports scipy.optimize; the sandbox lacks scipy, the script crashes, the task scores 0.0. A flat self-refinement loop retries variations of the same import-based solution. Meta"’s depth-2 Ω, looking at all 36 tasks at once, observes that several fail with similar dependency errors and decides to emit a pre-process plus a code-library helper: “do not use scipy; here is a validate_output() utility.” The depth-2 solver re-implements the Hungarian algorithm and scores 1.0. Depth 3 then sees both the new traces and the depth-2 code that produced them, and determines whether to keep, refine, or override. A flat loop, seeing only traces, cannot perform such reasoning. Repeated applications of Ω build a stack in which each layer is both a producer of code (guidance and library functions) and the subject of the next Ω call. We do not pre-assign layer depth, but let it grow until Ω stops finding improvements. Deeper layers learn when to apply, suppress, or combine primitives, because each Ω call sees the prior layers’ code together with how it performed.

Across eight benchmarks spanning combinatorial optimization, text classification (Symptom2Disease and LawBench), terminal agent tasks, mathematical discovery (AlphaEvolve Math and ARC-AGI-2), symbolic regression, and algorithm speedup, Meta n^{n} substantially improves single-call solvers without within-task iteration. Its largest margins over prior self-improving agents come on the hardest benchmarks. On ARC-AGI-2 [Chollet et al., 2026]'s held-out split, for instance, Meta n^{n} is the only system to solve any task at all, where both OpenEvolve and Gödel Agent solve none.

Our contributions. (1) The Meta n^{n} framework ( §2§2): a recursive architecture in which one universal meta-operation Ω\Omega, applied repeatedly, builds a hierarchical agent stack whose depth is set by convergence. To our knowledge, the first demonstration that meta-depth beyond two yields structurally distinct levels rather than redundant ones. (2) Evolutionary orchestration ( §2.4§2.4): a multi-candidate archive search over layer chains. (3) Empirical evidence ( §3§3): across eight benchmarks and two backbones, Meta n^{n} outperforms prior self-improving agents on every benchmark family, with the largest margins on the hardest held-out tasks.

(1) Hand-crafted one-layer meta-improvement.

(2) Self-referential one layer meta-improvement.

(3) Recursive n-layer meta improvement (ours).

Figure

Figure 2: Three paradigms of meta-improvement. Circles are agents (successive versions v1,v2,…v^{1}, v^{2}, \ldots); amber boxes are meta-improvement processes, and nested boxes denote recursively stacked meta-processes. (1) Hand-crafted one-layer meta (e.g., FunSearch, AlphaEvolve, ADAS): a fixed, external meta-process rewrites the agent, but the meta-mechanism itself never changes. (2) Self-referential one-layer meta (e.g., Gödel Agent, DGM): the agent edits its own source, yet a driver layer stays fixed, capping realized meta-depth at ∼\sim2.5. (3) Recursive n-layer meta (Meta n^{n}, ours): one meta-operation Ω\Omega is applied at every depth and accumulates, so version vdv^{d} carries d nested meta-processes; depth is set by convergence, and each added layer observes a broader landscape of trajectories than the one below.