Introduction
While large language models (LLMs) have become remarkably adept at standardized mathematical tasks, they frequently struggle with linguistic puzzles where mathematical operations are "hidden" within words. For instance, understanding that the English word "twenty-three" implies the addition $20 + 3$ is a trivial task for humans but poses a significant challenge for LLMs when presented in unfamiliar contexts. This research investigates why even advanced reasoning models, such as OpenAI’s o1-mini, fail to infer these implicit compositional rules unless mathematical operators are made explicit using familiar symbols.
Methodology
The researchers developed a systematic framework to decouple linguistic features from mathematical logic. The approach utilized problems from the LingOly and Linguini benchmarks, representing diverse numeral systems (e.g., Georgian, Ndom, Umbu-Ungu) across various bases (5, 6, 8, 20, 24).
Key methodological steps included:
- Standardization: Real-world number words were replaced with "dummy words" (e.g., gbaifi) to prevent models from relying on memorized linguistic knowledge.
- Operator Manipulation: Four conditions were tested for presenting mathematical operations:
- Implicit: No operator (e.g., "A B").
- Explicit Familiar: Standard symbols (e.g., "A + B").
- Explicit Unfamiliar Symbol: Greek letters (e.g., "A $\alpha$ B").
- Explicit Unfamiliar Word: Random strings (e.g., "A xebrut B").
- Minimal-Pair Ablations: Synthetic problems were created to isolate specific parameters, such as numeral base or digit order (L→R vs. R→L), to identify specific failure points.
Key Insights: The Compositional Bottleneck
The study reveals that LLMs are highly sensitive to "mathematical triggers." The presence of a + sign significantly boosts performance, suggesting that models rely on token-level familiarity rather than an abstract understanding of operations.
As shown in the parameter analysis, advanced models like GPT-4 and o1-mini successfully handle individual "building blocks" of numeral systems, such as high-base systems or subtractive logic. Their failure is not rooted in the underlying mathematics but in the inference required to map linguistic patterns to those mathematical concepts. Humans use linguistic intuition to assume that adjacency in a number system implies a rule; LLMs appear to lack this fundamental notion of implicit numeral structure.
Results
The performance gap between explicit and implicit conditions is stark. In tests using single-character variables, o1-mini achieved nearly 100% accuracy when operators were explicit and familiar. However, in the implicit condition—which mirrors how natural language actually functions—accuracy plummeted to approximately 10%.
Furthermore, replacing the familiar + with an unfamiliar word like xebrut caused a significant drop in performance. This reinforces the hypothesis that models are triggered by specific symbols rather than the structural logic of the problem. Interestingly, providing context (like the numeral base) helped in implicit conditions but occasionally confused models in explicit conditions, leading to lower performance.
Conclusion
The research highlights a fundamental gap in LLM reasoning: the inability to perform compositional inference from limited linguistic data. While newer models have mastered the individual components of mathematical systems, they struggle to bridge the gap between language and math when the connection is implicit. Future work should explore whether reasoning-heavy fine-tuning can improve intuition for implicit structures and investigate the internal model "circuits" responsible for these distinct tasks.
Summary updated