Abstract
Traditional Knowledge-Based Question Answering (KB-QA) systems often rely on a cascaded architecture where an independent semantic parser first generates a formal meaning representation, which is then used to query a knowledge base. This approach suffers from error propagation and a significant lexical gap between natural language and rigid knowledge base predicates. This paper presents a unified framework that reframes KB-QA as a machine translation task. By employing CYK parsing to map natural language spans directly to knowledge base triples, the system integrates parsing and retrieval into a single optimized process. Experimental results on the WEBQUESTIONS dataset demonstrate that this translation-based approach achieves 37.5% accuracy, a substantial improvement over state-of-the-art cascaded baselines.
Introduction
The challenge of Knowledge-Based Question Answering (KB-QA) lies in bridging the gap between the fluid nature of human language and the structured, formal representations of large-scale knowledge bases (KBs). Most existing systems tackle this by separating the task into two distinct phases: semantic parsing and answer retrieval. However, this "cascade" model is prone to failure if the initial parsing step fails to capture the correct intent, and it struggles to map diverse linguistic expressions to a finite set of KB predicates.
To address these limitations, we propose a framework that treats KB-QA as a translation problem. Instead of translating between two natural languages, we translate natural language questions into formal answers retrieved from a KB. This allows the content of the KB to guide the parsing process, effectively pruning invalid interpretations early in the derivation.
Methodology
Translation-Based Framework and CYK Parsing
The core of our system is a translation procedure built upon the CYK parsing algorithm. The system treats each span of a question as a potential "source phrase" and its corresponding KB entities or triples as "translations." As the algorithm progresses, it builds candidate derivations from individual words up to the full sentence.
The parsing process is guided by two primary translation methods: Question Patterns (QP) and Relation Expressions (RE).
Question Patterns (QP)
Question Patterns provide a high-precision method for mapping questions to KB predicates using templates. For example, a question like "who is the director of Forrest Gump" matches the pattern "who is the director of [Slot]". This pattern is directly associated with the KB predicate Film.Director.
Relation Expressions (RE)
For questions that do not match predefined patterns, the system employs Relation Expressions. This "fuzzy" matching method uses n-grams (e.g., "starred in", "was directed by") mined from large corpora like Wikipedia. By calculating the similarity between these n-grams and KB predicates, the system can handle a wider variety of natural language expressions, effectively narrowing the lexical gap.
Optimization and Scoring
To select the most likely answer from multiple candidate derivations, we utilize a linear model. The model incorporates features such as translation confidence, entity popularity, and pattern match scores. The weights for these features are optimized using Minimum Error Rate Training (MERT), a standard technique in statistical machine translation.
Evaluation
The system was evaluated on the WEBQUESTIONS dataset, which contains 5,810 question-answer pairs based on Freebase. The knowledge base used for retrieval was a massive internal KB containing 2.3 billion entities and 18 billion assertions.
Key Results
- Accuracy: Our method achieved 37.5% accuracy on the test set, representing a 6.1% absolute improvement over the state-of-the-art baseline (Berant et al., 2013), which scored 31.4%.
- Precision: The QP method proved highly reliable, achieving a precision of 97.5%, although its coverage was naturally more limited than the RE method.
- Efficiency: Analysis showed that a beam size of 20 was sufficient to achieve peak accuracy, demonstrating the system's computational viability.
Discussion and Limitations
While the translation-based framework significantly improves performance, several challenges remain. The system's reliance on string matching for entity detection can lead to failures with abbreviations or complex possessives. Furthermore, the current model lacks specific operators for handling superlatives (e.g., "the tallest") or temporal rankings (e.g., "the first"). Future work will focus on automating pattern mining and incorporating more complex linguistic constraints into the translation framework.
Summary updated