betaFeedback

WorksComputer Science

Beyond Reachability: A Relation-Semantic Reasoning Framework for Biomedical Multi-hop QA

Abstract

Biomedical multi-hop reasoning over knowledge graphs requires identifying a semantically valid relation sequence that supports the answer. Existing methods can retrieve correct answers, yet often rank them poorly within a large pool of seemingly relevant candidates. Even when a correct answer is retrieved, its associated evidence and reasoning path may fail to support the relation composition required by the question. We term this disconnect between answer reachability and evidential validity the reachable-but-invalid problem. We present ReSemReason, which shares a question-induced distribution over typed, directed relation schemas between candidate discovery and evidence selection. Schema compatibility guides graph search; ReSemAttn then uses relation-conditioned key/value projections and an uncertainty-weighted path prior to attend to candidate-specific evidence. A separate absolute-support score complements normalized attention when all retrieved paths are weak. The reported experiments on BioHopR, PrimeKGQA, and MedReason show improvements in answer ranking and answer-set quality. Path-discrimination analyses examine the distinction between endpoint correctness and evidential support. We also specify matched controls for search, attention, and schema uncertainty.

Introduction

Biomedical multi-hop reasoning over knowledge graphs requires identifying a semantically valid relation sequence that supports the answer. A question may connect a drug to its target proteins and then to associated diseases, requiring several facts to be composed under specific relational constraints. The knowledge needed for such reasoning is distributed across scientific publications and biomedical databases available on the Web. Knowledge graphs such as PrimeKG integrate heterogeneous resources into typed entities and directed relations [1], making this knowledge accessible through a shared, machine-interpretable structure. For biomedical search and question answering, effective access to this structure requires interpreting how relations compose into evidence for a user’s question.

This creates a semantic knowledge-access challenge for the Web: how can systems retrieve and combine interlinked biomedical facts while respecting the relation composition requested by a user? A path can connect relevant entities, and even reach the correct answer, without providing the required evidence. We call this the

reachable-but-invalid problem. As illustrated in Figure 1, distinguishing valid support from misleading connectivity requires attention to relation types, traversal directions, and intermediate entity types. We address this challenge by using question-induced relation schemas to guide both candidate discovery and evidence selection. Our contribution concerns the semantic consumption of integrated biomedical knowledge which making explicit relation semantics operational in retrieval and reasoning, and assessing supporting paths alongside answer correctness. This connects biomedical multi-hop reasoning to the broader goal of reliable knowledge access for Web search, question answering, and knowledge-grounded agents.

Figure 1. Two paths reach correct answer chronic myeloid leukemia (CML), but only the ABL1 path supports the question. Bottom: reported BioHopR Coverage, H@1, and same-answer PairAcc.

Recent research has increasingly combined large language models (LLMs) with structured biomedical knowledge. A survey of biomedical and healthcare LLM–KG integration identifies KG-guided reasoning and verification as important directions for improving factual grounding and interpretability [14]. More broadly, a recent survey of retrieval-augmented generation and reasoning emphasizes their complementary roles that retrieval supplies external premises [4]. This interaction is particularly relevant to biomedical questions, where several individually relevant facts may still fail to form an appropriate answer-supporting chain. Benchmarks and methods develop this interaction from different perspectives. BioHopR evaluates multi-hop, multi-answer biomedical reasoning [3], while MedReason uses knowledge graphs to construct grounded medical reasoning data [13]. More recently, eGoT combines iterative reasoning with biomedical knowledge retrieval to build evidence graphs for question answering and hypothesis generation [9]. In general KG question answering, RoG uses relation paths to organize planning, retrieval, and reasoning [5]; GNN-RAG uses graph neural retrieval to identify relevant candidates and extract paths for LLM reasoning [7]; and GCR constrains decoding with a KG-derived path index [6]. These advances establish the value of structured evidence and relation-aware reasoning.

These advances motivate examining both answer ranking and the evidence supporting a prediction. A correct answer may be retrieved within a large pool of seemingly relevant candidates yet remain poorly ranked. Even when ranking succeeds, answer accuracy alone cannot distinguish valid supporting evidence from a semantically incompatible path to the same endpoint. Evaluating the complete relation composition is therefore necessary to assess whether the retrieved evidence actually answers the question. Consider the running question, Which diseases are associated with proteins targeted by imatinib? As shown in Figure 1, the path from imatinib through ABL1 to chronic myeloid leukemia (CML) follows the requested drug–target-protein–disease composition. A contraindication branch reaches the same CML endpoint without establishing the required target-protein connection. Holding the answer entity fixed isolates the evidence-selection challenge: the system must distinguish these paths by their relation semantics.

Addressing this problem requires coordinating two stages. During candidate discovery, semantically incompatible branches can consume a limited search budget and displace valid evidence. A downstream reranker cannot recover candidates or paths that retrieval has already discarded. During evidence selection, several paths to the same candidate may compete for influence, although only some match the requested relation composition. Moreover, normalized attention expresses relative preference among retrieved paths: it can concentrate on one path even when every available path provides weak support. Candidate availability, relative evidence preference, and absolute support therefore need to be distinguished.

Question interpretation introduces an additional difficulty. Biomedical terminology and relation descriptions can admit several plausible schemas. Committing to one predicted schema can prematurely suppress a valid branch, whereas ignoring schema information leaves search and reasoning without an explicit representation of the requested composition. This motivates retaining a distribution over typed, directed relation schemas and using it consistently across the two stages, while accounting for uncertainty when it influences evidence attention.

We present ReSemReason, a relation-semantic reasoning framework that shares a question-induced schema distribution between candidate discovery and neural evidence selection. As shown in Figure 2, the framework first predicts several plausible schemas specifying relation sequences, traversal directions, and entity types.

Figure 2. Overview of ReSemReason pipeline. Left: the two-layer ReSemAttn computation. Middle: input, schema-guided discovery, attention updates, and the CML answer with its ABL1 support. Right: shared schemas, relation-conditioned attention, and absolute support.

Their compatibility with partial paths guides graph search, prioritizing relevant branches while preserving alternative interpretations through soft penalties. The resulting candidate-specific paths form the evidence memory for ReSemAttn. Relation-conditioned key/value projections shape how paths are represented, and an uncertainty-weighted compatibility prior guides token-to-path attention. Finally, an absolute-support term complements normalized attention, retaining information about whether the retrieved paths provide strong support at all. Together, these components connect the semantics used to discover evidence with those used to incorporate it into answer prediction.

Our contributions are (1) We formulate the reachable-but-invalid problem, distinguishing candidate availability and answer correctness from whether a supporting path satisfies the question’s relation composition. (2) We introduce ReSemReason, which shares soft relation schemas between candidate discovery and evidence selection, and ReSemAttn, which combines relation-conditioned representations, uncertainty-weighted attention, and absolute support.

Related Work

Biomedical multi-hop reasoning. MedHop studies evidence composition across biomedical documents [12]. More recent resources emphasize structured reasoning: BioHopR evaluates multi-answer reasoning over PrimeKG paths, PrimeKGQA provides executable graph queries, and MedReason constructs KG-grounded medical reasoning data [3, 8, 13]. Recent work further explores biomedical LLM–KG integration [14], including iterative evidence retrieval and graph-based reasoning in eGoT [9].

Retrieval and graph reasoning. Earlier approaches combine question-conditioned retrieval with graph and language representations [2, 10, 15, 16]. Recent methods advance iterative graph exploration, relation-path planning, graph neural retrieval, and graph-constrained decoding [5, 6, 7, 11], reflecting the growing integration of retrieval and reasoning [4]. ReSemReason shares soft, typed, directed relation schemas across candidate discovery and evidence selection.

Method

Task and Framework

