TL;DR
When a Large Language Model (LLM) fails a math problem, standard benchmarks can't tell you why. This paper introduces a fully automated, nine-dimension framework to isolate specific algebraic failure modes, revealing that working memory acts as a hard, scale-invariant architectural bottleneck across all model sizes.
What Problem Does This Paper Address?
Standard mathematical reasoning benchmarks (like GSM8K or MATH) collapse all dimensions of difficulty into a single aggregate accuracy score. If a model gets a problem wrong, it is impossible to determine if the failure was caused by deeply nested expressions, large numeric magnitudes, unfamiliar operators, or long sequential reasoning chains. Furthermore, static benchmarks quickly saturate as models improve.
The authors address this gap by decoupling these confounding variables under strict experimental control, allowing researchers to diagnose the exact structural limits of LLM algebraic reasoning.
Methods
The authors developed a fully automated, parametric generation and verification pipeline:
- Dimension Isolation: The pipeline varies exactly one complexity dimension at a time while holding the other eight fixed at their minimum values.
- Polish Prefix Notation: Problems are initially generated in prefix notation to make structural properties like tree depth and token count directly readable, before being converted to standard ASCII infix for the LLMs.
- CAS Verification: Every generated problem is automatically verified using a Computer Algebra System (SymPy) with a 12-second timeout to filter out invalid or infinite results before evaluation.
The framework operationalizes nine distinct dimensions: Syntactic Length (D1), Tree Depth (D2), Operator Score (D3), Working Memory (D4), Compositional Branching (D5), Solution Ambiguity (D6), Counting Load (D7), Sequential Chain Length (D8), and Numeric Magnitude (D9).
Datasets
Instead of using a static dataset, the paper introduces a dynamic, generative benchmark. The authors evaluated seven prominent instruction-tuned models spanning a wide range of scales: GPT-4o Mini, Claude 3.5 Haiku, Qwen3 235B, DeepSeek V3, Gemma 3 12B, Ministral 8B, and Llama 3 8B. Each complexity level within a dimension was tested using 50 distinct, CAS-verified problems.
Key Insights and Ideas
- The Working Memory Wall is Scale-Invariant: Model size offers no rescue against working memory limits (D4). Both the 8B Llama 3 and the 235B Qwen3 models collapse at the exact same threshold (between 20 and 30 parallel branches). This points to a fundamental architectural constraint in transformer self-attention rather than a lack of capacity or training data.
- Multiplicative Error Compounding: Sequential chaining (D8) is far more destructive than previously thought. As dependent reasoning steps increase, errors compound multiplicatively, leading to total failure by step 12 for all models.
- Clever Strategy Switching: The massive performance gap in counting load (D7) isn't due to arithmetic limits, but tokenization. Claude 3.5 Haiku bypasses this entirely by recognizing repeated addition patterns and converting them into multiplication ($K \times \text{value}$), allowing it to maintain 100% accuracy up to $K=300$.
- A Minimal Diagnostic Shortlist: The authors prove that out of the nine dimensions, a subset of five (Tree Depth, Working Memory, Compositional Branching, Counting Load, and Sequential Chain Length) is jointly sufficient to completely profile an LLM's algebraic capacity. The remaining four dimensions are either downstream proxies or interaction terms.
Key Results
- Working Memory (D4) & Branching (D5): All seven models scored 100% accuracy up to 12 parallel branches before abruptly dropping to a 0% floor by 30 branches. However, models like Llama 3 8B handle parallel branches well but collapse almost immediately when local sub-expression depth (D5) increases.
- Sequential Chaining (D8): GPT-4o Mini exhibited a sharp step-function collapse: 100% accuracy from steps 1 to 4, dropping instantly to 0% at step 5.
- Counting Load (D7): While Claude 3.5 Haiku achieved a flat 100% accuracy up to $K=300$, Llama 3 8B failed early at $K=25$.
Limitations and Future Work
- Operator Ceiling: The operator hardness dimension (D3) did not trigger catastrophic failure because the suite's ceiling ($\sigma=22$, power operator) didn't reach calculus-level territory (e.g., symbolic integration or differentiation).
- Future Directions: The authors propose using this framework to generate targeted fine-tuning data to see if isolating structural bottlenecks can systematically improve general math performance. Additionally, they plan to investigate how these isolated LLM failure curves map to human cognitive constraints and error patterns.
Summary updated