TL;DR
Knowledge Base Question Answering (KBQA) has historically lagged behind related tasks like text-to-SQL due to the massive scale and "fact-level" complexity of modern knowledge bases. This survey situates KBQA within the broader evolution of semantic parsing, categorizing modern approaches into ranking, coarse-to-fine, and generation methods while highlighting how pre-trained language models (PLMs) are finally closing the performance gap.
What Problem Does This Paper Address?
The goal of KBQA is to allow users to query massive, structured knowledge bases (like Wikidata or Freebase) using natural language. While we’ve seen incredible progress in "text-to-SQL" (querying relational databases), KBQA faces two unique hurdles:
- Schema-level Complexity: A typical SQL database might have dozens of tables and columns. A modern Knowledge Base (KB) has thousands of relations and types. Mapping a simple question to the correct "schema item" is a needle-in-a-haystack problem.
- Fact-level Complexity: In a KB, the "schema" is instantiated dynamically. For example, while the type
personmight have 1,000 possible relations in the ontology, a specific person like David Sirlin might only have four. Generating a query that is "faithful"—meaning it actually points to existing facts in the KB—is computationally expensive due to the combinatorial explosion of possible graph paths.
This paper surveys how the field has moved from rigid, hand-crafted pipelines to flexible, neural end-to-end systems to solve these issues.
Methods
The authors categorize KBQA research into three main families:
- Ranking Methods: These systems first enumerate a large set of candidate logical forms (queries) from the KB and then use a model to score and rank them against the question. This handles "faithfulness" well (since queries are pulled directly from the KB) but struggles with scalability.
- Coarse-to-fine Methods: These decompose the task into two stages. First, they generate a "skeleton" or "sketch" of the query (e.g., "Find a [Type] that is [Relation] to [Entity]"). Second, they "ground" that sketch by filling in the specific KB items. This reduces the search space significantly.
- Generation Methods: The current state-of-the-art approach. These use Encoder-Decoder models (like T5 or BART) to translate a question directly into a logical form (like SPARQL or S-expressions). To ensure these generated queries actually work, researchers use constrained decoding, where the model is only allowed to "type" tokens that exist in the KB's schema or neighborhood.
Datasets
The paper provides a comprehensive look at the benchmarks that have driven the field:
- WebQSP & ComplexWebQ: Derived from Google search logs; focused on real-world entity-centric questions.
- LC-QUAD (1.0 & 2.0): Larger datasets designed to test complex, multi-hop reasoning.
- GrailQA: A newer benchmark that specifically tests generalization. It evaluates models on three levels: i.i.d. (seen items), compositional (new combinations of seen items), and zero-shot (entirely unseen schema items).
- KQA Pro: A large-scale dataset featuring explicit compositional programs for complex questions.
Key Insights and Ideas
- The "Faithfulness" Requirement: Unlike text-to-SQL, where a syntactically correct query is usually enough, a KBQA query must be "faithful" to the underlying graph. If you generate a query for "the director of a book," it might be syntactically perfect but will return zero results because books have authors, not directors.
- From Pipelines to Joint Learning: Early systems relied on "Entity Linking" as a pre-processing step. If the linker failed to identify "Street Fighter" as a game series, the whole system failed. The authors argue for Joint Entity Linking, where the model identifies entities and parses the query simultaneously to allow for mutual reinforcement.
- The Power of Constrained Decoding: The most successful recent models don't just "guess" the query; they use the KB's structure as a grammar to prune the search space during the generation process.
Key Results
The survey shows a clear trend: Generation-based models using PLMs are winning. * On the WebQSP and KQA Pro benchmarks, generation methods (using models like BART or T5) currently hold the top spots. * However, Ranking methods still perform remarkably well on datasets like GrailQA, suggesting that when it comes to generalizing to totally unseen schema items, explicitly searching the KB graph (rather than just "translating") still has advantages.
Limitations and Future Work
The authors identify several "frontiers" for the next generation of researchers:
- Cross-KB Generalization: Most current models are trained on one KB (like Freebase) and fail on others. We need models that can answer questions over the "Linked Open Data" cloud, navigating multiple KBs at once.
- KB-Specific Pre-training: While we have models like GRAPPA for SQL, we lack a "foundational model" pre-trained specifically on the structure of massive knowledge graphs.
- Human-in-the-loop: For truly complex queries, the system should be able to ask the user for clarification (e.g., "Did you mean the book or the movie?") to resolve ambiguity before executing the search.
Summary updated