Lune

NeurIPS2024Top-tier venue

Cost-efficient Knowledge-based Question Answering with Large Language Models

Junnan Dong, Qinggang Zhang, Chuang Zhou, Hao Chen, Daochen Zha, Xiao Huang

Abstract

Knowledge-based question answering (KBQA) is widely used in many scenarios that necessitate domain knowledge. Large language models (LLMs) bring opportunities to KBQA, while their costs are significantly higher and absence of domain-specific knowledge during pre-training. We are motivated to combine LLMs and prior small models on knowledge graphs (KGMs) for both inferential accuracy and cost saving. However, it remains challenging since accuracy and cost are not readily combined in the optimization as two distinct metrics. It is also laborious for model selection since different models excel in diverse knowledge. To this end, we propose Coke, a novel cost-efficient strategy for KBQA with LLMs, modeled as a tailored multi-armed bandit problem to minimize calls to LLMs within limited budgets. We first formulate the accuracy expectation with a cluster-level Thompson Sampling for either KGMs or LLMs. A context-aware policy is optimized to further distinguish the expert model subject to the question semantics. The overall decision is bounded by the cost regret according to historical expenditure on failures. Extensive experiments showcase the superior performance of Coke, which moves the Pareto frontier with up to 20.89% saving of GPT-4 fees while achieving a 2.74% higher accuracy on the benchmark datasets.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Enhancing Explainable Rating Prediction through Annotated Macro Concepts cites Differentiable Neuro-Symbolic Reasoning on Large-Scale Knowledge Graphs
  • Differentiable Neuro-Symbolic Reasoning on Large-Scale Knowledge Graphs cites Aligning Distillation For Cold-start Item Recommendation
  • Taming Language Models for Text-attributed Graph Learning with Decoupled Aggregation cites Differentiable Neuro-Symbolic Reasoning on Large-Scale Knowledge Graphs
  • Macro Graph Neural Networks for Online Billion-Scale Recommender Systems cites Differentiable Neuro-Symbolic Reasoning on Large-Scale Knowledge Graphs
  • Macro Graph Neural Networks for Online Billion-Scale Recommender Systems cites Aligning Distillation For Cold-start Item Recommendation
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Structure-Guided Large Language Models for Text-to-SQL GenerationQinggang Zhang, Hao Chen, Junnan Dong, Shengyuan Chen et al.ICML 2025
  2. Enhancing Explainable Rating Prediction through Annotated Macro ConceptsHuachi Zhou, Shuang Zhou, Hao Chen, Ninghao Liu et al.ACL 2024
  3. Taming Language Models for Text-attributed Graph Learning with Decoupled AggregationChuang Zhou, Zhu Wang, Shengyuan Chen, Jiahe Du et al.ACL 2025

Builds on10

  1. Improving Multi-hop Question Answering over Knowledge Graphs using Knowledge Base EmbeddingsApoorv Saxena, Aditay Tripathi, Partha P. TalukdarACL 2020 · 488 citations
  2. Scalable Multi-Hop Relational Reasoning for Knowledge-Aware Question AnsweringYanlin Feng, Xinyue Chen, Bill Yuchen Lin, Peifeng Wang et al.EMNLP 2020 · 207 citations
  3. Aligning Distillation For Cold-start Item RecommendationFeiran Huang, Zefan Wang, Xiao Huang, Yufeng Qian et al.SIGIR 2023 · 100 citations
  4. Macro Graph Neural Networks for Online Billion-Scale Recommender SystemsHao Chen, Yuanchen Bei, Qijie Shen, Yue Xu et al.WWW 2024 · 96 citations
  5. Differentiable Neuro-Symbolic Reasoning on Large-Scale Knowledge GraphsShengyuan Chen, Yunfeng Cai, Huang Fang, Xiao Huang et al.NeurIPS 2023 · 56 citations

Related papers

  1. RJE: A Retrieval-Judgment-Exploration Framework for Efficient Knowledge Graph Question Answering with LLMsCan Lin, Zhengwang Jiang, Ling Zheng, Qi Zhao et al.EMNLP 2025
  2. KAM-CoT: Knowledge Augmented Multimodal Chain-of-Thoughts ReasoningDebjyoti Mondal, Suraj Modi, Subhadarshi Panda, Rituraj Singh et al.AAAI 2024 · 96 citations
  3. A Framework of Knowledge Graph-Enhanced Large Language Model Based on Question Decomposition and Atomic RetrievalYading Li, Dandan Song, Changzhi Zhou, Yuhang Tian et al.EMNLP Findings 2024 · 11 citations
  4. LightPROF: A Lightweight Reasoning Framework for Large Language Model on Knowledge GraphTu Ao, Yanhua Yu, Yuling Wang, Yang Deng et al.AAAI 2025 · 28 citations
  5. Paths-over-Graph: Knowledge Graph Empowered Large Language Model ReasoningXingyu Tan, Xiaoyang Wang, Qing Liu, Xiwei Xu et al.WWW 2025 · 86 citations
Dusk over the sea between two cliffs drawn in fine vertical lines