Given question qq and directed KG G=(V,R,E)\mathcal{G} = (\mathcal{V}, \mathcal{R}, \mathcal{E}), the system discovers candidate entities Cq\mathcal{C}_q, ranks them, and returns an answer set A^q\widehat{\mathcal{A}}_q with supporting paths. For a path π\pi, three events differ: the path exists in the KG; its endpoint belongs to the reference set Aq\mathcal{A}_q; and its relation composition supports that endpoint as an answer to qq. We write the third event as Valid⁡(q,π)\operatorname{Valid}(q,\pi) and evaluate it independently of the predicted schema.

For an answer aja_j, the selected explanation πj∗\pi^*_{j} must end at aja_j. Success thus requires both availability, meaning that suitable candidates and evidence survive retrieval, and selection, meaning that the reasoner uses them correctly. Figure 2 follows the same imatinib case through grounding and schema prediction, candidate discovery, and path-based reasoning. Appendix Sections A–C provide the evaluation and implementation details.

An availability ceiling. For methods whose output is restricted to Cq\mathcal{C}_q, let AqA_q denote top-answer correctness and Gq=1[Aq∩Cq≠∅]G_q = 1[\mathcal{A}_q \cap\mathcal{C}_q \ne\varnothing].

Then Aq≤GqA_q \le G_q, giving

H@1=Coverage⋅Cond.H@1,H@1≤Coverage,(1)\mathrm{H@1} = \mathrm{Coverage} \cdot\mathrm{Cond.H@1}, \qquad\mathrm{H@1} \le\mathrm{Coverage}, \tag*{(1)}

when conditional accuracy is defined on questions with Gq=1G_q = 1. This identity is per run on a common question set. It explains why reranking cannot compensate for missing candidates and motivates reporting both terms in E1. For multi-answer questions, Coverage is weaker than candidate recall: finding one answer can satisfy the former while leaving most of the answer set unavailable.

Grounding and Question-Only Schemas

We retain the top-NN anchor entities under pϕ(e0∣q)p_\phi(e_0 \mid q), rather than committing to a single lexical match. The reference grounder applies a softmax to cosine similarities between pooled question and entity-text representations, with temperature Tg=0.1T_g = 0.1. It scores the loaded entity inventory before truncation. A schema describes hop count, entity types, relation families, and directions:

S=(L,τ0,r1,d1,τ1,…,rL,dL,τL).(2)S = (L, \tau_0, r_1, d_1, \tau_1, \ldots, r_L, d_L, \tau_L). \tag*{(2)}

Independent heads over the pooled question representation score these components. A bounded enumeration retains the top-MM hypotheses, whose scores ℓm\ell_m are renormalized:

ρm=exp⁡ℓm∑j=1Mexp⁡ℓj,Sq={Sq(m)}m=1M.(3)\rho_m = \frac{\exp\ell_m}{\sum_{j=1}^{M} \exp\ell_j}, \qquad S_q = \{S_q^{(m)}\}_{m=1}^{M}. \tag*{(3)}

The inference interface uses the question rather than gold test schemas. Schema enumeration and the model configuration are specified in Appendix Sections B.2 and C.

The confidence gate measures concentration within the retained hypotheses:

cq={1,M=1,1−H(ρ)/log⁡M,M>1,H(ρ)=−∑mρmlog⁡ρm.(4)c_q = \begin{cases} 1, & M = 1,\\ 1 - H(\rho)/\log M, & M > 1, \end{cases} \qquad H(\rho) = -\sum_m \rho_m \log\rho_m. \tag*{(4)}

Uniform hypotheses give cq=0c_q = 0. This gate does not measure whether the correct schema survived truncation. For the running case, keeping several interpretations allows a target-protein branch to remain competitive even when it is not associated with the highest-scoring schema.

Uncertainty has two sources. High entropy can reflect several plausible interpretations, whereas low entropy can still reflect a confidently wrong retained set. The gate cannot recover a schema omitted from the top-MM hypotheses. Appendix Section E.5 evaluates confidence calibration for hop, relation-sequence, and full-schema prediction.

Relation-Guided Candidate Discovery

Starting from each retained anchor, search expands directed edges and normalized inverse traversals. For an extension π′\pi' ending at e′e', its score is

ssearch(π′)=λglog⁡pϕ(e0∣q)+λsCompat⁡(q,π′)+λqSem⁡(q,e′)−λhh(e′),(5)s_{\mathrm{search}}(\pi') = \lambda_g \log p_\phi(e_0 \mid q) + \lambda_s \operatorname{Compat}(q,\pi') \\ + \lambda_q \operatorname{Sem}(q,e') - \lambda_h h(e'), \tag*{(5)}
Compat⁡(q,π′)=log⁡∑mρmexp⁡[−Dprefix(Sq(m),π′)].\operatorname{Compat}(q,\pi') = \log\sum_m \rho_m \exp[-D_{\mathrm{prefix}}(S_q^{(m)},\pi')].

Here DprefixD_{\mathrm{prefix}} sums position-aligned relation, direction, and destination-type mismatches over the overlapping prefix. Endpoint relevance is cosine similarity and h(e′)=log⁡(1+deg⁡(e′))h(e') = \log(1+\deg(e')). The reference coefficients are (1, 2, 0.5, 0.15); the explicit mismatch and search procedure appear in Appendix Section B.3.

Search rejects repeated nodes and retains the top-BB continuing paths at each depth. Paths reaching a retained schema’s hop count enter the completed collection before the next beam is pruned. Completed paths are grouped by endpoint, with at most KK retained per candidate. Thus CqC_q is discovered during traversal rather than supplied to a reranker. Compatibility penalties are soft: matching a lower-probability schema can preserve a branch, although finite budgets and grounding errors can still remove valid evidence. Search is discrete and uses fixed coefficients in the reference implementation; ReSemAttn does not feed scores back into expansion.

Following the running case. The target-protein branch matches the dominant schema; the contraindication branch mismatches both relation and bridge type. The protein-to-disease hop then completes the requested composition. Endpoint relevance alone cannot distinguish these routes. Soft mismatch penalties change search priority before pruning, while independent annotation determines whether the completed evidence is valid.

ReSemAttn: Relation-Semantic Path Attention

For candidate aia_i, let Πi={πik}\Pi_i = \{\pi_{ik}\} be its retained paths. Each memory combines entity-type, directed-relation, path-summary, and topology features:

fik=[ϕE(Eik);ϕR(Rik);ϕP(Pik);ϕT(Tik)],f_{ik} = [\phi_E(E_{ik});\phi_R(R_{ik});\phi_P(P_{ik});\phi_T(T_{ik})],
zik=LN⁡(Dropout⁡(GELU⁡(Wzfik))).(6)z_{ik} = \operatorname{LN}(\operatorname{Dropout}(\operatorname{GELU}(W_z f_{ik}))). \tag*{(6)}

The reference encoder pools type and relation embeddings and uses numerical path and degree features. Relation order is compared explicitly in the schema mismatch, rather than preserved by mean pooling. These features do not estimate edge-provenance reliability. Semantic compatibility. For each schema, the mismatch vector contains type disagreement, directed-relation disagreement, length/closure mismatch, and mean log-degree. With nonnegative weights β=softplus⁡(γ)\boldsymbol{\beta}=\operatorname{softplus}(\boldsymbol{\gamma}),

Eik(m)=βTdik(m),\mathcal{E}_{ik}^{(m)} = \boldsymbol{\beta}^{\mathsf{T}}\mathbf{d}_{ik}^{(m)},
uik=log⁡∑mρmexp⁡(−Eik(m)),pik=softmax⁡k(uik).(7)u_{ik} = \log\sum_m \rho_m \exp(-\mathcal{E}_{ik}^{(m)}), \qquad p_{ik} = \operatorname{softmax}_k(u_{ik}). \tag*{(7)}

For a path of length LL, let vjv_j be its jjth entity and (rj,dj)(r_j,d_j) its incoming relation and direction. Barred symbols denote a schema of length HH. Define alignment lengths J=min⁡(L,H)J=\min(L,H) and Je=min⁡(L+1,H+1)J_e=\min(L+1,H+1).

The mismatch vector is

