Route Before Retrieve: Activating Latent Routing Abilities of LLMs for RAG vs. Long-Context Selection

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Chen, Yiwen, Li, Kuan, Zhuang, Fuzhen, Wang, Deqing, Zhang, Zhao, Zhang, Liwen, Jiang, Yong, Wang, Shuai, Cheng, Minhao
Formato: Preprint
Publicado: 2026
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866918495725289472
author Chen, Yiwen
Li, Kuan
Zhuang, Fuzhen
Wang, Deqing
Zhang, Zhao
Zhang, Liwen
Jiang, Yong
Wang, Shuai
Cheng, Minhao
author_facet Chen, Yiwen
Li, Kuan
Zhuang, Fuzhen
Wang, Deqing
Zhang, Zhao
Zhang, Liwen
Jiang, Yong
Wang, Shuai
Cheng, Minhao
contents Recent advances in large language models (LLMs) have expanded the context window to beyond 128K tokens, enabling long-document understanding and multi-source reasoning. A key challenge, however, lies in choosing between retrieval-augmented generation (RAG) and long-context (LC) strategies: RAG is efficient but constrained by retrieval quality, while LC supports global reasoning at higher cost and with position sensitivity. Existing methods such as Self-Route adopt failure-driven fallback from RAG to LC, but remain passive, inefficient, and hard to interpret. We propose Pre-Route, a proactive routing framework that performs structured reasoning before answering. Using lightweight metadata (e.g., document type, length, initial snippet), Pre-Route enables task analysis, coverage estimation, and information-need prediction, producing explainable and cost-efficient routing decisions. Our study shows three key findings: (i) LLMs possess latent routing ability that can be reliably elicited with guidelines, allowing single-sample performance to approach that of multi-sample (Best-of-N) results; (ii) linear probes reveal that structured prompts sharpen the separability of the "optimal routing dimension" in representation space; and (iii) distillation transfers this reasoning structure to smaller models for lightweight deployment. Experiments on LaRA (in-domain) and LongBench-v2 (OOD) confirm that Pre-Route outperforms Always-RAG, Always-LC, and Self-Route baselines, achieving superior overall cost-effectiveness.
format Preprint
id arxiv_https___arxiv_org_abs_2605_10235
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Route Before Retrieve: Activating Latent Routing Abilities of LLMs for RAG vs. Long-Context Selection
Chen, Yiwen
Li, Kuan
Zhuang, Fuzhen
Wang, Deqing
Zhang, Zhao
Zhang, Liwen
Jiang, Yong
Wang, Shuai
Cheng, Minhao
Computation and Language
Recent advances in large language models (LLMs) have expanded the context window to beyond 128K tokens, enabling long-document understanding and multi-source reasoning. A key challenge, however, lies in choosing between retrieval-augmented generation (RAG) and long-context (LC) strategies: RAG is efficient but constrained by retrieval quality, while LC supports global reasoning at higher cost and with position sensitivity. Existing methods such as Self-Route adopt failure-driven fallback from RAG to LC, but remain passive, inefficient, and hard to interpret. We propose Pre-Route, a proactive routing framework that performs structured reasoning before answering. Using lightweight metadata (e.g., document type, length, initial snippet), Pre-Route enables task analysis, coverage estimation, and information-need prediction, producing explainable and cost-efficient routing decisions. Our study shows three key findings: (i) LLMs possess latent routing ability that can be reliably elicited with guidelines, allowing single-sample performance to approach that of multi-sample (Best-of-N) results; (ii) linear probes reveal that structured prompts sharpen the separability of the "optimal routing dimension" in representation space; and (iii) distillation transfers this reasoning structure to smaller models for lightweight deployment. Experiments on LaRA (in-domain) and LongBench-v2 (OOD) confirm that Pre-Route outperforms Always-RAG, Always-LC, and Self-Route baselines, achieving superior overall cost-effectiveness.
title Route Before Retrieve: Activating Latent Routing Abilities of LLMs for RAG vs. Long-Context Selection
topic Computation and Language
url https://arxiv.org/abs/2605.10235