Stop tuning RAG from a single score
Agentic AutoRAG uses failure evidence and model-price priors to search for better pipelines. The useful engineering lesson is what a tuning trial must retain—and what its cost frontier leaves out.
A RAG configuration answers 70% of your evaluation questions correctly. What should change next? A different embedding model, larger chunks, a deeper candidate pool, a reranker, or a stronger generator? The score does not tell you. A failed answer with missing evidence and a failed answer with all the evidence present look identical in that aggregate. They call for different interventions.
Agentic AutoRAG, by Lasse B. Strand, Robert Jakob, Kevin O’Sullivan, and Markus Kreft, makes the optimization loop consume that distinction. An agent diagnoses each trial before another agent proposes the next pipeline. This is not an agent searching for an answer at serving time. It is an agent searching for a configuration offline.
The October 6 preprint reports acceptance at the REALM workshop at EMNLP 2026 and the Machine Learning for Systems workshop at NeurIPS 2026—not the main conference tracks. Its useful contribution is a tuning contract: retain evidence about failures, separate tuning questions from final evaluation, and price the pipeline you actually intend to serve. The experiments support the combined optimizer. They do not establish that a diagnosis agent alone causes the gain.
A trial should return more than a number
The system runs a candidate pipeline on a frozen exam. Alongside answer correctness, it records whether the retrieved chunks contain the question’s gold evidence spans. In the generated exam, retrieval succeeds only when all required spans are present. Missing spans identify a retrieval failure under that operational definition; an incorrect answer despite complete spans identifies a generation failure.
The method section then splits interpretation from action. A Diagnoser receives aggregate failure counts and a sample of failed questions spanning failure and question types, including newly introduced failures. It produces findings, not configuration changes. A Proposer receives the diagnosis, trial history, legal search space, remaining budget, and a knowledge base of model rankings and prices. It chooses the next configuration and explains why.
That separation is sensible engineering. You want an account of what failed before a recommendation about what to buy. But the gold-span rule is still a proxy: missing an annotated span does not establish that no equivalent evidence was retrieved. A production version needs evidence annotations that match the actual task, not just whatever text the exam generator happened to quote.
The model-ranking knowledge base matters too. The Proposer does not discover model capability and price from scratch. It starts with external benchmark and pricing information. This is informed search, not a clean contest between reasoning and statistics with identical prior information.
The gain survives held-out questions
The accuracy experiment uses HotpotQA, MuSiQue, and MultiHop-RAG. Each search gets 30 counted trials on a fixed 100-question validation exam. The selected configuration is evaluated on a separate, disjoint 300-question gold test slice. Ten search seeds vary the optimizer, not the evaluation questions.
The held-out results in Table 2 are worth distinguishing from the tuning curves. Below is LLM-judge accuracy on the 0–1 scale, reported as mean ± standard deviation across the ten seeds:
| Optimizer | HotpotQA | MuSiQue | MultiHop-RAG |
|---|---|---|---|
| Warm-started MO-TPE | 0.786 ± 0.057 | 0.301 ± 0.039 | 0.731 ± 0.045 |
| LLM optimizer without knowledge base or diagnosis | 0.819 ± 0.025 | 0.298 ± 0.024 | 0.780 ± 0.021 |
| Full Agentic AutoRAG | 0.825 ± 0.015 | 0.330 ± 0.025 | 0.790 ± 0.029 |
MO-TPE is a Bayesian search baseline built with Optuna’s Tree-structured Parzen Estimator. The warm version receives the paired random search’s 30 completed trials as a free prior, then gets 30 counted trials of its own. It therefore has information from 60 evaluations. The comparison uses the same pipeline space and harness, but it is not a run of the complete syftr system: frontier pruning and syftr’s agentic-RAG pipeline variants are excluded.
The full optimizer leads those baselines on mean judge accuracy. A plain LLM optimizer already captures much of the gain, however. On MultiHop-RAG, removing both knowledge base and diagnosis leaves exact match and token F1 unchanged at the reported precision. The two components are removed together, so this ablation cannot identify their individual contributions. The released benchmark repository explicitly says the single-component ablations were not run for the paper.
Retain failure evidence because it makes tuning inspectable. Do not cite these results as proof that adding a Diagnoser will produce a particular accuracy lift.
Better search cannot invent a missing pipeline
MuSiQue is the more important boundary. Every method performs poorly there; even the full optimizer reaches only 0.330 judge accuracy. The authors attribute the ceiling to a search space limited to single-round retrieval. MuSiQue’s longer reasoning chains can require finding one fact before knowing what to retrieve next.
Changing chunk size or generator cannot turn that pipeline into iterative retrieval. The optimizer can select only from the architectures you allow it to express.
This is different from giving an answering agent the retrieval controls. Here the agent controls an experiment, not the next search hop. Before expanding the tuning budget, inspect failures for a missing capability: iterative retrieval, a different parser, or an unsupported data modality. A more efficient optimizer over the wrong family of pipelines remains an efficient way to choose the wrong family.
The cheap frontier has a narrower denominator
The second experiment generates a 100-question exam from the healthcare subset of UniDoc-Bench: 230 PDFs and 20 page images, parsed with Docling. Questions are grounded in source spans, filtered for answerability, and selected using four probe configurations to favor items that distinguish pipelines. The exam is then frozen for all methods and seeds.
On that exam, the agent’s median cost–accuracy curve reaches 77% accuracy at $0.000741 per query. Warm MO-TPE peaks at 71.5% for $0.001284. The agent matches that 71.5% at $0.000288: about 22.4% of the baseline’s cost, calculated from the reported curve points. These are median attainment-curve comparisons, not a claim that every seed finds the same configuration. The paper also tests per-seed peak accuracy and cost to reach the accuracy bar; the released significance report distinguishes those quantities.
Two restrictions change the deployment interpretation. First, the cost axis counts generation and query-expansion API calls. Embedding and reranking run locally and incur no API charge in that metric. Their hardware, operations, and latency are not free; they are outside this dollar denominator.
Second, 77% is accuracy on the generated exam used for optimization, not an independently held-out production result. Appendix A reports that 98 of its 100 questions keep their evidence within one document. It is not evidence of broad cross-document medical reasoning, clinical reliability, or generalization to your users. Both experiments use an LLM judge without a human-agreement study.
Keep two ledgers and an untouched test set
The practical adoption experiment is smaller than replacing your stack with an optimizer.
Keep your current pipeline and a random or Bayesian search baseline. Freeze a tuning set with answer and evidence annotations, and keep a separate final test set the optimizer never sees. For each trial, retain the configuration, retrieved evidence, answer, failure classification, and cost. Inspect the evidence-present failures separately from the evidence-missing failures before proposing changes. That is the engineering inference from this work, not a result independently measured on a Laguna Labs system.
If you add an LLM proposer, compare it with and without diagnosis while holding its model-ranking and pricing priors fixed. That isolates the component the paper’s combined ablation leaves unresolved. Pin the knowledge-base snapshot: its generator benchmarks and prices are dated May 2026, and stale prices can change the recommended operating point.
Keep search cost separate from serving cost. Appendix D reports that full 30-trial score-only agent searches cost more than the statistical baselines, largely because they evaluate more expensive generators—not because the diagnosis calls dominate. A cheaper served pipeline and a cheaper optimization run are different objectives. Add local retrieval compute and your actual latency constraint before calling the frontier deployable.
The optimizer code and benchmark code, saved results, splits, and exam artifacts are publicly available. This article checks the full paper and released result tables; it does not independently rerun the model experiments.
A tuning trial is an experiment, not just a score. Preserve what the system retrieved, separate the failure modes, and keep the bill’s exclusions visible. Then let an optimizer choose the next trial—inside a pipeline family capable of solving the task.