Skip to content

Menu

WorksComputer Science

Co-adaptive Rule Routing and Constraining for Structured Knowledge Retrieval

Download PDFView on arXiv

Ask your agent about this work

Your agent reads this work through Valency, with its citations and similar works. Paste this at the start of a chat.

Use the Valency MCP. Work: W_6f4ze6cb. Fetch it with get_paper_by_id, then find its nearest works with find_similar_papers and tell me what it adds.

Works with any MCP client. Not connected yet? Connect your agent

Abstract

Structured knowledge retrieval acquires task-relevant evidence from structured knowledge sources for downstream tasks. Existing methods rely on unconstrained retrieval or predefined query-rule supervision, such as author-paper rules for scientific discovery and anatomy-drug rules for precision medicine. Such supervision is rarely available in practice. We propose Co-Adaptive Rule Routing and Constraining Retrieval (CoRE), which jointly learns which reasoning rule to assign to each query and how to retrieve evidence under that rule, without predefined query-rule pairs. A routing agent selects a rule, and its corresponding retriever traverses the knowledge base and ranks evidence that satisfies the rule's constraints. Because routing and retrieval are interdependent, CoRE alternates between reinforcement learning for the routing policy and contrastive learning for the rule-constrained retriever. The selected rules provide supervision for retriever training, while retrieval performance rewards the routing policy. This closed-loop process enables both components to co-adapt without explicit query-rule supervision. Experiments on STaRK-QA datasets across scientific discovery, biomedical reasoning, and e-commerce knowledge management demonstrate CoRE's effectiveness. Ablations show the benefit of co-adapting the router and retriever. Generation-based routing transfers across datasets and benefits from multi-domain pretraining followed by target-specific fine-tuning. Analysis of rule usage across queries also informs automatic rule refinement and discovery.

Introduction

Retrieval over structured knowledge bases ([20]) serves as the fundamental component of modern information systems, with tremendous real-world applications such as scientific discovery ([11, 2]), biomedical reasoning ([5]), and enterprise knowledge management ([24] (Pitiporn & Alami 2024)). Structured knowledge retrieval requires adhering to explicit reasoning constraints, such as retrieving neighbors of specific relation types, traversing predefined meta-paths, or composing symbolic attributes. For example, a clinician searching for treatment options follows Symptom →\to Diagnosis →\to Treatment to infer appropriate interventions from a patient’s observed symptoms and diagnosed condition ([30]). A researcher tracing intellectual lineage may traverse Paper →\to Author →\to Paper to identify related works connected through common authorship ([30]). A cybersecurity analyst investigating a potential security breach may follow Alert →\to Host →\to Process →\to Vulnerability to identify the root cause of suspicious activities and assess potential attack vectors ([21]). In order to support rule-constrained retrieval across all these domains, a natural question arises:

How can we identify reasoning rules and use them to constrain structured knowledge retrieval?

Existing structured knowledge retrieval can be broadly categorized into three groups. The first group uses structured query and representation methods, including SQL joins, graph traversal, and symbolic rule execution, to identify relevant records, paths, or substructures. Some also learn structure-conditioned embeddings for entity retrieval [10, 26]. However, they typically use fixed queries or a single scoring pass rather than adaptively identifying and retrieving the next useful evidence. Stepping further, the second group integrates agentic workflows into structured knowledge retrieval, where agents [9, 4] dynamically explore the structured knowledge base and select subsequent actions based on the global query and intermediate observations. However, these agentic retrieval methods still struggle to adhere to domain-specific rule constraints. This limitation further motivates the third group, reasoning-constraining retrieval, which leverages predefined reasoning structures, such as meta-paths [19, 27, 16] and formal logic [7], to guide structured retrieval. However, the underlying reasoning rule for each query often remains hidden in practice. Existing methods [19, 9, 16] therefore rely on heuristics or LLM knowledge to construct query-rule pair supervision, which introduces construction bias and fails to capture the reasoning rationale required by the query, as empirically demonstrated in Appendix § 9.3.

A patient’s biomedical query, reasoning rules, and performance of different method groups

Figure 1. (a) Given a patient’s biomedical query, structured knowledge retrieval is guided by the reasoning rule Anatomy → Disease, which a doctor gradually acquires through years of clinical experience. (b) Co-adapting the rule router and rule-constraining retriever further improves retrieval performance.

To address the lack of explicit query-rule pairs, we formulate reasoning-rule selection as a latent agentic routing problem, where the routing agent is learned directly from downstream feedback obtained by executing retrieval under the selected rule. This formulation introduces two key challenges. First, rule routing and rule-constraining retrieval are inherently coupled. The router determines the query-rule assignments used to train rule-constraining retrievers, while retrieval performance provides feedback to improve the routing policy. Second, training rule router and rule-constraining retrievers require fundamentally different learning signals. The router should identify the rule most likely to yield successful retrieval, whereas each retriever should learn to rank relevant evidence against irrelevant evidence under its assigned rule. To address these two challenges, we propose Co-Adaptive Rule Routing and Constraining REtrieval (CoRE), an alternate optimization framework that jointly adapts the rule-routing agent and rule-constraining retrievers. Specifically, the rule-routing agent is optimized via reinforcement learning using downstream retrieval feedback, while rule-constraining retrievers are optimized via contrastive learning over queries assigned by the rule-routing agent. Alternating between these two stages enables routing and retrieval to co-adapt, progressively identifying the appropriate reasoning rule for each query and improving retrieval under the corresponding rule constraints. Our contributions are summarized as follows:

  • Reasoning-constraining Retrieval without Assuming Query-Rule Pairs. We formulate reasoning-rule selection as a latent routing problem and decompose structured retrieval into rule routing and rule-constraining retrieval, which requires no query-rule supervision.

  • Co-Adaptive Rule-Routing Agent and Rule-Constraining Retrievers. We propose CoRE, an alternate optimization framework where the agentic router assigns each query to an appropriate reasoning rule to adapt the corresponding rule-constraining retriever, while retrieval performance provides feedback to adapt the routing policy.

  • Superior Performance and New Insights. Experiments show that CoRE achieves the strongest average performance. Ablations validate both adaptation directions, and the token-generation router shows cross-dataset transferability and benefits from multi-domain pretraining. Moreover, the learned routing distributions further provide insights for automatic rule mining and refinement.

Related Work

Our work lies at the intersection of structured knowledge retrieval and constrained agentic reasoning, while additionally addressing the joint adaptation of agent policies and reasoning-constrained retrieval tools. Accordingly, we review related work from three perspectives: (1) Structured knowledge retrieval, (2) Constrained agentic reasoning for retrieval, and (3) Co-adaptation of agents and tools.

Structured Knowledge Retrieval. Early structured retrieval methods primarily improve how textual and relational signals are combined. MFAR [18] adaptively aggregates retrieval scores across structured fields, while KAR [31] augments retrieval with LLM-generated query expansions and relation filtering. More recent methods introduce richer structural reasoning. MoR [16] generates a planning graph and combines structural traversal with textual matching, whereas HybGRAG [15] and AvaTaR [29] use LLM feedback to refine retrieval strategies or tool use. These methods increasingly adapt how structure is used, but the structural strategy itself is typically generated or optimized separately from the retriever. Our method instead treats rule selection as latent and jointly learns which structural rule to use and how to retrieve under that rule from downstream retrieval feedback.

Reasoning-Constrained and Agentic Graph Retrieval. A complementary line of work moves structural reasoning from retrieval design into the LLM policy itself. RoG [19] first generates relation paths as explicit reasoning plans and then retrieves along those paths. ToG [27] makes this process interactive by selecting relations and entities during graph exploration. RoE [9] and GraphDancer [4] further learn such exploration policies through supervised and reinforcement learning. This progression shifts from predefined retrieval structure to learned traversal decisions, but also requires the LLM to perform low-level graph exploration. Our method separates the two levels: a routing agent selects a schema-valid reasoning rule, while a specialized retriever executes that rule and ranks the reachable evidence. The router is trained directly from retrieval outcomes rather than gold reasoning paths or query–rule labels.

Co-Adaptation of Agents and Tools. Recent self-improving agents [13] go beyond optimizing a single policy by adapting interacting components in a feedback loop [12, 17]. CoEvolve [32] couples agent learning with an evolving training distribution, WebEvolver [8] co-adapts a web agent and world model, and Tool-R0 [1] jointly improves a task generator and tool-using solver. Our work brings this co-adaptation principle to structured retrieval. The rule router determines query assignments used for specialized training rule-constrained retrievers, while retriever performance provides the reward for improving the router.

Notation and Problem Formulation

In this section, we define key notation and formulate the structured knowledge retrieval problem.

Notation. Consider a structured knowledge base G=(E,R)\mathcal{G} = (\mathcal{E}, \mathcal{R}) consisting of an entity set E\mathcal{E} and a relation set R\mathcal{R}, where each relation rij∈Rr_{ij} \in\mathcal{R} connects a pair of entities ei,ej∈Ee_i,e_j \in\mathcal{E}. Each entity eie_i and relation rijr_{ij} is associated with its type and descriptive attributes, such as the textual descriptions used in this work. Examples include the abstract of a paper entity or the interaction description of a protein–protein relation. In many domains, effective retrieval follows recurring multi-step reasoning patterns that specify how entities and relations should be progressively traversed and composed. We represent these multi-step reasoning patterns as a set of reasoning constraint rules K={K∣K=(K1,K2,⋯ ,KLK)}\mathcal{K} = \{K \mid K = (K_1, K_2, \cdots, K_{L_K})\} where each rule KK consists of an ordered sequence of LKL_K reasoning steps. Each step KiK_i may correspond to an entity type or relation type that guides retrieval toward task-supporting evidence, e.g., a scientific literature search requires a reasoning constraint Author→Paper→Venue\mathrm{Author}\rightarrow\mathrm{Paper}\rightarrow\mathrm{Venue}, and a biomedical diagnosis requires Drug→Target→Disease\mathrm{Drug}\rightarrow\mathrm{Target}\rightarrow\mathrm{Disease}.

Problem Formulation. Given a user query QQ, the objective is to learn a retrieval model PΘP_{\Theta} parameterized by Θ\Theta that retrieves supporting evidence from the structured knowledge base G\mathcal{G}. Specifically, each training instance (Q∗,S∗)(Q^*, S^*) is sampled from the training data distribution PQ×STrainP^{\mathrm{Train}}_{Q\times S}, where S∗⊆GS^* \subseteq\mathcal{G} denotes the ground-truth evidence for answering Q∗Q^* and may correspond to a single answer entity, multiple entities, or an entity–relation subgraph. Formally, we aim to learn

