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

Manuscript Offprint

arXiv:2608.26832

RuleWeaver: Benchmarking Rule-Centered Scenario Reasoning for Large Language Models

Bohan Yu, Shi-Yang Li, Pengfei Cao, 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) are increasingly applied to specialized domains, where effective use of domain expertise often requires reasoning over complex rules in concrete scenarios. However, existing benchmarks only partially evaluate this capability, as they either focus on output-level instruction constraints or overlook the distinct roles that rules play in scenario reasoning. To address these gaps, this paper introduces RuleWeaver, a benchmark construction framework for evaluating rule-centered scenario reasoning. RuleWeaver starts from corpus-derived IF-THEN Meta Rules, progressively augments them into complex rules, and composes these rules into rule-centered scenario QA instances. Beyond final-answer correctness, RuleWeaver further supports process-level evaluation through rubric-based answer quality, rule recall, and rule precision. Experiments on 11 representative LLMs show that current models still struggle with complex rule-centered scenario reasoning, with even the best-performing model achieving only around 50% of the maximum rubric score. We make our code and dataset available here: RuleWeaver.

1 Introduction

As large language models (LLMs) demonstrate strong capabilities in text understanding, reasoning, and generation (OpenAI et al., 2024; Zhao et al., 2026), applying them in specialized domains has become increasingly important and urgent. In such domains, it is essential to effectively leverage domain expertise, especially when this expertise is represented as explicit rules (Guha et al., 2023; Shen et al., 2024). For example, under a refund policy, a model may need to decide whether a customer can receive a refund by checking rules such as “items can be refunded within 7 days”, “opened items cannot be refunded”, and “defective items

Figure

Figure 1: Progressive rule construction: an example of transforming a WikiHow (Koupaee and Wang, 2018) Meta Rule into a complex rule through five-round semantic enhancement.

can still be refunded". This example illustrates that rules can play different roles in concrete scenarios, including setting conditions, imposing prohibitions, and specifying exceptions. In such contexts, effective model behavior requires more than producing plausible responses: models must identify rules relevant to a concrete scenario, apply them under stated constraints, and justify decisions through explicit rule-based reasoning. We refer to this capability as rule-centered scenario reasoning.

However, existing benchmarks, such as those for instruction following and logical reasoning, capture only part of this capability. In specific, instruction-following datasets (Jiang et al., 2024; Xu et al., 2024; Qin et al., 2024; Sun et al., 2025) evaluate whether models can understand constraints embedded in natural-language instructions, such as output format and content style. Although these constraints may be expressed in different ways, they primarily prescribe what outputs should be produced or presented rather than guide reasoning or decision-making processes. In contrast, logic-

  • Equal contribution.

†^{\dagger} Corresponding authors.

reasoning datasets (Saparov and He, 2023; Han et al., 2024; Parmar et al., 2024; Patel et al., 2024; Zhou et al., 2025; Qi et al., 2025) evaluate the capability required by rule-centered scenario reasoning under the condition that the relevant rules are provided in advance. However, they mainly evaluate whether models can derive conclusions from the given rules, without sufficiently distinguishing the different roles that rules may play in realistic scenarios, such as exceptions, conflicts, or priorities. Consequently, current benchmarks provide limited support for evaluating whether LLMs can identify relevant rules, understand their roles and dependencies, and apply them to answer questions grounded in concrete scenarios.

To address these gaps, this paper introduces RuleWeaver, a benchmark construction framework for evaluating LLMs on complex rule-centered scenario reasoning. The basic idea is to address two challenges: (1) building fine-grained rules with different roles, and (2) generating concrete scenarios that require those rules to be identified and applied. Specifically, for the first challenge, RuleWeaver starts from Meta Rules, defined as atomic IF-THEN rules with a single condition and a single outcome, extracted from diverse real-world corpora spanning policy reports, procedural guides, contractual clauses, and narrative contexts. This design ensures that the Meta Rules are derived from naturally occurring rule expressions across different domains. RuleWeaver then progressively augments each Meta Rule into a rule group of complex variants through six semantic types: ABSTRACT, ADDITIVE, and NEGATE capture underspecification, supplementary constraints, and semantic reversal, while EXCEPTION, CONFLICT, and IRONCLAD introduce applicability changes, incompatible implications, and priority constraints. It enables fine-grained evaluation of whether models can understand and distinguish different rules. Figure 1 illustrates one such augmentation path: starting from a Meta Rule (R0), RuleWeaver applies sequential semantic enhancements to produce a complex rule (R5), with each step modifying the condition side, the outcome side, or both.

