KQA Pro: A Dataset with Explicit Compositional Programs for Complex Question Answering over Knowledge Base
Shulin Cao, Jiaxin Shi, Liangming Pan, Lunyiu Nie, Yutong Xiang, Lei Hou, Juanzi Li, Bin He, Hanwang Zhang
Abstract
Complex question answering over knowledge base (Complex KBQA) is challenging because it requires various compositional reasoning capabilities, such as multi-hop inference, attribute comparison, set operation, etc. Existing benchmarks have some shortcomings that limit the development of Complex KBQA: 1) they only provide QA pairs without explicit reasoning processes; 2) questions are poor in diversity or scale. To this end, we introduce KQA Pro, a dataset for Complex KBQA including around 120K diverse natural language questions. We introduce a compositional and interpretable programming language KoPL to represent the reasoning process of complex questions. For each question, we provide the corresponding KoPL program and SPARQL query, so that KQA Pro can serve for both KBQA and semantic parsing tasks. Experimental results show that state-of-the-art KBQA methods cannot achieve promising results on KQA Pro as on current datasets, which suggests that KQA Pro is challenging and Complex KBQA requires further research efforts. We also treat KQA Pro as a diagnostic dataset for testing multiple reasoning skills, conduct a thorough evaluation of existing models and discuss further directions for Complex KBQA. Our codes and datasets can be obtained from https://github.com/shijx12/KQAPro_Baselines.
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.
28 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- TransferNet: An Effective and Transparent Framework for Multi-hop Question Answering over Relation Graph cites Improving Multi-hop Question Answering over Knowledge Graphs using Knowledge Base Embeddings
- TIARA: Multi-grained Retrieval for Robust Question Answering over Large Knowledge Base cites TransferNet: An Effective and Transparent Framework for Multi-hop Question Answering over Relation Graph
- TIARA: Multi-grained Retrieval for Robust Question Answering over Large Knowledge Base cites Measuring Compositional Generalization: A Comprehensive Method on Realistic Data
- TIARA: Multi-grained Retrieval for Robust Question Answering over Large Knowledge Base cites Improving Multi-hop Question Answering over Knowledge Graphs using Knowledge Base Embeddings
Cited by top-tier papers28
- Chain-of-Knowledge: Grounding Large Language Models via Dynamic Knowledge Adapting over Heterogeneous SourcesXingxuan Li, Ruochen Zhao, Yew Ken Chia, Bosheng Ding et al.ICLR 2024 · 165 citations
- FlexKBQA: A Flexible LLM-Powered Framework for Few-Shot Knowledge Base Question AnsweringZhenyu Li, Sunqi Fan, Yu Gu, Xiuxing Li et al.AAAI 2024 · 143 citations
- Mitigating Large Language Model Hallucinations via Autonomous Knowledge Graph-Based RetrofittingXinyan Guan, Yanjiang Liu, Hongyu Lin, Yaojie Lu et al.AAAI 2024 · 127 citations
- KoLA: Carefully Benchmarking World Knowledge of Large Language ModelsJifan Yu, Xiaozhi Wang, Shangqing Tu, Shulin Cao et al.ICLR 2024 · 91 citations
- TIARA: Multi-grained Retrieval for Robust Question Answering over Large Knowledge BaseYiheng Shu, Zhiwei Yu, Yuhan Li, Börje F. Karlsson et al.EMNLP 2022 · 39 citations
Builds on11
- BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and ComprehensionMike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad et al.ACL 2020 · 1,224 citations
- Improving Multi-hop Question Answering over Knowledge Graphs using Knowledge Base EmbeddingsApoorv Saxena, Aditay Tripathi, Partha P. TalukdarACL 2020 · 488 citations
- Measuring Compositional Generalization: A Comprehensive Method on Realistic DataDaniel Keysers, Nathanael Schärli, Nathan Scales, Hylke Buisman et al.ICLR 2020 · 401 citations
- SPARQA: Skeleton-Based Semantic Parsing for Complex Questions over Knowledge BasesYawei Sun, Lingling Zhang, Gong Cheng, Yuzhong QuAAAI 2020 · 143 citations
- TransferNet: An Effective and Transparent Framework for Multi-hop Question Answering over Relation GraphJiaxin Shi, Shulin Cao, Lei Hou, Juanzi Li et al.EMNLP 2021 · 97 citations
Related papers
- From Parse-Execute to Parse-Execute-Refine: Improving Semantic Parser for Complex Question Answering over Knowledge BaseWangzhen Guo, Linyin Luo, Hanjiang Lai, Jian YinEMNLP 2023 · 5 citations
- SymKGQA: Few-Shot Knowledge Graph Question Answering via Symbolic Program Generation and ExecutionPrerna Agarwal, Nishant Kumar, Srikanta BedathurACL 2024 · 6 citations
- MarkQA: A large scale KBQA dataset with numerical reasoningXiang Huang, Sitao Cheng, Yuheng Bao, Shanshan Huang et al.EMNLP 2023 · 3 citations
- Chain-of-Question: A Progressive Question Decomposition Approach for Complex Knowledge Base Question AnsweringYixing Peng, Quan Wang, Licheng Zhang, Yi Liu et al.ACL Findings 2024 · 4 citations
- Is Complex Query Answering Really Complex?Cosimo Gregucci, Bo Xiong, Daniel Hernández, Lorenzo Loconte et al.ICML 2025
