Benchmarks · Recursive Self-Improvement · Experiment

The Ruler Must Improve First

Sustainable AI recursive self-improvement is impossible on static, saturated benchmarks—but a self-evolving benchmark quickly turns unfair unless you enforce deterministic verification, asymmetric sandboxes, and harness-coupled gates.

Everyone talks about Recursive Self-Improvement (RSI) for AI models while overlooking a fatal prerequisite: if the ruler is dead, how can the solver truly self-improve? Ship the "hardest benchmark ever" today, and frontier models saturate it to 95% within six months while pretraining and web search absorb the rest. Once the evaluation ruler saturates and leaks, model RSI either stalls on a flat ceiling or Goodhart-hacks a static dataset. Without self-evolving benchmarks, sustainable AI RSI is impossible—the ruler must recursively improve first.

Yet our experiments quickly exposed a sharper engineering truth: you cannot build a fair RSI benchmark by just prompting an LLM to "make questions harder and grade itself." Naive self-evolution collapses into unfair self-delusion—wrong ground truth, generator self-bias, inverted model rankings, and sandbox traps that penalize valid solutions. We built RSI-Bench (github.com/spyzss/rsi-bench), a dual-loop self-evolving benchmark engine (inner loop co-evolving tasks and deterministic Python verifiers; outer loop Meta-Evolver rewriting its own playbook from telemetry), ran four progressive experiments (exp_v1 → exp_v2_weak_evolver → exp_v2 → exp_v3), and audited every evolved task line by line. The results both demonstrate autonomous benchmark resurrection and uncover four hard laws anyone building RSI-Bench must obey.

exp_v1 Resurrection Curve: From Saturation to Separation

exp_v1 resurrection curve (raw measurements). Across 20 classic-style G0 seeds (85% saturated), three generations of dual-loop RSI separate the four in-loop models cleanly from a 90%–100% cluster—yet two held-out frontier models (codex/gpt-6.2-sol, gemini/gemini-4-neon) still score 95% raw (100% after removing a sandbox artifact).

TL;DR

  1. RSI of the ruler is the prerequisite for AI RSI—and fairness requires hard invariants: zero LLM-as-a-Judge grading, an end-to-end harness-coupled gate, outer-loop Meta-RSI, an asymmetric sandboxed evolver, and cross-family held-out audits.
  2. Outer-loop Meta-RSI beats static prompts ~2×: Even after stripping sandbox artifacts, Meta-RSI nearly doubles discrimination slope over frozen prompts (+0.275 vs. +0.150) and preserves strictly monotonic rankings while Static inverts strong vs. weak models. Meta-Evolver even diagnosed and fixed its own prior-generation import time sandbox bug.
  3. Asymmetric verification breaks the frontier ceiling 8× cheaper: A non-thinking evolver collapses against a full-thinking frontier ladder (16.7% gate yield, 100% saturation). Arming a frontier evolver with an isolated Python scratch sandbox against tool-free test takers lifts gate yield to 96.9%, raises underlying design soundness to 87.5% SOUND / 0% FLAWED, cuts PAI token spend 8×, and drives held-out Gemini latency up 6.4× (with two genuine >200s timeouts).
  4. RSI is a ruthless automated fuzzer against your own harness: Any 1-millimeter seam between verifier_gate and evaluator (underscore-attribute bans in exp_v1, <answer>-tag stripping in exp_v2) gets amplified by natural selection within two generations. Welding them together in exp_v3 drove both reward-hacking seams to 0/8 with 19/19 (100%) gate yield.

Question Map

