Beyond I.I.D.: Three Levels of Generalization for Question Answering on Knowledge Bases

Yu Gu, Sue Kase, Michelle Vanni, Brian Sadler, Percy Liang +2 more
11/16/2020
cs.CLcs.AIcs.LG

Official code: dki-lab/GrailQA (112 stars, Python, Apache-2.0, PyTorch, last commit 2025-10-09).

Abstract

Existing studies on question answering on knowledge bases (KBQA) mainly operate with the standard i.i.d assumption, i.e., training distribution over questions is the same as the test distribution. However, i.i.d may be neither reasonably achievable nor desirable on large-scale KBs because 1) true user distribution is hard to capture and 2) randomly sample training examples from the enormous space would be highly data-inefficient.

Show full abstract

Instead, we suggest that KBQA models should have three levels of built-in generalization: i.i.d, compositional, and zero-shot. To facilitate the development of KBQA models with stronger generalization, we construct and release a new large-scale, high-quality dataset with 64,331 questions, GrailQA, and provide evaluation settings for all three levels of generalization. In addition, we propose a novel BERT-based KBQA model. The combination of our dataset and model enables us to thoroughly examine and demonstrate, for the first time, the key role of pre-trained contextual embeddings like BERT in the generalization of KBQA.

View on arXivView PDF

Code Implementations(1)

dki-lab/GrailQAOfficial100%
PyTorchApache-2.0
11216Python, PerlOct 26, 20201 years agoApache-2.0
nlppytorchquestion-answering

Similar Papers

Cite this paper

@article{gu2020beyond,
  title  = {Beyond I.I.D.: Three Levels of Generalization for Question Answering on Knowledge Bases},
  author = {Yu Gu and Sue Kase and Michelle Vanni and Brian Sadler and Percy Liang and Xifeng Yan and Yu Su},
  year   = {2020},
  eprint = {2011.07743},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2011.07743}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2011.07743.svg)](https://codeofpaper.com/paper/2011.07743)

Discussion