Abstract
Open-domain question answering (ODQA) systems typically rely on a "retriever-reader" architecture where a reader model extracts answers from text passages. However, text-only readers often struggle with complex entity relationships, leading to factual errors. We introduce GRAPE (Knowledge Graph Enhanced Passage Reader), a framework that integrates structured knowledge from Wikidata directly into the reader. By leveraging localized bipartite graphs and relation-aware Graph Neural Networks (GNNs), GRAPE enables large language models to better interpret factual constraints. Our experiments demonstrate that GRAPE achieves significant accuracy improvements—up to 2.2 points in Exact Match—over state-of-the-art models like Fusion-in-Decoder (FiD) across multiple benchmarks.
Introduction
Modern ODQA systems have seen remarkable progress using large transformer-based models. Despite their success, these models frequently fail to capture multi-hop relationships between entities. For instance, a model might correctly identify a passage about the Missouri River but incorrectly answer a question about its geographical properties because it prioritizes word co-occurrence over factual logic. This "hallucination" effect stems from the reader's inability to ground its reasoning in structured facts.
While Knowledge Graphs (KGs) have been used to improve document retrieval, their application in the reading phase remains under-explored. GRAPE addresses this gap by injecting Wikidata triplets into the reader's encoding process, providing a "fact-checking" layer that guides the model toward the correct answer.
Methodology
GRAPE enhances the standard T5-based reader through a four-stage integration process:
- Localized Graph Construction: For every pair of a question and a retrieved passage, GRAPE identifies mentions of entities (e.g., "China," "Mandarin"). It then builds a "localized bipartite graph" where one set of nodes represents entities in the question and the other represents entities in the passage. Edges are drawn only if a direct relation exists between them in Wikidata (e.g., language used). This localized approach keeps reasoning tractable compared to using the entire KG.
- Encoder Partitioning: GRAPE uses a T5 model as its backbone but splits the encoder into "bottom" and "top" sections. The bottom layers are responsible for initial linguistic processing.
- Relation-aware GNN: The initial embeddings from the bottom encoder are fed into a Graph Neural Network (GNN). Crucially, this GNN is "relation-aware"—it doesn't just see that two entities are connected; it understands the specific type of relationship (e.g., "tributary of" vs. "located in"), which is vital for disambiguation.
- Knowledge Fusion: The GNN's output—now enriched with structured factual data—is fused back into "special tokens" (like
<QENT>and<PENT>) within the T5 hidden states. The "top" encoder layers then process this hybrid representation, allowing the model to "read" the text with the KG's factual constraints in mind.
Experimental Evaluation
We evaluated GRAPE on three prominent ODQA benchmarks: Natural Questions (NQ), TriviaQA, and Web Questions (WebQ). The model utilized a 2019 snapshot of English Wikidata, encompassing approximately 2.7 million entities and 14 million triplets. We compared our results against the Fusion-in-Decoder (FiD) model, the current state-of-the-art for generative ODQA.
Results and Key Insights
GRAPE consistently outperformed the FiD baseline across all datasets. Key findings include:
- Performance Gains: On the "Large" model configuration, GRAPE improved Exact Match (EM) scores by 2.1 on NQ, 2.2 on TriviaQA, and 1.2 on WebQ.
- Factual Accuracy: The most significant improvements occurred on questions where relevant KG triplets were available. In these cases, the gain was nearly double that of the general dataset, proving the effectiveness of the KG injection.
- Efficiency: GRAPE achieved these results with negligible computational overhead. Notably, it matched FiD's performance while requiring only half the number of retrieved passages, indicating a more efficient use of evidence.
Conclusion and Future Work
GRAPE demonstrates that the bottleneck in ODQA is often not the retrieval of information, but the reader's ability to correctly interpret entity relationships. By grounding the reader in structured knowledge, we can significantly reduce factual contradictions. Future research will focus on expanding the factual scope beyond Wikidata to include domain-specific KGs and improving the underlying entity linking systems to further enhance coverage.
Summary updated