arXiv(opens in a new tab)cs.CLAug 2026Cited by 3 papers on PaperVantage

Manuscript Offprint

arXiv:2608.22753

Beyond Factual Knowledge: Benchmarking and Learning Step-Level Procedural Rule Reasoning in Large Language Models

Bohan Yu, Pengfei Cao, Chen Han, Chenxi Zhou, Zhiheng Zhang, Zhiyang Xie, Wenhao Teng, Xiangwen Liao, Jun Zhao, Kang Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language models (LLMs) excel at text understanding and generation, yet still struggle to reliably understand and apply externally provided procedural rules at scale. To evaluate this capability, we introduce RuleWorld, a large-scale benchmark that reformulates rules as globally reusable abstract units rather than instance-specific facts. In RuleWorld, several scenarios, including single-rule, parallel multi-rule, and multi-hop reasoning, are settled for comprehensive evaluation. We further propose DynaRule, an end-to-end framework that injects the given rules into the KV cache and turns retrieval into an internal, learnable, stepwise process. Specifically, DynaRule employs Stacked Step-Level Attention Training with a special <search> token to enable dynamic rule re-attention and updating during inference. In this way, the model can re-attend to the most relevant rules at each step, dynamically replacing outdated ones to support more stable multi-step reasoning. Experiments on RuleWorld show that existing LLMs face challenges under large rule pools, while DynaRule improves average QA accuracy by up to 19 points and achieves over 85% Recall@1 at 10K rules, outperforming strong baselines by large margins. We make our code and dataset available here: Beyond-Factual-Knowledge.

1 Introduction

Large language models (LLMs) excel at text understanding, analysis, and generation (OpenAI et al., 2024; Zhao et al., 2026), motivating a substantial body of work that evaluates their knowledge capabilities (Petroni et al., 2019; Lin et al., 2022; Huang and Chang, 2023). However, these evaluations primarily emphasize the capabilities of understanding

Figure

Figure 1: Illustration of rule examples and RuleWorld QA types. Rules from different types may interact, and the benchmark includes three QA types: single-rule, parallel multi-rule, and multi-hop reasoning.

and applying factual knowledge, while often ignoring procedural knowledge, i.e., knowledge of how to act or reason. In realistic settings, procedural knowledge is maintained as a large repository of reusable procedural entries (e.g., policies, guidelines, or rules), requiring models to localize and compose the relevant items across reasoning steps. In this paper, we focus on rules as a concrete and widely used form of procedural knowledge. To evaluate related capabilities of LLMs on rules, existing benchmarks (Sun et al., 2024b; Han et al., 2024; Qi et al., 2025) typically provide the relevant rules directly as problem-specific premises in each reasoning instance. This design reduces reusable procedural rules to per-question hints and thus ignores the shared nature of rule knowledge across QA instances. As a result, they obscure whether a model can (i) identify the correct reusable rules from a large, shared rule repository for a query and (ii) apply them reliably in multi-step reasoning.

To specifically evaluate whether LLMs could correctly localize and apply rules from large-scale injected rule repository according to the given query, this paper constructs RuleWorld, a benchmark designed to measure the rule utilization capability of LLMs. RuleWorld comprises 4.94 million externally provided procedural rules that are ab-

∗^{*} Corresponding authors.

struct, non-commonsense, and entity-independent, which prevents models from relying on internalized knowledge. For instance, a rule like “if X is happy, then X will go to the forest” leaves X unspecified, requiring the model to ground the placeholder to the query before applying the rule. Consequently, strong performance requires selecting a small subset of relevant rules from a large rule set and executing them correctly during reasoning. In RuleWorld, the rules are organized into four major types (Attributes, Environments, Actions, and States) with seven subtypes, available in both first-order logic (FOL) and natural-language (NL) forms. Crucially, RuleWorld is compositional by design: a rule’s conclusion can become the premise of other rules, yielding cross-type interactions (e.g., an Action can change the Environment and cause downstream changes; Figure 1, left) that pose realistic challenges for rule localization and utilization during reasoning. To systematically assess these capabilities, we define three QA types that capture distinct modes of rule utilization (Figure 1, right). Single-Rule QA requires applying exactly one rule to answer a question, providing a basic test of rule grounding and application. Parallel Multi-Rule QA involves several sub-questions in one instance. Each sub-question is an independent, non-sequential step that may require multiple rules. The model solves these steps separately, then aggregates the sub-answers into a combined final answer (up to eight gold rules per instance). Multi-Hop Rule QA requires chaining reasoning steps, where each hop may involve applying multiple rules, and earlier conclusions become later premises, requiring the model to track intermediate states across the chain (up to four hops). Together, they form eleven sub-tasks by varying the number of gold rules and the number of hops, progressively increasing the difficulty of rule localization and application.