DE=Je−1∑j=0Je−11[τ(vj)≠τˉj],D_E = J_e^{-1}\sum_{j=0}^{J_e-1}\mathbf{1}[\tau(v_j)\ne\bar{\tau}_j],
DR=∑j=1J(1[rj≠rˉj]+0.751[dj≠dˉj])max⁡(1,J),D_R = \frac{\sum_{j=1}^{J}\left(\mathbf{1}[r_j\ne\bar{r}_j]+0.75\mathbf{1}[d_j\ne\bar{d}_j]\right)}{\max(1,J)},
DP=∣L−H∣+1[v0≠vˉL],D_P = |L-H|+\mathbf{1}[v_0\ne\bar{v}_L],
DT=(L+1)−1∑j=0Llog⁡(1+deg⁡(vj)),D_T = (L+1)^{-1}\sum_{j=0}^{L}\log(1+\deg(v_j)),
d=[DE,DR,DP,DT]T.(8)\mathbf{d}=[D_E,D_R,D_P,D_T]^{\mathsf{T}}. \tag*{(8)}

Entity matching compares types; directed-relation matching preserves positional order. The path term penalizes length and closure, and the topology term measures graph degree rather than provenance quality. Since search rejects repeated nodes, closure is normally zero. Nonnegative energies and normalized schema weights imply uik≤0u_{ik}\le0; increasing a mismatch cannot improve compatibility. This makes the score inspectable without equating schema agreement with independently annotated validity.

Search sums mismatches over incomplete prefixes; the evidence prior normalizes aligned type/relation terms for completed paths. They share schema content and directionality, while scoring different decisions: which extension to explore and how much a retained explanation should contribute.

Relation-conditioned representation and selection. Each path’s relation embedding conditions low-rank mixtures for keys and values,

kikℓ=WKℓ(rik)zik,vikℓ=WVℓ(rik)zik.(9)k_{ik}^{\ell}=W_K^{\ell}(r_{ik})z_{ik}, \qquad v_{ik}^{\ell}=W_V^{\ell}(r_{ik})z_{ik}. \tag*{(9)}

For the pooled relation representation rikr_{ik} and BrB_r bases, the key projection is

ωikK=softmax⁡(WKωrik+bKω),\omega_{ik}^{K}=\operatorname{softmax}(W_K^{\omega}r_{ik}+b_K^{\omega}),
WK(rik)=WK(0)+∑b=1Brωik,bKUK,bVK,bT.(10)W_K(r_{ik})=W_K^{(0)}+\sum_{b=1}^{B_r}\omega_{ik,b}^{K}U_{K,b}V_{K,b}^{\mathsf{T}}. \tag*{(10)}

Here UK,b,VK,b∈Rd×rU_{K,b},V_{K,b}\in\mathbb{R}^{d\times r} give rank-rr updates. The value branch has separate mixture weights and bases, and the token query is qtiℓ=WQℓhtiℓq_{ti}^{\ell}=W_Q^{\ell}h_{ti}^{\ell}. Sharing the bases across paths limits parameter growth while allowing different relation compositions to change the features used for matching and the evidence passed onward. At evidence-attention layer ℓ\ell, token tt selects paths using

αtikℓ=softmax⁡k((qtiℓ)Tkikℓd+λecqlog⁡(pik+ϵ)).(11)\alpha_{tik}^{\ell}=\operatorname{softmax}_k\left(\frac{(q_{ti}^{\ell})^{\mathsf{T}}k_{ik}^{\ell}}{\sqrt{d}}+\lambda_e c_q\log(p_{ik}+\epsilon)\right). \tag*{(11)}

The dot product supplies language–memory compatibility, while the second term introduces schema compatibility. The resulting context is fused through a learned gate:

ctiℓ=∑kαtikℓvikℓ,c_{ti}^{\ell}=\sum_k\alpha_{tik}^{\ell}v_{ik}^{\ell},
gtiℓ=σ(Wgℓ[htiℓ;ctiℓ;hs;hai]),g_{ti}^{\ell}=\sigma\left(W_g^{\ell}[h_{ti}^{\ell};c_{ti}^{\ell};h_s;h_{a_i}]\right),
htiℓ+1=LN⁡(htiℓ+Dropout⁡(gtiℓ⊙ctiℓ)).(12)h_{ti}^{\ell+1}=\operatorname{LN}\left(h_{ti}^{\ell}+\operatorname{Dropout}(g_{ti}^{\ell}\odot c_{ti}^{\ell})\right). \tag*{(12)}

Here haih_{a_i} is the pooled candidate-text embedding; hSh_S projects the encoding of the serialized schemas and their probabilities. The reference model stacks two such layers after the backbone’s returned hidden states. Relation-conditioned projections determine evidence representation; the prior determines relative attention. The gate modulates evidence without guaranteeing its validity.

Matrix computation. For a candidate with KK retained paths, stack their memories in Zi∈RK×dZ_i \in\mathbb{R}^{K \times d} and TT token states in Hi∈RT×dH_i \in\mathbb{R}^{T \times d}. Relation-conditioned projections produce Ki,Vi∈RK×dK_i,V_i \in\mathbb{R}^{K \times d}, and Qi=HiWQ⊤Q_i = H_iW_Q^\top. The operation in the left panel of Figure 2 is

Ai=softmax⁡row(QiKi⊤d+1Tηi⊤),A_i = \operatorname{softmax}_{\mathrm{row}}\left(\frac{Q_iK_i^\top}{\sqrt{d}} + \mathbf{1}_T\boldsymbol{\eta}_i^\top\right),
ηik=λcqlog⁡(pik+ϵ),Ci=AiVi.(13)\eta_{ik} = \lambda c_q \log(p_{ik} + \epsilon), \qquad C_i = A_iV_i. \tag*{(13)}

The semantic bias is shared across token rows, while the query–key term varies with the token. Thus a common question-level schema preference coexists with token-specific evidence selection. In the imatinib example, the two columns correspond to the target-protein and contraindication paths; the matrices show the computation, not measured attention values. A stronger path prior can favor the former without forcing all tokens to attend identically.

Answer Scoring and Absolute Support

Let hˉi\bar{h}_i denote the mean updated token states. We combine the attended question, candidate, and original question representations with normalized multi-path support:

bi=log⁡∑k=1∣Πi∣euik−log⁡∣Πi∣,b_i = \log\sum_{k=1}^{|\Pi_i|} e^{u_{ik}} - \log|\Pi_i|,
si=MLP⁡([hˉi;hai;hq])+μbi,s_i = \operatorname{MLP}([\bar{h}_i;h_{a_i};h_q]) + \mu b_i,
πi∗=arg⁡max⁡πik∈Πi uik.(14)\pi_i^* = \underset{\pi_{ik}\in\Pi_i}{\arg\max}\ u_{ik}. \tag*{(14)}

We use bib_i for scalar candidate support to distinguish it from the value vector vikv_{ik}. Explanations are selected by uiku_{ik}, not by aggregating attention weights.

Normalized attention only compares paths within a candidate. Adding a common constant bb to their scores leaves pikp_{ik} unchanged but changes bib_i by bb. With one path, pi1=1p_{i1}=1 regardless of its quality. The absolute-support term therefore retains information about uniformly weak evidence that the attention normalization removes. Log-mean-exp is invariant to duplicating the entire path multiset, but not to selectively duplicating a strong path; it does not establish evidence independence.

Interpreting a returned path. The explanation identifies the most compatible retained path; the candidate score also uses language features and aggregate support. A correct endpoint can therefore score highly while its best path is invalid. Reporting the endpoint, selected path, and independent validity label exposes this failure; attention or within-pool compatibility alone cannot establish support.

Training and Output Protocols

For candidate labels yi=1[ai∈Aq]y_i = \mathbf{1}[a_i \in\mathcal{A}_q] and training logits s~i\tilde{s}_i, the reference objective combines binary cross-entropy, positive-set ranking, and probability calibration:

