Introduction
Knowledge Base Question Answering (KBQA) is a critical task in natural language processing, requiring systems to retrieve and reason over structured facts to answer complex queries. While Pre-trained Language Models (PLMs) have revolutionized text-based tasks, they face a significant "KB-Text Gap" when applied to structured data like Freebase. This gap manifests in two ways: a representation challenge, where models struggle to interpret the logical links within triplets, and an interference problem, where irrelevant retrieved data confuses the model during reasoning.
This paper introduces SKP (Structured Knowledge-aware Pre-training), a framework designed to bridge these gaps. By combining novel pre-training tasks with a specialized attention mechanism, SKP achieves state-of-the-art performance on the WebQuestionsSP (WebQSP) benchmark.
The KB-Text Gap: Challenges in Reasoning
Modern KBQA systems typically utilize a "Retriever-Reader" architecture. The retriever identifies relevant subgraphs (clusters of facts), and the reader processes these facts to generate an answer. However, two primary hurdles limit this approach:
- The Representation Gap: PLMs like BERT are optimized for unstructured natural language. They often fail to capture the implicit logical relationships inherent in Subject-Predicate-Object triplets or complex n-ary relations (where multiple entities are linked to a single event).
- The Interference Problem: When a reader model processes multiple candidate subgraphs simultaneously, information from irrelevant subgraphs often "pollutes" the encoding of relevant ones. This cross-talk leads to reasoning errors and reduced accuracy.
The SKP Framework
To address these challenges, the authors propose three core innovations within the SKP framework:
1. Structured Knowledge-aware Pre-training
Before fine-tuning on specific QA tasks, the model undergoes pre-training on 1 million linearized subgraphs from Freebase. This phase utilizes two specialized tasks:
- Knowledge-aware Masked Language Modeling (KM): Unlike standard MLM, this task specifically masks entities or relations within a triplet. This forces the model to learn the structural dependencies and logical links between components of a fact.
- Knowledge Contrastive Discrimination (KCD): The model is trained to distinguish between authentic subgraphs and "corrupted" versions in the semantic space. This contrastive approach helps the model build more robust and discriminative representations of factual structures.
2. Efficient Linearization and Pruning
Converting a multi-dimensional graph into a linear string of text is a non-trivial task. The authors implemented a priority-based strategy to prune and flatten triplets. For complex n-ary relations—often represented in Freebase as Compound Value Types (CVTs)—the system converts the cluster into a single, comma-separated natural language sentence. This strategy effectively reduced the candidate pool from 230 million to 112 million triplets while preserving essential semantic meaning.
3. Interval Attention Mechanism (IAM)
To mitigate the interference problem, the authors modified the attention mechanism within the Reader (based on the Fusion-in-Decoder architecture). In standard global attention, every token can attend to every other token. The Interval Attention Mechanism (IAM) allows the question to see all subgraphs, but ensures that different subgraphs are invisible to each other. This isolation prevents noise from irrelevant data from interfering with the processing of the correct subgraph.
Experimental Results
The researchers evaluated SKP on the WebQuestionsSP (WebQSP) benchmark, which contains 4,737 questions answerable via Freebase.
Performance Metrics
- State-of-the-Art (SOTA): SKP achieved 79.6% Hits@1 on WebQSP, outperforming the previous leading model, UniK-QA, by 1.7%.
- Retrieval Gains: The pre-training tasks significantly improved the retriever's performance, reaching 91.58% Hits@10, a 4.08% improvement over standard Dense Passage Retrieval (DPR) methods.
- Robustness to Incomplete Data: In a stress test where 50% of the KB facts were removed, SKP outperformed many baseline models that had access to the full KB. This suggests that the model develops genuine reasoning capabilities rather than relying on simple memorization.
Conclusion and Future Work
SKP demonstrates that explicitly pre-training models to understand the "grammar" of structured data is essential for bridging the KB-Text gap. By isolating subgraphs during the reasoning phase via IAM, the model becomes significantly more resilient to noise.
While the current framework relies on heuristic rules for linearization, future research may explore end-to-end graph-to-text transformations. Additionally, scaling these structured pre-training techniques to larger Large Language Models (LLMs) and testing their transferability to specialized domains, such as medical or legal knowledge bases, remains a promising avenue for future exploration.
Summary updated