Lightweight Query Routing for Adaptive RAG: A Baseline Study on RAGRouter-Bench
This paper presents the first systematic evaluation of lightweight classifiers for query routing on the RAGRouter-Bench, demonstrating that a simple TF-IDF with SVM approach achieves high accuracy (93.2%) and significant token savings (28.1%) by leveraging surface keyword patterns over semantic embeddings to distinguish between factual, reasoning, and summarization queries.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you run a massive, high-tech library where you have three different ways to find answers for your visitors:
- The Quick Scan: A librarian who glances at the index and grabs the first relevant book. (Fast, cheap, but might miss complex details).
- The Detective: A librarian who reads multiple books, connects the dots, and writes a detailed report. (Slower, costs more effort, but great for hard puzzles).
- The Archivist: A librarian who gathers every document on a topic and summarizes the whole collection. (Very slow, very expensive, but necessary for big-picture overviews).
In the past, most libraries just used the Archivist for every single question, just to be safe. But that's like hiring a team of PhDs to answer "What's the weather?" It's a huge waste of time and money.
The Problem:
How do you know which librarian to send to which question without asking a human expert first? You need a "Traffic Cop" (a router) to look at the question and say, "Oh, this is a simple fact, send it to the Quick Scan!" or "This is a complex mystery, send it to the Detective!"
The Study:
The authors of this paper built a new test library called RAGRouter-Bench. It has nearly 8,000 questions from four different worlds: General Knowledge, Literature, Law, and Medicine. Each question is secretly labeled with what kind of "librarian" it actually needs.
They wanted to see if they could build a simple, lightweight computer program (a classifier) to act as the Traffic Cop, just by reading the question text.
The Experiment:
They tried 15 different combinations of "Traffic Cops" (algorithms) and "Reading Glasses" (how the computer sees the words):
- The Glasses:
- TF-IDF: Looks at specific keywords (e.g., if the word "summarize" appears, it knows it's a big-picture task).
- MiniLM: Tries to understand the "vibe" or deep meaning of the sentence.
- Structural: Counts things like sentence length or looks for words like "why" or "how."
- The Cops: Different types of math models (like SVM, Random Forest, etc.) to make the final decision.
The Surprising Results:
Simple is Better: The most effective "Traffic Cop" wasn't the one trying to understand deep meaning. It was the one just looking for keywords (TF-IDF) combined with a solid decision-maker (SVM).
- Analogy: It's like realizing that if a question starts with "Who is the president?", you don't need to analyze the deep philosophy of the sentence; you just need to know it's a "Who" question.
- This simple method got 93% accuracy.
The Savings: By using this smart router instead of just using the expensive "Archivist" for everything, they saved 28% of the computing power (tokens). That's a massive bill reduction for a company running these systems.
The Tricky Part: The system worked great for Law and Literature questions but struggled a bit with Medical questions.
- Why? In the medical part of the test, all the questions came from one giant, dense medical textbook. It was hard to tell a simple fact from a complex diagnosis just by looking at the words, because the "vocabulary" was the same for everything. In Law, the questions followed very specific, predictable patterns, making them easy to sort.
The Big Lesson:
The paper warns us: Don't just chase the cheapest option.
If you tell the router to always pick the cheapest librarian (the Quick Scan) to save money, you'll save 60% of the cost, but you'll give terrible answers to complex questions. The goal is a balance: save money without losing quality.
In a Nutshell:
This paper proves that you don't need a super-complex AI to decide how to answer a question. Sometimes, a simple tool that just looks for specific keywords is enough to route questions to the right "expert," saving a ton of money while keeping the answers accurate. However, to get even better, future systems will need to know not just the question, but also what books are available to answer it.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.