# Status Question Answer / Finding
Q1 Answered Does outer-loop Meta-RSI beat static prompt evolution? Yes: ~2× clean discrimination slope (+0.275 vs. +0.150), monotonic ranking, and autonomous self-correction of its own bugs.
Q2 Answered Do tasks evolved on a mid-tier ladder stump held-out frontier models? No. Evolution hits Ladder-Bounded Equilibrium: held-out Codex/Gemini still score 100% clean (1.4–2.5× slower).
Q3 Answered How do we break the Generator–Target capability gap? A weak evolver collapses (16.7% yield); asymmetric verification (tool-armed sandboxed evolver vs. tool-free test takers) breaks through immediately.
Q4 Answered What is the biggest hidden failure mode of Benchmark RSI? Goodhart Cascades: RSI fuzzes any seam between gate and evaluator; an end-to-end harness-coupled gate is mandatory.
Q5 Answered Does the patched harness eliminate reward hacking cleanly? Yes: exp_v3 (8 seeds × 2 gens) hit 19/19 (100%) gate yield, 0/8 tag seams, 0 sandbox artifacts, and 3.5× Codex latency.
Q6 Planned How does this scale to 100 public seeds + IRT calibration? Next: plug in public HumanEval+ / MATH-500 / BBH seeds with multi-family frontier upper tiers and cross-generation IRT anchors.

Why RSI-Bench Must Be Built This Way (Or It Becomes Unfair)

Naive "self-evolving benchmarks" ask an LLM to rewrite old questions harder and grade them with LLM-as-a-Judge. Under iterative evolution, that shortcut collapses into four forms of structural unfairness:

  • Ground-truth unfairness: Once tasks approach or exceed the generator's own reasoning ceiling, unverified reference answers break and LLM judges favor their own model family.
  • Ranking unfairness: Blind static rewriting adds prose noise rather than structured difficulty, eventually inverting strong vs. weak model rankings (reproduced empirically by our Static baseline in exp_v1).
  • Harness unfairness: Any tiny discrepancy between the admission gate and the live evaluation harness becomes an evolutionary attractor that falsely fails valid, idiomatic submissions.
  • Blind-spot unfairness: Evaluating only on in-loop models cannot distinguish genuine reasoning difficulty from overfitting to a narrow ladder—requiring cross-family held-out tests and per-task audits.

RSI-Bench therefore enforces five non-negotiable fairness invariants:

  1. Zero LLM-as-a-Judge Grading: Every track (code, math, logic, agent_ops) uses an isolated subprocess Python verifier verify(candidate) -> (bool, str). All three non-code tracks enforce Solve-First: write and execute a deterministic Python solver first, then lock its exact stdout as the reference answer.
  2. 7-Stage Adversarial Verifier Gate ("Who Verifies the Verifier?"): Every candidate must pass schema validation, static AST safety, verify(reference), solver-stdout reproduction, rejection of four trivial strings ("", "0", "{}", "pass"), 100% rejection of at least two rule-targeted decoy wrong answers, and 100% rejection of its parent generation's reference solution.
  3. Anti-Noise Fitness Selection: Each task is scored on difficulty sweet spot DD, discrimination slope S=pstrong−pweakS = p_{\text{strong}} - p_{\text{weak}}, capability fidelity, and prompt novelty:
fitness=0.45 D+0.30 S+0.15 fidelity+0.10 novelty,\text{fitness} = 0.45\,D + 0.30\,S + 0.15\,\text{fidelity} + 0.10\,\text{novelty},

halved whenever weak models outperform strong models (S<−0.25S < -0.25). 4. Outer-Loop Meta-Evolver: After every generation, Meta-Evolver inspects per-operator yield, saturation, and failure traces, then rewrites playbook_g{t}.json—reweighting winners, pruning dead operators, inventing targeted replacements, updating global guardrails, and emitting human-readable meta_diff_g{t}.md logs. 5. Controlled Ablation + Held-Out Frontier Eval + Per-Task Audit: Compare RSI vs. frozen Static on identical seeds and budgets, evaluate held-out frontier models with zero tools, and independently audit every final task.

Experimental Setup

All experiments start from 20 validated classic-style G0 seeds across 4 tracks (5 per track, initially 85%–100% saturated):

