[Paper Review] Logic Embeddings for Complex Query Answering
This paper introduces Logic Embeddings, a novel method for efficient and accurate complex query answering over incomplete knowledge graphs by transforming existential first-order logic queries into real-valued logic using Skolemisation. It models set operations via t-norms on truth bounds, enabling direct satisfiability evaluation, improved uncertainty modeling, and 2–3x faster training than density-based methods like Beta embeddings, with superior performance on negation and answer size prediction.
Answering logical queries over incomplete knowledge bases is challenging because: 1) it calls for implicit link prediction, and 2) brute force answering of existential first-order logic queries is exponential in the number of existential variables. Recent work of query embeddings provides fast querying, but most approaches model set logic with closed regions, so lack negation. Query embeddings that do support negation use densities that suffer drawbacks: 1) only improvise logic, 2) use expensive distributions, and 3) poorly model answer uncertainty. In this paper, we propose Logic Embeddings, a new approach to embedding complex queries that uses Skolemisation to eliminate existential variables for efficient querying. It supports negation, but improves on density approaches: 1) integrates well-studied t-norm logic and directly evaluates satisfiability, 2) simplifies modeling with truth values, and 3) models uncertainty with truth bounds. Logic Embeddings are competitively fast and accurate in query answering over large, incomplete knowledge graphs, outperform on negation queries, and in particular, provide improved modeling of answer uncertainty as evidenced by a superior correlation between answer set size and embedding entropy.
Motivation & Objective
- To address the challenge of answering complex, existential first-order logic queries over incomplete knowledge bases where missing facts introduce uncertainty.
- To overcome limitations of existing query embedding methods, such as poor negation support, reliance on expensive probability densities, and weak uncertainty modeling.
- To enable efficient, scalable reasoning by transforming multi-hop queries into compositional logic operations on latent truth bounds.
- To improve uncertainty modeling by correlating truth bound widths with answer set size and entropy, enhancing prediction accuracy.
- To achieve faster training and more stable convergence compared to density-based embeddings like Beta embeddings.
Proposed method
- Skolemisation is used to eliminate existential variables, transforming FOL queries into a form suitable for embedding in a latent space of truth bounds.
- Entity subsets are represented as arrays of truth bounds [l, u] where 0 ≤ l ≤ u ≤ 1, encoding uncertainty about membership.
- Set operations—intersection (conjunction), union (disjunction), and complement (negation)—are implemented via t-norms, t-conorms, and bound inversion on truth values.
- Logic satisfiability is directly evaluated using a distance-based score q(T) = 1 − D(T, A), where D measures similarity between query embedding and candidate answer.
- Uncertainty is modeled through the width of truth bounds, with entropy computed per bound to correlate with answer set size.
- The method uses vectorized, differentiable operations for efficient computation, avoiding integration or closed-form distributions.
Experimental results
Research questions
- RQ1Can we embed complex first-order logic queries in a way that supports full negation while maintaining computational efficiency?
- RQ2How can truth bounds be used to model uncertainty in answer sets more effectively than probability densities?
- RQ3Does direct logic reasoning on truth bounds improve answer accuracy and cardinality prediction compared to density-based embeddings?
- RQ4Can Skolemisation enable efficient, scalable query answering without grounding or brute-force search?
- RQ5How does the use of t-norms on truth bounds compare to density-based dissimilarity measures in training speed and convergence?
Key findings
- Logic Embeddings achieve 2–3x faster training than Beta embeddings due to simple, closed-form entropy and dissimilarity calculations, with smoother and more stable training curves.
- The method reduces mean absolute error in answer size prediction by 83% compared to Beta embeddings, indicating more informative uncertainty modeling.
- Logic Embeddings outperform existing methods on negation queries, demonstrating superior handling of complex logical operations.
- Answer set size correlates strongly with embedding entropy, validating that truth bound widths effectively model uncertainty.
- The use of t-norms on truth bounds enables direct, differentiable logic reasoning without relying on geometric shapes or neural approximations.
- Logic Embeddings show competitive accuracy in query answering while significantly reducing computational cost compared to density-based approaches.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.