arXiv:2512.10999cs.CL2025-12被引 2

用强化学习让大模型更准地回答知识库问题

KBQA-R1: Reinforcing Large Language Models for Knowledge Base Question Answering

  • 把问答当作多轮决策,通过执行反馈优化推理策略
  • 在三个数据集上达到最新最好效果,减少幻觉和死板套模板
  • 适合想提升大模型知识推理能力的研究者和工程师

知识库问答(KBQA)要求模型将自然语言与严格的知识图谱模式对齐,生成可执行的逻辑形式。尽管大语言模型(LLMs)推动了该领域进展,但现有方法常面临两种失败:要么生成无依据的查询,不验证模式是否存在;要么推理僵化,仅模仿合成轨迹,缺乏对环境的真实理解。为此,我们提出KBQA-R1框架,将范式从文本模仿转向交互优化,采用强化学习实现。将KBQA视为多轮决策过程,模型通过一系列动作导航知识库,利用分组相对策略优化(GRPO)根据实际执行反馈改进策略,而非依赖静态监督。此外,我们提出引用拒绝采样(RRS)数据合成方法,通过严格对齐推理轨迹与真实动作序列,解决冷启动问题。在WebQSP、GrailQA和GraphQuestions上的大量实验表明,KBQA-R1实现了最先进的性能,有效将大模型推理锚定在可验证的执行基础上。

原文摘要 · Abstract (English)

Knowledge Base Question Answering (KBQA) challenges models to bridge the gap between natural language and strict knowledge graph schemas by generating executable logical forms. While Large Language Models (LLMs) have advanced this field, current approaches often struggle with a dichotomy of failure: they either generate hallucinated queries without verifying schema existence or exhibit rigid, template-based reasoning that mimics synthesized traces without true comprehension of the environment. To address these limitations, we present \textbf{KBQA-R1}, a framework that shifts the paradigm from text imitation to interaction optimization via Reinforcement Learning. Treating KBQA as a multi-turn decision process, our model learns to navigate the knowledge base using a list of actions, leveraging Group Relative Policy Optimization (GRPO) to refine its strategies based on concrete execution feedback rather than static supervision. Furthermore, we introduce \textbf{Referenced Rejection Sampling (RRS)}, a data synthesis method that resolves cold-start challenges by strictly aligning reasoning traces with ground-truth action sequences. Extensive experiments on WebQSP, GrailQA, and GraphQuestions demonstrate that KBQA-R1 achieves state-of-the-art performance, effectively grounding LLM reasoning in verifiable execution.

知识库问答强化学习大模型推理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。