arXiv:2608.22762cs.AIAug 2026

Manuscript Offprint

arXiv:2608.22762

Compositional Chain-of-Relations for Faithful Knowledge Graph Question Answering with Large Language Models

Chenhui Liu, Jianpeng Zhou, Jiahai Wang

Chenhui Liu, Jianpeng Zhou, and Jiahai Wang, Senior Member, IEEE

Abstract—Knowledge graph question answering (KGQA) is a key task for evaluating KG-augmented Large Language Models (LLMs), and complex KGQA that requires multi-hop reasoning is especially challenging. Solving a complex query involves two coupled phases: candidate retrieval, which locates answer candidates over the KG, and constraint handling, which filters these candidates against the query constraints. Faithful reasoning requires grounding both phases in the KG. However, existing agent-based methods ground candidate retrieval through entity-centric exploration, while leaving constraint handling to the LLM's internal knowledge, which leads to two critical limitations. (1) Unreliable entity pruning: entity-centric exploration uses entities as search units and must prune them to a fixed-size subset at each hop. Because entity information in KGs is often incomplete and a fixed-size subset cannot retain all valid entities, such pruning inevitably drops valid entities and ultimately leads to wrong answers. (2) Ungrounded constraint handling: query constraints are resolved from the LLM's internal knowledge rather than the KG, leaving the final answers unverifiable and prone to hallucination. To address these limitations, this paper introduces a relation-centric exploration paradigm, which uses relations rather than entities as search units and thus avoids unreliable entity pruning. Built on this paradigm, this paper proposes Compositional Chain-of-Relations (CCoR), a simple and effective framework that grounds both phases in the KG with two relation chains: a main chain for candidate retrieval and a constraint chain that verifies query constraints through explicit KG exploration. Experiments on four KGQA benchmarks show that CCoR consistently improves accuracy, faithfulness, and efficiency over strong baselines, with more pronounced gains on complex queries.

Index Terms—Large Language Model, Knowledge Graph, Knowledge Graph Question Answering, Retrieval-Augmented Generation

I. INTRODUCTION

Large Language Models (LLMs) have demonstrated remarkable reasoning capabilities across various tasks [1], particularly in natural language understanding and generation. They also encode broad world knowledge from large corpora and adapt well to diverse tasks through prompting and instruction tuning. However, their knowledge remains implicitly stored in parameters, making factual verification difficult and leaving persistent issues of outdated knowledge [2], hallucinations [3], [4], and limited explainability [1]. Knowledge graphs (KGs) [5], by contrast, represent facts explicitly as entity-relation triples and support queryable, verifiable, and updatable knowledge with transparent and controllable reasoning paths. These properties make KGs a natural complement to

Simple Query: Who have won the Best Actor Oscar?

Figure

Complex Query: Which American directors have worked with actors who won the Best Actor Oscar?

Figure

Fig. 1. Illustration of simple and complex KGQA queries and the two phases involved in solving complex queries. The simple query, “Who has won the Best Actor Oscar?”, is answerable via one-hop reasoning (award.winner). The complex query, “Which American directors have worked with actors who won the Best Actor Oscar?”, requires multi-hop reasoning and a constraint, and can be decomposed into two phases. Candidate retrieval applies award.winner → work.with from the topic entities to retrieve candidate directors, while constraint handling applies nationality.of with constraint target “America” to filter these candidates into the final answers.

LLMs and create new opportunities for building faithful AI systems [6], [7], [8].

Knowledge graph question answering (KGQA) aims to answer natural language questions by retrieving facts from knowledge graphs [9], [10]. This task unifies natural language understanding and KG reasoning in a single task, making it a key benchmark for KG-enhanced LLMs.

In particular, complex KGQA [11] poses a more demanding challenge because it requires multi-hop reasoning and constraint handling over KGs. As illustrated in Figure 1, this work distinguishes two query types: a simple query, answerable through single-hop KG reasoning without constraints [12], and a complex query, which requires either multi-hop KG reasoning or constraint handling, or both in a compositional manner. Accordingly, solving complex queries involves two coupled phases: (1) candidate retrieval starts from topic entities and retrieves target entities in the KG as answer candidates for the query, while (2) constraint handling filters these candidates using constraints in the query.

Existing methods devote mostly their design to candidate retrieval, casting it as the central problem. Along this line, prior work has integrated KGs into LLM reasoning through

All authors are with Sun Yat-sen University, Guangzhou 510006, China. (Corresponding author: Jiahai Wang. E-mail: wangjiah@mail.sysu.edu.cn)

This work is supported by the National Natural Science Foundation of China (62472461), and the Guangdong Basic and Applied Basic Research Foundation (2025A1515010129).

Complex Query: Which American directors have worked with actors who won the Best Actor Oscar?

Figure

(a) Existing agent-based methods.

Figure

(b) CCoR agent

Fig. 2. Comparison between existing agent-based KGQA methods and CCoR on the complex query “Which American directors have worked with actors who won the Best Actor Oscar?”. (a) Agent-based methods suffer from two limitations: (i) they rely on unreliable entity pruning that frequently discards valid reasoning paths, and (ii) they handle constraints implicitly through the LLM’s parametric knowledge, making them prone to factual hallucinations. (b) CCoR grounds both candidate retrieval and constraint handling in KG-executable relation chains, thereby producing faithful answers.

