Papers
Topics
Authors
Recent
Search
2000 character limit reached

Entity-Guided Graph Traversal for KB-QA

Updated 10 November 2025
  • Entity-Guided Graph Traversal is a KB-QA method that uses detected entities to extract local subgraphs and map natural language queries into graph traversal operations.
  • It integrates entity linking, subgraph extraction, and joint semantic mapping with predicate similarity and type constraints to effectively resolve disambiguation.
  • The approach demonstrates improved recall and F1 on non-aggregation questions, streamlining query translation in large graph-structured knowledge bases like DBpedia.

Entity-Guided Graph Traversal is a knowledge base question answering (KB-QA) methodology that leverages local graph substructures, anchored on detected entities, to enable semantic parsing and answer retrieval from large graph-structured resources such as DBpedia. This approach is specifically suited for non-aggregation questions, focusing on mapping natural language questions into subgraph traversal operations that yield accurate answers while jointly resolving semantic mapping and disambiguation.

1. Knowledge Base and Formal Problem Definition

Let the underlying knowledge base (KB), such as DBpedia, be modeled as a directed, labeled graph G=(V,E)G = (V, E), where VV denotes the set of RDF nodes (resources, classes, literals), and EV×P×VE \subseteq V \times P \times V is the set of labeled edges (each (u,p,v)E(u,p,v) \in E encodes a relation u p vu\ \xrightarrow{p}\ v). Given a user query qq in natural language, the system must return the accurate set of answers by traversing appropriate paths in GG.

The entity-guided method proceeds by:

  • Detecting a subset of KB entities Eq={e1,e2,,ek}VE_q = \{e_1, e_2, \ldots, e_k\} \subseteq V referenced in qq, each corresponding to a DBpedia URI.
  • Extracting a “topological structure” or pattern TqT_q from VV0, represented as a tree with edges labeled by surface phrases (e.g., “mayor of”).
  • Defining VV1 as the maximal branch length (in edges) in VV2, restricting traversal depth.

2. Entity Detection and Local Subgraph Construction

2.1 Entity Linking

The process employs an external entity linker (specifically, Wikipedia Miner), which:

  • Identifies mention–resource pairs VV3 in VV4.
  • Retains only those with linker score VV5 (VV6).
  • Excludes schema-level (e.g. dbo:Actor) or category entities, retaining only instance-level entities for VV7.

2.2 Subgraph Extraction

With VV8 established, a local subgraph VV9 is constructed as follows:

  1. Initialize EV×P×VE \subseteq V \times P \times V0, EV×P×VE \subseteq V \times P \times V1.
  2. For every EV×P×VE \subseteq V \times P \times V2 and for EV×P×VE \subseteq V \times P \times V3:
    • Perform breadth-first expansion to depth EV×P×VE \subseteq V \times P \times V4.
    • Collect all edges EV×P×VE \subseteq V \times P \times V5 with EV×P×VE \subseteq V \times P \times V6 or EV×P×VE \subseteq V \times P \times V7.
    • Augment EV×P×VE \subseteq V \times P \times V8 and EV×P×VE \subseteq V \times P \times V9 with endpoints and edges.
  3. Expand until reaching depth (u,p,v)E(u,p,v) \in E0 (the longest path indicated by (u,p,v)E(u,p,v) \in E1). This design guarantees that any answer path conforming to (u,p,v)E(u,p,v) \in E2 lies entirely in (u,p,v)E(u,p,v) \in E3.

3. Joint Semantic Item Mapping and Disambiguation

Entity-guided graph traversal unifies two typically disjoint subtasks: (a) Semantic-Item-Mapping: Extract the structured template (u,p,v)E(u,p,v) \in E4, e.g., discerning the pattern "Who is the mayor of Berlin?” as ANSNODE—“mayor of”—Berlin, where ANSNODE is a variable for the answer; (b) Semantic-Item-Disambiguation: Select, within (u,p,v)E(u,p,v) \in E5, the precise sequence of predicates and nodes realizing the intended query semantics.

The methodology:

  • Adopts light-weight constituency-based patterns to extract (u,p,v)E(u,p,v) \in E6 from (u,p,v)E(u,p,v) \in E7 (eschewing template induction).
  • Searches (u,p,v)E(u,p,v) \in E8 for candidate paths matching the topology of (u,p,v)E(u,p,v) \in E9.
  • Scores each candidate path based on the semantic match between KB predicate labels and question phrases, and enforces answer type constraints.

For a pattern u p vu\ \xrightarrow{p}\ v0 with u p vu\ \xrightarrow{p}\ v1 edges, each labeled u p vu\ \xrightarrow{p}\ v2 (the u p vu\ \xrightarrow{p}\ v3-th surface phrase), candidate paths u p vu\ \xrightarrow{p}\ v4 in u p vu\ \xrightarrow{p}\ v5 are scored:

u p vu\ \xrightarrow{p}\ v6

