atlas

Research map / Large language models / Retrieval and knowledge

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

NeurIPS 2024 · Large language models › Retrieval and knowledge · approach: Knowledge-augmented question answering · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Coke, a multi-armed bandit strategy that routes each KBQA question to either LLMs or small knowledge-graph models under a cost budget, combining cluster-level Thompson Sampling, contextual linear bandits, and a cost-regret penalty.

Problem

KBQA with LLMs is costly and LLMs lack domain-specific knowledge, while small KG-based models are cheap but weaker overall; no principled way exists to jointly trade off accuracy and API/call cost when choosing among models per question.

Approach

Model per-question model selection as a bandit: cluster-level Thompson Sampling chooses between the LLM cluster and the KGM cluster, a contextual linear bandit (RoBERTa question embeddings) picks the expert arm within the cluster, and a cost-regret term penalizes arms that waste budget on failed answers.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use Coke's question-specific model selection instead of GPT-4 aloneCoke · CommonsenseQA, OpenBookQA, MedQAaccuracy: + 2.56%; + 2.74%; + 1.12%; + 0.67%; + 0.95%; + 1.03%Helped
Use Coke's question-specific model selection instead of GPT-4 aloneCoke · CommonsenseQA, OpenBookQA, MedQAAPI cost saving: - 15.14%; - 20.89%; - 5.33%; - 11.02%; - 2.11%; - 4.32%Helped
Add cluster-level accuracy expectation (E_c) (ablation)Coke · CommonsenseQA, OpenBookQA, MedQAcost saving: - 47.59%; - 32.10%; - 30.51%Helped
Add cluster-level accuracy expectation (E_c) (ablation)Coke · CommonsenseQA, OpenBookQA, MedQAaccuracy: 0.750; 0.855; 0.607Helped
Add context-aware expert expectation (E_a) (ablation)Coke · CommonsenseQA, OpenBookQA, MedQAaccuracy: 0.801; 0.880; 0.760Helped
Add context-aware expert expectation (E_a) (ablation)Coke · CommonsenseQA, OpenBookQA, MedQAcost saving: - 15.42%; - 21.16%; - 1.07%Mixed
Add cost regret (R_a) (ablation)Coke · CommonsenseQA, OpenBookQA, MedQAaccuracy: 0.800; 0.898; 0.684Helped
Add cost regret (R_a) (ablation)Coke · CommonsenseQA, OpenBookQA, MedQAcost saving: - 6.26%; - 3.31%; - 15.98%Helped

Surprising findings

Limitations

Experimental setup

Datasets: CommonsenseQA OpenBookQA MedQA-USMLE

Benchmarks: CommonsenseQA OpenBookQA MedQA-USMLE

Metrics: accuracy cost saving (API fees $) cost saving (calls) Pareto frontier error rate vs budget

Baselines: Bert-base Bert-large RoBERTa-large MHGRN QA-GNN HamQA JointLK GreaseLM GrapeQA GPT-3 GPT-3.5 GPT-4

Builds on: Thompson Sampling LinUCB-style contextual bandits QA-GNN HamQA

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy