Bilevel Autoresearch: Meta-Autoresearching Itself
Organizations: Independent Researcher
Abstract
If autoresearch is itself a form of research, then autoresearch can be applied to research itself. We present Bilevel Autoresearch, a bilevel framework in which an outer autoresearch loop improves an inner autoresearch loop by reading its code and traces, identifying bottlenecks, and generating injectable Python search mechanisms at runtime. The inner loop optimizes task performance; the outer loop optimizes how the inner loop searches. Both loops use the same LLM, so improvements come from the bilevel architecture rather than a stronger meta-level model, although the outer loop consumes additional inference and wall-clock budget. On Karpathy's GPT pretraining benchmark, the meta-autoresearch outer loop achieves a 5x improvement over the standard inner loop alone (-0.045 vs. -0.009 val_bpb), while parameter-level adjustment without mechanism change yields no reliable gain. The outer loop instantiates mechanisms from adjacent search domains, including combinatorial optimization, multi-armed bandits, and design of experiments, without human specification of the final mechanism design. Trace analysis suggests that these mechanisms break deterministic search patterns and force exploration of directions the LLM's priors avoid. The experiments demonstrate, on this benchmark, a first bilevel step: an outer loop improves the search behavior of an inner loop. Code is the mechanism carrier in this implementation, but skills, prompts, workflows, evaluators, domain principles, world-model assumptions, and memory schemas can also encode mechanisms that shape future agent behavior. This suggests a path toward recursive bootstrapping, where mechanisms discovered for the inner loop can be fed back to improve the meta-level loop itself.
Figures & tables
| Group | Levels Active | Description |
|---|---|---|
| A | Level 1 only | Pure autoresearch, no outer intervention |
| B | Level 1 + 1.5 | Inner loop plus outer strategy adjustment |
| C | Level 1 + 1.5 + 2 | Full bilevel with mechanism research |
| D | Level 1 + 2 | Inner loop plus mechanism research, no strategy adjustment |
| Group | R1 | R2 | R3 | Mean Std |
|---|---|---|---|---|
| A (Level 1) | ||||
| B (Level 1 + 1.5) | ||||
| C (Level 1 + 1.5 + 2) | ||||
| D (Level 1 + 2) |
| Repeat | Round | Mechanism | Domain | Import | Active |
| R1 | 1 | Tabu Search Manager | Combinatorial opt. | ✓ | ✓ |
| R1 | 2 | Helper class | — | ✓ | ✓ |
| R2 | 1 | Multi-Scale Bandit Proposer | Online learning / MAB | ✓ | ✓ |
| R2 | 2 | Helper class | — | ✓ | ✓ |
| R3 | 1 | GP Regressor | Bayesian optimization | reverted | |
| R3 | 2 | Syst. Orthogonal Exploration | DOE | ✓ | ✓ |
Self-Improving Agents
Self-improving agents use experience and feedback to update their models, memories, skills, or workflows for better future task performance.
See all 169 papers