Introduction
Large Language Models (LLMs) are increasingly deployed for complex tasks such as trip planning, scientific protocol explanation, and code generation. However, their ability to maintain a consistent internal state and track the logical "flow" of information through procedural text remains under-explored. While existing benchmarks focus on isolated reasoning steps, real-world procedural tasks—like following a recipe or navigating a travel route—require a holistic understanding of entity transformations, temporal constraints, and step dependencies.
This paper introduces FABLE, a benchmark designed to evaluate LLMs through the lens of classical software engineering "data-flow analysis." By treating procedural text as a program written in natural language, FABLE provides a systematic framework to measure how well models track the state and movement of data across complex instructions.
Methodology: Adapting Compiler Theory to Natural Language
The core innovation of FABLE is the adaptation of eight classical data-flow analyses used in compiler design to the domain of procedural text. These analyses include:
- Reaching Definitions & Available Expressions: Tracking if an entity's state or a previously computed result remains valid for future use.
- Live Variable & Very Busy Expressions: Determining if an entity is required for future steps or must be consumed across all execution paths.
- Interval Analysis: Monitoring numeric ranges such as time, temperature, or quantity.
- Type-State Analysis: Ensuring entities undergo valid state transitions (e.g., a file must be opened before it is read).
- Taint & Concurrency Analysis: Identifying how undesirable inputs influence steps and determining which operations can be safely executed in parallel.
The researchers developed a pipeline that parses raw data into Entity-Flow Graphs. These graphs serve as the ground truth for generating 2,400 diagnostic question-answer pairs across three domains: Cooking Recipes, Travel Routes, and Automated Plans.
Experimental Results and Discussion
The evaluation compared three 8-billion parameter models: deepseek-r1:8b (reasoning-focused), llama3.1:8b (general-purpose), and granite-code:8b (code-specific).
The Performance Gap
The results revealed a significant performance disparity. While the reasoning-focused model (deepseek-r1) achieved over 80% accuracy, general-purpose and code-specific models often struggled to outperform a random baseline (50% for binary tasks). Notably, the code-specific model did not demonstrate a significant advantage in tracking data-flow logic in natural language, suggesting that proficiency in programming syntax does not inherently translate to procedural reasoning in English.
Key Insights
- The "Reasoning Tax": High accuracy comes at a computational cost.
deepseek-r1was approximately 20 times slower than its counterparts, highlighting a trade-off between logical depth and inference speed. - The Interval Wall: Tracking numeric bounds (Interval Analysis) proved to be the most difficult task for all models. In the Travel Routes domain, non-reasoning models achieved near 0% accuracy on these tasks, indicating a reliance on pattern matching over abstract numerical reasoning.
- Domain Sensitivity: Models performed best on recipes, likely due to the high prevalence of such data in training sets. This suggests that some performance may be attributed to "surface-form alignment" rather than true logical deduction.
Conclusion
FABLE highlights a critical gap in current LLM capabilities: the ability to robustly track the flow of data through procedural instructions. While specialized reasoning models show promise, they are computationally expensive, and standard models remain unreliable for complex logic like concurrency or numeric constraint satisfaction. Future work will explore expanding FABLE to scientific and legal domains and incorporating Chain-of-Thought prompting to better understand the failure modes of these models.
Summary updated