Back to search

Hong Kong University of Science and Technology

Neural Query Engines for Knowledge Hypergraphs: Complex Query Answering with Transformers

Abstract

dc:description

<p>Complex Query Answering (CQA) over knowledge graphs has been extensively studied, yet existing methods are predominantly designed for binary relations, where each edge connects exactly two entities. Real-world knowledge, however, is inherently n-ary, and forcing such facts into binary triplets fragments their semantics. While knowledge hyper-graphs address this by modeling n-ary relations as hyperedges that connect arbitrarily many entities, complex query answering over such structures remains unexplored.</p> <p>To bridge this gap, we introduce two new benchmark datasets, JF17k-HCQA and M-FB15k-HCQA, covering 14 query types with projection, negation, conjunction, and disjunction operations. We propose the Logical Knowledge Hypergraph Transformer (LKHGT), a two-stage transformer in which a Projection Encoder resolves atomic hyperedge predictions and folds in negation, while a Logical Encoder composes the resulting representations through conjunction and disjunction. To let the model tell the eight token types apart during self-attention, we equip both encoders with a Type Aware Bias (TAB). On our two benchmarks LKHGT is the strongest method overall on average, beating the HLMPNN, LSGT, and NQE baselines and still answering query types it never saw in training, including four-hop queries deeper and wider than any seen during training. Two ablation findings stand out: absolute positional encoding matters for ordered hyperedges, and a learned transformer can take over the logical operations normally left to fuzzy logic, avoiding the O(\E\k) cost of truth-value-materializing fuzzy methods as relation arity grows.</p>

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Tsang, Hong Ting
Contributors dc:contributor
  • Song, Yangqiu

Rights

Language dc:language
English

Identifiers

dc:identifier.*

Chain of custody

source
Harvested from
Hong Kong University of Science and Technology
Base URL
repository.ust.hk/ir/OAI/Server
Last updated
2026-12-01
Source record
OAI-PMH GetRecord
related terms
citation

Tsang, Hong Ting. Neural Query Engines for Knowledge Hypergraphs: Complex Query Answering with Transformers. 2026. http://repository.hkust.edu.hk/ir/Record/1783.1-174664