Tree-Based Representation and Generation of Natural and Mathematical Language

11Citations
Citations of this article
32Readers
Mendeley users who have this article in their library.
Get full text

Abstract

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.

Cite

CITATION STYLE

APA

Scarlatos, A., & Lan, A. (2023). Tree-Based Representation and Generation of Natural and Mathematical Language. In Proceedings of the Annual Meeting of the Association for Computational Linguistics (Vol. 1, pp. 3714–3730). Association for Computational Linguistics (ACL). https://doi.org/10.18653/v1/2023.acl-long.205

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free