To address the second challenge, RuleWeaver converts the aforementioned rule groups into rule-centered scenario QA instances spanning seven predefined question types. Each instance is built around five relevant complex rules sampled from distinct rule groups under either same-source or cross-source settings. The construction mainly includes four stages: (1) dependency planning selects the target question type and builds a rule dependency graph that specifies the rule applied at each reasoning step; (2) sub-scenario generation instantiates each planned step as a local scenario fragment with the facts needed to trigger the corresponding rule; (3) final synthesis merges sub-scenarios into a coherent scenario with a final question and reference outputs, including rule application annotations, a rule logic chain, and an instance-specific rubric; and (4) iterative quality review checks structural validity, rule coverage, information leakage, and dependency consistency. This process ensures that the QA instances are rule-centered, with each scenario grounded in rule applications and rule-dependency chains. Overall, RuleWeaver constructs 200 rule groups covering six semantic types and 96 scenario QA instances spanning seven question types.

For evaluation, RuleWeaver goes beyond final-answer correctness by using process annotations and instance-specific rubrics. Rule recall and rule precision measure whether models can identify relevant rules and apply them correctly, while rubrics assess answer quality across multiple dimensions of rule-centered scenario reasoning. Under this protocol, we evaluate 11 representative LLMs. The best rubric scores reach only 53.83 in the same-source setting and 50.27 in the cross-source setting, while the weakest rubric dimension achieves only a 14.2% normalized score, revealing a clear gap between current LLM capabilities and reliable rule-centered scenario reasoning. Further analyses show that models often fail not only to identify all relevant rules, but also to apply them correctly and track dependencies among rule applications.

Our contributions are twofold:

• This paper introduces RuleWeaver, a benchmark construction framework for evaluating rule-centered scenario reasoning. It builds fine-grained complex rules from corpus-derived Meta Rules and composes them into rule-centered scenario QA instances.

• RuleWeaver supports process-level evaluation through rubric-based answer quality, rule recall, and rule precision, revealing key weaknesses in LLMs’ rule-centered scenario reasoning capabilities.

DatasetCorpus-Derived RulesSemantic Rule TypingRule-Centered Scenario QA with Process-Level ScoringMulti-Source / Cross-Domain Composition
Instruction-Following Benchmarks
IFEval (Zhou et al., 2023)✕✕✕✕
WizardLM (Xu et al., 2024)✕✕✕✕
InfoBench (Qin et al., 2024)✕✕✕✕
FollowBench (Jiang et al., 2024)✕✕✕✕
ComplexBench (Wen et al., 2024)✕✕✕✕
Logic-Reasoning Benchmarks
RuleTaker (Clark et al., 2020)✕✕⊖✕
AR-LSAT (Zhong et al., 2021)⊖⊖✕✕
ProofWriter (Tafjord et al., 2021)✕⊖⊖✕
PrOntoQA (Saparov and He, 2023)✕⊖⊖✕
FOLIO (Han et al., 2024)✕⊖✕✕
LogicBench (Parmar et al., 2024)✕⊖⊖✕
Multi-LogiEval (Patel et al., 2024)✕⊖⊖✕
RuleArena (Zhou et al., 2025)✓✕✓⊖
ProverQA (Qi et al., 2025)✕⊖⊖✕
RuleWeaver (Ours)✓✓✓✓

Figure

Table 1: Left: comparison of RuleWeaver with instruction-following and logical reasoning benchmarks across core evaluation dimensions. √: support; ⊖: partial support; ✕: unsupported. Right: distribution of the 200 complex rule groups and 96 scenario QA instances. Detailed rule-source and QA-type distributions are provided in Appendices A.1 and A.2, respectively, with question-type descriptions in Appendix B.4.

References (5)

  • {rule_example_low_info}
  • Note that the mere presence of a specific entity name does not, by itself, warrant exclusion
  • should_filter
  • Use only relevant listed rules; do not invent rule IDs or use unlisted rules
  • Required output: