TL;DR
The RMIT-ADM+S team introduced Routing-to-RAG (R2RAG), an award-winning architecture that dynamically adapts its retrieval strategy based on query complexity. By routing simple queries to a single-pass pipeline and complex queries to an iterative agent loop, R2RAG achieves state-of-the-art performance on complex research tasks using small, unquantized LLMs that run entirely on a single consumer-grade GPU.
What Problem Does This Paper Address?
Standard Retrieval-Augmented Generation (RAG) systems typically treat all user queries the same way—either processing them through a rigid, single-step retrieval pipeline or forcing them into expensive, multi-turn agentic search loops. This one-size-fits-all approach creates a stark trade-off:
- Vanilla RAG is concise and fast for simple questions but fails on multi-faceted, deep-research queries.
- Agentic RAG handles complex reasoning well but becomes overly verbose, slow, and expensive for straightforward queries.
Furthermore, traditional RAG systems often rely heavily on massive, closed-source models or heavily quantized open-source models that degrade in performance during long-context reasoning. The authors designed R2RAG to bridge this gap, optimizing for user-centric, real-time dynamic environments (like the RAG-Arena) under strict consumer-hardware constraints.
Methods
The core architecture of R2RAG relies on an explicit distinction between simple and complex queries, splitting the workflow into two distinct paths:
- Query Classifier: Incoming queries are evaluated by a structured LLM prompt (using Qwen3-4B) to determine if they can be answered with a single search or if they require multi-step synthesis.
- Vanilla RAG (Simple Path): If a query is simple, the system generates three query variants to maximize retrieval coverage, pulls documents from the ClueWeb22-A index, reranks them using a compact pointwise reranker (
Qwen3-Reranker-0.6B), and generates a concise answer truncated to a 5,000-word limit. - Vanilla Agent (Complex Path): If the query is complex, the system enters an iterative search loop (capped at 5 iterations). In each round, it generates up to five query variants and expands its context budget up to 25,000 tokens. A specialized Document Review module evaluates information coverage ($Cov$) after each step, checking for missing perspectives or knowledge gaps. The loop terminates dynamically once sufficient information is gathered or the token budget is exhausted.
To fit this entire pipeline onto a single consumer GPU, the authors served unquantized versions of Qwen3-4B and Qwen3-Reranker-0.6B using the vLLM engine, configuring a optimized context window of 25,000 tokens.
Datasets
- Classifier Training/Evaluation: To experiment with query classification, the authors compiled a dataset of 175,850 queries by combining:
- TREC Deep Learning
- Deep-Research Questions
- TREC RAG 2025
- Natural Questions
- Retrieval Index: The system performed live document retrieval against the ClueWeb22-A corpus via an API provided by the competition organizers.
Key Insights and Ideas
- Quantization Hurts Long-Context Reasoning: In preliminary experiments, the authors found that a 4-bit quantized larger model (e.g., Qwen3-8B) yielded weaker performance than a smaller, unquantized 4B model. Keeping the model compact (4B) and unquantized preserved crucial long-context reasoning capabilities while staying within GPU memory limits.
- The "Verbosity vs. Precision" User Trade-off: Qualitative focus groups revealed that users disliked agentic workflows for simple queries because they generated unnecessary fluff. Conversely, standard RAG left users unsatisfied on complex topics. Dynamic routing directly addresses this user-experience friction.
- Static Metrics Don't Tell the Whole Story: Traditional automated benchmarks failed to capture subtle dimensions like response structure, tone, and perceived system bias. Live, preference-based arena evaluations (human-in-the-loop) were essential to properly surface these qualitative distinctions.
Key Results
- NeurIPS 2025 Award: R2RAG won the Best Dynamic Evaluation award in the Open Source category for the Text-to-Text track at the MMU-RAG NeurIPS 2025 Competition.
- Efficiency: The system successfully managed complex, multi-step research queries within a strict 10-minute per-query competition limit, operating entirely on a single GPU.
Limitations and Future Work
- Computational Overhead of Classification: While the LLM-based query classifier provided superior semantic reasoning and handled out-of-distribution queries better than a lightweight Logistic Regression alternative, it introduced higher computational costs and latency.
- Context Window Constraints: To maintain efficient inference, the authors had to manually reduce the native context window of Qwen3-4B from 32,768 tokens down to 25,000 tokens, which inherently limits the volume of documents the agent can review in later iterations.
Summary updated