Run Scope Evolver In-Loop Ladder (Lower → Upper) Held-Out Frontier PAI Spend
exp_v1 20 seeds × 3 gens (RSI vs. Static) qwen4-max:nothink qwen3.8-27b:nothink, qwen3.8-flash:nothink → qwen4-max, deepseek-v4-pro codex/gpt-6.2-sol, gemini/gemini-4-neon 7.16M tokens
exp_v2_weak_evolver 12 seeds × 2 gens (negative control) qwen4-max:nothink qwen4-max, deepseek-v4-pro → codex/gpt-6.2-sol (all thinking) — ~0.6M tokens
exp_v2 8 seeds × 3 gens (adaptive budget) codex-evolver/gpt-6.2-sol (Python sandbox) qwen4-max, deepseek-v4.1-flash → codex/gpt-6.2-sol (tool-free) gemini/gemini-4-neon (tool-free) 0.895M tokens
exp_v3 8 seeds × 2 gens (coupled gate + 8192 tok) codex-evolver/gpt-6.2-sol (Python sandbox) qwen4-max, deepseek-v4.1-flash → codex/gpt-6.2-sol (tool-free) — 0.733M tokens

Experiments

Q1: Does outer-loop Meta-RSI actually beat static prompt evolution?

Yes—even after stripping all sandbox false rejections, Meta-RSI nearly doubles discrimination slope over Static (+0.275 vs. +0.150) and preserves strictly monotonic model rankings, whereas Static inverts strong and weak models by G3.

RSI vs Static Ablation

exp_v1 controlled ablation on identical seeds, initial playbook, and 120-candidate budget (raw metrics). Static achieves higher raw gate yield only because it keeps generating safer, more saturated mutations.

Arm Gen Mean Fitness (Raw / Clean) Discrimination Slope (Raw / Clean) Saturation (Raw / Clean) Monotonic Ranking?
Shared G0 0.198 +0.025 85% Clustered (90%–100%)
RSI (Meta-Evolver) G3 0.517 / 0.451 +0.350 / +0.275 25% / 30% Yes (45% < 60% < 70% < 90%)
Static (Frozen G0) G3 0.428 / 0.428 +0.150 / +0.150 35% / 35% No (deepseek-v4-pro 55% < qwen3.8-27b 60%)

Even more striking is what meta_diff_g2.md recorded—Meta-Evolver autonomously diagnosed and patched a bug in an operator it had invented one generation earlier:

  • G0 → G1: Spotted a logically vacuous RLE rule ("escape a singleton adjacent to a same-character run", impossible on maximal runs), added a mandatory firing-witness guardrail, and invented code.complexity_gate_refactor to fight 50% code saturation.
  • G1 → G2 (Self-Correction): Saw that its own complexity_gate_refactor went 0/12 because import time violated sandbox rules. It replaced wall-clock checks with deterministic operation/state budgets, pruned 5 chronically weak G0 operators (edge_case_coupling, anti_template_symbolic, inverse_coupled_system, resource_invariant_planning, interacting_csp_rules), and invented 5 targeted operators (snapshot_aliasing_invariants, first_crossing_recurrence, bounded_minimax_margin, etc.) that unlocked immediate G3 breakthroughs.

Meta-RSI Operator Dynamics

Outer-loop operator weights, gate pass rates, and mean fitness across G0 → G2 in exp_v1. Green borders mark newly invented operators; orange dotted borders mark downweighted ones; blanks mark pruned operators.

Experiment record for these two figures (exp_v1 ablation)
  • Controlled variables: 20 seeds, playbooks/playbook_g0.json, 4-model PAI ladder, 2 candidates/seed/gen (120 slots per arm). Only difference: outer-loop Meta-Evolver rewrites Playbook in rsi vs. frozen in static.
  • De-confounding: Independent audit (audit_g3.md) re-ran all failed code submissions without the leading-underscore _ attribute ban, uncovering 7 false negatives in RSI-G3 (0 in Static-G3). Both Raw and Clean scores are reported above.
  • Cost: 1,242 PAI requests, 7,161,171 total tokens (qwen4-max:nothink evolver accounted for 5.38M). Artifacts: rsi-bench/runs/exp_v1/.

