Tree-Based Representation and Generation of Natural and Mathematical Language

被引:0
|
作者
Scarlatos, Alexander [1 ]
Lan, Andrew [1 ]
机构
[1] Univ Massachusetts, Amherst, MA 01003 USA
关键词
D O I
暂无
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
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.
引用
收藏
页码:3714 / 3730
页数:17
相关论文
共 50 条
  • [31] Systems of knowledge representation based on stratified graphs. Application in Natural Language Generation
    Danciulescu, Daniela
    Colhon, Mihaela
    CARPATHIAN JOURNAL OF MATHEMATICS, 2016, 32 (01) : 49 - 62
  • [32] Comparing performance of non–tree-based and tree-based association mapping methods
    Katherine L. Thompson
    David W. Fardo
    BMC Proceedings, 10 (Suppl 7)
  • [33] Visual-Textual Attention for Tree-Based Handwritten Mathematical Expression Recognition
    Liao, Wei
    Liu, Jiayi
    Chen, Jianghan
    Wang, Qiu-Feng
    Huang, Kaizhu
    ADVANCES IN BRAIN INSPIRED COGNITIVE SYSTEMS, BICS 2023, 2024, 14374 : 375 - 384
  • [34] A tree-based model with branch parallel decoding for handwritten mathematical expression recognition
    Li, Zhe
    Yang, Wentao
    Qi, Hengnian
    Jin, Lianwen
    Huang, Yichao
    Ding, Kai
    PATTERN RECOGNITION, 2024, 149
  • [35] A tree-based model with branch parallel decoding for handwritten mathematical expression recognition
    Li, Zhe
    Yang, Wentao
    Qi, Hengnian
    Jin, Lianwen
    Huang, Yichao
    Ding, Kai
    Pattern Recognition, 2024, 149
  • [36] An N-ary Tree-based Model for Similarity Evaluation on Mathematical Formulae
    Dai, Yifan
    Chen, Liangyu
    Zhang, Zihan
    2020 IEEE INTERNATIONAL CONFERENCE ON SYSTEMS, MAN, AND CYBERNETICS (SMC), 2020, : 2578 - 2584
  • [37] Kinematic redundancy in robot grasp synthesis.: An efficient tree-based representation
    Fernández, C
    Reinoso, S
    Vicente, A
    Aracil, R
    2005 IEEE INTERNATIONAL CONFERENCE ON ROBOTICS AND AUTOMATION (ICRA), VOLS 1-4, 2005, : 1184 - 1189
  • [38] Iteratively specified tree-based regression: Theory and trip generation example
    Washington, S
    JOURNAL OF TRANSPORTATION ENGINEERING-ASCE, 2000, 126 (06): : 482 - 491
  • [39] Stochastic Tree-Based Generation of Program-Tracing Practice Questions
    Thomas, Anderson
    Stopera, Troy
    Frank-Bolton, Pablo
    Simha, Rahul
    SIGCSE '19: PROCEEDINGS OF THE 50TH ACM TECHNICAL SYMPOSIUM ON COMPUTER SCIENCE EDUCATION, 2019, : 91 - 97
  • [40] Knowledge representation systems based on natural language
    Iwanska, L
    AI MAGAZINE, 1997, 18 (01) : 126 - 127