L=LBCE+0.5Llist+0.1LBrier,\mathcal{L} = \mathcal{L}_{\mathrm{BCE}} + 0.5\mathcal{L}_{\mathrm{list}} + 0.1\mathcal{L}_{\mathrm{Brier}},
Llist=log⁡∑ies~i−log⁡∑i:yi=1es~i,\mathcal{L}_{\mathrm{list}} = \log\sum_i e^{\tilde{s}_i} - \log\sum_{i:y_i=1}e^{\tilde{s}_i},
LBrier=∣Cq∣−1∑i(σ(s~i)−yi)2.(15)\mathcal{L}_{\mathrm{Brier}} = |\mathcal{C}_q|^{-1}\sum_i \left(\sigma(\tilde{s}_i)-y_i\right)^2. \tag*{(15)}

The listwise term is omitted when no positive candidate is retrieved; questions without candidate paths are skipped. Search remains discrete. The loss combines candidate discrimination, ranking over the available candidates, and probability calibration. The scoring and output interfaces use the candidate representation and path support defined above.

Output interfaces. Ranking sorts candidates by sis_i and attaches πi∗\pi_i^* to each returned endpoint. Multi-answer decoding applies a sigmoid-score threshold selected on development macro F1. PrimeKGQA additionally returns directed relation outputs; MedReason maps candidate scores to answer options or normalized answer strings. Appendix Section A.3 specifies these task interfaces.

Experiments

Setup and Evaluation

Datasets and baselines. We study biomedical reasoning using BioHopR, PrimeKGQA, and MedReason. The original BioHopR release contains 10,127 unique questions, including 2,494 one-hop and 7,633 two-hop questions with multiple reference answers [3]. PrimeKGQA contains 83,999 question–answer pairs accompanied by SPARQL queries [8]. MedReason contains 32,682 medical question–answer pairs with step-by-step reasoning explanations [13]. These figures describe the released resources. Task-specific output handling is specified in Appendix Section A.3. Baselines cover prompting, retrieval augmentation, biomedical encoders, graph neural reasoning, and KG exploration (Table 1). Controlled variants use fixed candidates, one hard schema, or the full soft-schema design.

MethodH@1H@5H@10P@10R@10MRREMF1Rec.MCQ Acc.Open F1
Zero-shot0.2210.3520.4110.1760.2860.2940.3420.4870.5220.5120.538
CoT0.4680.4740.5150.3130.3670.4860.3680.5160.5480.5480.566
Dense RAG0.4030.5580.6060.3370.4210.4710.3940.5430.5790.5630.581
GraphRAG0.5480.6410.6740.4020.4780.6010.4270.5740.6120.5860.604
GNN-RAG0.5870.6720.7080.4250.5010.6350.4440.5910.6290.6040.621
BioLinkBERT0.5790.6610.6970.4200.4910.6240.4430.5890.6270.5810.599
PullNet0.5740.6040.6310.4140.4930.5960.4510.5960.6320.5910.609
GreaseLM0.6260.7020.7450.4510.5220.6840.4760.6170.6530.6110.629
UniKGQA0.6430.7090.7480.4660.5360.6960.4880.6280.6640.6200.638
Think-on-Graph0.6550.7180.7560.4720.5420.7040.4950.6340.6710.6260.644
Fixed-Candidate ReSemAttn0.7190.7360.7430.5820.5560.7260.5080.6420.6780.6370.655
ReSemReason w/ Hard Schema0.7480.7890.8110.5980.6210.7650.5310.6610.6960.6520.670
ReSemReason w/ Soft Schema0.7720.8160.8420.6170.6480.7900.6520.7610.7940.6910.749

Table 1. Main results across three datasets. Bold denotes the best reported value in each column.

Configuration. The reported experiments use Llama-3.1-8B-Instruct and five seeds on a workstation with four 24-GB RTX 4090 GPUs. The search setting uses N=8N=8, M=4M=4, B=32B=32, at most three hops, and K=8K=8. Appendix Section C gives the model configuration and seed protocol.

Answer and evidence metrics. BioHopR uses H@1/5/10, P@10, R@10, and MRR; PrimeKGQA uses answer-set EM/F1/recall and relation F1; MedReason uses multiple-choice accuracy/MRR and open-answer EM/token F1. Coverage requires at least one gold entity in the retrieved pool; candidate recall averages the fraction of each gold set retrieved. On a common annotated cohort, let AqA_q denote top-answer correctness and VqV_q the validity of its selected supporting path. Then

ValidPath⁡@1=Eq[Vq],Joint⁡@1=Eq[AqVq],\operatorname{ValidPath}@1 = \mathbb{E}_q[V_q], \qquad\operatorname{Joint}@1 = \mathbb{E}_q[A_qV_q],
WPR⁡=∑qAq(1−Vq)∑qAq.(16)\operatorname{WPR} = \frac{\sum_q A_q(1-V_q)}{\sum_q A_q}. \tag*{(16)}

A missing path has Vq=0V_q=0. WPR is undefined when no top-ranked answer is correct. For each run, H@1, ValidPath@1, Joint@1, and WPR use the same evaluation questions and path-validity labels; consequently, Joint@1 = H@1(1 − WPR). Appendix Section A.2 gives the ranking and aggregation conventions.

Answer Quality Across Datasets

Table 1 reports the strongest answer performance for the soft-schema model across all listed metrics. On BioHopR, it improves H@1 from 0.719 to 0.772 and R@10 from 0.556 to 0.648 over Fixed-Candidate ReSemAttn. The larger recall gain is consistent with improved candidate discovery. PrimeKGQA answer F1 rises from 0.661 with a hard schema to 0.761 with soft schemas; MedReason reaches 0.691 multiple-choice accuracy and 0.749 open-answer F1. BioHopR emphasizes recovery of multiple gold entities, PrimeKGQA evaluates answer sets and relations, and MedReason separates option selection from open-answer overlap. Gains across these formats support relation-semantic evidence; absolute metric values are not comparable across datasets. Appendix Section E.7 retains all precision, recall, relation-F1, and open-answer metrics. Baseline configurations and adaptations are described in Appendix § 11.

Variation across seeds. The five-seed BioHopR H@1 means and standard deviations are 0.772 ± 0.006 for Full, 0.748 ± 0.007 for Hard-Schema, and 0.719 ± 0.008 for Fixed-Candidate. The corresponding Joint@1 values are 0.602 ± 0.007, 0.548 ± 0.009, and 0.495 ± 0.010. These summaries describe run variation; aggregate means alone do not establish paired significance. Appendix Section C.2 gives the seed-summary protocol.

Core Components Across Datasets

Table 2 separates the core components. Removing relation-guided search lowers BioHopR H@1 by 5.3 percentage points; removing the attention prior lowers it by 6.6 points, the largest decrease among these core ablations. Both relation-conditioned projections and soft schemas contribute across datasets. Aggregation also improves answer-set quality, consistent with combining evidence for multiple answers.

VariantH@1MRRAns. EMAns. F1Rel. F1MCQ Acc.Open F1
w/o Grounding Distribution0.7420.7640.5210.6510.7080.6420.659
w/o Relation-Guided Search0.7190.7440.5030.6330.6840.6310.648
w/ Hard Question Schema0.7480.7650.5310.6610.7140.6520.670
w/o Schema Entropy Gate0.7580.7760.5410.6710.7290.6610.680
w/o Attention-Prior Injection0.7060.7390.4940.6250.6750.6200.641
w/o Relation-Conditioned KV0.7310.7560.5140.6440.6940.6380.657
w/o Candidate Path Aggregation0.7450.7680.5260.6550.7060.6480.666
Full ReSemReason0.7720.7900.6520.7610.7700.6910.749

Table 2. Core ablation across the three datasets.

Grounding and search determine available evidence; projections and the prior determine how it enters the representation. Hard schemas affect both stages. Because end-to-end ablations may change path pools, they show component sensitivity; frozen-pool comparisons isolate effects on identical evidence.

Detailed BioHopR Ablation

Figure 3 reports all seven metrics: H@1/5/10 assess answer ranking, P@10 and R@10 assess answer-set recovery, MRR emphasizes the first correct answer, and Joint@1 additionally requires valid evidence. Their joint interpretation separates endpoint ranking from evidence selection.

