Saved in:
Bibliographic Details
Main Authors: Wang, Hairu, Feng, Yuan, Cao, Yukun, Xie, Xike, Zhou, S Kevin
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.23841
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908586646437888
author Wang, Hairu
Feng, Yuan
Cao, Yukun
Xie, Xike
Zhou, S Kevin
author_facet Wang, Hairu
Feng, Yuan
Cao, Yukun
Xie, Xike
Zhou, S Kevin
contents Large language models excel at many tasks but often incur high inference costs during deployment. To mitigate hallucination, many systems use a knowledge graph to enhance retrieval-augmented generation (KG-RAG). However, the large amount of retrieved knowledge contexts increase these inference costs further. A promising solution to balance performance and cost is LLM routing, which directs simple queries to smaller LLMs and complex ones to larger LLMs. However, no dedicated routing methods currently exist for RAG, and existing training-based routers face challenges scaling to this domain due to the need for extensive training data. We observe that the score distributions produced by the retrieval scorer strongly correlate with query difficulty. Based on this, we propose an extremely simple yet effective routing framework, the first specifically designed for KG-RAG that efficiently balances performance and cost in a plug-and-play manner. It delivers over 3x higher routing effectiveness while reducing runtime to less than 0.001x compared to existing methods. Our code is available at https://github.com/hrwang00/SkewRoute.
format Preprint
id arxiv_https___arxiv_org_abs_2505_23841
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SkewRoute: Training-Free LLM Routing for Knowledge Graph Retrieval-Augmented Generation via Score Skewness of Retrieved Context
Wang, Hairu
Feng, Yuan
Cao, Yukun
Xie, Xike
Zhou, S Kevin
Information Retrieval
Computation and Language
Large language models excel at many tasks but often incur high inference costs during deployment. To mitigate hallucination, many systems use a knowledge graph to enhance retrieval-augmented generation (KG-RAG). However, the large amount of retrieved knowledge contexts increase these inference costs further. A promising solution to balance performance and cost is LLM routing, which directs simple queries to smaller LLMs and complex ones to larger LLMs. However, no dedicated routing methods currently exist for RAG, and existing training-based routers face challenges scaling to this domain due to the need for extensive training data. We observe that the score distributions produced by the retrieval scorer strongly correlate with query difficulty. Based on this, we propose an extremely simple yet effective routing framework, the first specifically designed for KG-RAG that efficiently balances performance and cost in a plug-and-play manner. It delivers over 3x higher routing effectiveness while reducing runtime to less than 0.001x compared to existing methods. Our code is available at https://github.com/hrwang00/SkewRoute.
title SkewRoute: Training-Free LLM Routing for Knowledge Graph Retrieval-Augmented Generation via Score Skewness of Retrieved Context
topic Information Retrieval
Computation and Language
url https://arxiv.org/abs/2505.23841