arXiv:2606.00203cs.CL2026-06

DeSQ通过分解问题生成更鲁棒的SPARQL查询,兼顾准确与可解释性。

DeSQ: Decomposition-based SPARQL Query Generation

论文配图:DeSQ: Decomposition-based SPARQL Query Generation
图 1 · 摘自论文原文
  • 将复杂问题拆解为原子约束,分步生成结构化查询片段
  • 在五个基准中四个超越当前最优,对词汇变化更鲁棒
  • 输出可解析结构,便于错误定位与模型优化

知识库问答(KBQA)主流方法分为两类:一类生成形式化查询,但易出错且难解释;另一类直接通过知识库探索获取答案,计算成本高且易幻觉。为融合两者优势并克服缺陷,本文提出无知识库依赖的DeSQ框架,包含三个阶段:首先将复杂问题分解为反映知识库关系结构的原子约束(ACs);其次生成两部分结构化输出:(a) 每个AC映射到标准占位符的SPARQL片段,(b) 描述占位符对应真实URI的接地块;最后组装成完整SPARQL查询。DeSQ在五个主要基准中的四个上超越现有最佳方法,对词汇变化具有更强鲁棒性。此外,该框架简化评估流程,无需实时知识库接口,并支持细粒度错误分析,便于针对性改进。

原文摘要 · Abstract (English)

Dominant approaches to Knowledge Base Question Answering (KBQA) fall into two categories. First is the generation of a formal query that suffers from brittleness and limited explainability, and the second is direct answer retrieval through KB exploration that is computationally costly and prone to hallucination. To combine the strengths of both paradigms while mitigating their respective weaknesses, we introduce DeSQ (Decomposition-based SPARQL Query Generation), a KB-agnostic framework that operates in three stages. First, it decomposes complex questions into Atomic Constraints (ACs) that mirror the relational structure of the underlying KB. Second, it generates a two-part structured output: (a) Mapping of each AC to its corresponding SPARQL Fragment, using standardized variable and URIs placeholders, and (b) URIs Grounding block describing each placeholder. Third, it assembles these fragments into a complete SPARQL query. DeSQ surpasses state-of-the-art approaches on four out of five major benchmarks and demonstrates superior robustness to lexical variation. Beyond performance gains, our framework greatly simplifies evaluation by eliminating the need for a live KB endpoint, and its structured output enables fine-grained error analysis, allowing more targeted interventions for improvement.

KBQASPARQL生成知识库结构化推理

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