Per-metric ablation results on BioHopR

Figure 3. Per-metric ablation results on BioHopR. V1–V11 denote the eleven ablated variants, and Full denotes the complete ReSemReason model. V1 = w/o Grounding Distribution V2 = w/o Relation-Guided Search V3 = w/ Hard Question Schema V4 = w/o Schema Entropy Gate V5 = w/o Entity Anchoring V6 = w/o Relation Compatibility V7 = w/o Path Consistency V8 = w/o Topology Penalty V9 = w/o Attention Prior V10 = w/o Relation-Conditioned KV V11 = w/o Path Aggregation. Higher is better for all metrics.

Availability and evidence factors. V1–V4 vary grounding, search, and schema uncertainty; V5–V8 remove schema-matching factors. Declines without relation compatibility or path consistency show that endpoint type is insufficient. V9–V10 isolate the attention prior and relation-conditioned projections within the full pipeline. These end-to-end changes complement, rather than replace, matched-pool comparisons.

Combining paths. V11 removes aggregation. The aggregation comparison reports H@1/R@10 of 0.772/0.648 for normalized Log-SumExp, 0.754/0.619 for max pooling, and 0.739/0.607 for mean pooling. Normalized aggregation improves answer-set recovery here without establishing independence of paths sharing edges. Appendix Section E.3 retains all variants, including unnormalized LogSumExp and learned gated pooling.

Correct Endpoints and Valid Evidence

The reachable-but-invalid challenge compares real KG paths containing relation swaps, direction errors, bridge confounders, or right-answer/wrong-path alternatives. Paths are matched by hop count, endpoint type, degree bucket, and initial retrieval-score bucket. Blinded annotation judges the complete question–path relation, rather than agreement with the model’s predicted schema; construction and agreement measurements are retained in Appendix Section D.

Two annotators label each path Valid, Invalid, or Insufficient/Ambiguous; a third adjudicates disagreements. They see the question, candidate, directed path, relation definitions, and available provenance, with model identity, scores, and predicted schemas hidden. Reported agreement is 0.884 overall (κ=0.761\kappa= 0.761) and 0.901 on correct-answer paths (κ=0.792\kappa= 0.792). The latter subset directly tests whether endpoint correctness masks disagreement about the evidence. A legal inverse traversal is not itself an invalid direction reversal.

In the running imatinib case, the two paths share the CML endpoint but express different relation compositions: the ABL1 route follows the requested target-protein relation, whereas the contraindication route does not.

Figure 4 separates availability from evidence quality. With the same Cross-Encoder, relation-guided search raises Coverage from 0.861 to 0.912 and H@1 from 0.641 to 0.694. Fixed-Candidate ReSemAttn reaches H@1 of 0.719 with Coverage of 0.752, illustrating how strong ranking can coexist with a limited candidate pool. The full model reports Coverage 0.948, H@1 0.772, ValidPath@1 0.634, and Joint@1 0.602. Because the compared systems do not share identical pools, these results motivate the frozen-pool control rather than replacing it.

Answer availability and evidence quality

Figure 4. Answer availability and evidence quality. Rows 1–12 identify methods; CE denotes Cross-Encoder. Higher is better except for WPR. A dash denotes an unreported path metric.

Figure 5 separates candidate discovery from ranking (Coverage–H@1), then incorporates evidence validity (ValidPath@1–Joint@1). Method IDs match the heatmap. Path-free methods remain in the answer comparison but are omitted from path metrics; missing values are not zeros.

Figure 5. Candidate availability and evidence quality. Numeric method IDs follow Figure 4; methods 1 (Dense RAG) and 5 (GreaseLM) do not return paths and are omitted on the right.

On same-answer valid/invalid pairs, PairAcc requires a strictly higher within-model score for the valid path; ties receive no credit. Reported values are 0.493 for BFS + CE, 0.658 for Fixed-Candidate ReSemAttn, 0.708 for Hard-Schema, and 0.806 for Full. Holding the gold endpoint fixed isolates path preference. Appendix Section D describes the negative-path construction.

Where evidence remains difficult. Among 125 manually categorized failures, 27 involve search pruning, 23 a missing top-MM schema, and 19 grounding. These three categories account for 55.2% of the analyzed failures and locate bottlenecks in candidate discovery. Appendix Section F gives the complete category counts.

Robustness beyond the standard questions. Template-disjoint H@1/Joint@1 is 0.741/0.563, versus 0.772/0.602 on the standard split; combined paraphrase and alias perturbations yield 0.731/0.548.

These results expose sensitivity to wording and grounding. Template separation does not by itself establish generalization to unseen relation compositions.

With 10% type-compatible distractors, Coverage/H@1/Joint@1 falls from 0.948/0.772/0.602 to 0.931/0.748/0.567, consistent with stronger evidence competition as well as candidate loss. Removing 10% of non-gold edges yields 0.934/0.754/0.579; it does not test loss of required gold evidence.

Mechanism Controls

The existing prior-by-KV factorial experiment reports H@1/MRR/Joint@1 of 0.772/0.790/0.602 with both mechanisms and 0.681/0.716/0.462 with neither; all four settings remain in Appendix Section E.2. This pattern supports complementary contributions but does not establish a statistical interaction.

Schema prediction is imperfect: reported accuracy is 0.912 for hop count, 0.847 for relation sequences, and 0.781 for full typed schemas, with expected calibration error 0.028, 0.041, and 0.057. These results motivate preserving alternatives and evaluating confidence separately from top-MM coverage.

Table 3 presents values for three matched-control designs. E1 freezes each retriever's candidate/path pool before either reasoner is applied, so Coverage and candidate recall are shared within a retriever block. E2 fixes relation-guided pools and varies where relation information enters, using same-answer valid/invalid pairs for PairAcc. E5 removes only the absolute-support term and evaluates both normal and all-invalid pools, including a one-path condition. These controls separate retrieval availability, relation-conditioned representation, and absolute support.

Efficiency

Profiling uses one RTX 4090, batch size one, 50 warm-up and 500 timed queries, excluding loading. Full ReSemReason uses 276 ms/query and 760 expanded nodes (Table 4). Appendix Section G relates the measured end-to-end latency to the computational structure.

MethodMean ms/q↓Peak GB↓Expanded Nodes↓H@1↑
Dense RAG1188.6—0.403
GraphRAG24210.112800.548
GNN-RAG28611.814600.587
PullNet2189.713200.574
GreaseLM17112.5—0.626
UniKGQA20510.99800.643
Think-on-Graph51414.217300.655
Full ReSemReason27619.87600.772

Table 4. End-to-end efficiency on BioHopR. All systems are evaluated with batch size one on identical hardware. A dash indicates that expanded-node counts are not directly applicable or exposed.

For CC candidates, KK paths each, TT tokens, and hidden width dd, token-to-path attention costs O(CTKd)O(CTKd) per layer, excluding backbone encoding and projections. Appendix Section G accounts for these costs and distinguishes edge attempts from unique-node expansions.

Increasing beam width from 8 to 32 raises Coverage from 0.883 to 0.948 and H@1 from 0.721 to 0.772, while latency rises from 188 to 276 ms. Beam 64 gives Coverage 0.956 and H@1 0.776 at 391 ms, showing diminishing returns from additional search in this configuration.

Limitations

Missing or ambiguous KG relations, incomplete grounding, omitted schemas, and beam pruning can prevent valid evidence from reaching the reasoner. Mean-pooled relation features do not themselves preserve relation order, and the topology penalty is not a provenance-quality model. Retrieved paths and attention weights are inspectable model evidence, not causal explanations or clinical validation.

Conclusion

ReSemReason makes relation composition explicit by sharing question-induced schemas between candidate discovery and path attention. Relation-conditioned projections encode evidence, the prior steers selection, and absolute support preserves information lost by normalization. Reported answer, ablation, and path-discrimination results motivate evaluating availability and validity separately. The separation between candidate availability, answer correctness, and supporting-path validity provides a basis for evaluating biomedical multi-hop reasoning.

