Beyond Factual Knowledge: Benchmarking and Learning Step-Level Procedural Rule Reasoning in Large Language Models
This paper introduces RuleWorld, a large-scale benchmark for evaluating step-level procedural rule reasoning, and proposes DynaRule, an end-to-end framework that significantly improves LLM performance on complex multi-step reasoning tasks by dynamically injecting and re-attending to rules within the KV cache.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Large language models are the engines behind a new generation of artificial intelligence, capable of writing stories, solving math problems, and translating languages with startling fluency. They work by absorbing vast amounts of text, learning the statistical patterns of how words fit together to form meaning. For years, researchers have tested these models on their ability to recall facts, like knowing that Paris is the capital of France. But there is a different kind of knowledge that is just as vital for real-world thinking: procedural knowledge. This is not about knowing what is true, but knowing how to act or reason based on a set of instructions. Imagine a lawyer who must apply a specific, complex set of laws to a new case, or a doctor following a detailed protocol to diagnose a rare condition. In these situations, the answer isn't stored in memory; it must be found, selected, and applied step-by-step from a large, external rulebook. The question facing the field is whether these powerful models can truly learn to do this, or if they simply pretend to understand the rules while relying on their internal guesses.
To answer this, a team of researchers created a massive testing ground called RuleWorld. Instead of giving the models a few rules to solve a single puzzle, they built a library containing nearly five million abstract rules. These rules are deliberately strange and unrelated to everyday life, such as "if a creature enters a forest, it catches fire," to ensure the models cannot use their own internal knowledge. The rules are written in two ways: as formal logical statements and as plain English sentences. The researchers then designed three types of challenges to test the models. The first was simple: find one rule to answer a question. The second was more complex: answer several questions at once, each requiring different rules. The third was the hardest: solve a chain of problems where the answer to the first step becomes the starting point for the next, requiring the model to track its progress through a long sequence of logical steps.
When they tested existing models on this new benchmark, the results were stark. Even the most advanced models struggled when the number of available rules grew large. When forced to choose from a pool of thousands of rules, they often grabbed the wrong ones or got lost in the middle of a multi-step chain. Standard methods that try to help models by searching for relevant text before answering proved brittle; they would find the right rule for the first step but fail to update their search for the second, leading to a cascade of errors. The models were essentially trying to hold the entire rulebook in their heads at once, a task that overwhelmed their capacity to focus on what mattered at each specific moment.
To solve this, the researchers developed a new system called DynaRule. Instead of treating the rules as a static list to be read once, DynaRule teaches the model to treat the rules as a dynamic resource that it can reach into and update as it thinks. The system works by embedding the rules directly into the model's internal memory structure, a process that allows the model to access them without slowing down. Crucially, the model is trained to recognize when it needs to switch gears. It learns to emit a special internal signal, a mental "search" command, whenever it finishes one step of reasoning and needs to find the next rule. When this signal fires, the model instantly re-evaluates the entire library of rules, discarding the ones it used previously and focusing its attention on the new set of rules required for the current step. This turns the act of finding a rule from a one-time search into a continuous, learnable process that evolves with the reasoning chain.
The results of this approach were significant. On the RuleWorld benchmark, DynaRule consistently outperformed all other methods, including those using powerful external search tools. When faced with a pool of ten thousand rules, the new system maintained a high level of accuracy, correctly identifying the right rule more than eighty-five percent of the time on the first try, while other methods saw their performance collapse. In tasks requiring multiple steps, DynaRule improved the average accuracy by nearly twenty points compared to the best existing alternatives. The system proved that by teaching a model to actively manage its own attention to a large set of instructions, it could reliably navigate complex logical landscapes. The researchers found that the model did not simply memorize the rules; it learned a general method for locating and applying them, even when tested on rules it had never seen before. This suggests that the gap between a model's vast internal knowledge and its ability to follow external instructions can be bridged, provided the model is given a way to dynamically update its focus as the task unfolds.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.