A Symbolic Framework for Evaluating Mathematical Reasoning and Generalisation with Transformers
On the map: LLM reasoning → Mathematical reasoning
Abstract (arXiv)
This paper proposes a methodology for generating and perturbing detailed derivations of equations at scale, aided by a symbolic engine, to evaluate the generalisability of Transformers to out-of-distribution mathematical reasoning problems. Instantiating the framework in the context of sequence classification tasks, we compare the capabilities of GPT-4, GPT-3.5, and a canon of fine-tuned BERT models, exploring the relationship between specific operators and generalisation failure via the perturbation of reasoning aspects such as symmetry and variable surface forms. Surprisingly, our empirical evaluation reveals that the average in-distribution performance of fine-tuned models surpasses GPT-3.5, and rivals GPT-4. However, perturbations to input reasoning can reduce their performance by up to 80 F1 points. Overall, the results suggest that the in-distribution performance of smaller open-source models may potentially rival GPT by incorporating appropriately structured derivation dependencies during training, and highlight a shared weakness between BERT and GPT involving a relative inability to decode indirect references to mathematical entities. We release the full codebase, constructed datasets, and fine-tuned models to encourage future progress in the field.
Key facts. Cited by 15 papers in the map (data through 7 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 30 of its 69 references that are in the map. First posted on arXiv 21 May 2023.
Builds on
30 of 69 references.
Closest ancestors · 4
Same direction, newest first
- 2022A Causal Framework to Quantify the Robustness of Mathematical Reasoning with Language Models21 Oct
- 2022Solving Quantitative Reasoning Problems with Language Models29 Jun
- 2022Enhancing Neural Mathematical Reasoning by Abductive Combination with Symbolic Library28 Mar
- 2020Generative Language Modeling for Automated Theorem Proving7 Sep
Other references · 26
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2023Tree of Thoughts: Deliberate Problem Solving with Large Language Modelscited by 3,155
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,404
- 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,057
- 2021Are NLP Models really able to Solve Simple Math Word Problems?cited by 861
- 2019Learning the Difference that Makes a Difference with Counterfactually-Augmented Datacited by 428
- 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 331
- 2019Deep Learning for Symbolic Mathematicscited by 266
- 2020Transformers as Soft Reasoners over Languagecited by 265
14 more
- 2023Mathematical Capabilities of ChatGPTcited by 263
- 2020On the Stability of Fine-tuning BERT: Misconceptions, Explanations, and Strong Baselinescited by 254
- 2022Will we run out of data? Limits of LLM scaling based on human-generated datacited by 187
- 2021MathBERT: A Pre-Trained Model for Mathematical Formula Understandingcited by 58
- 2020INT: An Inequality Benchmark for Evaluating Generalization in Theorem Provingcited by 44
- 2021MathBERT: A Pre-trained Language Model for General NLP Tasks in Mathematics Educationcited by 37
- 2019The Use of Deep Learning for Symbolic Integration: A Review of (Lample and Charton, 2019)cited by 11
- 2022Evaluating Token-Level and Passage-Level Dense Retrieval Models for Math Information Retrievalcited by 9
- 2023BERT is not The Count: Learning to Match Mathematical Statements with Proofscited by 9
- 2020IsarStep: a Benchmark for High-level Mathematical Reasoningcited by 7
- 2023Algebra Error Classification with Large Language Modelscited by 4
- 2020Mathematical Reasoning via Self-supervised Skip-tree Trainingcited by 3
- 2022PhysNLU: A Language Resource for Evaluating Natural Language Understanding and Explanation Coherence in Physicscited by 3
- 2023Estimating the Causal Effects of Natural Logic Features in Neural NLI Modelscited by 3
Built on by
Citing papers per year: 2023: 3; 2024: 5; 2025: 6; 2026: 1.
15 papers.
Sort:
By area:
- 2024Evaluating LLMs' Mathematical and Coding Competency through Ontology-guided Interventionscited by 20
- 2025Autoformalization in the Wild: Assessing LLMs on Real-World Mathematical Definitionscited by 20
- 2024CoMAT: Chain of Mathematically Annotated Thought Improves Mathematical Reasoningcited by 16
- 2024A Theory for Length Generalization in Learning to Reasoncited by 11
- 2023Conditions for Length Generalization in Learning Reasoning Skillscited by 7
- 2023Multi-Operational Mathematical Derivations in Latent Spacecited by 6
- 2024Improving Semantic Control in Discrete Latent Spaces with Transformer Quantized Variational Autoencoderscited by 6
- 2025MASA: LLM-Driven Multi-Agent Systems for Autoformalizationcited by 6
- 2025Integrating Expert Knowledge into Logical Programs via LLMscited by 3
- 2024RoMath: A Mathematical Reasoning Benchmark in Romaniancited by 2
- 2025Learning to Disentangle Latent Reasoning Rules with Language VAEs: A Systematic Studycited by 2
- 2023Controlling Equational Reasoning in Large Language Models with Prompt Interventionscited by 1
3 more
- 2025MAMUT: A Novel Framework for Modifying Mathematical Formulas for the Generation of Specialized Datasets for Language Model Trainingcited by 1
- 2025Bridging Compositional and Distributional Semantics: A Survey on Latent Semantic Geometry via AutoEncodercited by 0
- 2026When Tokenization is Secretly Output Supervisioncited by 0
- 2026When Tokenization is Secretly Output Supervision1 Sep 2026
- 2025MASA: LLM-Driven Multi-Agent Systems for Autoformalization10 Oct 2025
- 2025Bridging Compositional and Distributional Semantics: A Survey on Latent Semantic Geometry via AutoEncoder25 Jun 2025
- 2025Learning to Disentangle Latent Reasoning Rules with Language VAEs: A Systematic Study24 Jun 2025
- 2025MAMUT: A Novel Framework for Modifying Mathematical Formulas for the Generation of Specialized Datasets for Language Model Training28 Feb 2025
- 2025Integrating Expert Knowledge into Logical Programs via LLMs17 Feb 2025
- 2025Autoformalization in the Wild: Assessing LLMs on Real-World Mathematical Definitions17 Feb 2025
- 2024CoMAT: Chain of Mathematically Annotated Thought Improves Mathematical Reasoning14 Oct 2024
- 2024RoMath: A Mathematical Reasoning Benchmark in Romanian17 Sep 2024
- 2024A Theory for Length Generalization in Learning to Reason31 Mar 2024
- 2024Improving Semantic Control in Discrete Latent Spaces with Transformer Quantized Variational Autoencoders1 Feb 2024
- 2024Evaluating LLMs' Mathematical and Coding Competency through Ontology-guided Interventions17 Jan 2024
- 2024Evaluating LLMs' Mathematical and Coding Competency through Ontology-guided Interventionscited by 20
- 2024CoMAT: Chain of Mathematically Annotated Thought Improves Mathematical Reasoningcited by 16
- 2023Conditions for Length Generalization in Learning Reasoning Skillscited by 7
- 2025Integrating Expert Knowledge into Logical Programs via LLMscited by 3
- 2024RoMath: A Mathematical Reasoning Benchmark in Romaniancited by 2
- 2025Learning to Disentangle Latent Reasoning Rules with Language VAEs: A Systematic Studycited by 2
- 2023Controlling Equational Reasoning in Large Language Models with Prompt Interventionscited by 1
- 2025Learning to Disentangle Latent Reasoning Rules with Language VAEs: A Systematic Study24 Jun 2025
- 2025Integrating Expert Knowledge into Logical Programs via LLMs17 Feb 2025
- 2024CoMAT: Chain of Mathematically Annotated Thought Improves Mathematical Reasoning14 Oct 2024
- 2024RoMath: A Mathematical Reasoning Benchmark in Romanian17 Sep 2024
- 2024Evaluating LLMs' Mathematical and Coding Competency through Ontology-guided Interventions17 Jan 2024
- 2023Conditions for Length Generalization in Learning Reasoning Skills22 Nov 2023
- 2023Controlling Equational Reasoning in Large Language Models with Prompt Interventions19 Jul 2023
- 2025MASA: LLM-Driven Multi-Agent Systems for Autoformalization10 Oct 2025
- 2025Autoformalization in the Wild: Assessing LLMs on Real-World Mathematical Definitionscited by 20
- 2024A Theory for Length Generalization in Learning to Reasoncited by 11
- 2023Multi-Operational Mathematical Derivations in Latent Spacecited by 6
- 2024Improving Semantic Control in Discrete Latent Spaces with Transformer Quantized Variational Autoencoderscited by 6
- 2025MAMUT: A Novel Framework for Modifying Mathematical Formulas for the Generation of Specialized Datasets for Language Model Trainingcited by 1
- 2025Bridging Compositional and Distributional Semantics: A Survey on Latent Semantic Geometry via AutoEncodercited by 0
- 2026When Tokenization is Secretly Output Supervisioncited by 0
- 2026When Tokenization is Secretly Output Supervision1 Sep 2026
- 2025Bridging Compositional and Distributional Semantics: A Survey on Latent Semantic Geometry via AutoEncoder25 Jun 2025
- 2025MAMUT: A Novel Framework for Modifying Mathematical Formulas for the Generation of Specialized Datasets for Language Model Training28 Feb 2025
- 2025Autoformalization in the Wild: Assessing LLMs on Real-World Mathematical Definitions17 Feb 2025
- 2024A Theory for Length Generalization in Learning to Reason31 Mar 2024
- 2024Improving Semantic Control in Discrete Latent Spaces with Transformer Quantized Variational Autoencoders1 Feb 2024
- 2023Multi-Operational Mathematical Derivations in Latent Space2 Nov 2023
Similar, not cited
Close in wording, no citation either way
- 2026Mathematical Reasoning in Large Language Models: Benchmarks, Architectures, Evaluation, and Open Challenges
- 2024ReasonAgain: Using Extractable Symbolic Programs to Evaluate Mathematical Reasoning
- 2025A Survey on Large Language Models for Mathematical Reasoning
- 2023Reasoning in Large Language Models Through Symbolic Math Word Problems
- 2024Neuro-Symbolic Data Generation for Math Reasoning
- 2026Rethinking Math Reasoning Evaluation: A Robust LLM-as-a-Judge Framework Beyond Symbolic Rigidity
- 2022Achieving and Understanding Out-of-Distribution Generalization in Systematic Reasoning in Small-Scale Transformers
- 2025Mathematical Reasoning in Large Language Models: Assessing Logical and Arithmetic Errors across Wide Numerical Ranges