Introduction
Solving Math Story Problems (MSPs) is a hallmark of human reasoning, requiring the construction of a mental model that tracks entities, their quantities, and the relationships between them. While Large Language Models (LLMs) have shown impressive performance on standard benchmarks, their reliance on "shallow heuristics"—statistical shortcuts based on keywords—often masks a lack of true situational understanding. To address this, researchers have introduced MATHWORLD, a semantic formalism that represents the underlying "world" of a math story problem as a directed graph.
The MATHWORLD Formalism
MATHWORLD moves beyond simple equation generation by mapping stories into structured representations. The framework consists of two primary components:
- Containers (Nodes): These represent an entity's state at a specific point in time, capturing the entity type, quantity, and attributes (e.g., "Will" has "83 dollars").
- Relations (Edges): These define the mathematical interactions between containers. MATHWORLD identifies four core relation types: Transfer (moving quantities), Rate (relationships between different entities), Comparison (relative quantities), and Part-Whole (subsets forming a total).
A key advantage of MATHWORLD is its grounding in First-Order Logic (FOL). Every graph can be converted into a set of logical axioms, enabling deterministic reasoning. This allows for a two-step solver pipeline: a parser that extracts the world model from text and a reasoner that traverses the graph to compute the final answer.
Comparative Scope
Compared to previous semantic representations for math problems, MATHWORLD offers broader arithmetic and conceptual coverage. It is the first to combine full arithmetic support (+, -, ×, ÷) with a world model that maps directly to formal logic.
Dataset and Annotation
To evaluate this framework, the authors developed a high-quality annotated corpus derived from three major benchmarks: MAWPS, ASDIV-A, and SVAMP. The resulting dataset includes 1,019 problems annotated with 3,204 logical forms, providing a ground-truth world model for every sentence in the story. This granular annotation allows researchers to probe a model's understanding at any intermediate step of the problem.
Probing LLM Understanding
The study reveals a significant "illusion of understanding" in current LLMs. Even when models like GPT-3 correctly identify the final answer, they often fail to answer intermediate "world-probing" questions—such as the state of a container after a single transfer—correctly. In fact, intermediate accuracy was found to be only around 64% for problems where the final answer was correct.
However, the structured nature of MATHWORLD can be used to improve performance. By generating synthetic sub-questions based on the graph (e.g., "How much money did Will have left after the first transaction?"), the authors could guide the LLM through the story. This sentence-by-sentence prompting increased GPT-3's accuracy from 71.3% to 78.6%.
Conclusion and Future Directions
MATHWORLD demonstrates that building a structured world model is a significantly harder task for LLMs than simply predicting an equation. While current parsers struggle to generate complete world models (achieving only 33-50% completeness), the framework provides a vital tool for diagnosing model failures and building more interpretable reasoning agents. Future work will focus on expanding the formalism to handle logic puzzles, negation, and inequalities, as well as developing specialized parsers for robust world-model extraction.
Summary updated