References

Data, Metrics, and Outputs

Data Sources

BioHopR provides 10,127 unique questions over PrimeKG, covering one-hop and two-hop multi-answer reasoning [3]. PrimeKGQA is obtained from the release identified by DOI 10.5281/zenodo.13829395, whose dataset description reports 83,999 question–answer pairs with associated SPARQL queries [8]. MedReason provides 32,682 medical question–answer pairs with reasoning explanations [13]. These are source-dataset totals, not counts of candidate entities, supporting paths, or expanded training instances.

Evaluation metrics

For canonical-ID rankings, let nqn_q be the number of returned candidates. Precision and recall are

P@K(q)=∣TopK⁡(q)∩Aq∣min⁡(K,nq),R@K(q)=∣TopK⁡(q)∩Aq∣∣Aq∣.(17)\begin{aligned} P@K(q) &= \frac{\lvert\operatorname{TopK}(q) \cap\mathcal{A}_q\rvert}{\min(K,n_q)}, \\ R@K(q) &= \frac{\lvert\operatorname{TopK}(q) \cap\mathcal{A}_q\rvert}{\lvert\mathcal{A}_q\rvert}. \tag*{(17)} \end{aligned}

Empty rankings and missing reciprocals score zero. Set metrics are macro-averaged across questions.

On NN evaluation questions, answer and evidence metrics are

H@1=1N∑qAq,ValidPath@1=1N∑qVq,Joint@1=1N∑qAqVq,WPR=∑qAq(1−Vq)∑qAq.(18)\begin{aligned} \mathrm{H}@1 &= \frac{1}{N}\sum_q A_q, \\ \mathrm{ValidPath}@1 &= \frac{1}{N}\sum_q V_q, \\ \mathrm{Joint}@1 &= \frac{1}{N}\sum_q A_qV_q, \\ \mathrm{WPR} &= \frac{\sum_q A_q(1-V_q)}{\sum_q A_q}. \tag*{(18)} \end{aligned}

Missing paths have Vq=0V_q=0; WPR is undefined when its denominator is zero. The identity in § 4.1 holds per run:

Joint@1=H@1(1−WPR).(19)\mathrm{Joint}@1 = \mathrm{H}@1(1-\mathrm{WPR}). \tag*{(19)}

Metrics are computed separately for each seed before reporting their means and standard deviations.

Output adapters

PrimeKGQA accepts one-variable SELECT chains up to three hops and compares directed relation-family multisets; branching, aggregation, OPTIONAL, and UNION form separate query categories. MedReason uses source grouping before an 80/10/10 split (seed 42), option mapping, and fixed answer normalization. Multi-answer sigmoid thresholds are selected on development macro F1; canonical IDs and path keys break ties.

Implementation Details

Grounding and features

Grounding is gradient-free. Path memory pools types and relation/direction embeddings with hop count, unique-node ratio, closure, search score, mean, maximum, and endpoint log-degree, and the fraction above log 10. Mean pooling loses relation order; Eq. (8) compares positions explicitly.

Schema enumeration

Independent heads’ log probabilities sum over hops, endpoint/intermediate types, relations, and directions. Enumeration permits two types per position, three relations per hop, both directions, and three hops. The Llama configuration retains M=4M = 4 schemas using a heap of size 32. No schema temperature is fitted.

B.3 Prefix scoring. For J=min⁡(L,H)J = \min(L,H), the search mismatch is

Dprefix=∑j=1J(1[rj≠rˉj]+0.751[dj≠dˉj]+0.51[τ(vj)≠τˉj])(20)D_{\mathrm{prefix}} = \sum_{j=1}^{J} \left(1[r_j \ne\bar{r}_j] + 0.751[d_j \ne\bar{d}_j] + 0.51[\tau(v_j) \ne\bar{\tau}_j]\right) \tag*{(20)}

Partial search omits the helper’s 0.5∣L−H∣0.5|L-H| term. Scores are recomputed, not accumulated. Completed paths are collected before beam truncation; there is no extra candidate cap, explicit deduplication, or attention-to-search feedback. Degree includes generated inverse records. The prior starts at γ=0\gamma= 0, so β=softplus⁡(γ)\beta= \operatorname{softplus}(\gamma).

Training and Reproducibility

Experimental configuration

The environment uses Python 3.10.14, PyTorch 2.3.1, Transformers 4.43.3, CUDA 12.1, cuDNN 9.1, and PrimeKG 2023-01. Experimental settings are (N,M,B,K)=(8,4,32,8)(N, M, B, K) = (8, 4, 32, 8), three hops, eight relation bases, rank 16, μ=0.35\mu= 0.35, learning rate 2×10−52 \times10^{-5}, batch 8, and five epochs on four 24-GB RTX 4090s. The optimizer is AdamW with weight decay 0.01 and gradient-norm clipping at 1.

Statistical protocol

Table A1(a) reports means and standard deviations across seeds {13,21,42,87,100}\{13, 21, 42, 87, 100\}. Each seed is evaluated independently using the metric definitions in Appendix Section A.2. Standard deviations summarize variation across runs.

MethodH@1H@5H@10R@10MRRJoint@1
Fixed-Cand.0.719 ± 0.0080.736 ± 0.0060.743 ± 0.0060.556 ± 0.0090.726 ± 0.0070.495 ± 0.010
Hard-Schema0.748 ± 0.0070.789 ± 0.0050.811 ± 0.0050.621 ± 0.0080.765 ± 0.0060.548 ± 0.009
Full0.772 ± 0.0060.816 ± 0.0040.842 ± 0.0040.648 ± 0.0060.790 ± 0.0050.602 ± 0.007
MethodRel. SwapDirectionBridgeSame answerMacroAUPRC
BFS + CE0.6420.5810.5570.4930.5680.527
Guided + CE0.7160.6680.6410.5870.6530.604
Fixed-Cand.0.7510.7290.7060.6580.7110.672
Hard-Schema0.8010.7830.7510.7080.7610.731
Full0.8620.8510.8170.8060.8340.798

Table A1. (a) BioHopR seed means and standard deviations. (b) Independently labeled path discrimination. Table A1: Seed variation and path validity. Same answer denotes right-answer/wrong-path pairs; Macro is macro PairAcc. Seeds are {13,21,42,87,100}\{13, 21, 42, 87, 100\}. Entries are experimental measurements.

Unified Baseline Evaluation

Implementation and shared conditions. All results in Table 1 are produced under our unified protocol rather than copied from the original papers. Methods use identical dataset splits, reference answers, canonical entity IDs, and evaluation scripts. KG-based methods share PrimeKG 2023-01 and the entity-linking interface. LLM-based methods use Llama-3.1-8B-Instruct; architecture-specific baselines retain their declared encoders. The code address reported in the paper is https://anonymous.4open.science/r/ReSemAttn.

The reported traversal configuration uses eight retained anchors, a maximum of three hops, beam width 32, and at most eight paths per candidate, without an additional candidate cap. Shared resource limits do not imply identical retrieved pools.

Output handling and tuning. Methods share the task-specific output adapters in Appendix A.3, including entity canonicalization, answer normalization, option mapping, and empty-output handling. Trainable methods use the same permitted training data. The reported training configuration is AdamW with learning rate 2×10−52 \times10^{-5}, batch size 8, five epochs, weight decay 0.01, and gradient-norm clipping at 1. Multi-answer thresholds are selected using development macro F1. The selection procedure is shared, while selected thresholds may differ. Per-baseline hyperparameter ranges, tuning-trial counts, and selected configurations require the actual development-search records.

Controlled comparisons and uncertainty. Table 1 measures complete-system performance under our implementation and protocol. Module-level comparisons use frozen candidate/path pools in E1 and fixed-pool relation-integration variants in E2 (Table 3). In E1, replacing CE with ReSemAttn changes H@1 from 0.639 to 0.701 under unguided retrieval and from 0.692 to 0.766 under relation-guided retrieval.

