SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2007.03875 · 2020

KQA Pro: A Dataset with Explicit Compositional Programs for Complex Question Answering over Knowledge Base

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 10 functions out of this paper's own repositories and ran 1 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
shijx12/kqapro_baselines canonical 1 of 10
FunctionStatusWhere it lives
whether_equal Ran shijx12/kqapro_baselines/Bart_SPARQL/predict.py
code served (permissive licence) · get_code("dab51ce41e0aef5f")
collate Not yet run shijx12/kqapro_baselines/Bart_Program/data.py
code served (permissive licence) · get_code("efd0ac51d93a0daa")
encode_dataset Not yet run shijx12/kqapro_baselines/Bart_Program/preprocess.py
code served (permissive licence) · get_code("c79055984b79cecc")
encode_dataset Not yet run shijx12/kqapro_baselines/Bart_SPARQL/preprocess.py
code served (permissive licence) · get_code("e330a3e886196216")
get_program_seq Not yet run shijx12/kqapro_baselines/Bart_Program/preprocess.py
code served (permissive licence) · get_code("ddb495680f6650e0")
load Not yet run shijx12/kqapro_baselines/evaluate.py
code served (permissive licence) · get_code("f2644153c58a3490")
post_process Not yet run shijx12/kqapro_baselines/Bart_Program/predict.py
code served (permissive licence) · get_code("facadc8602de5157")
validate Not yet run shijx12/kqapro_baselines/Bart_Program/predict.py
code served (permissive licence) · get_code("363b1bd85fb31dba")
validate Not yet run shijx12/kqapro_baselines/Bart_SPARQL/predict.py
code served (permissive licence) · get_code("e46e8bd5f842bf4b")
whether_equal Not yet run shijx12/kqapro_baselines/evaluate.py
code served (permissive licence) · get_code("39b9e1fd3e199769")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

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. 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 ~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 serves for both KBQA and semantic parsing tasks. Experimental results show that SOTA 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2007.03875")
get_code_for_paper("2007.03875")
have("2007.03875")

Connect an agent — have() is free.