Q2: Do benchmarks evolved on a mid-tier ladder stump held-out frontier models?

No. Evolution hits Ladder-Bounded Equilibrium: held-out frontier models take 1.4–2.5× longer to think, yet still score 100% once the single sandbox artifact is removed.

Four-Track Six-Model Accuracy Heatmap

exp_v1 accuracy across all four tracks at G0 (left) and RSI-G3 (right). While in-loop models fan out sharply, held-out codex/gpt-6.2-sol and gemini/gemini-4-neon ace every track except the sandbox-confounded code_04.

Both held-out models scored 19/20 (95%) raw and 20/20 (100%) clean on exp_v1 RSI-G3—though average latency climbed 1.4× for Codex (13.7s → 19.3s) and 2.5× for Gemini (17.9s → 44.5s, peaking at 183.8s on math_01). The mechanism is straightforward: once evolved tasks hit the sweet spot of the in-loop ladder, selection pressure vanishes. To pressure frontier models, frontier models must sit inside the feedback loop.

Experiment record for this figure (exp_v1 held-out frontier transfer)
  • Evaluation harness: src/frontier_eval.py runs codex exec (gpt-6.2-sol, medium effort) and agy -p (gemini-4-neon, medium effort) inside empty temporary directories with tools disabled for strict fairness against PAI API models.
  • Latency: G0 avg 13.7s (Codex) / 17.9s (Gemini); RSI-G3 avg 19.3s (Codex) / 44.5s (Gemini, with math_01_rsi_g3_c2 solved in 183.8s under a 240s retry).

Q3: How do we cross the Generator–Target capability gap?

Upgrading the ladder without upgrading the evolver collapses completely (16.7% gate yield, 100% saturation). The breakthrough is asymmetric verification—giving a frontier evolver an isolated Python scratch sandbox against tool-free test takers.

Our negative control exp_v2_weak_evolver (12 seeds × 2 gens) kept non-thinking qwen4-max:nothink as evolver against three full-thinking models (qwen4-max, deepseek-v4-pro, codex/gpt-6.2-sol). Gate yield collapsed to 16.7% (4/24) and 0/24 tasks exceeded fit = 0.21 (100% saturation).

Switching to a tool-armed frontier evolver (codex-evolver/gpt-6.2-sol:medium allowed to run Python in an isolated scratch directory to verify its solver, brute-force oracle, inline examples, and decoys before emitting JSON) against tool-free test takers in exp_v2 (8 seeds × 3 gens) transformed every metric:

  • Gate yield rocketed 16.7% → 96.9% (31/32), with 8/8 seeds reaching G3 and zero fallbacks;
  • Underlying problem-design soundness jumped from 61.1% (exp_v1) → 87.5% SOUND (7/8) + 12.5% MINOR_ISSUE (1/8) + 0% FLAWED, eliminating 100% (0/8) of all four exp_v1 design flaw classes (contradictory worked examples, sensitivity collapse, >100-step brute-force grind, and _-attribute bans);
  • PAI token spend dropped 8×: Paired with adaptive candidate budgeting (--adaptive-candidates, skipping Slot 2 when Slot 1 hits fitness ≥ 0.55, saving 33.3% of slots), total PAI consumption fell from 7.16M to just 895k tokens;
  • Held-out frontier finally felt real pressure: Clean G1 immediately separated full-thinking models (deepseek-v4.1-flash 25%, qwen4-max 50%, tool-free codex 87.5%). On G3, completely held-out gemini/gemini-4-neon saw average reasoning latency jump 6.4× (17.9s → 115.4s), solving only 5/8 (62.5%) within 200s—with two fully SOUND tasks (code_05 at >206s and math_04 at >205s) causing genuine >200s timeouts and code_01 failing after 171.4s.

Q4: What is the deadliest hidden failure mode of Benchmark RSI—and how do we cure it?

RSI acts as an automated fuzzer against your own evaluation harness. Any 1-millimeter seam between verifier_gate and evaluator gets amplified into a Goodhart cascade within two generations—requiring an end-to-end harness-coupled gate.

We caught two real-world reward-hacking cascades red-handed:

  1. exp_v1 Sandbox Seam: Forbidding single-underscore attributes (self._text) caused 8/9 failed code submissions to be functionally valid (7 false negatives in RSI-G3).
  2. exp_v2 <answer>-Tag Seam (0/6 → 3/6 → 6/6 spread by natural selection):
    • evaluator.py strips <answer>...</answer> tags before calling verify(), whereas old verifier_gate.py tested raw reference_solution directly.
    • Starting in G2, codex-evolver wrapped reference_solution in <answer> tags and made verify() require tags. The gate passed them, the evaluator stripped tags, all models scored 0%, and 0/3 yielded fitness ≈ 0.57—triggering adaptive early stopping and spreading from G1 0/6 → G2 3/6 → G3 6/6 across the 6 non-code tasks (5/6 strictly rejecting stripped JSON).
    • Zero-cost local re-verification (plus disclosing 11/24 weak-tier EVAL_TOKENS = 4096 thinking cutoffs) revealed true exp_v2 G3 accuracies of deepseek-v4.1-flash 12.5%, qwen4-max 37.5%, and codex/gpt-6.2-sol 100% (not the raw 37.5%).

Architectural Cure & exp_v3 Zero-Seam Verification: We patched src/verifier_gate.py to ban <answer> tags inside reference_solution and run the wrapped reference through the exact same evaluator.extract_candidate() used during live evaluation, patched src/sandbox.py to permit user-class _attr and from __future__ import annotations, and bumped EVAL_TOKENS to 8192 (auto-retrying to 12288). Running clean exp_v3 (8 seeds × 2 gens) confirmed the cure:

exp_v3 Zero-Seam Verification Curve

exp_v3 (end-to-end harness-coupled gate + 8192 token budget) G0 → G2 trajectory. Both reward-hacking seams dropped to zero (0/8 tag bugs, 0 sandbox artifacts), gate yield reached 19/19 (100%), saturation hit 0%, and discrimination slope climbed to +0.875.

At only 733k PAI tokens (40.6% slots saved by adaptive budgeting), exp_v3 achieved 19/19 (100%) gate yield, 0/8 <answer> seams, and 0 sandbox rejections, while stretching codex/gpt-6.2-sol latency 3.5× (13.7s → 48.0s, up to 70.2s on math_01). Even at 8192–12288 tokens, PAI thinking models still hit token budgets on the 6 hardest code/math/logic tasks while same-family codex stayed at 100%—confirming that future upper tiers should mix multiple frontier model families.

Experiment record for exp_v2 audit and exp_v3 zero-seam verification
  • exp_v2 Raw → Clean: G1 (0/6 tag bugs) 25% / 50% / 87.5%; G2 (3/6) 0% / 0% / 50% → 0% / 12.5% / 87.5%; G3 (6/6 tagged, 5/6 rejecting) 0% / 0% / 37.5% → 12.5% / 37.5% / 100%.
  • exp_v2 independent audit (audit_v2_g3.md): out of 24 in-loop evals, 3 passed, 9 were exact answers killed by <answer> stripping, 11 hit the 4096-token thinking cap, 1 had a prod/ naming slip; underlying design scored 7/8 SOUND, 1/8 MINOR_ISSUE, 0/8 FLAWED.
  • exp_v3 (runs/exp_v3/): 8 seeds × 2 gens, 19/32 slots used (40.6% saved), 19/19 (100%) gate yield, 733,126 PAI tokens (118 requests). G0 → G1 → G2: deepseek-v4.1-flash 100% → 0% → 0%, qwen4-max 100% → 50% → 25%, codex/gpt-6.2-sol 100% → 100% → 100% (G2 avg 48.0s). Full test suite: 99/99 offline unit tests passing.