pre-training [13], [14], [15], fine-tuning [16], [17], or subgraph retrieval [18], [19]. These approaches often rely on static knowledge injection or fixed retrieved context, limiting active exploration for complex multi-hop reasoning. More recently, agent-based approaches [20], [21], [22] allow iterative exploration, but most still follow an entity-centric exploration paradigm dominated by entity pruning. Under this paradigm, entities serve as the primary search units, and at each step only a small subset of entities is retained for further expansion. The problem is that these pruning decisions are inherently unreliable: they must be made before sufficient entity information is collected, yet such information is frequently missing [23], so valid entities are often discarded, interrupting the reasoning path and causing recall loss. This paper refers to this critical limitation as unreliable entity pruning, and it arises for two distinct reasons. First, the pruning decision may be infeasible because many KG entities lack a readable literal name and appear only as opaque IDs (e.g., m.0f4vbz without “Adrien Brody”). As shown in Figure 2(a), such entities cannot be evaluated and may be skipped, thereby discarding directors who collaborated with this Oscar-winning actor. Second, even when entities are readable, the pruning decision may be premature. To control the combinatorial growth of exploration, entity-centric methods often perform top-k pruning before sufficient KG evidence is collected. As illustrated in Figure 2(a), pruning 97 Best Actor Oscar winners to only 3 under a beam width of k=3 discards 94 actors, making directors connected exclusively to them unreachable.

Constraint handling, by contrast, has received far less attention. Earlier work addresses constraints through semantic parsing [24], [25], [26] or embedding-based filtering [27], [28], [29], translating constraints into executable logical forms or scoring candidates in a learned vector space, yet these approaches rely on predefined schemas or fixed representations, limiting flexible constraint resolution for diverse complex queries. Recently, agent-based approaches [20], [21], [22] take a shortcut that offloads constraint handling onto the LLM, resolving constraints implicitly from its internal knowledge instead of exploring on the KG [30]. As a consequence, constraints are never verified against the KG, resulting in unfaithful reasoning and hallucination, precisely the weakness that KG-augmented LLM reasoning is intended to prevent. This paper refers to this critical limitation as ungrounded constraint handling. As shown in Figure 2(a), when answering “Which American directors have worked with actors who won the Best Actor Oscar?”, the LLM may rely on parametric memory and hallucinate that director Tom Hooper is American, while he is actually British. Because this nationality judgment is made without KG verification, the method retains a wrong candidate and produces incorrect final answers.

This paper addresses the two limitations progressively. To address unreliable entity pruning, this work introduces the relation-centric exploration paradigm and proposes the Chain-of-Relations (CoR) framework [30], which uses relations rather than entities as the search units. Since intermediate entities are no longer evaluated or pruned during exploration, CoR structurally avoids unreliable entity pruning and casts candidate retrieval as a main chain, a relation chain from topic entities to target entities that reaches a candidate answer space without intermediate entity pruning. As illustrated in Figure 1(b), for the query “Which American directors have worked with actors who won the Best Actor Oscar?”, the main chain starts from the topic entity “Best Actor Oscar” and follows award.winner and work.with to construct the candidate space of directors (e.g., Steven Spielberg and Tom Hooper). To address ungrounded constraint handling, this work further extends CoR into Compositional Chain-of-Relations (CCoR) by introducing a constraint chain, a second relation chain from a constraint source to a constraint target that grounds constraint handling in explicit KG exploration. Continuing the example in Figure 1(b), the constraint chain applies nationality.of on the constraint source (candidate directors) with the constraint target “America”, filtering out non-American candidates to produce the final answers. The constraint chain is constructed on demand and activated only when an explicit constraint is identified in a complex query. By composing the main chain with constraint chain, CCoR grounds both candidate retrieval and constraint handling in explicit KG exploration rather than parametric assumptions, yielding a more faithful and verifiable reasoning process.

Additionally, existing answer correctness metrics (e.g., Hits@1, F1) are insufficient to characterize model faithfulness. A method may produce correct answers by relying on parametric memory recall rather than explicit KG exploration, resulting in an unverifiable reasoning process. To bridge in this gap, this paper introduces two faithfulness metrics that distinguish answers derived from these two pathways. Specifically, Knowledge-Grounded Rate (KGR) measures how often answers are grounded in explicit KG exploration, and Faithful-F1 (FF1) jointly captures answer accuracy and grounded reasoning quality.

This work is an extended version of conference paper CoR [30]. Compared with CoR, this extension introduces substantial improvements in three aspects. (1) At the method level, CCoR targets the ungrounded constraint handling limitation, introduces constraint-chain exploration, and composes it with main-chain exploration, enabling fully grounded reasoning via explicit KG exploration. (2) At the evaluation level, KGR is redefined from a binary indicator into a fine-grained weighted grounding score that distinguishes three levels of grounding, namely answers derived fully from KG, partially from KG, or entirely from LLM parametric memory. Building on this refined KGR, this paper introduces Faithful-F1 to unify answer accuracy and reasoning faithfulness in a single metric. (3) At the experimental level, additional backbone models, including GPT-3.5-turbo and GPT-5.4-mini, are evaluated with enriched baseline comparisons, wider benchmark coverage, and more comprehensive analyses across complex-query settings.

The main contributions of this work are as follows:

• Relation-centric exploration paradigm. This work introduces the relation-centric exploration paradigm, which uses relations rather than entities as the search units, avoiding unreliable entity pruning during candidate retrieval over KGs.

  • CCoR framework. Building on the relation-centric exploration paradigm, this work proposes CCoR, a unified framework that mirrors candidate retrieval and constraint handling with two compositional relation chains. By executing both chains through KG exploration, CCoR grounds both phases in the KG and thereby improves reasoning faithfulness.

• Faithfulness evaluation. This work introduces KGR to measure how strongly answers are grounded in KG and FF1 to jointly evaluate answer correctness and reasoning faithfulness.

• Comprehensive experiments. Experiments on four benchmarks (WebQSP, CWQ, QALD10, and GrailQA) with multiple LLM backbones demonstrate that CCoR consistently improves accuracy, faithfulness, and efficiency over strong baselines.

References (53)