Tree-Based Representation and Generation of Natural and Mathematical Language
Not on the map. Why?
Abstract (arXiv)
Mathematical language in scientific communications and educational scenarios is important yet relatively understudied compared to natural languages. Recent works on mathematical language focus either on representing stand-alone mathematical expressions, especially in their natural tree format, or mathematical reasoning in pre-trained natural language models. Existing works on jointly modeling and generating natural and mathematical languages simply treat mathematical expressions as text, without accounting for the rigid structural properties of mathematical expressions. In this paper, we propose a series of modifications to existing language models to jointly represent and generate text and math: representing mathematical expressions as sequences of node tokens in their operator tree format, using math symbol and tree position embeddings to preserve the semantic and structural properties of mathematical expressions, and using a constrained decoding method to generate mathematically valid expressions. We ground our modifications in GPT-2, resulting in a model MathGPT, and demonstrate that it outperforms baselines on mathematical expression generation tasks.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 22 of its 49 references that are in the map. First posted on arXiv 15 Feb 2023.
Builds on
22 of 49 references.
References · 22
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,359
- 2022Galactica: A Large Language Model for Sciencecited by 736
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
- 2019Analysing Mathematical Reasoning Abilities of Neural Modelscited by 331
- 2019Deep Learning for Symbolic Mathematicscited by 266
10 more
- 2017Relevance of Unsupervised Metrics in Task-Oriented Dialogue for Evaluating Natural Language Generationcited by 61
- 2021MathBERT: A Pre-Trained Model for Mathematical Formula Understandingcited by 58
- 2021MathBERT: A Pre-trained Language Model for General NLP Tasks in Mathematics Educationcited by 37
- 2021MWP-BERT: Numeracy-Augmented Pre-training for Math Word Problem Solvingcited by 32
- 2021Math Word Problem Generation with Mathematical Consistency and Problem Context Constraintscited by 27
- 2022Automatic Short Math Answer Grading via In-context Meta-learningcited by 18
- 2021NumGPT: Improving Numeracy Ability of Generative Pre-trained Modelscited by 15
- 2019Text2Math: End-to-end Parsing Text into Math Expressionscited by 13
- 2019TopicEq: A Joint Topic and Mathematical Equation Model for Scientific Textscited by 10
- 2019Automatic Generation of Headlines for Online Math Questionscited by 10
Built on by
Citing papers per year: 2023: 3; 2024: 5; 2025: 2; 2026: 2.
12 papers.
- 2024Large Language Models for Education: A Surveycited by 32
- 2024cPAPERS: A Dataset of Situated and Multimodal Interactive Conversations in Scientific Paperscited by 10
- 2024Automated Metaheuristic Algorithm Design with Autoregressive Learningcited by 7
- 2023AcademicGPT: Empowering Academic Researchcited by 6
- 2023Algebra Error Classification with Large Language Modelscited by 4
- 2025From Moderation to Mediation: Can LLMs Serve as Mediators in Online Flame Wars?cited by 3
- 2024Interpreting Latent Student Knowledge Representations in Programming Assignmentscited by 2
- 2025MAMUT: A Novel Framework for Modifying Mathematical Formulas for the Generation of Specialized Datasets for Language Model Trainingcited by 1
- 2023Modeling and Analyzing Scorer Preferences in Short-Answer Math Questionscited by 0
- 2024A Moonshot for AI Oracles in the Sciencescited by 0
- 2026SciText2Eq: Assessing LLMs for Explainable Equation Generation for Scientific Creativitycited by 0
- 2026Enhancing Transformer Representations of Symbolic ODE Expressionscited by 0
- 2026Enhancing Transformer Representations of Symbolic ODE Expressions21 Sep 2026
- 2026SciText2Eq: Assessing LLMs for Explainable Equation Generation for Scientific Creativity14 Jun 2026
- 2025From Moderation to Mediation: Can LLMs Serve as Mediators in Online Flame Wars?2 Dec 2025
- 2025MAMUT: A Novel Framework for Modifying Mathematical Formulas for the Generation of Specialized Datasets for Language Model Training28 Feb 2025
- 2024A Moonshot for AI Oracles in the Sciences25 Jun 2024
- 2024cPAPERS: A Dataset of Situated and Multimodal Interactive Conversations in Scientific Papers12 Jun 2024
- 2024Interpreting Latent Student Knowledge Representations in Programming Assignments13 May 2024
- 2024Large Language Models for Education: A Survey12 May 2024
- 2024Automated Metaheuristic Algorithm Design with Autoregressive Learning6 May 2024
- 2023AcademicGPT: Empowering Academic Research21 Nov 2023
- 2023Modeling and Analyzing Scorer Preferences in Short-Answer Math Questions1 Jun 2023
- 2023Algebra Error Classification with Large Language Models8 May 2023
Similar, not cited
Close in wording, no citation either way
- 2023An Expression Tree Decoding Strategy for Mathematical Equation Generation
- 2024STEM-POM: Evaluating Language Models Math-Symbol Reasoning in Document Parsing
- 2024Neuro-Symbolic Data Generation for Math Reasoning
- 2024MathCoder2: Better Math Reasoning from Continued Pretraining on Model-translated Mathematical Code
- 2025Arrows of Math Reasoning Data Synthesis for Large Language Models: Diversity, Complexity and Correctness
- 2023Mathematical Capabilities of ChatGPT
- 2025Thinking Machines: Mathematical Reasoning in the Age of LLMs
- 2024MARIO: MAth Reasoning with code Interpreter Output -- A Reproducible Pipeline