Question answering (QA) has long been split into two camps: KG-QA, which queries structured Knowledge Graphs like Wikidata, and Text-QA, which extracts answers from unstructured corpora like Wikipedia or the Web. While KGs offer precision, they are often incomplete; text is vast but lacks the explicit relationships needed for complex, multi-step reasoning.
UNIQORN (Unified Question Answering over RDF Knowledge Graphs and Natural Language Text) is a new framework that refuses to choose. It treats KGs and text as complementary parts of a single, unified graph-based reasoning process.
TL;DR
UNIQORN is a unified framework for complex question answering that integrates structured Knowledge Graphs (KGs) and unstructured text by inducing a shared graph representation on-the-fly. By using Group Steiner Trees to navigate this noisy "context graph," it significantly outperforms state-of-the-art heterogeneous QA systems and even beats top-tier LLMs like GPT-4o in retrieval-augmented settings for complex factoid questions.
What Problem Does This Paper Address?
The core challenge is the "representation gap." KG-QA systems excel at structured queries (like SPARQL) but fail when facts are missing from the database. Text-QA systems (like retriever-reader models) are great at finding information in prose but struggle to "join" disparate pieces of evidence across multiple documents.
Previous attempts at "heterogeneous QA" often used ad-hoc pipelines or "verbalized" KG facts into text strings. The authors argue that verbalization is a step backward: it flattens the rich, relational structure of KGs, making complex reasoning harder. UNIQORN takes the opposite approach: it induces structure from text to create a unified, graph-based "quasi-KG."
Methods
The UNIQORN pipeline (illustrated in Figure 2 and 3) operates in two main stages:
- Context Graph (XG) Construction:
- Retrieval & Pruning: For a given question, the system retrieves potential "evidences"—triples from a KG (using entity linking) and snippets from Web search results. A fine-tuned BERT classifier then prunes these down to the most relevant pieces.
- Structure Induction: While KG facts are already triples, UNIQORN uses a custom Open Information Extraction (Open IE) tool to turn text snippets into Subject-Predicate-Object (SPO) triples.
- Unified Graph: These triples are merged into a single "context graph." To handle different ways of saying the same thing, the system adds "alignment edges" based on semantic similarity (e.g., linking the KG predicate
directorto the text phrasedirected by). - The Graph Algorithm:
- Anchors: The system identifies "anchor nodes" in the graph that match tokens in the question.
- Group Steiner Trees (GST): This is the "secret sauce." UNIQORN finds the minimum-cost tree that connects at least one anchor for every part of the question. This algorithm (visualized in Figure 4 and 5) naturally handles joint disambiguation—finding the most globally coherent path that answers all parts of a complex query.
- Ranking: Candidate answers are ranked based on their frequency across the top-k generated Steiner Trees.
Datasets
The authors evaluated UNIQORN on a massive scale (~7,000 complex questions) using:
- LC-QuAD 2.0: The primary benchmark for complex KG-QA.
- Zero-Shot Benchmarks: LC-QuAD 1.0, CQ-W (WikiAnswers), CQ-T (Google Trends), QALD 1-9, and ComQA.
- Knowledge Sources: A cleaned version of Wikidata (~2B triples) and a question-specific text corpus generated from Google Search results.
Key Insights and Ideas
- Structure is Better than Prose: Inducing a graph from text is more effective for complex reasoning than turning a graph into text. It preserves the "joins" necessary for multi-hop questions.
- GST as a Reasoning Engine: The Group Steiner Tree algorithm is a powerful alternative to brittle SPARQL templates. It can find answers even when the exact relationship isn't explicitly modeled in the KG, provided there's a path through the text-induced triples.
- Interpretability by Design: Unlike "black-box" neural models, UNIQORN provides a visual trace (the Steiner Tree) of exactly how it derived an answer from the source evidence.
- The "Parametric Memory" Trap: Experiments showed that even when LLMs are given the correct context (RAG), they often ignore it in favor of their internal training data, leading to hallucinations. UNIQORN, being purely retrieval-based, is more faithful to its sources.
Key Results
- Superior Accuracy: On the challenging LC-QuAD 2.0 benchmark, UNIQORN achieved a P@1 of 0.324, more than doubling the performance of the previous state-of-the-art unified model, UNIK-QA (0.141).
- Zero-Shot Champion: UNIQORN's most impressive feat is its generalizability. In zero-shot experiments (testing on benchmarks never seen during training), it consistently outperformed supervised baselines, often by huge margins.
- Beating GPT-4o: In a head-to-head comparison on KG-centric questions, UNIQORN (0.273) outperformed GPT-4o in a RAG setup (0.194).
Limitations and Future Work
- Latency: The current pipeline is slow, taking an average of ~200 seconds per question for the full KG+Text setup. Most of this time is spent on on-the-fly KG lookups and BERT scoring.
- Open IE Noise: While the GST algorithm is robust, the quality of the induced graph depends on the Open IE tool. Improvements in extracting clean triples from messy Web text would directly boost performance.
- Future Directions: The authors suggest exploring parallelization and using smaller, faster LLMs (like TinyBERT) to reduce the scoring bottleneck. They also aim to handle different levels of answer granularity (e.g., full phrases vs. single entities).
Summary updated