RetrieverReasonerCoverageCandRecH@1Cond. H@1ValidPath@1Joint@1
UnguidedCE0.8600.6910.6390.7430.5200.462
UnguidedReSemAttn0.8600.6910.7010.8150.6460.597
Relation-guidedCE0.9470.7920.6920.7310.5850.541
Relation-guidedReSemAttn0.9470.7920.7660.8090.7140.681
IntegrationH@1PairAccJoint@1
Labels in text0.6960.6250.545
Final-score only0.7180.6960.579
Prior + shared KV0.7440.7630.634
Prior + relation KV0.7660.8190.681
VariantNormal H@1Invalid FSR↓One-path FSR↓
Without μbi\mu_{bi}0.7580.4070.456
Full0.7660.1690.203

Table 3. Consolidated mechanism controls. Cond. H@1 conditions on a retrieved gold answer; PairAcc compares same-answer valid/invalid paths. FSR is acceptance of an all-invalid candidate pool; the one-path condition also uses invalid evidence.

The reported seeds are {13,21,42,87,100}\{13, 21, 42, 87, 100\}. Five-seed BioHopR H@1 is 0.772 ± 0.006 for Full, 0.748 ± 0.007 for Hard-Schema, and 0.719 ± 0.008 for Fixed-Candidate. These standard deviations describe run variation. Paired confidence intervals and adjusted pp-values require matched question-level predictions and are not supplied by the reported aggregate statistics. Performance claims therefore concern the evaluated implementations under this protocol.

Extended Empirical Results

Search–reasoning systems

Table A2(a) compares changing pools; Table 3 E1 specifies the frozen-pool control.

Attention components

Table A2(c) favors both terms, without establishing interaction.

Aggregation

Table A2(d) favors normalized LogSumExp; selective-duplication invariance is not established. Figure 3 retains seven-metric ablations.

Search / ReasonerCov.H@1ValidWPR↓Joint
Unguided / CE0.8610.6410.4380.4040.382
Guided / CE0.9120.6940.5010.3530.449
Unguided / Attn0.8730.7080.5530.2850.506
Guided / Attn0.9480.7720.6340.2200.602

Table A2. Systems, mechanisms, and budgets on BioHopR. Attn denotes ReSemAttn; Valid/Joint are ValidPath@1/Joint@1. Pools in (a) differ between reasoners. Nodes count unique expanded nodes; total latency is measured end to end. The last row of (f) changes both MM and KK.

VariantNodesTotal msJoint@1
BFS + CE15102330.382
Rel.-G. + CE8201710.449
Fixed-Cand.–2010.495
Hard-Schema6902800.548
Full7602760.602

Table A2 (PDF p. 12). Systems, mechanisms, and budgets on BioHopR. Attn denotes ReSemAttn; Valid/Joint are ValidPath@1/Joint@1. Pools in (a) differ between reasoners. Nodes count unique expanded nodes; total latency is measured end to end. The last row of (f) changes both MM and KK.

PriorRel.-KVH@1MRRJoint@1
YesYes0.7720.7900.602
YesNo0.7310.7560.534
NoYes0.7060.7390.501
NoNo0.6810.7160.462

Table A2 (PDF p. 12, second). Systems, mechanisms, and budgets on BioHopR. Attn denotes ReSemAttn; Valid/Joint are ValidPath@1/Joint@1. Pools in (a) differ between reasoners. Nodes count unique expanded nodes; total latency is measured end to end. The last row of (f) changes both MM and KK.

AggregationH@1R@10MRRJoint@1
Max path0.7540.6190.7730.571
Mean path0.7390.6070.7590.552
LogSumExp0.7630.6390.7830.588
Norm. LogSumExp0.7720.6480.7900.602
Gated pooling0.7680.6440.7860.595

Table A2 (PDF p. 12, third). Systems, mechanisms, and budgets on BioHopR. Attn denotes ReSemAttn; Valid/Joint are ValidPath@1/Joint@1. Pools in (a) differ between reasoners. Nodes count unique expanded nodes; total latency is measured end to end. The last row of (f) changes both MM and KK.

BeamNodesCov.H@1Joint@1ms/q
82380.8830.7210.531188
164310.9210.7540.576226
327600.9480.7720.602276
6413780.9560.7760.606391

Table A2 (PDF p. 12, fourth). Systems, mechanisms, and budgets on BioHopR. Attn denotes ReSemAttn; Valid/Joint are ValidPath@1/Joint@1. Pools in (a) differ between reasoners. Nodes count unique expanded nodes; total latency is measured end to end. The last row of (f) changes both MM and KK.

MMKKH@1R@10Joint@1
180.7480.6210.548
280.7630.6370.581
480.7720.6480.602
8160.7730.6510.603

Table A2 (PDF p. 12, fifth). Systems, mechanisms, and budgets on BioHopR. Attn denotes ReSemAttn; Valid/Joint are ValidPath@1/Joint@1. Pools in (a) differ between reasoners. Nodes count unique expanded nodes; total latency is measured end to end. The last row of (f) changes both MM and KK.

Input / splitH@1Joint@1Consist.
Standard0.7720.6021.000
Template-disjoint0.7410.5630.883
Paraphrased0.7580.5840.914
Entity aliases0.7490.5720.901
Paraphrase + aliases0.7310.5480.862

Table A3. Robustness, schema calibration, and annotation agreement. Distractors are type-compatible; removed edges are non-gold. Lower ECE and Brier are better.

PerturbationH@1Cov.Joint@1
None0.7720.9480.602
+5% distractors0.7630.9420.588
+10% distractors0.7480.9310.567
−5% non-gold edges0.7660.9430.594
−10% non-gold edges0.7540.9340.579

Table A3 (PDF p. 12). Robustness, schema calibration, and annotation agreement. Distractors are type-compatible; removed edges are non-gold. Lower ECE and Brier are better.

TargetAccuracyECE↓Brier↓
Hop count0.9120.0280.071
Relation seq.0.8470.0410.109
Full typed schema0.7810.0570.146

Table A3 (PDF p. 12, second). Robustness, schema calibration, and annotation agreement. Distractors are type-compatible; removed edges are non-gold. Lower ECE and Brier are better.

SubsetAgreementκ\kappa
All paths0.8840.761
Correct-answer0.9010.792
Challenge0.8670.733

Table A3 (PDF p. 12, third). Robustness, schema calibration, and annotation agreement. Distractors are type-compatible; removed edges are non-gold. Lower ECE and Brier are better.

E.4 Budgets. Table A2(e–f) shows diminishing beam gains; the final row varies both MM and KK.

E.5 Calibration. Table A3(c) separates hop/relation/schema prediction; confidence does not measure top-MM coverage.

E.6 Robustness. Table A3(a–b) tests surface/graph perturbations, not unseen compositions or missing essential edges.

E.7 Additional task metrics. Table A4 reports additional task metrics under their respective output protocols.

MethodAns. EMPrecisionRecallAns. F1Rel. F1MCQ Acc.MRROpen EMOpen F1
Zero-shot0.3420.4560.5220.4870.4120.5120.6270.4210.538
CoT0.3680.4910.5480.5160.4470.5480.6540.4460.566
Dense RAG0.3940.5120.5790.5430.4830.5630.6690.4610.581
GraphRAG0.4270.5410.6120.5740.5260.5860.6910.4820.604
GNN-RAG0.4440.5590.6290.5910.5480.6040.7070.5010.621
GreaseLM0.476–0.6530.617–0.6110.7160.5080.629
UniKGQA0.4880.5970.6640.6280.6010.6200.7240.5160.638
Think-on-Graph0.4950.6080.6710.6340.6150.6260.7310.5220.644
Fixed-Cand.0.5080.6110.6780.6420.6410.6370.7420.5360.655
Hard-Schema0.5310.6300.6960.6610.7140.6520.7580.5510.670
Full0.6520.7310.7940.7610.7700.6910.7970.6240.749

