Hyperagents

Jenny Zhang, Bingchen Zhao, Wannan Yang, Jakob Foerster, Jeff Clune, Minqi Jiang, Sam Devlin, Tatiana Shavrina

TL;DR

The paper introduces Hyperagents, a framework for recursive self-improving AI systems that can optimize their own improvement mechanisms across any computable task. By unifying task-solving and self-modification into a single editable program, Hyperagents break free from fixed, handcrafted meta-rules, demonstrating compounding and generalizable performance gains that transfer across completely different domains.

What Problem Does This Paper Address?

Recursive self-improvement—where an AI system modifies its own code to become more capable—has long been a holy grail of computer science. Recent architectures like the Darwin Gödel Machine (DGM) achieved open-ended self-improvement in coding domains. However, these systems rely on a fixed, handcrafted "meta-agent" to generate self-improvement instructions. This setup works well for coding because the target task (writing code) perfectly aligns with the skill needed to self-modify (writing code).

When you move outside of coding domains (e.g., to robotics or paper reviewing), this alignment breaks down. An AI that gets better at designing robot rewards doesn't automatically get better at analyzing its own code bugs. To achieve true open-ended self-improvement across any task, an AI must be able to modify its own meta-level improvement mechanisms—a capability the authors call metacognitive self-modification.

Methods

The authors propose Hyperagents, which combine a task agent (responsible for solving the target problem) and a meta agent (responsible for modifying the system) into a single, fully editable Python program.

They instantiate this via DGM-Hyperagents (DGM-H), combining hyperagents with DGM's population-based evolutionary structure:

  1. Archive of Hyperagents: The system maintains a growing pool of agent variants.
  2. Parent Selection: High-performing agents are probabilistically selected to branch out based on performance and novelty.
  3. Metacognitive Self-Modification: The selected hyperagent modifies its own codebase—including the meta-agent logic itself.
  4. Evaluation: The new child hyperagent is evaluated on computable tasks and added back to the archive if valid.

Because the entire program is editable, the agent can autonomously discover better ways to improve itself over time rather than being bottlenecked by human-engineered meta-rules.

Overview of DGM vs DGM with Hyperagents

Datasets

The framework was evaluated across four distinct domains:

  • Coding (Polyglot): A benchmark consisting of 60 training and 165 test tasks requiring repository-level code modifications.
  • Paper Review: A simulated peer-review dataset containing 100 train, 100 validation, and 100 test tasks based on real ICLR/NeurIPS submissions.
  • Robotics Reward Design: A physics-simulation environment using the Genesis engine where a quadruped robot must learn to walk (6 train tasks) or maximize torso height/jump (6 test tasks).
  • Olympiad-level Math Grading (IMO-GradingBench): A challenging dataset of International Mathematical Olympiad problems with candidate solutions and expert human grades (100 train, 100 validation, and 100 test tasks).

Key Insights and Ideas

  • Emergence of Meta-Infrastructure: Left to its own devices, DGM-H spontaneously engineered complex software infrastructure to help it self-improve. It built its own PerformanceTracker class to log metrics across generations and developed a MemoryTool to store synthesized insights, causal hypotheses, and future plans.
  • Cross-Domain Meta-Transfer: The strategies a hyperagent learns to improve itself in one domain (e.g., paper reviewing) can successfully transfer to accelerate its learning in a completely different domain (e.g., math grading).
  • Compounding Gains: Self-improvements are reusable and can compound across runs. Initializing an optimization loop with a pre-trained "transfer hyperagent" leads to faster progress and higher final performance ceilings.

Key Results

  • Outperforming Handcrafted Baselines: On non-coding tasks like paper reviewing and robotics reward design, DGM-H significantly outperformed standard DGM and ablation baselines. For instance, on paper review, DGM-H improved test accuracy from 0.0 to 0.710, beating the static baseline from AI-Scientist-v2 (0.630).
  • Escaping Local Optima: In robotics reward design, DGM-H successfully discovered reward functions that induced jumping behavior to maximize torso height, whereas human-engineered DGM baselines frequently got stuck in the local optimum of simply standing tall.
  • Math Grading Accuracy: When transferred to the IMO math grading task, DGM-H improved the state-of-the-art ProofAutoGrader's accuracy from 0.561 to 0.601 by successfully correcting a grading bias that collapsed nuanced intermediate solutions into extreme labels.
Performance of DGM-H on Paper Review and Robotics Reward Design

Limitations and Future Work

  • Fixed Task Distribution: DGM-H currently operates on a static set of tasks. A natural extension would be to co-evolve the task distribution alongside the agent's capabilities via automated curriculum generation.
  • Fixed Outer Loop: While the hyperagent can modify its internal task and meta logic, the outer evolutionary loop (the parent selection and evaluation protocols) remains largely fixed by human designers to ensure stability and safety. Fully self-referential systems would ideally modify these outer components as well.

Summary updated

BibTeX
@inproceedings{zhang2026hyperagents,
  author = {Jenny Zhang and Bingchen Zhao and Wannan Yang and Jakob Foerster and Jeff Clune and Minqi Jiang and Sam Devlin and Tatiana Shavrina},
  title = {{Hyperagents}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Jdp9fbYYbz},
}
Figure