Keyword-Based Knowledge Graph Exploration Based on Quadratic Group Steiner Trees

Yuxuan Shi, Gong Cheng, Trung-Kien Tran, Jie Tang, Evgeny Kharlamov

Introduction

Exploring Knowledge Graphs (KGs) using keywords is a vital tool for non-experts to navigate complex data structures. Traditionally, this is modeled as a Group Steiner Tree (GST) problem, where the goal is to find a minimum-weight connected subgraph containing all query keywords. However, standard GST approaches often prioritize structural proximity (salience) over semantic relevance, potentially returning a collection of entities that are close in the graph but conceptually unrelated.

Example of a Knowledge Graph where different subgraphs ($T_1, T_2$) can be extracted based on keyword queries.

The Quadratic Group Steiner Tree Problem (QGSTP)

To address the lack of semantic unity in standard results, this paper introduces the Quadratic Group Steiner Tree Problem (QGSTP). Unlike the linear cost function of GST, QGSTP adds a quadratic term representing the pairwise semantic distances between all vertices in the resulting tree. This ensures that the output is not only structurally compact but also "cohesive"—meaning the entities share similar types, topics, or textual contexts. Because QGSTP requires joint optimization of independent linear weights and quadratic distances, it is significantly more complex than the already NP-hard GST problem.

The B$^3$F Algorithm

The authors propose the Branch-and-Bound Best-First (B$^3$F) algorithm, the first exact solver for QGSTP. B$^3$F guarantees optimality by systematically exploring the search space and pruning paths that cannot improve upon the current best solution. The technical core of B$^3$F is its efficient lower-bound estimation, which decomposes the cost into two parts:

  1. Weight Cost: Estimated using a Weighted Set Cover Problem (WSCP) relaxation.
  2. Semantic Distance Cost: Estimated by combining a Set Cover Problem (SCP) with maximum weighted matching on a complete graph to find the minimum possible distance added by required vertices.

Experimental Evaluation

The approach was evaluated on five datasets derived from MONDIAL, LUBM, and DBpedia, ranging from 20k to 100k vertices. The results demonstrate that B$^3$F significantly improves the quality of exploration.

Performance comparison across five datasets, showing cohesiveness ratios and execution times as the number of keywords ($g$) increases.

Key Findings:

  • Effectiveness: B$^3$F produced subgraphs that were 8% to 53% more cohesive than those from DPBF, a state-of-the-art GST algorithm. Qualitative analysis confirmed that B$^3$F successfully groups related entities, such as specific military conflicts, rather than mixing disparate salient nodes.
  • Efficiency: Despite the added complexity, B$^3$F remains practical. On LUBM datasets, it was 3.48–8.78x faster than the baseline. On other graphs, it maintained competitive runtimes (1.3 to 6.5 seconds for medium-sized graphs), though it shows superlinear growth on larger 100k-node datasets.

Conclusion

By incorporating quadratic semantic distances into the Steiner Tree framework, B$^3$F provides a more human-centric way to explore Knowledge Graphs. While scaling to massive enterprise KGs remains a challenge for exact algorithms, B$^3$F establishes a robust baseline for future approximation methods and demonstrates that semantic cohesiveness can be optimized efficiently in practice.

Summary updated

BibTeX
@inproceedings{shi2021keyword,
  author = {Yuxuan Shi and Gong Cheng and Trung-Kien Tran and Jie Tang and Evgeny Kharlamov},
  title = {{Keyword-Based Knowledge Graph Exploration Based on Quadratic Group Steiner Trees}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.24963/ijcai.2021/215},
}
Figure