Table A4. Additional answer-set, relation, multiple-choice, and open-answer metrics. A dash indicates an unreported result; no missing result is treated as zero.

Cases and Failure Analysis

Figures 1–2 fix CML as the endpoint and compare an ABL1 route with a contraindication route. Only the former follows the requested drug–target–disease composition. Holding the endpoint fixed separates entity relevance from relation-semantic support.

Two attention layers. The three planes show discovery and two attention layers. Equation (13) forms a 3×23 \times2 submatrix with diseases/proteins/targeted token rows and ABL1/contraindication path columns. Gated fusion updates H(0)→H(1)→H(2)H^{(0)} \to H^{(1)} \to H^{(2)}, reusing paths and schemas while recomputing queries with layer-specific projections and gates. Updated tokens and absolute support determine the candidate score; arg⁡max⁡kuik\arg\max_k u_{ik} selects its explanation.

125 failures (count; percent). Grounding 19 (15.2), omitted schema 23 (18.4), pruned path 27 (21.6), missing edge 16 (12.8), relation ambiguity 14 (11.2), underweighted valid path 13 (10.4), thresholding 8 (6.4), annotation ambiguity 3 (2.4), and other 2 (1.6). These frequencies diagnose failure locations, not causal module effects.

Computational Accounting

Table A2(b) reports end-to-end latency and unique expanded nodes. Search attempts scale as O((N+(L−1)B)dˉ)O((N + (L - 1)B)\bar{d}) before schema scoring. Per layer, attention, dense KV, and low-rank updates cost O(CTKd)O(CTKd), O(CKd2)O(CKd^2), and O(CKBrdrd)O(CKBr_dr_d), respectively; path states require O(CKd)O(CKd) memory. Backbone encoding and memory projection add computation. Profiling uses one RTX 4090, batch one, 50 warm-up queries, and 500 timed queries.

References

  1. [1]Payal Choudhary, Kexin Huang, and Marinka Zitnik. 2023. Building a knowledge graph to enable precision medicine. Scientific Data 10, 1 (2023), 67. doi:10.1038/s41597-023-01960-3
  2. [2]Jinhao Jiang, Kun Zhou, Wayne Xin Zhao, and Ji-Rong Wen. 2023. UniKGQA: Unified Retrieval and Reasoning for Solving Multi-hop Question Answering Over Knowledge Graph. In The Eleventh International Conference on Learning Representations.arxiv.org/abs/2212.00959
  3. [3]Yunsoo Kim, Yusuf Abdulle, and Honghan Wu. 2025. BioHopR: A Benchmark for Multi-Hop, Multi-Answer Reasoning in Biomedical Domain. In Findings of the Association for Computational Linguistics: ACL 2025. Association for Computational Linguistics, Vienna, Austria, 12894–12908. doi:10.18653/v1/2025.findings-acl.668DOI
  4. [4]Yangning Li, Weizhi Zhang, Yuyao Yang, Wei-Chen Huang, Yaowu Wu, Junyu Luo, Yuancheng Bei, Henry Peng Zou, Xiao Luo, Yusheng Zhao, Chunkit Chan, Yankai Chen, Zhongfen Deng, Yinghui Li, Hai-Tao Zheng, Dongyuan Li, Renhe Jiang, Ming Zhang, Yangqiu Song, and Philip S. Yu. 2025. A Survey of RAG-Reasoning Systems in Large Language Models. In Findings of the Association for Computational Linguistics: EMNLP 2025. Association for Computational Linguistics, 12120–12145. doi:10.18653/v1/2025.findings-emnlp.648DOI
  5. [5]Linhao Luo, Yuan-Fang Li, Reza Hafari, and Shirui Pan. 2024. Reasoning on Graphs: Faithful and Interpretable Large Language Model Reasoning. In The Twelfth International Conference on Learning Representations. https://openreview.net/forum?id=ZGNWW7xZ6Qarxiv.org/abs/2310.01061
  6. [6]Linhao Luo, Zicheng Zhao, Gholamreza Haffari, Yuan-Fang Li, Chen Gong, and Shirui Pan. 2025. Graph-constrained Reasoning: Faithful Reasoning on Knowledge Graphs with Large Language Models. In Proceedings of the 42nd International Conference on Machine Learning (Proceedings of Machine Learning Research, Vol. 267). PMLR, 41540–41565. https://proceedings.mlr.press/v267/luo25t.htmlarxiv.org/abs/2410.13080
  7. [7]Costas Mavromatis and George Karypis. 2025. GNN-RAG: Graph Neural Retrieval for Efficient Large Language Model Reasoning on Knowledge Graphs. In Findings of the Association for Computational Linguistics: ACL 2025. Association for Computational Linguistics, 16682–16699. doi:10.18653/v1/2025.findings-acl.856DOI
  8. [8]PrimeKGQA Contributors. 2024. PrimeKGQA: A Biomedical Knowledge Graph Question Answering Dataset Sourced from PrimeKG. doi:10.5281/zenodo.13829395
  9. [9]Nihar Sanda, Benjamin M. Gyori, Vito Quaranta, Auroop Ganguly, and Ayan Paul. 2026. eGoT: Enhanced Graph-of-Thoughts for Multi-Hop Knowledge Retrieval and Hypothesis Generation in Biomedicine. Bioinformatics 42, Supplement_1 (2026), btag216. doi:10.1093/bioinformatics/btag216
  10. [10]Haitian Sun, Tania Bedrax-Weiss, and William W. Cohen. 2019. Open Domain Question Answering with Iterative Retrieval on Knowledge Bases and Text. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 2380–2390. doi:10.18653/v1/D19-1242DOI
  11. [11]Jiashuo Sun, Chengjin Xu, Luming Tang, Saizhuo Wang, Chen Lin, Yeyun Gong, Lionel M. Ni, Heung-Yeung Shum, Jian Guo, and Nan Duan Jiang. 2024. Think-on-Graph: Deep and Responsible Reasoning of Large Language Model on Knowledge Graph. arXiv:2307.07697 [cs.CL]arxiv.org/abs/2307.07697
  12. [12]Johannes Welbl, Pontus Stenetorp, and Sebastian Riedel. 2018. Constructing Datasets for Multi-hop Reading Comprehension Across Documents. Transactions of the Association for Computational Linguistics 6 (2018), 287–302. doi:10.1162/tacl_a_00021DOI
  13. [13]Juncheng Wu, Wenlong Deng, Xingyuan Li, Sheng Liu, Taomian Mi, Yifan Peng, Ziyang Xu, Yi Liu, Hunyunjin Cho, Chang-In Choi, et al. 2025. MedReason: Eliciting Factual Medical Reasoning Steps in Large Language Models via Knowledge Graphs. arXiv:2504.00093 [cs.CL] https://arxiv.org/abs/2504.00093
  14. [14]Ran Xu, Patrick Jiang, Linhao Luo, Cao Xiao, Adam Cross, Shirui Pan, Jimeng Sun, and Carl Yang. 2025. A Survey on Unifying Large Language Models and Knowledge Graphs for Biomedicine and Healthcare. In Proceedings of the 31st ACM SIGKDD Conference on Knowledge Discovery and Data Mining V2. Association for Computing Machinery, 6195–6205. doi:10.1145/3711896.3736556
  15. [15]Michihiro Yasunaga, Hongyu Ren, Antoine Bosselut, Percy Liang, and Jure Leskovec. 2021. QA-GNN: Reasoning with Language Models and Knowledge Graphs for Question Answering. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies. Association for Computational Linguistics, 535–546. doi:10.18653/v1/2021.naacl-main.45DOI
  16. [16]Linhao Luo, Antoine Bosselut, Michihiro Yasunaga, Hongyu Ren, Percy Liang, Christopher D. Manning, and Jure Leskovec. 2022. GreaseLM: Graph Reasoning Enhanced Language Models for Question Answering. In International Conference on Learning Representations. https://openreview.net/forum?id=41e9o6cQPj

Paper details

vlnc:W_9sg4n99k
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 7

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents