[Paper Review] KQA Pro: A Large-Scale Dataset with Interpretable Programs and Accurate SPARQLs for Complex Question Answering over Knowledge Base
KQA Pro introduces a large-scale, diverse dataset of 120K complex questions over knowledge bases, annotated with interpretable reasoning programs and accurate SPARQL queries. It enables state-of-the-art models to achieve ~90% accuracy in KBQA when trained on NLQ-to-SPARQL or NLQ-to-Program supervision, significantly outperforming QA-only baselines and approaching human expert performance.
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, and 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 either generated by templates, leading to poor diversity, or on a small scale. To this end, we introduce KQA Pro, a large-scale dataset for Complex KBQA. We define a compositional and highly-interpretable formal format, named Program, to represent the reasoning process of complex questions. We propose compositional strategies to generate questions, corresponding SPARQLs, and Programs with a small number of templates, and then paraphrase the generated questions to natural language questions (NLQ) by crowdsourcing, giving rise to around 120K diverse instances. SPARQL and Program depict two complementary solutions to answer complex questions, which can benefit a large spectrum of QA methods. Besides the QA task, KQA Pro can also serves for the semantic parsing task. As far as we know, it is currently the largest corpus of NLQ-to-SPARQL and NLQ-to-Program. We conduct extensive experiments to evaluate whether machines can learn to answer our complex questions in different cases, that is, with only QA supervision or with intermediate SPARQL/Program supervision. We find that state-of-the-art KBQA methods learnt from only QA pairs perform very poor on our dataset, implying our questions are more challenging than previous datasets. However, pretrained models learnt from our NLQ-to-SPARQL and NLQ-to-Program annotations surprisingly achieve about 90\% answering accuracy, which is even close to the human expert performance...
Motivation & Objective
- Address the lack of large-scale, diverse, and interpretable datasets for complex knowledge base question answering (KBQA).
- Overcome limitations of existing benchmarks that lack reasoning traces or use template-generated, low-diversity questions.
- Provide both SPARQL and formal Program annotations to support multiple learning paradigms in KBQA.
- Enable evaluation of models under both QA-only and intermediate supervision (SPARQL/Program) settings.
- Create a benchmark that challenges current models and supports semantic parsing and compositional reasoning research.
Proposed method
- Define a compositional, interpretable formal language called 'Program' to represent step-by-step reasoning for complex questions.
- Use a small set of templates combined with compositional strategies to generate diverse questions, SPARQLs, and Programs.
- Paraphrase generated questions into natural language using crowdsourcing to ensure linguistic diversity and fluency.
- Ensure SPARQL and Program annotations are accurate and complementary, supporting both QA and semantic parsing tasks.
- Leverage pretraining with NLQ-to-SPARQL and NLQ-to-Program annotations to improve model generalization and reasoning accuracy.
- Design the dataset to support evaluation under both QA-only and intermediate supervision regimes.
Experimental results
Research questions
- RQ1Can models trained solely on QA pairs generalize to complex KBQA when exposed to a large, diverse, and challenging dataset like KQA Pro?
- RQ2To what extent does intermediate supervision via SPARQL or Program annotations improve KBQA performance compared to QA-only supervision?
- RQ3How does the inclusion of interpretable reasoning programs affect model interpretability and performance in complex reasoning tasks?
- RQ4How does KQA Pro compare to existing benchmarks in terms of question diversity, reasoning complexity, and model performance?
- RQ5Can pretrained models achieve near-human performance on complex KBQA when fine-tuned on NLQ-to-SPARQL and NLQ-to-Program annotations?
Key findings
- State-of-the-art KBQA models trained only on QA pairs perform poorly on KQA Pro, indicating the dataset's increased complexity compared to prior benchmarks.
- Pretrained models fine-tuned on NLQ-to-SPARQL annotations achieve approximately 90% answering accuracy, approaching human expert performance.
- Models trained on NLQ-to-Program supervision also achieve high accuracy, demonstrating the value of interpretable reasoning supervision.
- The combination of SPARQL and Program annotations enables more robust and generalizable learning than QA-only supervision.
- The dataset's diversity and compositional structure effectively challenge current models, highlighting the need for better reasoning mechanisms.
- KQA Pro is the largest known corpus for NLQ-to-SPARQL and NLQ-to-Program mapping, setting a new benchmark for complex KBQA research.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.