Continual Pre-training of Language Models for Math Problem Understanding with Syntax-Aware Memory Network
Zheng Gong, Kun Zhou, Wayne Xin Zhao, Jing Sha, Shijin Wang, Ji-Rong Wen
Abstract
In this paper, we study how to continually pretrain language models for improving the understanding of math problems. Specifically, we focus on solving a fundamental challenge in modeling math problems, i.e., how to fuse the semantics of textual description and formulas, which are highly different in essence. To address this issue, we propose a new approach called COMUS to continually pre-train language models for math problem understanding with syntax-aware memory network. In this approach, we first construct the math syntax graph to model the structural semantic information, by combining the parsing trees of the text and formulas, and then design the syntax-aware memory networks to deeply fuse the features from the graph and text. With the help of syntax relations, we can model the interaction between the token from the text and its semantic-related nodes within the formulas, which is helpful to capture fine-grained semantic correlations between texts and formulas. Besides, we devise three continual pre-training tasks to further align and fuse the representations of the text and math syntax graph. Experimental results on four tasks in the math domain demonstrate the effectiveness of our approach. Our code and data are publicly available at the link: https: //github.com/RUCAIBox/COMUS . Introduction Understanding math problems via automated methods is a desired machine capacity for artificial intelligence assisted learning. Such a capacity is the key to the success of a variety of educational applications, including math problem retrieval (Reusch et al., 2021 ), problem recommendation (Liu et al., 2018), and problem solving (Huang et al., 2020) . To automatically understand math problems, it is feasible to learn computational representations † † Equal contribution. This work was done when the two author were interns at iFLYTEK Research.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 81833b25-fa93-4d91-a3f1-e00cb5cb4188Cited by top-tier papers4
- Mitigating the Alignment Tax of RLHFYong Lin, Hangyu Lin, Wei Xiong, Shizhe Diao et al.EMNLP 2024 · 18 citations
- AnaCP: Toward Upper-Bound Continual Learning via Analytic Contrastive ProjectionSaleh Momeni, Changnan Xiao, Bing LiuNeurIPS 2025 · 8 citations
- SEEN: Structured Event Enhancement Network for Explainable Need Detection of Information Recall AssistanceYou-En Lin, An-Zi Yen, Hen-Hsen Huang, Hsin-Hsi ChenEMNLP 2022 · 1 citation
- Exploring Visual Pretraining for Learning Language IntelligenceZhonghan Zhao, Yiming Zhang, Wenwei Zhang, Haiteng Zhao et al.CVPR 2026
Builds on5
- Don't Stop Pretraining: Adapt Language Models to Domains and TasksSuchin Gururangan, Ana Marasovic, Swabha Swayamdipta, Kyle Lo et al.ACL 2020 · 93 citations
- Pre-training Text-to-Text Transformers for Concept-centric Common SenseWangchunshu Zhou, Dong-Ho Lee, Ravi Kiran Selvam, Seyeon Lee et al.ICLR 2021 · 73 citations
- Semantically-Aligned Universal Tree-Structured Solver for Math Word ProblemsJinghui Qin, Lihui Lin, Xiaodan Liang, Rumin Zhang et al.EMNLP 2020 · 62 citations
- Point to the Expression: Solving Algebraic Word Problems using the Expression-Pointer Transformer ModelBugeun Kim, Kyung Seo Ki, Donggeon Lee, Gahgene GweonEMNLP 2020 · 29 citations
- KinGDOM: Knowledge-Guided DOMain Adaptation for Sentiment AnalysisDeepanway Ghosal, Devamanyu Hazarika, Abhinaba Roy, Navonil Majumder et al.ACL 2020 · 8 citations
Related papers
- Empowering Math Problem Generation and Reasoning for Large Language Model via Synthetic Data based Continual Learning FrameworkQian Wan, Wangzi Shi, Jintian Feng, Shengyingjie Liu et al.EMNLP 2025 · 2 citations
- Learning by Applying: A General Framework for Mathematical Reasoning via Enhancing Explicit Knowledge LearningJiayu Liu, Zhenya Huang, ChengXiang Zhai, Qi LiuAAAI 2023 · 23 citations
- ERNIE 2.0: A Continual Pre-Training Framework for Language UnderstandingYu Sun, Shuohuan Wang, Yu-Kun Li, Shikun Feng et al.AAAI 2020 · 885 citations
- Total Recall: a Customized Continual Learning Method for Neural Semantic ParsersZhuang Li, Lizhen Qu, Gholamreza HaffariEMNLP 2021 · 11 citations
- Math Word Problem Generation with Mathematical Consistency and Problem Context ConstraintsZichao Wang, Andrew S. Lan, Richard G. BaraniukEMNLP 2021 · 35 citations
