arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.03455cs.IRcs.CLcs.LG
收藏

轻量级查询路由用于自适应RAG:对RAGRouter-Bench的基准研究

Lightweight Query Routing for Adaptive RAG: A Baseline Study on RAGRouter-Bench

Prakhar Bansal, Shivangi Agarwal

AI总结:

本文评估了轻量级分类器在RAGRouter-Bench上的路由效果,发现TF-IDF与SVM组合在宏平均F1值和准确率上表现最佳,同时实现token节省。

摘要:

检索增强生成管道涵盖了多种检索策略,这些策略在token成本和能力上有显著差异。选择正确的策略对于每个查询是实际效率问题,但尚未有路由分类器在RAGRouter-Bench上进行训练,该基准包含7727个查询,覆盖四个知识领域,每个查询标注为事实性、推理和总结三种类型之一。本文首次系统评估了基于轻量级分类器的路由方法。在三种特征模式下评估了五个经典分类器:TF-IDF、MiniLM句子嵌入和手工制作的结构特征,共产生15种分类器特征组合。最佳配置为TF-IDF与SVM组合,宏平均F1值为0.928,准确率为93.2%,同时相对于始终使用最昂贵的范式,模拟节省了28.1%的token。词汇TF-IDF特征在宏F1值上比语义句子嵌入高出3.1个点,表明表面关键词模式是查询类型复杂性的强预测因素。领域级分析显示,医疗查询最难路由,法律查询最易处理。这些结果建立了可重复的查询侧基准,并突显了语料库意识路由必须弥补的差距。

英文摘要:

Retrieval-Augmented Generation pipelines span a wide range of retrieval strategies that differ substantially in token cost and capability. Selecting the right strategy per query is a practical efficiency problem, yet no routing classifiers have been trained on RAGRouter-Bench \citep{wang2026ragrouterbench}, a recently released benchmark of $7,727$ queries spanning four knowledge domains, each annotated with one of three canonical query types: factual, reasoning, and summarization. We present the first systematic evaluation of lightweight classifier-based routing on this benchmark. Five classical classifiers are evaluated under three feature regimes, namely, TF-IDF, MiniLM sentence embeddings \citep{reimers2019sbert}, and hand-crafted structural features, yielding 15 classifier feature combinations. Our best configuration, TF-IDF with an SVM, achieves a macro-averaged F1 of $\mathbf{0.928}$ and an accuracy of $\mathbf{93.2\%}$, while simulating $\mathbf{28.1\%}$ token savings relative to always using the most expensive paradigm. Lexical TF-IDF features outperform semantic sentence embeddings by $3.1$ macro-F1 points, suggesting that surface keyword patterns are strong predictors of query-type complexity. Domain-level analysis reveals that medical queries are hardest to route and legal queries most tractable. These results establish a reproducible query-side baseline and highlight the gap that corpus-aware routing must close.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