Θ∗=arg⁡max⁡Θ E(Q∗,S∗)∼PQ×STrain[PΘ(S∗∣Q∗,G)].(1)\Theta^* = \underset{\Theta}{\arg\max}\ \mathbb{E}_{(Q^*,S^*)\sim P^{\mathrm{Train}}_{Q\times S}}\left[P_{\Theta}(S^* \mid Q^*, \mathcal{G})\right]. \tag*{(1)}

Unlike prior structure retrieval methods [9, 16], we do not assume the availability of query–rule pair supervision or access (i.e., joint distribution PQ×KP_{Q\times K}). Instead, we assume only the availability of query–evidence pairs sampled from PQ×STrainP^{\mathrm{Train}}_{Q\times S}, where SS denotes the ground-truth supporting evidence provided by the retrieval dataset. The reasoning rule that connects each query to its supporting evidence remains latent and should be inferred automatically.

Framework

In this section, we first provide an overview of CoRE and then detail the design of the rule-routing agent module in Section 4.1 and the rule-constraining retrieval module in Section 4.2, respectively. Next, we present the alternative optimization together with the corresponding training strategies for both components in Section 4.3. Finally, we describe the inference procedure in Section 4.4.

As discussed earlier, a key challenge in rule-constraining structured knowledge retrieval is the absence of query–rule pair supervision, making it impossible to directly train a rule-routing policy through supervised learning. Instead, the available training data contains only observable query–evidence pairs (Q,S)(Q, S). Consequently, directly optimizing the retrieval objective PΘ(S∣Q,G)P_{\Theta}(S \mid Q, \mathcal{G}) in Eq. (1) requires jointly inferring the latent reasoning rule PΘRULE(K∣Q,K)P_{\Theta_{\mathrm{RULE}}}(K \mid Q, \mathcal{K}) and retrieving evidence conditioned on the inferred rule, PΘRET−K(S∣Q,K,G)P_{\Theta_{\mathrm{RET-K}}}(S \mid Q, K, \mathcal{G}). To address this challenge, we model the reasoning rule as a latent variable and optimize the factorized retrieval likelihood as:

{ΘRET−K∗}K=1∣K∣,ΘRULE∗=arg⁡max⁡{ΘRET−K}K=1∣K∣,ΘRULEE(Q∗,S∗)∼PQ×STrain[∑K∈KPΘRET−K(S∣Q,K,G)×PΘRULE(K∣Q,K)](2)\left\{\Theta_{\mathrm{RET-K}}^{*}\right\}_{K=1}^{|\mathcal{K}|},\Theta_{\mathrm{RULE}}^{*} = \underset{\left\{\Theta_{\mathrm{RET-K}}\right\}_{K=1}^{|\mathcal{K}|},\Theta_{\mathrm{RULE}}}{\arg\max} \mathbb{E}_{(Q^{*},S^{*})\sim P_{Q\times S}^{\mathrm{Train}}} \left[ \sum_{K\in\mathcal{K}} P_{\Theta_{\mathrm{RET-K}}}(S\mid Q,K,\mathcal{G}) \times P_{\Theta_{\mathrm{RULE}}}(K\mid Q,\mathcal{K}) \right] \tag*{(2)}

where PΘRULE(K∣Q,K)P_{\Theta_{\mathrm{RULE}}}(K \mid Q,\mathcal{K}) denotes the rule routing policy that estimates the probability of assigning query QQ to reasoning rule KK from the rule space K\mathcal{K}, and PΘRET−K(S∣Q,K,G)P_{\Theta_{\mathrm{RET-K}}}(S \mid Q,K,\mathcal{G}) denotes the rule-constrained retriever that estimates the probability of retrieving evidence SS from the structured knowledge source G\mathcal{G} conditioned on rule KK.

Intuitively, the rule-routing policy acts as a high-level planner that selects the most suitable latent rule for each query, while each rule-constraining retriever specializes in retrieving evidence under its corresponding structural constraint. As shown in Figure 2, CoRE couples them through a four-stage loop. Starting from uniform query–rule assignments, ① each retriever is trained on the queries assigned to its rule; ② the trained retrievers execute the candidate rules, and the rank of the ground-truth evidence is used to construct routing rewards; ③ these rewards optimize the routing agent toward rules that produce better retrieval; and ④ the updated agent reassigns queries, providing new supervision for the next round of retriever training.

Overview of the CoRE framework

Figure 2. Overview of the CoRE framework. CoRE alternates between optimizing rule-constraining retrievers and the rule-routing agent. Given the current query–rule assignments, each retriever is first trained on queries assigned to its corresponding rule (①). The resulting retrieval performance is converted into rule-level reward signals (②), which are used to update the routing policy (③). The updated router then reassigns queries to rules (④), providing new supervision for the next round of retriever optimization. This alternating process enables the routing policy and rule-constraining retrievers to co-adapt through a closed feedback loop.

Importantly, the rule-routing policy and rule-constraining retrievers are intrinsically interdependent. The rule-routing policy determines the query–rule assignments that supervise retriever training, whereas retriever performance provides reward signals for refining the rule-routing policy. This mutual dependency precludes optimizing either component in isolation and motivates the alternative optimization framework presented in § 4.3.

Agentic Rule Routing Module

The rule-routing module aims to infer the latent reasoning rule that best explains a query. Formally, given a query QQ and a candidate rule set K\mathcal{K}, the rule-routing module models the rule assignment distribution PΘRULE(K∣Q,K)P_{\Theta_{\mathrm{RULE}}}(K \mid Q, \mathcal{K}). To accommodate both discriminative rule classification and generative rule prediction, we adopt a general encoder–decoder formulation: PΘRULE(K∣Q,K)=fDecoder(fEncoder(Q),K)P_{\Theta_{\mathrm{RULE}}}(K \mid Q, \mathcal{K}) = f_{\mathrm{Decoder}}(f_{\mathrm{Encoder}}(Q), \mathcal{K}). The encoder transforms the query into a latent representation hQ∈Rd\mathbf{h}_{Q} \in\mathbb{R}^{d}, and the decoder maps hQ\mathbf{h}_{Q} into a rule-selection decision.

Encoder. We consider two encoder instantiations:

hQ=fEncoder(Q)={BERT(Q)[CLS],BERT-based encoder,LLM(Q)Last,LLM-based encoder.(3)\mathbf{h}_{Q}=f_{\mathrm{Encoder}}(Q)= \begin{cases} \mathrm{BERT}(Q)_{\mathrm{[CLS]}}, & \text{BERT-based encoder},\\ \mathrm{LLM}(Q)_{\mathrm{Last}}, & \text{LLM-based encoder}. \end{cases} \tag*{(3)}

The BERT-based encoder extracts the final hidden state of the [CLS] token to capture sentence-level semantic information. In contrast, the LLM-based encoder uses the final-layer hidden state of the last token, enabling richer contextual representations that better capture complex reasoning patterns.

Decoder. Given the query representation hQ\mathbf{h}_{Q}, the decoder defines the rule-selection distribution as:

fDecoder(hQ,K)={Softmax⁡(WhQ+b),Classifier-based decoder,∏t=1TP(yt∣y<t,Q,K),Generation-based decoder.(4)f_{\mathrm{Decoder}}(\mathbf{h}_{Q},\mathcal{K})= \begin{cases} \operatorname{Softmax}(\mathbf{W}\mathbf{h}_{Q}+\mathbf{b}), & \text{Classifier-based decoder},\\ \prod_{t=1}^{T}P(y_t\mid y_{<t},Q,\mathcal{K}), & \text{Generation-based decoder}. \end{cases} \tag*{(4)}

For the classifier-based decoder, W∈R∣K∣×d\mathbf{W} \in\mathbb{R}^{|\mathcal{K}|\times d} and b∈R∣K∣\mathbf{b} \in\mathbb{R}^{|\mathcal{K}|} are learnable parameters that produce a categorical distribution over the candidate rules in K\mathcal{K}. A rule is subsequently selected through argmax selection or categorical sampling. Alternatively, the generation-based decoder formulates rule selection as a conditional generation task, where the generated sequence Y={yt}t=1TY=\{y_t\}_{t=1}^{T} is parsed into a rule assignment. The prompting format is provided in Appendix G.

Combining the encoder and decoder choices yields three variants of CoRE: BERT-C, which combines a BERT-based encoder with a classifier-based decoder; LLM-C, which combines an LLM-based encoder with a classifier-based decoder; and LLM-G, which combines an LLM-based encoder with a generation-based decoder. We do not instantiate a BERT-based generation variant, as coupling BERT with a generative decoder would introduce additional architecture design complexity and training choices beyond the scope of this study.

Rule-constraining Retrieval Module

Given a query QQ and a reasoning rule KK selected by the rule-routing agent, the corresponding rule-constraining retriever identifies evidence that is both semantically relevant to the query and structurally consistent with the selected rule. Formally, the likelihood of retrieving candidate evidence SiS_i for query QQ under reasoning rule KK is defined as PΘRET−K(Si∣Q,K,G)=exp⁡(Φ(Q,Si,K))∑Sj∈C(Q,K)exp⁡(Φ(Q,Sj,K))P_{\Theta_{\mathrm{RET-K}}}(S_i \mid Q,K,\mathcal{G}) = \frac{\exp(\Phi(Q,S_i,K))}{\sum_{S_j\in\mathcal{C}(Q,K)}\exp(\Phi(Q,S_j,K))}, where C(Q,K)\mathcal{C}(Q,K) is the candidate evidence obtained by constrained depth-first-search (DFS) under rule KK, and Φ(Q,Si,K)\Phi(Q,S_i,K) is a rule-conditioned relevance score measuring the compatibility between query QQ, candidate evidence SiS_i, and rule KK. PΘRET−KP_{\Theta_{\mathrm{RET-K}}} provides a general formulation of rule-constrained retrieval. We instantiate the framework for knowledge graph retrieval, as experimented in Section 5.

For rule-constrained knowledge graph retrieval, the key is to assign each candidate entity a relevance score that reflects both its compatibility with the query and its selected rule. We therefore define the rule-conditioned relevance score Φ(Q,Si,K)\Phi(Q,S_i,K) by combining rule-constrained structural information with query-dependent relevance signals. To incorporate the rule constraint, a rule KK specifies a sequence of entity types, such as Anatomy →\rightarrow Disease →\rightarrow Drug. The retriever performs constrained graph traversal following this sequence, which restricts the search space to entities reachable under KK. For each resulting candidate SiS_i, let (vi,1,…,vi,L)(v_{i,1},\ldots,v_{i,L}) denote the traversal path leading to it, where vi,L=Siv_{i,L}=S_i. To incorporate query relevance, we measure the BM25 similarity between the query and the textual description of each entity along this path: xi=[BM25(Q,vi,1),…,BM25(Q,vi,L)]\mathbf{x}_i=[\mathrm{BM25}(Q,v_{i,1}),\ldots,\mathrm{BM25}(Q,v_{i,L})]. The resulting vector xi\mathbf{x}_i therefore summarizes how relevant the entire rule-constrained path is to the query. Finally, we combine the query-dependent path features with the representation of the selected rule. Specifically, xi\mathbf{x}_i and fembed(K)f_{\mathrm{embed}}(K) are provided as inputs to a learnable scoring function: Φ(Q,Si,K)=fscore(xi,fembed(K))\Phi(Q,S_i,K)=f_{\mathrm{score}}(\mathbf{x}_i,f_{\mathrm{embed}}(K)), where fembed(K)f_{\mathrm{embed}}(K) represents the selected rule embedding and fscoref_{\mathrm{score}} is parameterized by ΘRET−K\Theta_{\mathrm{RET-K}}. In this way, Φ(Q,Si,K)\Phi(Q,S_i,K) jointly captures query relevance along the constrained traversal path and the semantics of the selected rule.

Alternative Optimization

Since the rule routing policy determines the latent query–rule assignments that supervise rule-constraining retrievers, while retrieval performance in turn provides feedback for improving rule routing, we therefore formulate their co-adaptation as a bi-level optimization problem and optimize them through an alternate optimization strategy [3, 28] that iteratively updates the rule-constraining retrievers and rule routing policy.

Θt+1={ΘRET−Kt+1=arg⁡max⁡ΘRET−K LRET({ΘRET−Kmt}m=1∣K∣,ΘRULEt),with ΘRULEt fixed,ΘRULEt+1=arg⁡max⁡ΘRULE LRULE(ΘRULEt,{ΘRET−Kmt+1}m=1∣K∣),with {ΘRET−Kmt+1}m=1∣K∣ fixed.(5)\boldsymbol{\Theta}^{t+1} = \begin{cases} \boldsymbol{\Theta}_{\mathrm{RET-K}}^{t+1} = \underset{\boldsymbol{\Theta}_{\mathrm{RET-K}}}{\arg\max}\ \mathcal{L}_{\mathrm{RET}}\left(\{\boldsymbol{\Theta}_{\mathrm{RET-K}m}^{t}\}_{m=1}^{|\mathcal{K}|},\boldsymbol{\Theta}_{\mathrm{RULE}}^{t}\right), & \text{with }\boldsymbol{\Theta}_{\mathrm{RULE}}^{t}\text{ fixed},\\ \boldsymbol{\Theta}_{\mathrm{RULE}}^{t+1} = \underset{\boldsymbol{\Theta}_{\mathrm{RULE}}}{\arg\max}\ \mathcal{L}_{\mathrm{RULE}}\left(\boldsymbol{\Theta}_{\mathrm{RULE}}^{t},\{\boldsymbol{\Theta}_{\mathrm{RET-K}m}^{t+1}\}_{m=1}^{|\mathcal{K}|}\right), & \text{with }\{\boldsymbol{\Theta}_{\mathrm{RET-K}m}^{t+1}\}_{m=1}^{|\mathcal{K}|}\text{ fixed}. \end{cases} \tag*{(5)}

where LRET\mathcal{L}_{\mathrm{RET}} and LRULE\mathcal{L}_{\mathrm{RULE}} denote the optimization objectives for the rule-constraining retrievers and the rule routing policy, respectively. The specific formulations are introduced next.

Rule-constraining Retrieval Optimization. With the rule routing policy fixed, each rule-constrained retriever is trained on the queries assigned to its rule by that policy. Let arg⁡max⁡K~∈KPΘRULEt(K~∣Q∗)\arg\max_{\widetilde{K}\in\mathcal{K}}P_{\boldsymbol{\Theta}_{\mathrm{RULE}}^{t}}(\widetilde{K}\mid Q^*) denote the rule assigned to training pair (Q∗,S∗)(Q^*,S^*). Therefore, given a fixed rule assignment, the marginalization over all candidate rules in Eq. (2) reduces to the assigned rule, yielding the following:

LRET=E(Q∗,S∗)∼PQ×STrain∑K∈K1(K=arg⁡max⁡K~∈K{PΘRULEt(K~∣Q∗)})PΘRET−Kt(S∗∣Q∗,K,G)(6)\mathcal{L}_{\mathrm{RET}}=\mathbb{E}_{(Q^*,S^*)\sim P_{Q\times S}^{\mathrm{Train}}}\sum_{K\in\mathcal{K}}\mathbf{1}\left(K=\arg\max_{\widetilde{K}\in\mathcal{K}}\{P_{\boldsymbol{\Theta}_{\mathrm{RULE}}^{t}}(\widetilde{K}\mid Q^*)\}\right)P_{\boldsymbol{\Theta}_{\mathrm{RET-K}}^{t}}(S^*\mid Q^*,K,\mathcal{G}) \tag*{(6)}

where PΘRULEt(K~∣Q∗)P_{\boldsymbol{\Theta}_{\mathrm{RULE}}^{t}}(\widetilde{K}\mid Q^*) and PΘRET−Kt(S∗∣Q∗,K,G)P_{\boldsymbol{\Theta}_{\mathrm{RET-K}}^{t}}(S^*\mid Q^*,K,\mathcal{G}) are calculated following Sections 4.1-4.2.

Rule routing Optimization. With the rule-constrained retrievers fixed, we next optimize the rule routing policy using retrieval feedback. Intuitively, the policy should assign high probability to reasoning rules that lead to successful evidence retrieval and low probability to rules that result in poor retrieval performance. For each training query Q∗Q^*, the rule routing policy samples a reasoning rule K∼PΘRULEt(⋅∣Q∗)K\sim P_{\boldsymbol{\Theta}_{\mathrm{RULE}}^{t}}(\cdot\mid Q^*) which is subsequently evaluated by the optimized rule-constrained retrievers:

LRULE=E(Q∗,S∗)∼PQ×STrain, K∼PΘRULEt(⋅∣Q∗)ℓRank(Q∗,S∗,K,{ΘRET−Kt+1}K∈K).(7)\mathcal{L}_{\mathrm{RULE}}=\mathbb{E}_{(Q^*,S^*)\sim P_{Q\times S}^{\mathrm{Train}},\ K\sim P_{\boldsymbol{\Theta}_{\mathrm{RULE}}^{t}}(\cdot\mid Q^*)}\ell_{\mathrm{Rank}}\left(Q^*,S^*,K,\{\boldsymbol{\Theta}_{\mathrm{RET-K}}^{t+1}\}_{K\in\mathcal{K}}\right). \tag*{(7)}

The ranking objective ℓRank\ell_{\mathrm{Rank}} is defined based on the retrieval rank of the ground-truth evidence. Given a training pair (Q∗,S∗)(Q^*,S^*) and a reasoning rule KK, the corresponding rule-constrained retriever ranks all candidate evidence in C(Q∗,K)C(Q^*,K) as in § 4.2. Let rank⁡(S∗∣Q∗,K)\operatorname{rank}(S^*\mid Q^*,K) denote the ranking position of the ground-truth evidence S∗S^* among these candidates. We convert this ranking position into a scalar retrieval reward using Reciprocal Rank: R(Q∗,S∗,K)=1rank⁡(S∗∣Q∗,K)R(Q^*,S^*,K)=\frac{1}{\operatorname{rank}(S^*\mid Q^*,K)}. Depending on the policy parameterization, ℓRank\ell_{\mathrm{Rank}} is optimized differently: classifier-based policies rank over all candidate rules, whereas generation-based policies optimize over sampled rollouts.

  • Classifier-based Rule Routing. For classifier-based policies, the model predicts a distribution over all candidate rules, allowing rewards to be evaluated for every K∈KK\in\mathcal{K}. We compute a rule-wise advantage A(Q∗,S∗,K)=R(Q∗,S∗,K)−1∣K∣∑K′∈KR(Q∗,S∗,K′)A(Q^*,S^*,K)=R(Q^*,S^*,K)-\frac{1}{|\mathcal{K}|}\sum_{K'\in\mathcal{K}}R(Q^*,S^*,K'), and optimize the expected advantage under the policy: ℓRank=∑K∈KPΘRULE(K∣Q∗)A(Q∗,S∗,K)\ell_{\mathrm{Rank}}=\sum_{K\in\mathcal{K}}P_{\boldsymbol{\Theta}_{\mathrm{RULE}}}(K\mid Q^*)A(Q^*,S^*,K).

  • Generation-based Rule Routing. For generation-based policies, evaluating all candidate rules is computationally prohibitive. Instead, we sample a rollout set {K1,…,KN}∼PΘRULE(⋅∣Q∗)\{K_1,\ldots,K_N\}\sim P_{\boldsymbol{\Theta}_{\mathrm{RULE}}}(\cdot\mid Q^*) and compute group-relative advantages from their Reciprocal Rank-based retrieval rewards. Following GRPO, the policy is optimized using ℓRank=1N∑i=1Nmin⁡(riAi,clip⁡(ri,1−ϵ,1+ϵ)Ai)\ell_{\mathrm{Rank}}=\frac{1}{N}\sum_{i=1}^{N}\min(r_iA_i,\operatorname{clip}(r_i,1-\epsilon,1+\epsilon)A_i), where rir_i is the policy ratio and AiA_i is the group-relative advantage.

Inference

At inference time, given a query QQ, the optimized rule routing policy first identifies the most probable reasoning rule. Conditioned on the selected rule, the corresponding rule-constrained retriever constructs a candidate evidence set C(Q,K∗)C(Q,K^*), assigns each candidate a rule-conditioned relevance score Φ(Q,Si,K∗)\Phi(Q,S_i,K^*), and returns the highest-ranked evidence:

K∗=arg⁡max⁡K∈KPΘRULE(K∣Q)S^=TopK⁡Si∈C(Q,K∗)Φ(Q,Si,K∗).(8)K^*=\arg\max_{K\in\mathcal{K}}P_{\boldsymbol{\Theta}_{\mathrm{RULE}}}(K\mid Q) \qquad \hat{S}=\operatorname{TopK}_{S_i\in C(Q,K^*)}\Phi(Q,S_i,K^*). \tag*{(8)}

The retrieved evidence set S^\hat{S} is subsequently provided to downstream task execution.

Experiment

This section aims to experimentally verify the effectiveness of CoRE. We first introduce experimental settings and then conduct experiments to answer the following questions:

  • § 5.2 - Q1: How does CoRE compare with existing structured retrieval methods?

  • § 5.3 - Q2: How do router adaptation and retriever adaptation affect the performance?

  • § 5.4 - Q3: Can the token-generation routing agents transfer learned routing knowledge across datasets and benefit from multi-domain pretraining?

  • § 5.5 - Q4: How do the routing agent and retrievers co-adapt across alternate rounds?

Experimental Setup

Datasets and evaluation. We evaluate on three StaRK-QA (Wu et al., [30]) datasets: AMAZON, MAG, and PRIME. We define 6, 8, and 65 rules by sampling all ordered entity-type sequences connected by dataset-schema-permitted relations in the traversal direction. Following our motivation, training uses only query–evidence pairs, while query-rule assignments remain latent and are inferred by the routing agent. We report Hits@1, Hits@5, Recall@20, and MRR.

Model variants. Following Section 4.1, we study three routing architectures: CoRE-BERT-C, which uses a BERT encoder and classification head; CoRE-LLM-C, which uses an LLM encoder and classification head; and CoRE-LLM-G, which generates rule selections as tokens. All variants use the same rule-constraining retriever design and undergo three alternate optimization rounds. The generation-based router is initialized from Qwen2.5-3B-Instruct and trained with eight sampled rollouts per query on four NVIDIA H200 GPUs.

Baselines. We compare against textual retrievers, including BM25 (Robertson et al., [25]), Ada (OpenAI, [22]), Multi-Ada (OpenAI, [22]), and DPR (Karpukhin et al., [14]); graph-based methods, including QAGNN (Yasunaga et al., [33]) and ToG (Sun et al., [27]); hybrid methods, including AvaTaR (Wu et al., [29]), KAR (Xia et al., [31]), MFAR (Li et al., [18]), HYBGRAG (Lee et al., [15]), and MoR (Lei et al., [16]); and agentic graph methods, including RoG (Luo et al., [19]), RoE (Han et al., [9]), and GraphDancer (Bai et al., [4]).

Further details, including model implementation and hyperparameter settings, are in Appendix § 9.1.

Q1-Main Results

Table 1 shows that CoRE-BERT-C achieves the strongest average performance.

CategoryRetrieval BaselineAMAZON H@1AMAZON H@5AMAZON R@20AMAZON MRRMAG H@1MAG H@5MAG R@20MAG MRRPRIME H@1PRIME H@5PRIME R@20PRIME MRRAVERAGE H@1AVERAGE H@5AVERAGE R@20AVERAGE MRR
TextualBM2540.6262.1850.8950.5923.1144.4744.0233.2311.9625.6728.3118.3525.2344.1141.0734.06
Ada39.1662.7353.2950.3529.0849.6148.3638.6212.6331.4936.0021.4126.9647.9445.8836.79
Multi-Ada40.0764.9855.1251.5525.9250.4350.8036.9415.1033.5638.0523.4927.0349.6647.9937.33
DPR15.2947.9344.4930.2010.5135.2342.1121.344.4621.8530.1312.3810.0935.0038.9121.31
GraphQAGNN26.5650.0152.0537.7512.8839.0146.9729.128.8521.3529.6314.7316.1036.7942.8827.20
ToG––––13.1616.1711.3014.186.0715.7113.0710.179.6215.9412.1812.18
HybridAvaTaR49.8769.1660.5758.7044.3659.6650.6351.1518.4436.7339.3126.7337.5655.1850.1745.53
KAR54.2068.7057.2461.2950.4769.5760.2858.6530.3549.3050.8139.2245.0162.5256.1153.05
MFAR*41.2070.0058.5054.2049.0069.6071.7058.2040.9062.8068.3051.2043.7067.4766.1754.53
HYBGRAG––––65.4075.3165.7069.8028.5641.3843.5834.4946.9858.3554.6452.15
MoR52.1974.6559.9262.2458.1978.3475.0167.1436.4160.0163.4846.9248.9371.0066.1458.77
AgenticRoG40.9362.7936.9649.2524.5245.3330.9335.0314.8722.4123.2819.3626.7743.5130.3934.55
RoE42.9064.1737.4250.9627.1846.6231.4137.7614.1833.8037.9323.6328.0948.2035.5937.45
GraphDancer46.2767.4365.9155.1829.3364.6766.9744.3618.6729.3344.5328.5431.4253.8159.1442.69
CoRE (Ours)BERT – C50.7176.1961.3962.4663.3787.7883.5174.1749.3476.4080.8161.2754.4780.1275.2465.97
LLM – C50.8375.5560.8562.2160.2483.0377.6471.5345.9774.1279.1858.5752.3577.5772.5664.10
LLM – G50.2673.2460.9258.6459.1482.3977.9269.2535.5455.8159.0144.9448.3170.4865.9557.61

Table 1. Retrieval performance on AMAZON, MAG, and PRIME, comparing baselines with CoRE-BERT-C, CoRE-LLM-C, and CoRE-LLM-G. Best and second-best results are bold and underlined, respectively.

  • Compared with textual and graph-based methods, all CoRE variants outperform the textual and graph-based baselines. These gains support using structural rule constraints for retrieval, particularly on MAG and PRIME, where textual matching alone performs poorly.

  • Compared with hybrid methods, CoRE-BERT-C outperforms MoR, achieving the highest average performance among evaluated hybrid methods. While MoR relies on LLM-generated constraints that may not align with downstream retrieval needs, CoRE learns rule routing directly from retrieval feedback. This advantage is more pronounced on PRIME, where its larger domain-specific rule space makes it harder for LLMs to select appropriate rules based on their general knowledge alone.

  • Compared with agentic graph methods, all CoRE variants achieve higher average scores than RoG, RoE, and GraphDancer. One explanation is that agentic methods rank evidence through step-by-step graph exploration based on intermediate node observations, whereas CoRE first constrains the search space with a reasoning rule and then ranks the fetched evidence using a rule retriever, which is more effective in these text-rich graphs.

  • Compared among CoRE variants, CoRE-BERT-C achieves the strongest average performance, followed by CoRE-LLM-C and CoRE-LLM-G. With the same classification head, BERT’s stronger results suggest that its sentence-level representation is better suited to rule routing in this setting. Both classification-based routers outperform generation-based routing on average, likely because they use reward feedback from all candidate rules rather than sampled rollouts. Limited rollouts provide less reward feedback and higher-variance gradient estimates, reducing training efficiency [6]. This limitation is most shown on PRIME, where eight rollouts per query cover only a small portion of its 65-rule space. Generation-based routing nevertheless supports cross-dataset transfer and multi-domain foundational pretraining, as in § 5.4.

Q2-Ablation Study of Co-Adapting Router and Retriever

Since CoRE co-adapts rule routing and rule-constrained retrieval, we ablate each adaptation direction in Table 2 and further examine their joint benefit in Appendix § 9.5 due to space limitations.

MethodAMAZON H@1AMAZON MRRMAG H@1MAG MRRPRIME H@1PRIME MRRAverage H@1Average MRR
CoRE-BERT-C50.7162.4663.3774.1749.3461.2754.4765.97
w/o Agent-Adapt (unadapted BERT)14.6319.8328.2335.055.158.1516.0021.01
w/o Agent-Adapt (GPT-5-mini)26.7032.7228.2331.874.146.6619.6923.75
w/o Retriever-Adapt (BM25-traversal)49.8761.4555.5165.4538.8649.7048.0858.87

Table 2. Ablation of routing agent and retriever adaptation. w/o Agent-Adapt fixes the router to a pre-trained or zero-shot model while continuing retriever training. w/o Retriever-Adapt replaces learned rule-constraining retrievers with fixed BM25-traversal scoring while continuing routing agent training. Best results are in bold.

Without routing agent adaptation. Replacing the learned routing agent with a fixed pre-trained BERT or zero-shot GPT-5-mini policy substantially reduces performance across all three datasets, despite continued retriever training. This suggests that poorly aligned query-rule assignments limit both rule routing quality and rule-constraining retriever specialization.

Without retriever adaptation. We replace the learned rule-constraining retrievers with fixed BM25-traversal scoring, ranking candidates under the selected rule by the mean query-node BM25 similarity along their traversal paths. This preserves the rule-constraining candidate space and BM25 relevance signals while removing learnable rule-conditioned scoring. The routing agent is still trained on the resulting retrieval rewards. Performance drops most on PRIME, followed by MAG and AMAZON. This aligns with the rule distributions in Figure 6: PRIME contains more diverse multi-hop rules that benefit from learning how to combine relevance signals across traversal steps, whereas the less-node-hop rules common on MAG and AMAZON rely largely on a few BM25 scores.

Rule-wise fractional oracle frequency across MAG, Amazon, and PRIME

Figure 6. Rule-wise fractional oracle frequency across MAG, Amazon, and PRIME. Each stacked bar decomposes a rule’s oracle credit into uniquely optimal (Unique) and tied-optimal (Tied) cases. For a kk-way tie, each optimal rule receives 1/k1/k credit, so the frequencies sum to 100% within each dataset.

Q3-Transferability of Generation-based Rule Routing

Unlike fixed classification heads, generation-based routers leverage LLMs to generate rules in the token space, enabling natural transfer to unseen rule sets across datasets. Therefore we examine whether CoRE-LLM-G transfers across datasets and further benefits from multi-domain pretraining.

Cross-dataset transfer. We independently train CoRE routers on AMAZON, MAG, and PRIME and evaluate each router across all three datasets. We report H@1 together with its improvement over an unadapted Qwen router, using the same trained retrievers for a controlled comparison. During cross-dataset transfer, only task description, graph schema, and candidate rules are replaced; the router remains fixed and is paired with target-domain retrievers. Figure 3 shows that all transferred routers outperform zero-shot Qwen, suggesting that retrieval-feedback training learns transferable mappings between query semantics and reasoning patterns rather than memorizing dataset-specific query-rule mappings.

Cross-dataset transfer H@1 of CoRE-LLM-G

Figure 3. Cross-dataset H@1 of CoRE-LLM-G. Parentheses show gains over zero-shot Qwen with trained retrievers.

Foundation routing agent. Motivated by the cross-dataset transfer results above, we next ask whether routing experience from different domains can be combined to build a stronger shared router. We use Qwen2.5-32B-Instruct in this study to provide greater model capacity for consolidating heterogeneous routing knowledge across multiple domains. We compare four settings: unadapt Qwen w. TR uses the base Qwen model without routing training; CoRE-LLM-G trains a separate router on each dataset; CoRE-LLM-G Pre jointly trains one router for one epoch on the combined AMAZON, MAG, and PRIME training sets and directly evaluates it on each dataset; Finally, CoRE-LLM-G Pre-FT further fine-tunes this shared router on each target dataset. All four settings use the same Qwen2.5-32B-Instruct backbone and the same trained retrievers for the corresponding evaluation dataset.

As shown in Figure 4, the jointly pretrained routing CoRE-LLM-G Pre consistently outperforms unadapt Qwen w. TR, indicating that retrieval feedback from different domains provides useful shared knowledge for rule selection. Its performance remains slightly below dataset-specific training CoRE-LLM-G, suggesting that each domain still has its own routing patterns that are difficult to capture through shared pretraining alone. However, once further fine-tuned on the target dataset, the CoRE-LLM-G Pre-FT achieves the best generation-based routing performance overall. These results suggest a natural pretrain-then-specialize paradigm: first learn general routing knowledge across domains, and then adapt it to the reasoning patterns of each target domain.

Figure 4. H@1 of CoRE-LLM-G under different training using Qwen2.5-32B-Instruct as the base router. Multi-domain pretraining followed by target-specific fine-tuning performs best.

Q4-Alternate Optimization Dynamics

Figure 5 shows clear co-adaptation across three rounds: router training sharply improves H@1 from about 21% to 58%, and the resulting assignments further boost the next retriever update above 62%. Later rounds provide smaller refinements as the two components approach convergence. The inset distributions show how the router differentiates candidate rules without query-rule supervision. Starting from a uniform distribution, after the Round 1 rule-routing training, the agent assigns the highest probability to IAP (institution→\toauthor→\topaper) and PAP (paper→\toauthor→\topaper), while nearly eliminating the longer IAPF (institution→\toauthor→\topaper→\tofield of study) and PAPF (paper→\toauthor→\topaper→\tofield of study) rules. By Round 3, IAP remains dominant, while more probability shifts toward PAP and PP (paper→\topaper). This indicates that the router identifies useful institution-, authorship-, and citation-based patterns and refines their use as the retrievers improve. This can also support a future direction toward automatic rule discovery as new datasets continually emerge, where high-reward rules guide rule expansion while consistently unused rules are pruned.

Optimization dynamics of CoRE-BERT-C on MAG

Figure 5. Optimization dynamics of CoRE-BERT-C on MAG. Each round alternates between retriever and router adaptation; the insets show the routing distributions before training and after Rounds 1 and 3.

A case study demonstrating that general LLMs struggle to identify the appropriate rules without explicit domain rule supervision is also provided in the Appendix C due to space limitations.

Conclusion

In this work, we study a novel problem of structured knowledge retrieval under rule-based constraints. We introduce CoRE, a structured knowledge retrieval framework that jointly learns rule routing and rule-constraining retrieval without explicit query-rule supervision. CoRE treats rule selection as a latent decision and employs alternating-based bi-level optimization to jointly specialize rule-constraining retrievers and optimize the routing agent through retrieval feedback. Experiments demonstrate that CoRE consistently outperforms existing baselines, while ablation studies confirm the complementary importance of routing-agent optimization and rule-constraining retriever adaptation. Analysis of the optimization dynamics further reveals how routing and retrieval progressively co-adapt through iterative feedback. These findings also motivate automatic rule refinement, where high-reward routing patterns guide the generation and adjustment of reasoning rules.

AI USE STATEMENT

In this work, we used generative AI tools to assist with manuscript review and language polishing. In particular, we leveraged generative AI to provide feedback following the ICLR review rubric, including identifying potential strengths and weaknesses, and used this feedback to further revise and improve the manuscript. We also used generative AI to assist with writing Python code for figure generation and visualization. We have carefully reviewed all AI-assisted content and take full responsibility for the final manuscript, including all text, claims, code, figures, and other artifacts produced with the aid of generative AI.

REPRODUCIBILITY

We provide the code and datasets necessary to reproduce the results shown in Figure 3, Figure 4, Figure 5 and Table 1, Table 2 in the GitHub repository: link. The repository contains the full CoRE implementation, data preprocessing pipelines, training and evaluation scripts, experiment configurations, hyperparameters, and scripts for reproducing the reported tables and figures.

Appendix

Experiment Setting Details

We provide additional implementation details for the rule-constraining retrievers and the three routing variants used in CoRE: BERT-C, LLM-C, and LLM-G. Unless otherwise specified, all variants use the same rule sets, retriever architecture, candidate construction, and evaluation protocol.

Rule Space and Candidate Retrieval. We construct rule sets from the schema of each STaRK-QA dataset, resulting in 6 rules for AMAZON, 8 for MAG, and 65 for PRIME. For each query–rule pair, graph traversal under the corresponding rule produces a candidate pool, from which up to 200 candidate entities are retained for ranking. Each rule is represented by a 384-dimensional embedding. At inference time, the router selects one rule, and only the corresponding rule-constraining retriever is used to rank candidates within the resulting structural search space.

Rule-constraining Retrievers. Each rule is associated with a lightweight retriever that scores candidates using the path-level relevance features introduced in § 4. The candidate feature vector and rule embedding are independently projected into 256-dimensional hidden representations and jointly mapped to a scalar relevance score. Retriever training uses pairwise ranking with one positive candidate and up to 200 negative candidates per query. We optimize the retrievers with AdamW using a learning rate of 5×10−55 \times10^{-5}, weight decay 0.01, and batch size 512. Each retriever is trained for at most 50 epochs, and the checkpoint with the best validation Hit@1 is retained.

The downstream supervision for router optimization is derived from rank of ground-truth evidence under each rule-constraining retriever. For query qq and rule kk, we define routing reward as reciprocal rank, R(q,k)=1/rank⁡(q,k)R(q,k) = 1/\operatorname{rank}(q,k), such that higher reward corresponds to better retrieval under selected rules. For queries with multiple correct entities, we use the best rank among correct answers.

BERT-C Router. The classification-based BERT router uses bert-base. Queries are tokenized to a maximum length of 128 tokens, and the final [CLS] representation is passed to a dataset-specific linear classification head over the candidate rules. Both the encoder and classification head are fine-tuned jointly. The router is trained with AdamW using batch size 256, learning rate 1×10−51 \times10^{-5}, and weight decay 0.01. For each query, the training target is the rule with the highest downstream retrieval reward, i.e., yq=arg⁡max⁡kR(q,k)y_q = \arg\max_k R(q,k).

LLM-C Router. The LLM classification router uses Qwen2.5-3B as the query encoder. Inputs are truncated to 256 tokens, and the final hidden state of the last non-padding token is passed to a linear rule-classification head. We adapt the LLM backbone using LoRA on the query, key, value, and output projection layers while training the classification head directly. We use a learning rate 1×10−51 \times10^{-5} for LoRA parameters, with LoRA rank 32 and scaling factor 64 for AMAZON and MAG; the selected PRIME configuration uses rank 16 and scaling factor 32. Training is performed in BF16.

Unlike BERT-C, which uses only the highest-reward rule as a hard target, LLM-C exploits the complete rule-wise reward vector. Let Rˉq\bar{R}_q denote the mean reward across candidate rules for query qq. The router is optimized using

LLLM−C=−1B∑q∑klog⁡pθ(k∣q)(R(q,k)−Rˉq)−γH[pθ(⋅∣q)].\mathcal{L}_{\mathrm{LLM-C}} = -\frac{1}{B}\sum_q \sum_k \log p_\theta(k \mid q)\left(R(q,k)-\bar{R}_q\right) - \gamma H\left[p_\theta(\cdot\mid q)\right].

Thus, rules with above-average retrieval rewards are promoted, while below-average rules are suppressed. The entropy regularization term encourages exploration over candidate rules during training. At inference time, the rule with the highest predicted probability is selected.

LLM-G Router. The generation-based router uses Qwen 2.5 3B and formulates rule selection as conditional generation. The input contains the task instruction, natural-language query, and textual descriptions of all candidate rules. The model generates a reasoning trace followed by a single rule identifier in the format <think> reasoning </think><answer> rule </answer>. The model is adapted with LoRA on the query, key, value, and output projections, using rank 32, scaling factor 64, and dropout 0.05.

The router is optimized with group-relative policy optimization (GRPO). For each query, we sample eight rule-selection trajectories and evaluate the selected rules using their corresponding frozen retrievers. The reward combines format correctness and downstream retrieval quality as R(q,y)=0.2Rformat(y)+R(q,k(y))R(q,y) = 0.2R_{\mathrm{format}}(y) + R(q,k(y)), where k(y)k(y) is the rule extracted from the generated response. Invalid rule identifiers receive no retrieval reward. We use BF16 training, a global prompt batch size of 32, eight generations per prompt, and three training epochs. The KL coefficient is 0.01, and generation uses temperature 0.9 during training. At inference time, decoding is deterministic and the selected rule is extracted from the <answer> field.

For the verified PRIME configuration, the generation-based router is additionally warm-started with supervised fine-tuning on filtered teacher demonstrations before GRPO. Demonstrations are retained only when they satisfy the required output format and select a rule whose retriever ranks a correct entity near the top of the candidate list. This warm-up primarily teaches the required generation format and provides an initial routing policy before optimization with downstream retrieval feedback.

Bi-Level Training. All CoRE variants are optimized for three bi-level rounds. Within each round, the routing policy is fixed while the rule-constraining retrievers are updated using the current query–rule assignments. The retrievers are then frozen, and their retrieval ranks provide the feedback used to update the routing policy. The updated router subsequently reassigns queries to rules for the next round. Both router and retriever parameters are warm-started from the preceding round rather than reinitialized, allowing routing and retrieval to progressively co-adapt.

Evaluation. For each query, the learned router selects a single reasoning rule, after which the corresponding rule-constraining retriever ranks the candidates reachable under that rule. We report Hit@1, Hit@5, Recall@20, and mean reciprocal rank (MRR). Classification-based routers select the highest-probability rule, while the generation-based router uses the rule identifier produced by deterministic greedy decoding.

Computational Resources. Experiments were conducted on a server equipped with four NVIDIA H200 NVL GPUs. Generative SFT and GRPO training use all four GPUs with distributed data parallelism, whereas rule-constraining retriever training and the discriminative routing models use a single GPU per run.

Oracle Rule Distribution Analysis

We analyze how frequently each retrieval rule is optimal under the trained round-1 rule-constraining retrievers. The MAG, Amazon, and PRIME datasets contain 8, 6, and 65 candidate rules, respectively.

For each query qq and rule rr, we compute the mean reciprocal rank over its ground-truth answers GqG_q as S(q,r)=1∣Gq∣∑a∈Gq1/rank⁡q,r(a)S(q,r) = \frac{1}{|G_q|} \sum_{a \in G_q} 1/\operatorname{rank}_{q,r}(a), where an answer absent from the top-200 candidates contributes zero. The oracle set Oq={r:S(q,r)=max⁡r′S(q,r′)}O_q = \{r : S(q,r) = \max_{r'} S(q,r')\} contains all rules achieving the best retrieval score for qq. A uniquely optimal rule receives full credit, while each rule in a kk-way tie receives 1/k1/k credit. We denote the resulting unique and tied frequencies by UrU_r and TrT_r, respectively, and define the total fractional oracle frequency as Fr=Ur+TrF_r = U_r + T_r. Thus, each query contributes total credit one and ∑rFr=1\sum_r F_r = 1 within each dataset.

Figure 6 reveals three characteristics of the rule space. First, oracle utility is highly query-dependent rather than concentrated on a single universally effective rule. MAG distributes most of its oracle credit among several citation-, authorship-, and institution-based paths, while Amazon exhibits an even broader balance across its smaller rule set. PRIME, despite containing substantially more candidate rules, concentrates useful retrieval behavior in only a subset of them, leaving many rules rarely selected by the oracle. Second, a substantial portion of oracle credit arises from ties, indicating overlap between the retrieval behaviors captured by different rules. This is particularly visible for several MAG and Amazon rules whose oracle contribution is dominated by tied cases. In PRIME, some rules receive oracle credit exclusively through ties: they match the best retrieval quality for certain queries but never provide a uniquely better result. Under the current experts and reward, such rules contribute little distinctive retrieval capability and may therefore be redundant with other rules. Finally, the combination of highly uneven usage and strong oracle overlap suggests that the predefined rule space may be over-complete. Rules with consistent unique oracle credit capture specialized retrieval patterns, whereas rules that are rarely optimal or only tied-optimal are natural candidates for consolidation or pruning. This analysis therefore not only motivates query-specific routing, but also suggests a direction for automatic rule-space refinement, where oracle utility and uniqueness can guide the retention, pruning, or merging of candidate rules.

Case Study

A central motivation of CoRE is that the reasoning rule for a query is latent and cannot be reliably inferred from query semantics alone. When explicit query–rule supervision is unavailable, a natural alternative is to induce rule labels with a strong LLM and train the router on these pseudo-labels. However, such labels are determined only from the query and rule descriptions. The LLM does not observe how each rule-constraining retriever is instantiated, which evidence it can reach, or how well it ranks the ground-truth evidence. As a result, a rule that is semantically plausible may not be the rule that works best for downstream retrieval.

Figure 7 examines this gap on MAG using GPT-5 as a strong semantic router. Figure 7(a) compares GPT-5-selected rules with the downstream oracle rule, defined as the rule whose trained retriever achieves the highest reward for each query. The off-diagonal mass reveals a clear mismatch between semantic routing and retrieval utility. We identify two representative patterns: semantic–retriever misalignment, where the LLM’s interpretation is reasonable but the corresponding retriever does not realize it effectively, and semantic mis-grounding, where the router itself maps the query to an inappropriate structural constraint. The former is more common; for example, the iapf→\toiap mismatch alone appears in 190 queries.

Case study of GPT-5 retrieval-rule routing failures on MAG

Figure 7. Case study of GPT-5 retrieval-rule routing failures on MAG. (a) Confusion matrix between GPT-5-selected rules and highest-reward oracle rules. (b) Semantic–retriever misalignment: GPT-5 selects the semantically plausible iapf rule, but the added field constraint is misgrounded by the retriever and prevents access to the ground-truth paper, while the broader iap path succeeds. (c) Semantic mis-grounding: GPT-5 treats the explicit field “Seiberg–Witten theory” as free-text content and selects p, whereas fp correctly grounds the field and narrows retrieval to structurally relevant papers.

Semantic–retriever misalignment. Figure 7(b) shows a query containing both an institution and a topical constraint. GPT-5 therefore selects the more specific iapf rule (institution →\to author →\to paper ←\leftarrow field of study), which is semantically reasonable. However, the field branch retrieves field nodes whose paper sets do not overlap with the institution-derived candidates containing the ground-truth papers. Consequently, no valid iapf path reaches the answers. In contrast, the broader iap rule (institution →\to author →\to paper) successfully retrieves the two ground-truth papers at ranks 2 and 4. The key issue is therefore not incorrect semantic interpretation, but a mismatch between semantic specificity and actual retriever capability: adding a seemingly relevant constraint can reduce coverage when that constraint cannot be grounded reliably.

Semantic mis-grounding. Figure 7(c) shows the complementary case where the routing decision itself is incorrect. The query explicitly mentions “Seiberg–Witten theory,” a valid field-of-study anchor, yet GPT-5 selects direct paper retrieval p and treats the term as ordinary text. Without the field-level structural signal, the ground-truth paper is buried among many topically similar papers and ranks 110th. The fp rule instead grounds the named theory to the corresponding field node and raises the paper to rank 7. This illustrates a genuine grounding error: the router fails to exploit a structural constraint that is both semantically justified and useful for retrieval.

These cases highlight why static LLM-induced query–rule labels are insufficient for learning a retrieval-oriented router. A good router must capture not only which rule sounds appropriate, but which rule works well with the available retrievers and knowledge graph. CoRE addresses this by making routing and retrieval mutually dependent: retriever performance provides the reward for optimizing the routing policy, while updated routing decisions determine the supervision used to specialize the retrievers. The resulting bi-level optimization directly aligns upstream rule selection with downstream retrieval effectiveness.

Different Training Strategies for Classification Router Agents

Motivated by the preceding case study, a natural question is whether the router can be trained more simply by treating the highest-reward rule as a pseudo-label. Since classification-based routing allows the retrieval reward of every candidate rule to be evaluated for each query, these rewards can either be converted into supervised targets or optimized directly. We therefore compare three training strategies while keeping the router architecture, retrievers, and co-adaptation procedure unchanged. Let rm=1/rank⁡(S∗∣Q,Km)r_m = 1/\operatorname{rank}(S^* \mid Q, K_m) denote the reciprocal ground-truth rank under rule KmK_m, and pm=Pθ(Km∣Q)p_m = P_\theta(K_m \mid Q) the router probability. (1) Hard-label SFT. We select the highest-reward rule m∗=arg max⁡mrmm^* = \operatorname*{arg\,max}_m r_m and optimize Lhard=−log⁡pm∗\mathcal{L}_{\mathrm{hard}} = -\log p_{m^*}. This retains only the current best rule and discards reward differences among the remaining rules. (2) Soft-label SFT. We convert the reciprocal-rank rewards into a soft target distribution qm=exp⁡(rm)/∑jexp⁡(rj)q_m = \exp(r_m) / \sum_j \exp(r_j) and optimize Lsoft=−∑mqmlog⁡pm\mathcal{L}_{\mathrm{soft}} = -\sum_m q_m \log p_m, preserving relative rule-level retrieval utility. (3) RLFT. Instead of converting rewards into fixed targets, RLFT directly maximizes expected retrieval utility, using advantages to reinforce above-average rules and suppress lower-reward ones.

As shown in Figure 8, performance improves consistently from hard-label SFT to soft-label SFT and further to RLFT across all retrieval metrics. This trend indicates that preserving richer rule-level reward information is more effective than collapsing it into a single pseudo-label, while directly optimizing retrieval utility provides an additional benefit over fitting a reward-derived target distribution.

Comparison of training strategies for the BERT-C router

Figure 8. Comparison of training strategies for the BERT-C router, averaged over AMAZON, MAG, and PRIME. RLFT consistently outperforms hard-label and soft-label SFT across all retrieval metrics.

The difference is also intuitive from their optimization signals. Hard-label SFT only distinguishes the highest-reward rule from all others, regardless of whether its advantage is marginal or substantial. In contrast, RLFT uses the relative retrieval advantage of each rule, producing small updates when rules perform similarly and stronger updates when their retrieval utilities differ substantially. It therefore preserves richer information from the reward landscape instead of reducing it to a binary winner-versus-non-winner signal.

This distinction is particularly important under co-adaptation, where router assignments determine the training data for each rule-constraining retriever. Overly confident early routing can prematurely concentrate supervision on a few rules, limiting the improvement of alternatives as retriever quality adapts. RLFT mitigates this by keeping preferences weak when reward differences are small and strengthening them only as retrieval advantages become clearer.

Extended Ablation Study

The main ablation in Table 2 shows that removing either router adaptation or retriever adaptation degrades performance. However, this result alone does not fully distinguish whether the gain comes from co-adaptation or simply from using stronger individual components. We therefore conduct two complementary studies that fix one component while varying the other. Together, they separate the effects of routing quality, retrieval quality, and their interaction. Unless otherwise noted, results are averaged over the three STaRK-QA datasets (AMAZON, MAG, and PRIME).

Fixing the Retriever, Varying the Router

We first isolate the routing effect by fixing the rule-constraining retriever to the one trained under CoRE-LLM-G and replacing only the router with three zero-shot general-purpose LLMs: Qwen3B, GPT-5-mini, and GPT-5. We compare these decoupled router substitutions against CoRE-LLM-G, whose router is optimized directly from retrieval feedback.

Figure 9 reveals a clear trend. Stronger general-purpose LLMs provide progressively better rule routing, indicating that general reasoning capability transfers to structured rule selection to some extent. However, the improvement saturates before reaching CoRE-LLM-G. Even GPT-5, despite being substantially stronger than the backbone used by CoRE-LLM-G, remains below the co-adaptively trained router on every retrieval metric. This gap highlights an important distinction between semantic rule plausibility and retrieval-effective rule selection. A general-purpose LLM can infer which rule appears appropriate from the query semantics, but it does not observe how well each rule is instantiated by the downstream retriever or how effectively that retriever ranks the ground-truth evidence. In contrast, CoRE directly optimizes the routing policy using retrieval outcomes from the paired retriever. As a result, the learned router is calibrated not only to the query, but also to the empirical utility of each rule under the current retrieval system.

Figure 9. Performance with a fixed trained retriever and different routers, averaged over AMAZON, MAG, and PRIME. Stronger zero-shot LLM routers improve retrieval, but CoRE-LLM-G remains best across all metrics, showing the benefit of retrieval-feedback-based router adaptation.

Thus, the gain from CoRE cannot be explained by simply replacing the router with a more capable off-the-shelf model. What matters is aligning routing decisions with downstream retrieval behavior through the closed feedback loop.

Fixing the Router, Varying the Retriever

We next study the complementary effect of retrieval quality. For each router policy (Qwen3B, GPT-5-mini, and GPT-5), we compare three retrieval strategies under the selected rule constraint: BM25-last, which scores candidates using only the terminal entity on the reasoning path; BM25-avg, which aggregates BM25 relevance across the full path; and Trained, the learnable rule-conditioned retriever used in CoRE. We additionally include plain BM25 over the full knowledge base as an unconstrained reference. Figure 10 shows two consistent trends. First, introducing a rule constraint produces the largest qualitative shift in performance. Even simple BM25-based scoring under a routed rule improves over unconstrained BM25, indicating that restricting retrieval to a structurally compatible candidate space is already highly beneficial. This supports the central premise of CoRE: identifying an appropriate reasoning rule is not merely an auxiliary classification problem, but directly determines which evidence can be reached.

Figure 10. Average Hit@1 across datasets under different router–retriever combinations. Rule-constraining retrieval consistently improves over unconstrained BM25, while stronger retrievers provide additional gains within the selected rule space. CoRE-LLM-G remains best overall.

Second, once the rule is fixed, retrieval quality still matters. For every router, performance consistently improves from BM25-last to BM25-avg and further to the trained retriever. This suggests that structural restriction and relevance ranking play complementary roles. The router narrows the search space according to the inferred reasoning pattern, while the retriever learns how to rank candidates within that space by exploiting relevance signals along the traversal path.

The gains from retriever improvement are generally smaller than the gains obtained from imposing the rule constraint itself, indicating that routing is the dominant source of improvement over fully unconstrained retrieval. Nevertheless, the consistent benefit of the trained retriever shows that rule selection alone is insufficient: after the correct structural region is identified, the model still benefits from learning how different path-level signals should be combined.

Importantly, the two axes remain complementary rather than substitutable. A stronger router continues to benefit from a stronger retriever, and a stronger retriever continues to benefit from better routing. Yet even the strongest decoupled combination does not match CoRE-LLM-G. This remaining gap is precisely what the co-adaptive objective is designed to address.

Taken together, the two studies clarify the source of CoRE’s improvement. Rule routing provides the primary structural advantage by determining the reachable evidence space; retriever adaptation refines ranking within that space; and co-adaptive optimization aligns the two so that routing decisions and retriever specialization reinforce each other. The benefit therefore does not arise from simply scaling either component in isolation.

Inference Time Efficiency Comparison

We further examine the inference efficiency of CoRE against the agentic graph reasoning method GraphDancer on MAG. We run each method on 1,000 questions and report the mean inference time per question, decomposed into routing / LLM generation and retrieval / tool execution costs.

As shown in Figure 11, a clear efficiency gap emerges between CoRE and step-wise agentic exploration. The classifier-based variants, CoRE-BERT-C and CoRE-LLM-C, introduce only negligible routing overhead, leaving rule-constrained retrieval as the dominant inference cost. Notably, their retrieval costs are nearly identical, indicating that changing the routing architecture has little effect on the downstream retrieval procedure once a rule has been selected.

Figure 11. Efficiency comparison on MAG in terms of mean inference time per question. We decompose the cost into routing/LLM generation and retrieval/tool execution. CoRE substantially reduces inference cost compared with step-wise agentic graph exploration, particularly when using classifier-based routing. The y-axis is shown on a logarithmic scale.

CoRE-LLM-G exhibits a different cost profile: its retrieval cost remains comparable to the classifier-based variants, while its routing cost increases substantially due to autoregressive rule generation. This suggests that the additional computational cost of generative routing is concentrated in the routing stage rather than in structured retrieval itself. Nevertheless, its overall inference cost remains substantially below that of GraphDancer.

In contrast, GraphDancer incurs high costs in both components. Its LLM generation cost reflects repeated reasoning over intermediate graph observations, while its tool-execution cost accumulates across multiple exploration steps. The resulting gap highlights a fundamental architectural difference: CoRE performs a single high-level routing decision and delegates subsequent structured search to a specialized rule-constraining retriever, whereas agentic exploration repeatedly interleaves reasoning and graph operations throughout the inference trajectory.

Overall, the results show that rule routing provides a computationally efficient alternative to iterative graph exploration. In particular, classifier-based CoRE achieves strong structured retrieval with minimal decision overhead, while generation-based routing trades additional inference cost for its ability to operate over transferable, tokenized rule representations.

Generation-Based Router Prompt

Generation Routing Agent Prompts

The generation-based router selects one rule from a dataset-specific candidate set. Each input consists of a natural-language query and a set of reasoning rules represented as schema-level traversal paths, such as Author →\to Paper and Gene/Protein →\to Target →\to Drug. We use the following prompt template across all datasets.

Generation-Based Routing Prompt

System Message

You are a {DOMAIN} knowledge graph retrieval rule selector. Given a query and a set of candidate rules, select the traversal path that best matches the query. Consider the target entity, anchor entity, relation semantics, and traversal direction. Select the simplest rule that fully captures the query.

Output Format

<think>[brief reasoning]</think>
<answer>[rule key]</answer>

User Message

Query: {QUERY}

Available retrieval rules:
{KEY_1}: {RULE_1}
{KEY_2}: {RULE_2}
...
{KEY_N}: {RULE_N}

Select the single best retrieval rule.

Here, {DOMAIN} denotes the dataset domain, {QUERY} denotes the input query, and each {KEY}: {RULE} pair specifies a valid output key and its corresponding traversal path. We extract the prediction from the <answer> field and regard it as valid only if it matches one of the provided rule keys. Table 3 summarizes the dataset-specific configurations.

STARK-AMAZONSTARK-MAGSTARK-PRIME
#entity types4410
#relation types5418
#entities1,035,5421,872,968129,375
#relations9,443,80239,802,1168,100,498
#tokens592,067,882212,602,57131,844,769
#queries9,18113,40711,302
train5,9157,9946,162
val1,5472,6652,241
test1,7192,7482,899
Rule KeysA–FA–HR00–R64
# Rules6865

Table 3. Statistics of the STaRK datasets, and generation-based routing configuration.

Dataset-Specific Candidate Rules

The candidate rule set for each dataset is listed below. Each rule defines the schema-level traversal used to constrain retrieval. PRIME contains a substantially larger candidate set. We therefore use a multi-page table to improve readability. Long traversal paths are automatically wrapped, preferentially around relation boundaries.

KeyTraversal Path
AProduct
BBrand →\to Product
CProduct →\to Product
DCategory →\to Product
EProduct →\to Category →\to Product
FProduct →\to Brand →\to Product

Table 4. Candidate retrieval rules for Amazon.

KeyTraversal Path
APaper
BAuthor →\to Paper
CPaper →\to Paper
DField of Study →\to Paper
EInstitution →\to Author →\to Paper
FPaper →\to Author →\to Paper
GInstitution →\to Author →\to Paper ←\leftarrow Field of Study
HPaper →\to Author →\to Paper ←\leftarrow Field of Study

Table 5. Candidate retrieval rules for MAG.

KeyTraversal Path
R00Anatomy →\to Expression Present →\to Gene/Protein
R01Anatomy →\to Expression Absent →\to Gene/Protein
R02Pathway →\to Interacts With →\to Gene/Protein →\to Expression Absent →\to Anatomy
R03Gene/Protein →\to Target →\to Drug
R04Disease →\to Associated With →\to Gene/Protein
R05Gene/Protein →\to PPI →\to Gene/Protein
R06Gene/Protein →\to Associated With →\to Disease
R07Disease →\to Parent-Child →\to Disease
R08Effect/Phenotype →\to Phenotype Present →\to Disease
R09Effect/Phenotype →\to Phenotype Absent →\to Disease
R10Disease →\to Contraindication →\to Drug
R11Gene/Protein →\to Expression Absent →\to Anatomy
R12Drug →\to Contraindication →\to Disease
KeyTraversal Path
R13Biological Process → Parent-Child → Biological Process → Interacts With → Gene/Protein → Expression Absent → Anatomy
R14Drug → Synergistic Interaction → Drug
R15Pathway → Parent-Child → Pathway
R16Drug → Off-Label Use → Disease
R17Molecular Function → Interacts With → Gene/Protein
R18Pathway → Interacts With → Gene/Protein
R19Cellular Component → Interacts With → Gene/Protein
R20Effect/Phenotype → Associated With → Gene/Protein → Expression Absent → Anatomy
R21Disease → Indication → Drug
R22Effect/Phenotype → Side Effect → Drug
R23Exposure → Linked To → Disease
R24Effect/Phenotype → Associated With → Gene/Protein
R25Gene/Protein → Expression Present → Anatomy
R26Drug → Indication → Disease
R27Gene/Protein → Interacts With → Pathway
R28Biological Process → Interacts With → Gene/Protein → Expression Absent → Anatomy
R29Drug → Synergistic Interaction → Drug → Transporter → Gene/Protein
R30Gene/Protein → Transporter → Drug
R31Biological Process → Interacts With → Gene/Protein
R32Gene/Protein → Interacts With → Cellular Component
R33Gene/Protein → Enzyme → Drug
R34Drug → Enzyme → Gene/Protein
R35Disease → Off-Label Use → Drug
R36Drug → Transporter → Gene/Protein → Interacts With → Exposure
R37Drug → Target → Gene/Protein → Interacts With → Cellular Component
R38Disease → Associated With → Gene/Protein → Expression Absent → Anatomy
R39Cellular Component → Interacts With → Gene/Protein → Expression Absent → Anatomy
R40Disease → Phenotype Present → Effect/Phenotype
R41Disease → Associated With → Gene/Protein → Target → Drug
R42Pathway → Interacts With → Gene/Protein → Interacts With → Biological Process
R43Disease → Parent-Child → Disease → Phenotype Present → Effect/Phenotype
KeyTraversal Path
R44Pathway → Interacts With → Gene/Protein → Target → Drug
R45Drug → Transporter → Gene/Protein → Expression Present → Anatomy
R46Gene/Protein → Associated With → Effect/Phenotype
R47Gene/Protein → Carrier → Drug
R48Gene/Protein → PPI → Gene/Protein → Interacts With → Pathway
R49Anatomy → Expression Present → Gene/Protein → Associated With → Disease
R50Cellular Component → Interacts With → Gene/Protein → Target → Drug
R51Biological Process → Interacts With → Gene/Protein → Interacts With → Pathway
R52Exposure → Interacts With → Gene/Protein
R53Drug → Target → Gene/Protein
R54Gene/Protein → Interacts With → Biological Process
R55Drug → Synergistic Interaction → Drug → Target → Gene/Protein
R56Molecular Function → Interacts With → Gene/Protein → Target → Drug
R57Biological Process → Parent-Child → Biological Process
R58Gene/Protein → Transporter → Drug → Side Effect → Effect/Phenotype
R59Effect/Phenotype → Phenotype Present → Disease → Associated With → Gene/Protein
R60Molecular Function → Interacts With → Gene/Protein → Expression Absent → Anatomy
R61Anatomy → Expression Present → Gene/Protein → Enzyme → Drug
R62Effect/Phenotype → Phenotype Present → Disease → Indication → Drug
R63Disease → Associated With → Gene/Protein → Interacts With → Pathway
R64Cellular Component → Interacts With → Gene/Protein → Interacts With → Pathway

Table 6. Candidate retrieval rules for PRIME.

References

  1. [1]Emre Can Acikgoz, Cheng Qian, Jonas Hübotter, Heng Ji, Dilek Hakkani-Tür, and Gokhan Tur. Tool-R0: Self-evolving LLM agents for tool-learning from zero data. arXiv preprint arXiv:2602.21320, 2026.arxiv.org/abs/2602.21320
  2. [2]Sören Auer, Allard Oelen, Muhammad Haris, Markus Stocker, Jennifer D’Souza, Kheir Eddine Farfar, Lars Vogt, Manuel Prinz, Vitalis Wiens, and Mohamad Yaser Jaradeh. Improving access to scientific literature with knowledge graphs. Bibliothek Forschung und Praxis, 44(3):516–529, 2020.DOI
  3. [3]Xiaoning Bai, Shangzhi Zeng, Jin Zhang, and Lezhi Zhang. Alternating gradient-type algorithm for bilevel optimization with inexact lower-level solutions via moreau envelope–based reformulation. SIAM Journal on Optimization, 36(1):350–380, 2026a.DOI
  4. [4]Yuyang Bai, Zhuofeng Li, Ping Nie, Jianwen Xie, and Yu Zhang. Graphdancer: Training llms to explore and reason over graphs via curriculum reinforcement learning. arXiv preprint arXiv:2602.02518, 2026b.arxiv.org/abs/2602.02518
  5. [5]Stephen Bonner, Ian P Barrett, Cheng Ye, Rowan Swiers, Ola Engkvist, Andreas Bender, Charles Tapley Hoyt, and William L Hamilton. A review of biomedical datasets relating to drug discovery: a knowledge graph perspective. Briefings in Bioinformatics, 23(6):bbac404, 2022.DOI
  6. [6]Ching-An Cheng, Xinyan Yan, and Byron Boots. Trajectory-wise control variates for variance reduction in policy gradient methods. In Conference on Robot Learning, pp. 1379–1394. PMLR, 2020.arxiv.org/abs/1908.03263
  7. [7]Felix Faltings, Wei Wei, and Yujia Bao. Enhancing retrieval systems with inference-time logical reasoning. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 2: Short Papers), pp. 449–463, 2025.
  8. [8]Tianqing Fang, Hongming Zhang, Zh isong Zhang, Kaixin Ma, Wenhao Yu, Haitao Mi, and Dong Yu. WebEvolver: Enhancing web agent self-improvement with co-evolving world model. In Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing, pp. 8959–8975. Association for Computational Linguistics, 2025. doi: 10.18653/v1/2025.emnlp-main.454.DOI
  9. [9]Haoyu Han, Kai Guo, Harry Shomer, Yu Wang, Yucheng Chu, Hang Li, Li Ma, and Jiliang Tang. Reasoning by exploration: A unified approach to retrieval and generation over graphs. In Proceedings of the ACM Web Conference 2026, pp. 2408–2418, 2026.arxiv.org/abs/2510.07484
  10. [10]Gaole He, Yunshi Lan, Jing Jiang, Wayne Xin Zhao, and Ji-Rong Wen. Improving multi-hop knowledge base question answering by learning intermediate supervision signals. In Proceedings of the 14th ACM international conference on web search and data mining, pp. 553–561, 2021. Preprint. Under review.DOI
  11. [11]Tom Hope, Jason Portenoy, Kishore Vasan, Jonathan Borchardt, Eric Horvitz, Daniel S Weld, Marti A Hearst, and Jevin West. Scisight: Combining faceted navigation and research group detection for covid-19 exploratory scientific search. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, pp. 135–143, 2020.arxiv.org/abs/2005.12668
  12. [12]Chengsong Huang, Wenhao Yu, Xiaoyang Wang, Hongming Zhang, Zongxia Li, Ruosen Li, Jiaxin Huang, Haitao Mi, and Dong Yu. R-zero: Self-evolving reasoning llm from zero data. In International Conference on Learning Representations, volume 2026, pp. 130770–130790, 2026.arxiv.org/abs/2508.05004
  13. [13]Pengcheng Jiang, Jiacheng Lin, Zhiyi Shi, Zifeng Wang, Luxi He, Yichen Wu, Ming Zhong, Peiyang Song, Qizheng Zhang, Heng Wang, et al. Adaptation of agentic ai. arXiv e-prints, pp. arXiv–2512, 2025.arxiv.org/abs/2512.16301
  14. [14]Vladimir Karpukhin, Barlas Oguz, Sewon Min, Patrick S. H. Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, and Wen-tau Yih. Dense passage retrieval for open-domain question answering. In EMNLP, 2020.arxiv.org/abs/2004.04906
  15. [15]Meng-Chieh Lee, Qi Zhu, Costas Mavromatis, Zhen Han, Soji Adeshina, Vassilis N Ioannidis, Huzefa Rangwala, and Christos Faloutsos. Hybgrag: Hybrid retrieval-augmented generation on textual and relational knowledge bases. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 879–893, 2025.arxiv.org/abs/2412.16311
  16. [16]Yongjia Lei, Haoyu Han, Ryan A Rossi, Franck Dernoncourt, Nedim Lipka, Mahantesh M Halappanavar, Jiliang Tang, and Yu Wang. Mixture of structural-and-textual retrieval over text-rich graph knowledge bases. In Findings of the Association for Computational Linguistics: ACL 2025, pp. 18306–18321, 2025.arxiv.org/abs/2502.20317
  17. [17]Jiaxi Li, Ke Deng, Yun Wang, Jingyuan Huang, Yucheng Shi, Qiaoyu Tan, Jin Lu, and Ninghao Liu. Online skill learning for web agents via state-grounded dynamic retrieval. arXiv preprint arXiv:2606.04391, 2026.
  18. [18]Millicent Li, Tongfei Chen, Benjamin Van Durme, and Patrick Xia. Multi-field adaptive retrieval. arXiv preprint arXiv:2410.20056, 2024.arxiv.org/abs/2410.20056
  19. [19]Linhao Luo, Yuan-Fang Li, Gholamreza Haffari, and Shirui Pan. Reasoning on graphs: Faithful and interpretable large language model reasoning. arXiv preprint arXiv:2310.01061, 2023.arxiv.org/abs/2310.01061
  20. [20]Maximilian Nickel, Kevin Murphy, Volker Tresp, and Evgeniy Gabrilovich. A review of relational machine learning for knowledge graphs. Proceedings of the IEEE, 104(1):11–33, 2015.DOI
  21. [21]Steven Noel, Deborah Bodeau, and Rosalie McQuaid. Big-data graph knowledge bases for cyber resilience. In Alexander Kott and Gabi Dreo Rodosek (eds.), Proceedings of the NATO IST-153/RWS-21 Workshop on Cyber Resilience, volume 2040 of CEUR Workshop Proceedings, pp. 6–21, Munich, Germany, 2017. CEUR-WS.org. URL https://ceur-ws.org/Vol-2040/paper2.pdf.
  22. [22]OpenAI. Openai embeddings api, 2023. [Software].
  23. [24]Vatsal Raina and Mark Gales. Question-based retrieval using atomic units for enterprise rag. In Proceedings of the Seventh Fact Extraction and VERification Workshop (FEVER), pp. 219–233, 2024.
  24. [25]Stephen Robertson, Hugo Zaragoza, et al. The probabilistic relevance framework: Bm25 and beyond. Foundations and Trends® in Information Retrieval, 3(4):333–389, 2009.
  25. [26]Apoorv Saxena, Aditya Tripathi, and Partha Talukdar. Improving multi-hop question answering over knowledge graphs using knowledge base embeddings. In Proceedings of the 58th annual meeting of the association for computational linguistics, pp. 4498–4507, 2020. Preprint. Under review.DOI
  26. [27]Jiashuo Sun, Chengjin Xu, Lumingyuan Tang, Saizhuo Wang, Chen Lin, Yeyun Gong, Lionel M Ni, Heung-Yeung Shum, and Jian Guo. Think-on-graph: Deep and responsible reasoning of large language model on knowledge graph. arXiv preprint arXiv:2307.07697, 2023.arxiv.org/abs/2307.07697
  27. [28]Davoud Ataee Tarzanagh, Parvin Nazari, Bojian Hou, Li Shen, and Laura Balzano. Online bilevel optimization: Regret analysis of online alternating gradient methods. In International Conference on Artificial Intelligence and Statistics, pp. 2854–2862. PMLR, 2024.
  28. [29]Shirley Wu, Shiyu Zhao, Qian Huang, Kexin Huang, Michihiro Yasunaga, Kaidi Cao, Vassilis N Ioannidis, Karthik Subbian, Jure Leskovec, and James Zou. Avatar: Optimizing llm agents for tool usage via contrastive reasoning. Advances in Neural Information Processing Systems, 37: 25981–26010, 2024a.arxiv.org/abs/2406.11200
  29. [30]Shirley Wu, Shiyu Zhao, Michihiro Yasunaga, Kexin Huang, Kaidi Cao, Qian Huang, Vassilis N Ioannidis, Karthik Subbian, James Zou, and Jure Leskovec. Stark: Benchmarking llm retrieval on textual and relational knowledge bases. Advances in Neural Information Processing Systems, 37: 127129–127153, 2024b.arxiv.org/abs/2404.13207
  30. [31]Yu Xia, Junda Wu, Sungchul Kim, Tong Yu, Ryan A Rossi, Haoliang Wang, and Julian McAuley. Knowledge-aware query expansion with large language models for textual and relational retrieval. In Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers), pp. 4275–4286, 2025.arxiv.org/abs/2410.13765
  31. [32]Shidong Yang, Ziyu Ma, Tongwen Huang, Yiming Hu, Yong Wang, and Xiangxiang Chu. CoEvolve: Training LLM agents via agent-data mutual evolution. In Proceedings of the 64th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 23015–23036. Association for Computational Linguistics, 2026. doi: 10.18653/v1/2026.acl-long.1055.DOI
  32. [33]Michihiro Yasunaga, Hongyu Ren, Antoine Bosselut, Percy Liang, and Jure Leskovec. 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, pp. 535–546, 2021.

AI tools statement

This work lists 2 AI tools.

  • generative AI tools · AI tool

    Roles
    Writing — review & editing
    Verification
    self-declared at submission
  • generative AI · AI tool

    Roles
    SoftwareVisualization
    Verification
    self-declared at submission

Recorded on the work at submission, not per version. Names and roles are shown as submitted; roles use the CRediT taxonomy.

How AI tools are recorded

Paper details

Cite this paper

Publication

Published
Version
Latest

Data & code

Code, data, proofs and workflows the authors linked for testing, review and reproduction. These links are part of this work’s metadata and are released under the same license as the rest of that metadata. Valency doesn’t host the files; each keeps the license set where it’s hosted.

Pick where to look, or just type