Pretrained Language Models are Symbolic Mathematics Solvers too!
Not on the map. Why?
Abstract (arXiv)
Solving symbolic mathematics has always been of in the arena of human ingenuity that needs compositional reasoning and recurrence. However, recent studies have shown that large-scale language models such as transformers are universal and surprisingly can be trained as a sequence-to-sequence task to solve complex mathematical equations. These large transformer models need humongous amounts of training data to generalize to unseen symbolic mathematics problems. In this paper, we present a sample efficient way of solving the symbolic tasks by first pretraining the transformer model with language translation and then fine-tuning the pretrained transformer model to solve the downstream task of symbolic mathematics. We achieve comparable accuracy on the integration task with our pretrained model while using around 1.5 orders of magnitude less number of training samples with respect to the state-of-the-art deep learning for symbolic mathematics. The test accuracy on differential equation tasks is considerably lower comparing with integration as they need higher order recursions that are not present in language translations. We propose the generalizability of our pretrained language model from Anna Karenina Principle (AKP). We pretrain our model with different pairs of language translations. Our results show language bias in solving symbolic mathematics tasks. Finally, we study the robustness of the fine-tuned model on symbolic math tasks against distribution shift, and our approach generalizes better in distribution shift scenarios for the function integration.
Key facts. Cited by 17 papers in the map (data through 13 Oct 2026). Builds on 35 of its 59 references that are in the map. First posted on arXiv 7 Oct 2021.
Builds on
35 of 59 references.
References · 35
- 2017Attention Is All You Needcited by 60,106
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,304
- 2014Adam: A Method for Stochastic Optimizationcited by 37,093
- 2020Language Models are Few-Shot Learnerscited by 32,320
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,549
- 2020End-to-End Object Detection with Transformerscited by 7,396
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,457
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,270
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,539
- 2019LXMERT: Learning Cross-Modality Encoder Representations from Transformerscited by 1,551
- 2017Visualizing the Loss Landscape of Neural Netscited by 1,129
- 2020Multilingual Denoising Pre-training for Neural Machine Translationcited by 1,033
23 more
- 2020Pre-Trained Image Processing Transformercited by 892
- 2019VideoBERT: A Joint Model for Video and Language Representation Learningcited by 702
- 2017Program Induction by Rationale Generation : Learning to Solve and Explain Algebraic Word Problemscited by 646
- 2020Towards a Human-like Open-Domain Chatbotcited by 469
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
- 2015Attention-Based Models for Speech Recognitioncited by 400
- 2020Generative Language Modeling for Automated Theorem Provingcited by 386
- 2016RETAIN: An Interpretable Predictive Model for Healthcare using Reverse Time Attention Mechanismcited by 345
- 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 333
- 2019Deep Learning for Symbolic Mathematicscited by 267
- 2018Implicit Self-Regularization in Deep Neural Networks: Evidence from Random Matrix Theory and Implications for Learningcited by 213
- 2021Revisiting Model Stitching to Compare Neural Representationscited by 204
- 2018Marian: Fast Neural Machine Translation in C++cited by 203
- 2021Pretrained Transformers as Universal Computation Enginescited by 162
- 2015Neural GPUs Learn Algorithmscited by 120
- 2018Attention Branch Network: Learning of Attention Mechanism for Visual Explanationcited by 109
- 2014Learning to Executecited by 106
- 2021SymbolicGPT: A Generative Transformer Model for Symbolic Regressioncited by 102
- 2021Colorization Transformercited by 89
- 2018Neural Arithmetic Logic Unitscited by 70
- 2017Deep Network Guided Proof Searchcited by 47
- 2016Learning Continuous Semantic Representations of Symbolic Expressionscited by 25
- 2014Learning to Discover Efficient Mathematical Identitiescited by 9
Built on by
Citing papers per year: 2022: 5; 2023: 5; 2024: 4; 2025: 3.
17 papers.
Sort:
By area:
- 2022LIFT: Language-Interfaced Fine-Tuning for Non-Language Machine Learning Taskscited by 146
- 2023EvoPrompting: Language Models for Code-Level Neural Architecture Searchcited by 131
- 2023How well do Large Language Models perform in Arithmetic tasks?cited by 130
- 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 119
- 2022Two-stage LLM Fine-tuning with Less Specialization and More Generalizationcited by 41
- 2022History Compression via Language Models in Reinforcement Learningcited by 39
- 2023Mathematical Language Models: A Surveycited by 24
- 2023Transformer models: an introduction and catalogcited by 21
- 2025A Survey on Mathematical Reasoning and Optimization with Large Language Modelscited by 12
- 2025PerCul: A Story-Driven Cultural Evaluation of LLMs in Persiancited by 8
- 2022On the Effect of Pre-training for Transformer in Different Modality on Offline Reinforcement Learningcited by 7
- 2024Optimizing RAG Techniques for Automotive Industry PDF Chatbots: A Case Study with Locally Deployed Ollama Modelscited by 4
5 more
- 2024MathDivide: Improved mathematical reasoning by large language modelscited by 3
- 2024Unveiling Markov Heads in Pretrained Language Models for Offline Reinforcement Learningcited by 3
- 2024Transformers to Predict the Applicability of Symbolic Integration Routinescited by 2
- 2022Changes from Classical Statistics to Modern Statistics and Data Sciencecited by 0
- 2025Primender Sequence: A Novel Mathematical Construct for Testing Symbolic Inference and AI Reasoningcited by 0
- 2025Primender Sequence: A Novel Mathematical Construct for Testing Symbolic Inference and AI Reasoning12 Jun 2025
- 2025A Survey on Mathematical Reasoning and Optimization with Large Language Models22 Mar 2025
- 2025PerCul: A Story-Driven Cultural Evaluation of LLMs in Persian11 Feb 2025
- 2024Transformers to Predict the Applicability of Symbolic Integration Routines31 Oct 2024
- 2024Unveiling Markov Heads in Pretrained Language Models for Offline Reinforcement Learning11 Sep 2024
- 2024Optimizing RAG Techniques for Automotive Industry PDF Chatbots: A Case Study with Locally Deployed Ollama Models12 Aug 2024
- 2024MathDivide: Improved mathematical reasoning by large language models12 May 2024
- 2023Mathematical Language Models: A Survey12 Dec 2023
- 2023How well do Large Language Models perform in Arithmetic tasks?16 Mar 2023
- 2023Baldur: Whole-Proof Generation and Repair with Large Language Models8 Mar 2023
- 2023EvoPrompting: Language Models for Code-Level Neural Architecture Search28 Feb 2023
- 2023Transformer models: an introduction and catalog12 Feb 2023
5 more
- 2022On the Effect of Pre-training for Transformer in Different Modality on Offline Reinforcement Learning17 Nov 2022
- 2022Two-stage LLM Fine-tuning with Less Specialization and More Generalization1 Nov 2022
- 2022Changes from Classical Statistics to Modern Statistics and Data Science30 Oct 2022
- 2022LIFT: Language-Interfaced Fine-Tuning for Non-Language Machine Learning Tasks14 Jun 2022
- 2022History Compression via Language Models in Reinforcement Learning24 May 2022
- 2023How well do Large Language Models perform in Arithmetic tasks?cited by 130
- 2025A Survey on Mathematical Reasoning and Optimization with Large Language Modelscited by 12
- 2024MathDivide: Improved mathematical reasoning by large language modelscited by 3
- 2025Primender Sequence: A Novel Mathematical Construct for Testing Symbolic Inference and AI Reasoningcited by 0
- 2025Primender Sequence: A Novel Mathematical Construct for Testing Symbolic Inference and AI Reasoning12 Jun 2025
- 2025A Survey on Mathematical Reasoning and Optimization with Large Language Models22 Mar 2025
- 2024MathDivide: Improved mathematical reasoning by large language models12 May 2024
- 2023How well do Large Language Models perform in Arithmetic tasks?16 Mar 2023
- 2022LIFT: Language-Interfaced Fine-Tuning for Non-Language Machine Learning Taskscited by 146
- 2023EvoPrompting: Language Models for Code-Level Neural Architecture Searchcited by 131
- 2023Baldur: Whole-Proof Generation and Repair with Large Language Modelscited by 119
- 2022Two-stage LLM Fine-tuning with Less Specialization and More Generalizationcited by 41
- 2022History Compression via Language Models in Reinforcement Learningcited by 39
- 2023Mathematical Language Models: A Surveycited by 24
- 2023Transformer models: an introduction and catalogcited by 21
- 2025PerCul: A Story-Driven Cultural Evaluation of LLMs in Persiancited by 8
- 2024Transformers to Predict the Applicability of Symbolic Integration Routinescited by 2
- 2025PerCul: A Story-Driven Cultural Evaluation of LLMs in Persian11 Feb 2025
- 2024Transformers to Predict the Applicability of Symbolic Integration Routines31 Oct 2024
- 2023Mathematical Language Models: A Survey12 Dec 2023
- 2023Baldur: Whole-Proof Generation and Repair with Large Language Models8 Mar 2023
- 2023EvoPrompting: Language Models for Code-Level Neural Architecture Search28 Feb 2023
- 2023Transformer models: an introduction and catalog12 Feb 2023
- 2022Two-stage LLM Fine-tuning with Less Specialization and More Generalization1 Nov 2022
- 2022LIFT: Language-Interfaced Fine-Tuning for Non-Language Machine Learning Tasks14 Jun 2022
- 2022History Compression via Language Models in Reinforcement Learning24 May 2022