Self-Optimizing Pipeline: How Iterative Experimentation Brought Open-Weight Models to Frontier Performance on HealthBench
2026.04.06 · 12 min
Hover or tap underlined terms and data values for explanations.
1. Introduction
Using autonomous optimization, an open-weight model with 9 billion parameters, small enough to run on a consumer laptop, matched OpenAI o3 on a physician-evaluated healthcare benchmark. A larger model from the same family scored between GPT-5's two thinking variants. Neither model was fine-tuned, given access to medical databases, or modified in any way. Instead, the autonomous optimization process discovered how to arrange each model into multi-agent architectures that unlock capabilities the model already has but does not consistently surface in a single response.
After hundreds of experiments, this process produced novel pipeline architectures that match the performance of frontier proprietary models on HealthBench, a healthcare benchmark developed by OpenAI and evaluated by 262 physicians. The resulting systems, referred to as AO-9B and AO-397B (Autonomous Optimization applied to open-weight Qwen 3.5 models with 9 billion and 397 billion parameters respectively), achieved these results without any specialized medical training, retrieval-augmented generation, or proprietary data.
HealthBench Overall: Model Comparison
Highlighted rows show this study's results. Italic labels indicate baseline (no pipeline) performance. OpenAI scores from the GPT-5 system card.
2. What is HealthBench?
HealthBench is an open-source benchmark for evaluating how well AI models handle realistic health conversations. Unlike medical exam benchmarks that test factual recall with multiple-choice questions, HealthBench uses 5,000 open-ended, multi-turn conversations that reflect how people actually interact with AI about their health. The benchmark was developed by 262 physicians across 60 countries, who authored 48,562 unique rubric criteria to evaluate model responses.
Each conversation is graded against a rubric written by physicians. A rubric might specify that a good response should mention a particular red-flag symptom, recommend a specific follow-up, or avoid unnecessarily alarming language. Criteria can be positive (points for including the right information) or negative (penalties for harmful content like fabricated medical details). The final score is normalized to a 0–100 scale.
This makes HealthBench particularly demanding. A model cannot score well by being generically helpful. It must provide specific, accurate clinical information while avoiding the kinds of errors that could cause real harm. The benchmark spans seven themes including emergency referrals, global health contexts, clinical data interpretation, and cases where the model should ask clarifying questions rather than guess.
3. How the Self-Optimizing Pipeline Works
The core idea is straightforward: instead of manually engineering a better system, build a process that discovers improvements automatically through structured experimentation. The system runs in a continuous loop. Each cycle identifies a specific failure pattern, proposes an explanation, tests competing solutions, and evaluates whether the change actually helps across a broad set of cases.
The Optimization Loop
What makes this different from standard prompt engineering or manual tuning is the discipline of the process. Each cycle follows a strict protocol:
- Competitive testing. Every hypothesis is tested with four competing solutions, typically two drawn from published research and two novel approaches. Solutions compete head-to-head rather than being evaluated in isolation.
- Two-phase validation. A winning solution first proves itself on the specific cases it targets. If it passes, it is tested against a broader set of cases to confirm it does not break things that already work.
- Cumulative integration. Validated improvements accumulate. After every few successful changes, the full set is tested together on a held-out validation panel to confirm they compose well.
This process ran continuously across hundreds of experiments. The system did not follow a predetermined architecture. Instead, the architecture emerged from what survived the validation gauntlet.
4. What the System Built
The architecture that emerged was not planned in advance. It was assembled one validated component at a time through the optimization loop described above. After approximately 300 experiments, the system converged on a four-stage pipeline where a single model plays multiple roles: extracting information, generating candidate responses, and judging which candidate is best.
Emerged Pipeline Architecture
Three principles emerged from the experiments that shaped this architecture:
- Generation and selection must be co-designed. Changing how candidates are generated without updating how they are judged (or vice versa) creates misalignment. The information extraction step and the selection criteria were developed together because each depends on the other.
- Unconditional interventions cause regressions. Every experiment that applied a blanket change to all cases (shorter responses everywhere, hedging removal on every answer, extra verification on all inputs) degraded overall performance. The changes that survived either limit their own scope or provide information the model can use selectively.
- Early steps have outsized impact. Because all five candidates process the same extracted context, even small changes to the extraction step cascade through the entire pipeline. Modifications to early components require especially careful validation.
5. The Results
The optimization loop produced measurable gains across both model sizes tested. On the 250-case HealthBench validation set, the Qwen 3.5-9B model improved from a 52.4% baseline to 59.1% with the pipeline, a gain of +6.7 percentage points (p < 0.001, Wilcoxon signed-rank test). The Qwen 3.5-397B model reached 65.8% with the tournament architecture, up from a baseline of 58.3%.
The path from baseline to final performance was not a single leap. The chart below shows how performance evolved on the 30-case synthetic development set as each architectural innovation was validated and integrated. These development scores guided the optimization process; the 250-case validation results reported above are the numbers directly comparable to published benchmarks.
Chart: Architecture Evolution on Development Set
| # | Architecture | Score | Gain |
|---|---|---|---|
| 1 | System prompt baseline | 61.2% | – |
| 2 | Critique + revise | 65.5% | +4.3pp |
| 3 | Best-of-3 + judge | 67.5% | +6.3pp |
| 4 | Best-of-5 + judge | 72.3% | +11.1pp |
| 5 | Tournament Bo5 | 75.5% | +14.3pp |
| 6 | Tournament + refined judge | 77.5% | +16.3pp |
Scores on 30-case synthetic development set. See Section 7 for methodology.
The key takeaway from these results is that the autonomous optimization loop itself drove the gains. The system did not require domain expertise or manual architecture design. It started from a simple baseline, identified what was failing, tested solutions, and accumulated what worked. Each checkpoint in the table above represents a new architectural idea that the process discovered, validated, and integrated. The final architecture was not planned; it was the natural output of hundreds of iterations through the loop.
6. What Didn't Work
Not every experiment improved performance. Of approximately 300 experiments run through the optimization loop, the majority were rejected. These failures are worth discussing because they reveal recurring themes that any practitioner working with AI systems is likely to encounter.
Overfitting the Optimization Process
Roughly 220 experiments were ultimately archived after it became clear the optimization process had learned to game the evaluation rather than improve the system. An automated code generation tool was used to rapidly produce and test pipeline variants, and it found changes that improved scores on the small development set without improving general capability. When tested on new cases, the gains disappeared.
This is a familiar problem in machine learning, but it appeared here in a new form. The fix was straightforward: enforce strict separation between development and validation data, and require that every change prove itself on cases it was not designed for.
One-Size-Fits-All Changes
A recurring pattern across rejected experiments was that changes applied uniformly to all cases tended to help some while hurting others. Telling the model to be more concise improved editing tasks but caused medical questions to lose important details. Removing cautious language helped cases where the model was being excessively tentative but stripped appropriate safety warnings from others. Adding extra verification steps caught errors on some cases but introduced new errors elsewhere.
The changes that survived the optimization process tended to be ones that provide the model with better information or structure, rather than ones that impose a blanket behavioral rule.
Selection Cannot Overcome Knowledge Gaps
Generating more candidates and selecting more carefully produced the largest gains overall, but it has a ceiling. On the hardest cases, where the model simply lacks the clinical knowledge to answer correctly, all five candidates tend to make the same errors. Varying the generation approach (different prompting styles, different levels of reasoning) did not help in these situations. Selection improves consistency, not capability.
Adversarial Approaches
Techniques that pit agents against each other, such as having one agent challenge another's response, consistently degraded quality. The challenging agent's objections were frequently incorrect, and the process of resolving disagreements between agents introduced errors that would not have existed in a single well-selected response.
7. Methodology
Benchmark: Results are reported on a 250-case subset of HealthBench, following the methodology established by the UK AI Safety Institute's replication of the benchmark in their inspect_evals framework. The UK AI Safety Institute validated this subset as a good approximation of the full 5,000-case dataset for efficient benchmarking.
Grading: Responses were graded by Claude Sonnet against the original physician-written rubric criteria from HealthBench. Previous publications have used older models like GPT-4o for automated grading, but testing showed those models produced less accurate evaluations, particularly on negative criteria (penalties for harmful or fabricated content). Claude Sonnet demonstrated the fewest grading errors across validation checks and is used for all results reported in this article.
Synthetic development set: A set of 250 paraphrased HealthBench cases was generated for use during the optimization process. These synthetic variants preserve all medical details and rubric criteria from the originals but use different wording to prevent overfitting to surface-level patterns. The development set scores in the architecture evolution table are drawn from a subset of these synthetic cases. The 250-case validation results in the comparison chart use the original HealthBench cases.
Models: Qwen 3.5-9B (9 billion parameters, run locally via Ollama) and Qwen 3.5-397B (397 billion parameters, mixture-of-experts architecture, run via cloud API). Both models used temperature 0.3 for candidate generation and thinking mode disabled.
OpenAI comparison scores: All OpenAI model scores are from the GPT-5 system card (2025), evaluated on the full HealthBench benchmark using OpenAI's official grading methodology.
Statistical significance: The 9B pipeline improvement (+6.7pp on 250 cases) is statistically significant by both paired t-test (p = 0.000418) and Wilcoxon signed-rank test (p = 0.000073), with a Cohen's d effect size of 0.226 (small-to-medium). The 397B tournament was evaluated in a single run; per-case variance for this model (measured at ±7pp within-case standard deviation) means small differences should be interpreted cautiously.
Limitations: The 250-case subset, while representative, is not the full benchmark. Grading methodology is comparable but not identical to the official HealthBench evaluation. The 397B model shows meaningful response non-determinism between runs (±20pp on individual cases), which affects the reliability of single-run measurements. The optimization process was guided by a human researcher, not fully automated; "self-optimizing" refers to the structured loop, not autonomous execution.
Arora RK, Wei J, Soskin Hicks R, et al. HealthBench: Evaluating Large Language Models Towards Improved Human Health. arXiv:2505.08775. 2025.
Chen C, Luo B, Li N, et al. Spec-Driven AI for Science: The ARIA Framework for Automated and Reproducible Data Analysis. arXiv:2510.11143. 2025.
UK AI Safety Institute. HealthBench Evaluation. inspect_evals. 2025.
OpenAI. OpenAI's HealthBench in Action: Evaluating an LLM-Based Medical Assistant on Realistic Clinical Queries. arXiv:2509.02594. 2025.