Quantum Embedding of Knowledge for Reasoning

Dinesh Garg, Shajith Ikbal, Santosh K. Srivastava, Harit Vishwakarma, Hima P. Karanam, L. Venkata SubramaniamNeurIPS 2019

This paper introduces Embed2Reason (E2R), a framework that bridges the gap between symbolic logic and vector-space embeddings. By leveraging the geometric principles of Quantum Logic, the authors provide a way to embed Knowledge Bases (KBs) such that their logical structure—not just their statistical patterns—is preserved. This approach enables significantly more accurate automated reasoning.

TL;DR

E2R uses Quantum Logic to map Knowledge Base concepts to subspaces and entities to vectors, ensuring that logical operations like "AND," "OR," and "NOT" correspond to geometric operations. This approach yields massive performance gains (up to 139% in HITS@1) on complex reasoning tasks compared to traditional statistical embedding methods.

The Challenge: Preserving Logical Structure

Traditional Statistical Relational Learning (SRL) methods, such as TransE or Word2Vec, represent Knowledge Bases by mapping entities and relations into a vector space based on statistical similarities. While these are excellent for "link prediction" (guessing a missing fact), they lack a guarantee of preserving the underlying logical structure.

In a Knowledge Base, structure is often divided into:

  1. T-box (Terminology): The hierarchy of concepts (e.g., a Cardiologist is a type of Physician, which is a type of Doctor).
  2. A-box (Assertions): The membership of specific entities (e.g., Alice is a Cardiologist).

Standard embedding methods often ignore the T-box or fail to represent it in a way that allows for rigorous deductive reasoning. If a system doesn't "know" that all cardiologists are doctors, it cannot reliably answer complex queries about doctors using an embedding of a cardiologist.

The Solution: Embed2Reason (E2R)

The authors propose Embed2Reason (E2R), which is inspired by Quantum Logic (QL). In this framework, the shift from point-based embeddings to subspace-based embeddings is the core "aha moment."

  • Predicates as Subspaces: Instead of representing a concept (like "Doctor") as a single point or a sphere, it is represented as a linear subspace of a complex vector space. Subspaces naturally capture the "area" a concept covers, allowing for a more nuanced representation of hierarchies and overlaps.
  • Entities as Vectors: Individual entities (like "Alice") are represented as vectors. An entity belongs to a concept if its vector lies within that concept's subspace.
Geometric representation of concepts as subspaces and entities as vectors.

By using QL, the authors found a mathematically rigorous way to perform Boolean-like logic directly on vectors:

  • AND ($\wedge$): The intersection of two subspaces.
  • OR ($\vee$): The vector sum of two subspaces.
  • NOT ($\neg$): The orthogonal complement of a subspace.
  • Inclusion ($\sqsubseteq$): One subspace being a subset of another.

To make this computationally efficient, the authors use an axis-parallel assumption, where subspaces are aligned with the axes of the vector space. This simplification ensures the "distributive law" of logic holds, which is a known hurdle in standard Quantum Logic. To prevent "subspace collapse" (where all concepts accidentally merge into one during training), the authors introduced regularity constraints—encouraging siblings in a hierarchy to be orthogonal—and negative sampling to maintain the distinctness of the logical structure.

Experimental Results

The researchers evaluated E2R on three primary datasets: FB15K (a standard benchmark derived from Freebase), WN18 (a subset of WordNet), and LUBM1U (a synthetic dataset specifically designed to test deductive reasoning steps).

Performance comparison of E2R against baseline models.

E2R demonstrated a significant leap in performance over popular baselines like TransE (TE) and ComplEx (CE):

  • Reasoning (LUBM1U): E2R showed a 76% improvement in MRR (Mean Reciprocal Rank) and a 139% improvement in HITS@1 relative to the closest competitor.
  • Link Prediction (FB15K): The model achieved a 57% improvement in MRR and a 95% improvement in HITS@1.
  • Rank-1 Accuracy: A standout finding was that E2R consistently ranks the ground truth entity at Rank-1 or very low, whereas baselines often struggle to distinguish the correct answer from similar-looking "near misses."

Limitations and Future Directions

While highly effective for reasoning, E2R has a few limitations. It struggled slightly on WN18 compared to distance-based models because WN18 relies heavily on transitivity and inversion properties, which distance-based models are specifically tuned to capture. Additionally, the axis-parallel constraint, while simplifying the math, may limit the model's ability to represent more "oblique" or fuzzy relationships between concepts.

The current work focuses on a subset of Description Logic (ALC). Extending this framework to more expressive logics and applying it to natural language Knowledge Bases represent exciting frontiers for future research.

Summary updated

BibTeX
@inproceedings{garg2019quantum,
  author = {Dinesh Garg and Shajith Ikbal and Santosh K. Srivastava and Harit Vishwakarma and Hima P. Karanam and L. Venkata Subramaniam},
  title = {{Quantum Embedding of Knowledge for Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2019},
  url = {https://openreview.net/forum?id=Q59AYkTs3ZI},
}
Figure