NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Self-Supervised Hyperboloid Representations from Logical Queries over Knowledge Graphs

Nurendra Choudhary, Nikhil Rao, Sumeet Katariya, Karthik Subbian, Chandan K. Reddy · DOI

Abstract

Knowledge Graphs (KGs) are ubiquitous structures for information storage in several real-world applications such as web search, e-commerce, social networks, and biology. Querying KGs remains a foundational and challenging problem due to their size and complexity. Promising approaches to tackle this problem include embedding the KG units (e.g., entities and relations) in a Euclidean space such that the query embedding contains the information relevant to its results. These approaches, however, fail to capture the hierarchical nature and semantic information of the entities present in the graph. Additionally, most of these approaches only utilize multi-hop queries to learn embeddings and ignore more complex operations such as intersection and union of simpler queries. To tackle such complex operations, in this paper, we formulate KG representation learning as a self-supervised logical query reasoning problem that utilizes translation, intersection and union queries over KGs. We propose Hyperboloid Embeddings (HypE), a novel self-supervised dynamic reasoning framework, that utilizes positive first-order existential queries on a KG to learn representations of its entities and relations as hyperboloids in a Poincaré ball. HypE models the positive first-order queries as geometrical translation, intersection, and union. For the problem of KG reasoning in real-world datasets, the proposed HypE model significantly outperforms the state-of-the art results. We also apply HypE to an anomaly detection task on a popular e-commerce website product taxonomy as well as hierarchically organized web articles and demonstrate significant performance improvements compared to existing baseline methods.

Introduction

Extracting meaningful insights from massive Knowledge Graphs (KGs) often requires executing Positive First-Order Existential (PFOE) queries. These logical operations involve multi-hop links (translations), intersections (AND), and unions (OR). To perform these efficiently at scale, modern systems embed KGs into latent spaces where logical queries are transformed into geometric operations.

However, traditional embedding methods face two significant hurdles. First, they often rely on Euclidean geometry, which is poorly suited for the tree-like, hierarchical structures inherent in KGs. Second, many existing models represent entities as static points. A point-based representation fails to account for the varying specificity of queries; for instance, a broad query like "Nike" should logically encompass a larger region of the latent space than a specific query like "Nike running shoes for men."

Methodology: Hyperboloid Embeddings (HypE)

To address these limitations, we introduce Hyperboloid Embeddings (HypE). HypE represents entities and queries as hyperboloids within a non-Euclidean Poincaré ball. A hyperboloid acts as a hyperbolic bounding box, defined by a center and a limit (radius), allowing it to encapsulate a dynamic volume of space that reflects the query's answer set size.

Comparison between point-based hyperbolic vectors (a) and region-based hyperboloids (b), illustrating how hyperboloids capture varying answer space volumes.

HypE models logical queries through specific geometric operations:

  • Translation: Uses Möbius addition—the hyperbolic analogue to vector addition—to shift a hyperboloid's center and adjust its limit.
  • Intersection: Employs an Attention mechanism to determine a new center and a DeepSets network to shrink the limit, representing a more specific, narrowed answer space.
  • Union: Since hyperboloids are not closed under union, we utilize a Disjunctive Normal Form (DNF) transformation to push union operations to the end of the query chain, calculating the minimum distance to any resulting hyperboloid.
The HypE architecture featuring a dynamic switch mechanism to route queries through specialized hyperbolic transformation and attention layers.

The framework is trained in a self-supervised manner by traversing the KG to generate query-answer pairs. A dynamic computational graph uses a switch mechanism to route data through the appropriate neural layers based on the logical operator being processed.

Experimental Evaluation

We evaluated HypE against state-of-the-art baselines (e.g., Query2Box, GQE) across standard KGs (FB15k, NELL995) and hierarchical datasets (DBPedia, E-commerce Product Network).

Query Answering

HypE consistently outperformed existing methods. On average, it improved Hits@3 by 15-67% on translation queries and 7-28% on compound queries. The use of hyperbolic space allowed for superlinear scaling of inter-level distances, making it significantly better at distinguishing between different levels of a hierarchy compared to Euclidean models.

Anomaly Detection

By forcing the model to learn deep structural rules through logical query answering, the resulting embeddings proved highly effective for downstream tasks. In detecting miscategorized products in e-commerce catalogs, HypE outperformed baselines by over 5% in F1-score at granular taxonomy levels. Furthermore, combining HypE’s structural embeddings with FastText semantic embeddings yielded an additional 2-8% performance boost.

Conclusion

HypE demonstrates that combining hyperbolic geometry with region-based representations (hyperboloids) provides a powerful framework for KG reasoning. By capturing both the hierarchical structure and the relative volume of query answer spaces, HypE sets a new state-of-the-art for logical query answering and structural anomaly detection. Future work will explore natively multimodal hyperbolic embeddings to further integrate text and graph structures.

Summary updated

BibTeX
@inproceedings{choudhary2020self,
  author = {Nurendra Choudhary and Nikhil Rao and Sumeet Katariya and Karthik Subbian and Chandan K. Reddy},
  title = {{Self-Supervised Hyperboloid Representations from Logical Queries over Knowledge Graphs}},
  booktitle = {The Web Conference},
  year = {2020},
  doi = {10.1145/3442381.3449974},
}
Figure