English

Neural Scalable Symbolic Search Framework for Complex Logical Queries with Multiple Free Variables

Artificial Intelligence 2026-05-26 v1

Abstract

Complex Query Answering (CQA) is a fundamental knowledge representation and reasoning task over incomplete knowledge graphs (KGs). Answering existential first-order queries with kk free variables (i.e., EFOk\text{EFO}_k queries) is a crucial yet challenging problem, as it requires ranking answer tuples in Ek\mathcal{E}^k, where E\mathcal{E} denotes the entity set of a KG. This quickly becomes intractable as kk grows. Consequently, existing benchmarks and methods rely on marginal rankings over individual variables; however, marginal rankings are a poor proxy for the true joint ranking of tuples. Building on neural symbolic search for EFO1\text{EFO}_1 queries, we propose Neural Scalable Symbolic Search (NS3), a budgeted framework that approximates joint ranking without enumerating Ek\mathcal{E}^k. NS3 (i) answers marginalized sub-queries to obtain necessary candidate sets, (ii) merges multiple free variables into hypernodes whose domains are pruned and controlled by a dynamic budget BB, and (iii) progressively reduces an EFOk\text{EFO}_k query to an EFOk1\text{EFO}_{k-1} query over a budgeted reduced domain. Across three standard KG datasets, NS3 substantially improves joint ranking performance while retaining strong marginal accuracy. We further release a joint-ranking benchmark that extends existing EFO1\text{EFO}_1 datasets to k=3k=3, enabling systematic evaluation of multi-variable queries. Our code is provided in https://github.com/HKUST-KnowComp/NS3_KDD2026.

Keywords

Cite

@article{arxiv.2605.25985,
  title  = {Neural Scalable Symbolic Search Framework for Complex Logical Queries with Multiple Free Variables},
  author = {Weizhi Fei and Hang Yin and Zihao Wang and Shukai Zhao and Wei Zhang and Yangqiu Song},
  journal= {arXiv preprint arXiv:2605.25985},
  year   = {2026}
}

Comments

10 pages, 5 figures

R2 v1 2026-07-22T07:32:46.462Z