Skip to main content
QUICK REVIEW

[Paper Review] Thinking, Fast and Slow: Combining Vector Spaces and Knowledge Graphs

Sudip Mittal, Anupam Joshi|arXiv (Cornell University)|Aug 10, 2017
Advanced Graph Neural NetworksComputer Science38 references33 citations
TL;DR

This paper proposes the Vector Knowledge Graph (VKG) structure, a hybrid knowledge representation that unifies vector space models and knowledge graphs to enable efficient, reasoning-enhanced semantic search. By decomposing queries into 'fast' vector-space searches and 'slow' knowledge graph inferences, the VKG outperforms standalone models, achieving a MAP of 0.80 on semantic search tasks—significantly better than vector models (0.69) and knowledge graphs (0.43).

ABSTRACT

Knowledge graphs and vector space models are robust knowledge representation techniques with individual strengths and weaknesses. Vector space models excel at determining similarity between concepts, but are severely constrained when evaluating complex dependency relations and other logic-based operations that are a strength of knowledge graphs. We describe the VKG structure that helps unify knowledge graphs and vector representation of entities, and enables powerful inference methods and search capabilities that combine their complementary strengths. We analogize this to thinking `fast' in vector space along with thinking 'slow' and `deeply' by reasoning over the knowledge graph. We have created a query processing engine that takes complex queries and decomposes them into subqueries optimized to run on the respective knowledge graph or vector view of a VKG. We show that the VKG structure can process specific queries that are not efficiently handled by vector spaces or knowledge graphs alone. We also demonstrate and evaluate the VKG structure and the query processing engine by developing a system called Cyber-All-Intel for knowledge extraction, representation and querying in an end-to-end pipeline grounded in the cybersecurity informatics domain.

Motivation & Objective

  • To address the limitations of standalone vector space models and knowledge graphs in capturing both semantic similarity and declarative reasoning.
  • To develop a unified framework that leverages the strengths of both representations for complex query processing.
  • To enable efficient, hybrid query execution through query decomposition into search, list, and infer operations.
  • To demonstrate the approach in a real-world cybersecurity domain using the Cyber-All-Intel system.

Proposed method

  • Designing the VKG structure to integrate vector embeddings with a formal knowledge graph, using shared vocabulary and ontology schema.
  • Creating a query processing engine that automatically decomposes complex queries into sub-queries optimized for either the vector space or knowledge graph component.
  • Using a relational concurrence assumption to generate word embeddings via word2vec and GloVe, which are then aligned with knowledge graph entities.
  • Applying a two-stage linking process to map vector space embeddings to knowledge graph nodes using shared corpus vocabulary.
  • Implementing three query types: 'search' (vector space), 'list' (knowledge graph), and 'infer' (logical reasoning over graph triples).
  • Grounding the system in the cybersecurity domain by extracting and structuring threat and vulnerability data from diverse sources like NVD, dark web, and security blogs.

Experimental results

Research questions

  • RQ1Can a hybrid knowledge representation combining vector spaces and knowledge graphs improve semantic search performance beyond either model alone?
  • RQ2How can complex queries be effectively decomposed into sub-queries that leverage the strengths of vector space similarity search and knowledge graph reasoning?
  • RQ3To what extent does the integration of declarative assertions in a knowledge graph improve the accuracy and relevance of vector-based search results?
  • RQ4Can the VKG structure efficiently handle queries that are infeasible for either vector models or knowledge graphs in isolation?

Key findings

  • The VKG structure achieved a Mean Average Precision (MAP) of 0.80 on semantic search tasks, significantly outperforming standalone vector models (0.69) and knowledge graphs (0.43).
  • Vector space models alone outperformed knowledge graphs in 47 out of 56 evaluated similarity groups (83% of cases), highlighting their strength in semantic similarity computation.
  • The knowledge graph component demonstrated high accuracy, with 83% of triples manually labeled as correct and 97% of entity linkages between vectors and graph nodes judged correct.
  • The system successfully processed complex cybersecurity queries such as 'Issue an alert if a vulnerability similar to denial of service is found in MySQL', demonstrating end-to-end reasoning and retrieval.
  • The query decomposition engine effectively routed 'search' operations to the vector space and 'list'/'infer' operations to the knowledge graph, enabling scalable and accurate hybrid inference.
  • The Cyber-All-Intel system demonstrated the feasibility of building an end-to-end pipeline for cybersecurity intelligence using the VKG structure, integrating data from diverse sources like NVD, dark web, and security blogs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.