Three Audited SOUND Evolution Case Studies

  • math_04 (Two-stage evolution that timed out Gemini at >200s): G0 is a 10-term recurrence sum (515, 4/4 solved). exp_v1 G1 extended it to n=1..40n=1..40 with a 4-way residue-mod-4 piecewise transform (0/2 weak vs. 2/2 strong). exp_v2 G3 coupled affine/CRT inverse recovery, 10 carry-coupled blocks, and quota overlap probability—codex solved it in 51.0s, while held-out gemini-4-neon exceeded the 200s ceiling.
  • logic_02 (10-bit toy FSM → 48-step non-monotonic reversible trace): exp_v1 G3 extended the 4-state machine to 48 steps with reversible 'R' transitions, signed alert counts, and exact reversal_indices verified by two independent simulators; qwen3.8-flash emitted valid JSON with authentic state drift while both strong models traced all 48 transitions cleanly.
  • code_05 (6-line top_k_words → three-segment-tree online transactions): exp_v2 G3 evolved into rank_chunks with named ID moves, two-level nested transactions (begin/commit/rollback), baseline-relative gain queries, and Unicode prefix ranges tested across 27,609 events within the stated 40,000 bound—codex wrote three segment trees + undo log in 45.9s, while held-out gemini-4-neon timed out past 200s.

Conclusion: Four Non-Negotiable Rules for Fair RSI-Bench

  1. Deterministic Verification + Asymmetric Sandboxed Evolvers: Give the evolver an isolated Python sandbox to verify solvers, oracles, and examples before shipping, while test takers reason without tools—guaranteeing ground-truth fairness at 8× lower cost.
  2. End-to-End Harness-Coupled Gates: Always validate verify(extract_candidate(wrap(ref))) on the exact evaluation path, and treat per-task audits as mandatory pre-release gates against Goodhart cascades.
  3. Outer-Loop Meta-RSI + Multi-Family Frontier Upper Tiers: Static prompts invert rankings, weak ladders hit equilibrium early, and single-family upper tiers risk generator-family saturation.
  4. Cross-Family Held-Out Blind Testing: The only reliable defense against generator self-preference and silent overfitting.

Limitations

These runs prioritized fast, low-cost mechanistic discovery: sample sizes are small (exp_v1 20 seeds; exp_v2/exp_v3 8 seeds), G0 seeds are curated classic-style benchmarks rather than full public HumanEval+/MATH-500/BBH splits, cross-generation IRT calibration is not yet integrated, and per-task audits were performed by independent auditing agents with deterministic local execution rather than dual human annotators.

Run Log

Question / Figures Setup Run Key Result Actual Cost
Q1, Q2 / Fig 1–4 20 seeds × 3 gens (RSI vs. Static) + held-out Codex/Gemini exp_v1 Clean slope +0.275 vs. +0.150; held-out 100% (Gemini 2.5× slower) 7.16M PAI tokens + 80 frontier calls
Q3 (Negative Control) 12 seeds × 2 gens, non-thinking evolver vs. 3 thinking targets exp_v2_weak_evolver 16.7% gate yield, 0 tasks > 0.21, 100% saturated (stopped early) ~0.6M PAI tokens
Q3, Q4 8 seeds × 3 gens, sandboxed codex-evolver + held-out Gemini exp_v2 96.9% yield, 87.5% SOUND, Gemini 6.4× latency (2 timeouts); caught <answer> seam 0.895M PAI tokens + Codex/Gemini
Q4, Q5 / Fig 5 8 seeds × 2 gens, coupled gate + EVAL_TOKENS=8192 exp_v3 19/19 (100%) yield, 0/8 seams, slope +0.875, Codex 3.5× latency 0.733M PAI tokens (40.6% slots saved)

Citation

@misc{sheng2026rsibench,
  author = {Sheng, Pingyue},
  title  = {The Ruler Must Improve First: Fair Recursive Self-Improvement for Benchmarks},
  year   = {2026},
  url    = {https://ravenembodied-blog.chengpy23.workers.dev/experiments/rsi-bench}
}