Through detailed evaluations on RuleWorld, we find that there are two major challenges for current LLMs to effectively leverage large injected rule sets. (i) Injected rules are highly abstract and thus weakly match question surface forms, making both rule retrieval and utilization brittle at scale. (ii) The ability of step-wise rule utilization is required under both parallel aggregation and multi-hop state tracking, where the target rules change across steps, making retrieval and reasoning unstable. Existing methods such as retrieval-augmented generation (RAG) (Lewis et al., 2020) are sensitive to retrieval quality and prone to semantic mismatch, while internal injection (Wang et al., 2025; Yu et al., 2026) often exhibits unstable rule selection at scale and degrades substantially in multi-step reasoning.

To this end, we introduce DynaRule, which conducts dynamic rule selection and updating entirely within the model's internal space. Inspired by recent work that treats attention as key-value association (Wang et al., 2025; Yu et al., 2026), external rules are encoded with a pretrained sentence encoder, aligned via single-layer adapters, and directly injected into the LLMs' KV cache. In specific, DynaRule is trained in two stages. First, we identify the model's confidence layer as the layer at which attention entropy over injected rules is minimized, indicating the most decisive focus on a small set of relevant rules while suppressing irrelevant ones. Second, we perform Stacked Step-Level Attention Training on this layer by introducing a special <search> token, which guides attention to the rules required at each reasoning step and turns retrieval into an internal, learnable process. During inference, emitting <search> triggers rule reattention and re-retrieval, replacing outdated rule entries in the KV cache with newly selected ones. This design internally aligns abstract rule selection with step-wise decoding via <search>-triggered re-attention, stabilizing retrieval and reasoning as the target rules change across steps.

Comprehensive experiments demonstrate that RuleWorld poses substantial challenges to existing LLMs (e.g., DeepSeek V3.2 (DeepSeek-AI et al., 2025)) and GPT-5.5 (OpenAI, 2026). DynaRule consistently outperforms all baselines across diverse rule injection settings, improving average QA accuracy by up to 19 points and achieving gains of up to 48 points on specific sub-tasks. It also achieves over 90% Recall@10 and over 85% Recall@1 at 10K rules, surpassing the strongest baseline by more than 60 points. These results show that step-level dynamic integration can identify the relevant procedural rules at each step and reliably leverage them during reasoning.

Our contributions are two-fold:

• We introduce RuleWorld, a large-scale benchmark containing millions of abstract procedural rules in FOL and NL, covering four types, seven sub-types, and eleven QA sub-tasks for evaluating rule-application ability.

• We propose DynaRule, an end-to-end rule integration framework with learnable retrieval that injects external rules into the KV cache and uses <search>-driven step-wise attention to select and update rules, yielding large gains in QA and retrieval accuracy and enabling more reliable procedural reasoning.

References (7)

  • \ \text{Big_fox(A)} \ implies \text{Has(Ashen_frost, 7)} \] - So, initially, the Big Fox has 7 Ashen Frosts
  • It only affects Forbidden Voids
  • - After gaining a celestial fin, it gains 2 more crimson essences
  • If A is a medium duck, it has **10 muddy livers**
  • If A believes B, B will enter royal court
  • If A is in royal court, A will be severely depressed
  • If A is severely depressed, A will get 2 eternal souls