arXiv:2608.24824cs.AIAug 2026

Manuscript Offprint

arXiv:2608.24824

Constrained Entity Selection under Partial Knowledge for LLM-Based Knowledge Graph QA

Emanuel Kitzelmann

Emanuel Kitzelmann 1^{1}[0000-0001-5614-3463]

Brandenburg University of Applied Sciences, Brandenburg a.d.H., Germany

emanuel.kitzelmann@th-brandenburg.de

Abstract. Large language models are increasingly used for knowledge graph question answering (KGQA), but can fail to correctly ground answers in the underlying graph. Current approaches to LLM-based KGQA either rely on full semantic parsing into executable queries such as SPARQL, which is brittle in practice due to complex schemas or incompleteness of real-world KGs, or on LLM-reasoning and answer generation over KGs, which can be more robust but lacks formal guarantees.

In this work, we study a complementary setting in which candidate answers are generated by an LLM-based system and subsequently verified using lightweight symbolic constraints derived from the question. We introduce Constrained Entity Selection under Partial Knowledge (CES-PK), a problem formulation that focuses on eliminating invalid answers and providing symbolic support for valid ones without requiring construction of executable logical forms. To account for incomplete KGs, we employ a three-valued constraint semantics (satisfied, violated, unknown) that avoids incorrect rejections under open-world assumptions.

To demonstrate the effects of our method, we instantiate this framework over the Hetionet biomedical knowledge graph and evaluate the impact of type, relation, and exclusion constraints. Experiments show that precision improves by filtering invalid candidates, while recall is preserved due to retaining candidates whose constraints are not explicitly violated. Satisfied constraints provide additional positive symbolic evidence to rank remaining candidates.

Keywords: Knowledge Graph Question Answering · Large Language Models · Constraint-Based Verification · Incomplete Knowledge Graphs

1 Introduction

Large language models (LLMs) are increasingly used for knowledge graph question answering (KGQA) [10], enabling natural language access to structured

∗^{*} This preprint has not undergone peer review or any post-submission improvements or corrections. The Version of Record of this contribution is published in KI 2026: Advances in Artificial Intelligence, KI 2026, LNCS, vol 16830, and is available online at https://doi.org/10.1007/978-3-032-32335-4_21

E. Kitzelmann

knowledge. However, LLMs can fail to correctly ground answers in the underlying graph and may violate basic structural or semantic constraints.

Current LLM approaches to KGQA typically follow one of two paradigms. In semantic parsing methods [4,3], questions are translated into executable logical forms such as SPARQL queries. While this enables precise and verifiable answers, generating correct queries remains challenging in practice, especially for complex schemas and incomplete KGs [5]. In contrast, retrieval-augmented or agentic approaches such as [11] use LLMs to retrieve and reason over KGs. These methods are more flexible and robust to missing information but lack formal guarantees and may produce hallucinated or non-grounded answers.

In this work, we propose a complementary perspective that avoids both full semantic parsing and unconstrained LLM reasoning. Instead of deriving complete logical forms, we extract lightweight necessary constraints from the question and use them to verify candidate answers produced by an upstream system. This yields a verification layer that filters invalid candidates, retains candidates that cannot be disproven under incomplete knowledge, and provides symbolic support for valid candidates.

We formalize this setting as Constrained Entity Selection under Partial Knowledge (CES-PK). To account for the open-world nature of real-world knowledge graphs, we employ a three-valued constraint semantics that distinguishes between satisfied, violated, and unknown constraints. This allows us to reject candidates only in the presence of explicit violations, thereby avoiding false negatives caused by missing information.

We instantiate this framework for entity-centric queries over the Hetionet 1^{1} biomedical knowledge graph [7] and evaluate its effect on simulated candidate answer sets. Using controlled candidate sets that simulate LLM-generated answers, we show that constraint-based verification improves precision substantially while preserving recall and yielding support for KG-grounded answers. Furthermore, we analyze the complementary roles of constraint types: exclusion constraints contribute to filtering, whereas positive relation constraints contribute to verification through support.

Contributions. This paper makes the following contributions:

– We introduce Constrained Entity Selection under Partial Knowledge (CES-PK), a problem formulation for post-hoc verification of KGQA answers without requiring full semantic parsing.

– We analyze the complementary roles of constraint types for filtering and verification with a three-valued constraint semantics for incomplete KGs.

– We provide an empirical study demonstrating that lightweight constraint-based verification improves precision while preserving recall and additionally provides support scores for retained answers.

1^{1} https://het.io/