Adaptive RAG: Matching Retrieval Effort to the Question

Adaptive RAG: Matching Retrieval Effort to the Question

Adaptive RAG is a retrieval framework that matches the effort spent on retrieval to the difficulty of the question, sending simple questions straight to the language model, moderate ones through a single retrieval step, and complex ones through several rounds of retrieval and reasoning. The central question is why every query should pay the same retrieval cost when questions vary so wildly in difficulty, and the answer is that they should not: a system that spends multi-hop effort on “what is the capital of France” is wasting time and money on every easy question it serves.

Adaptive RAG was proposed by Jeong, Baek, Cho, Hwang and Park in March 2024, in the paper “Adaptive-RAG: Learning to Adapt Retrieval-Augmented Large Language Models through Question Complexity”. A small classifier predicts the complexity of each incoming query, and the system routes it to the cheapest strategy that can answer it correctly.

Key takeaways

  • Adaptive RAG routes each query to one of three strategies — no retrieval, single-step retrieval, or multi-step retrieval — based on a predicted complexity level.
  • A small classifier, a T5-Large model in the original paper, makes the routing decision before retrieval starts.
  • In the original study, it matched multi-step accuracy while taking only 44 percent of the time per query with GPT-3.5.
  • The classifier is trained on automatically collected labels, so no manual annotation is needed.

The one-size-fits-all problem

Most RAG pipelines are built for the hardest question they might face. They retrieve several passages, sometimes over multiple rounds, and run a large model over all of it. That is the right design for a multi-hop research question, and a terrible design for a question the model already knows. The easy questions pay the full price of the hard pipeline: extra latency, extra tokens, extra cost, and extra chances for retrieval noise to spoil a correct answer.

The alternative — a pipeline tuned for speed — fails in the other direction. It answers easy questions quickly and gets hard ones wrong, because a single retrieval round cannot gather evidence spread across several documents. Neither fixed design fits a real workload, because real workloads mix both. Users ask simple factual questions far more often than complex ones, yet the system is tuned for the rare hard case.

Adaptive RAG resolves the tension by refusing to choose one pipeline. It keeps all three strategies and picks between them per query, so the average question costs far less than the hardest question, while the hard questions still get the full treatment.

How adaptive RAG works

The framework has two stages: classify, then route. The classifier reads the incoming query and predicts its complexity as one of three levels. Level A means straightforward: the language model can answer from its own knowledge with no retrieval. Level B means moderate: one round of retrieval will supply the needed evidence. Level C means complex: the question needs iterative retrieval interleaved with reasoning, over several rounds.

Each level maps to a strategy. The no-retrieval path is simply the model answering directly. The single-step path retrieves once and generates. The multi-step path alternates retrieval and reasoning, using each round’s findings to decide what to fetch next — the original paper builds this path on IRCoT, a method that interleaves retrieval with chain-of-thought reasoning. The classifier’s job is to send each question to the cheapest path that can still answer it.

The timing differences are stark. In the study’s setup, a question answered without retrieval took 0.35 seconds, a single-step question took 3.08 seconds, and a multi-step question took 27.18 seconds. Routing a simple question to the multi-step path is not a small inefficiency; it is nearly eighty times slower than necessary. That gap is the whole case for adaptive routing.

Training the classifier without manual labels

No dataset of query-complexity labels existed, so the authors collected labels automatically. The method is elegant: run each training question through all three strategies, and label it with the cheapest strategy that answered it correctly. If no retrieval got it right, the question is simple. If single-step retrieval was needed, it is moderate. If only multi-step worked, it is complex. The labels reflect what your system can actually do, not an abstract notion of difficulty.

The classifier itself is a small model — T5-Large, with around 770 million parameters, in the original paper — fine-tuned on those automatically collected labels. It runs before retrieval, so it must be fast, and a small classifier adds negligible overhead to the pipeline. The investment is in building the labelling run, not in serving the classifier.

A person pointing at one of three branching arrows drawn on a whiteboard in a bright office
Adaptive routing is a three-way choice: answer directly, retrieve once, or retrieve in rounds — and the classifier makes that choice for every question.

What the original results showed

The authors evaluated Adaptive RAG on open-domain question answering datasets covering a range of complexities, and compared it with fixed strategies and with earlier adaptive approaches. With GPT-3.5 as the generator, Adaptive RAG matched the accuracy of the full multi-step approach while taking only 44 percent of its time per query. The saving comes from the many simple and moderate questions that never need the expensive path.

The results also showed where the remaining gains sit: routing accuracy. When the classifier was replaced with a perfect one, the same test’s F1 score rose to 62.80, which means misrouted questions are still the main source of lost accuracy. A classifier that sends a complex question down the simple path produces a confident wrong answer; one that sends a simple question down the complex path wastes time. Improving the classifier is the highest-leverage work in the system.

Adaptive RAG vs other conditional retrieval designs

Adaptive RAG is one of several designs that make retrieval conditional, and it differs from the others in when the decision is made. Self-RAG decides during generation, segment by segment, which is finer-grained but requires training the generator. Corrective RAG decides after retrieval, by grading what came back, which catches bad retrieval but has already paid for the search. Adaptive RAG decides before retrieval, which is the cheapest point to decide — but also the point with the least information, since the classifier has only the question to go on.

Approach Decision point Decision maker Main strength Main weakness
Adaptive RAG Before retrieval Query-complexity classifier Cheapest decision point; big latency savings Classifier sees only the question
Self-RAG During generation The model itself, via reflection tokens Finest-grained control Requires full model fine-tuning
Corrective RAG After retrieval Retrieval evaluator Catches bad retrieval directly Already paid the retrieval cost
Agentic RAG Throughout an agent loop Agent with tools Handles open-ended research Unpredictable cost per query
Standard RAG Never Fixed pipeline Simple and predictable Same cost for every question

These designs compose rather than compete. An adaptive router can sit in front of a corrective evaluator, so a question routed to single-step retrieval still gets its evidence graded, and a multi-step path can still check its work. Multi-hop retrieval is the technique the complex path relies on, and retrieval latency analysis is how you find out whether routing is actually saving you time.

When adaptive RAG pays off

Routing pays off when your workload mixes easy and hard questions, and when the cost gap between strategies is large. Both conditions are common in production: most user questions are simple, and multi-step retrieval is far more expensive than a direct answer. It pays off least when every question is hard, when every question is easy, or when the classifier cannot tell the difference reliably. If your questions are all similar in difficulty, a fixed pipeline is simpler and just as good.

It also pays off when latency matters to users. A chat assistant that answers simple questions in under a second feels dramatically faster than one that takes thirty seconds for everything, even if the average is the same. Routing improves the experience of the majority, which is where user satisfaction actually lives.

Best for: production question-answering systems with a mixed workload, where simple questions dominate and multi-step retrieval is expensive.

Implementing adaptive routing

You do not need to replicate the paper to get the benefit. A practical version has four parts: a labelling run, a classifier, routing thresholds, and monitoring. Start with the labelling run on your own questions and your own strategies, exactly as the paper describes: run all three strategies offline, and label each question with the cheapest one that answered correctly. That gives you a classifier training set grounded in your system, not in a benchmark.

For the classifier, a small fine-tuned model is ideal, but a simpler starting point is a rules-based router: short factual questions go direct, questions with named entities or dates go single-step, and questions with multiple clauses, comparisons or “and then” structure go multi-step. Rules are cruder than a trained classifier, but they are explainable, and they let you validate the routing idea before investing in training.

Set explicit fallbacks. When the classifier is uncertain, route to the more thorough strategy rather than the cheaper one: a slow correct answer beats a fast wrong one. Add a confidence threshold below which the question always gets at least single-step retrieval. And cap the multi-step path with a maximum number of rounds, so a pathological question cannot loop forever.

Monitor routing as a first-class metric. Track the share of questions on each path, the accuracy per path, and the misrouting rate — questions the classifier sent down a path that failed when a harder path would have succeeded. Those numbers tell you whether the classifier is earning its keep or quietly degrading quality. RAG evaluation metrics give you the framework for measuring accuracy per path rather than as a single blended number.

Adaptive RAG checklist

  • Confirm your workload actually mixes easy and hard questions before building a router.
  • Build a labelling run: test all three strategies offline and label each question with the cheapest one that works.
  • Start with a rules-based router to validate the idea, then train a small classifier.
  • Route uncertain questions to the more thorough strategy, not the cheaper one.
  • Cap multi-step retrieval with a maximum number of rounds.
  • Track the share, accuracy and misrouting rate of each path separately.
  • Measure time per query and cost per query per path, not just overall averages.
  • Re-run the labelling exercise when your model, corpus or question mix changes.

Frequently asked questions

What is adaptive RAG?

Adaptive RAG is a retrieval framework that predicts the complexity of each query and routes it to the cheapest suitable strategy: no retrieval for simple questions, single-step retrieval for moderate ones, and multi-step retrieval for complex ones.

How does adaptive RAG decide which path to use?

A small classifier, trained on automatically collected labels, predicts whether a question is simple, moderate or complex, and the system routes it to the matching strategy before retrieval starts.

How much time does adaptive RAG save?

In the original study with GPT-3.5, Adaptive RAG matched multi-step accuracy while taking 44 percent of the time per query. The saving depends on how many of your questions are simple or moderate.

Do I need labelled data to train the adaptive RAG classifier?

No manual labelling is needed. Labels are collected automatically by running each training question through all three strategies and recording the cheapest one that answered correctly.

What happens when the adaptive RAG classifier is wrong?

A complex question sent down a simple path may get a confident wrong answer, while a simple question sent down a complex path wastes time. Routing accuracy is the main source of remaining improvement, so uncertain questions should default to the more thorough path.

Where can I read the original adaptive RAG paper?

The paper is “Adaptive-RAG: Learning to Adapt Retrieval-Augmented Large Language Models through Question Complexity” by Jeong, Baek, Cho, Hwang and Park, available as arXiv:2403.14403.

Latest articles

Scroll to Top