where

  • u p vu\ \xrightarrow{p}\ v7 is the semantic similarity between predicate label u p vu\ \xrightarrow{p}\ v8 and surface phrase u p vu\ \xrightarrow{p}\ v9;
  • qq0 assesses the compatibility of terminal node qq1 with the expected answer type inferred from question focus (e.g. "person", "place").

This joint objective disambiguates both predicate path selection and answer candidate typing.

4. Path Traversal Algorithm and Pruning

The core traversal algorithm, denoted "FindCandidatePaths," operates as follows for pattern length qq2 and phrase set qq3:

  1. Initialize qq4
  2. For each step qq5:
    • For each qq6 path, score_so_farqq7:
      • Enumerate top-qq8 outgoing edges from qq9 by GG0.
      • Prune edges with similarity GG1.
      • For each permissible edge, create new partial path in GG2.
  3. After GG3 steps, GG4 contains valid, length-GG5 candidate paths.
  4. Each GG6 is scored with GG7, yielding final path score.
  5. Return candidates ranked by total score.

The state per traversal step is a triple: (current node GG8, accumulated predicates, similarity score). Branching is curtailed by top-GG9 predicate selection and threshold Eq={e1,e2,,ek}VE_q = \{e_1, e_2, \ldots, e_k\} \subseteq V0. In the worst case, the number of paths is Eq={e1,e2,,ek}VE_q = \{e_1, e_2, \ldots, e_k\} \subseteq V1 (for average branching factor Eq={e1,e2,,ek}VE_q = \{e_1, e_2, \ldots, e_k\} \subseteq V2), but effective pruning ensures tractable computational cost.

5. Path Scoring and Answer Selection

5.1 Predicate-Similarity Features

For each path edge Eq={e1,e2,,ek}VE_q = \{e_1, e_2, \ldots, e_k\} \subseteq V3 and corresponding Eq={e1,e2,,ek}VE_q = \{e_1, e_2, \ldots, e_k\} \subseteq V4, the system computes: Eq={e1,e2,,ek}VE_q = \{e_1, e_2, \ldots, e_k\} \subseteq V5 where Eq={e1,e2,,ek}VE_q = \{e_1, e_2, \ldots, e_k\} \subseteq V6 is a word similarity service.

5.2 Type-Constraint Feature

A focus phrase Eq={e1,e2,,ek}VE_q = \{e_1, e_2, \ldots, e_k\} \subseteq V7 is extracted from Eq={e1,e2,,ek}VE_q = \{e_1, e_2, \ldots, e_k\} \subseteq V8, typically the head noun following interrogatives. For each answer candidate Eq={e1,e2,,ek}VE_q = \{e_1, e_2, \ldots, e_k\} \subseteq V9, the best semantic match is computed: qq0

5.3 Combined Scoring

qq1

with qq2 the predicate scores and qq3 the type score. Candidates are returned ranked by this measure.

6. Query Translation and System Output

While the implementation yields URI or literal answers directly, any discovered path qq4 can be rendered as a SPARQL query:

qq8 The OPTIONAL-FILTER clause encodes the type constraint derived from the focus phrase.

7. Experimental Evaluation and Comparative Performance

Experiments were conducted on QALD-3 benchmarks:

  • The full test set contains 99 natural-language questions; QALD-3-NA is a non-aggregation subset (61 questions, excluding COUNT/ORDER BY/FILTER types).
  • Metrics: Precision qq5, Recall qq6, F1 (qq7), reported as averages.

Summary of results:

Dataset System Processed Correct Partial Avg-Recall Avg-Prec Avg-F1
QALD-3-NA Ours 53 30 13 0.67 0.61 0.61
gAnswer demo 38 21 7 0.41 0.45 0.42
QALD-3-full Ours 60 31 17 0.46 0.40 0.40
gAnswer 76 32 11 0.40 0.40 0.40
DEANNA 27 21 0 0.21 0.21 0.21

Entity-guided graph traversal achieves higher recall and F1 on non-aggregation questions compared to several state-of-the-art systems and leads on recall in the full QALD-3 evaluation set. This suggests its effectiveness in answer retrieval where explicit aggregation is not required and where local subgraph patterns, seeded by confidently linked entities, are salient.

8. Significance, Limitations, and Applicability

Entity-guided graph traversal simplifies the process of mapping questions to queries by:

  • Avoiding heavy template induction (and thus manual engineering).
  • Focusing on answer path ranking rather than exhaustive global search.
  • Enabling joint semantic matching and type-based answer disambiguation within manageable subgraphs.

A plausible implication is that the method is less suited to questions which require aggregation, counting, or global reasoning over the KB. Its computational efficiency depends critically on the effectiveness of entity linking, the restrictiveness of local subgraph expansion, and the suitability of the underlying similarity metrics. The approach is well-aligned with KBs that exhibit rich instance-level connectivity and clearly typed relations, such as DBpedia.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Entity-Guided Graph Traversal.