An Expression Tree Decoding Strategy for Mathematical Equation Generation
Wenqi Zhang, Yongliang Shen, Qingpeng Nong, Zeqi Tan, Yanna Ma, Weiming Lu
Abstract
Generating mathematical equations from natural language requires an accurate understanding of the relations among math expressions. Existing approaches can be broadly categorized into token-level and expression-level generation. The former treats equations as a mathematical language, sequentially generating math tokens. Expression-level methods generate each expression one by one. However, each expression represents a solving step, and there naturally exist parallel or dependent relations between these steps, which are ignored by current sequential methods. Therefore, we integrate tree structure into the expression-level generation and advocate an expression tree decoding strategy. To generate a tree with expression as its node, we employ a layer-wise parallel decoding strategy: we decode multiple independent expressions (leaf nodes) in parallel at each layer and repeat parallel decoding layer by layer to sequentially generate these parent node expressions that depend on others. Besides, a bipartite matching algorithm is adopted to align multiple predictions with annotations for each layer. Experiments show our method outperforms other baselines, especially for these equations with complex structures.
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.
Cited by top-tier papers4
- EvoEmpirBench: Dynamic Spatial Reasoning with Agent-ExpVerPukun Zhao, Longxiang Wang, Miaowei Wang, Chen Chen et al.AAAI 2026 · 2 citations
- Multimodal Self-Instruct: Synthetic Abstract Image and Visual Reasoning Instruction Using Language ModelWenqi Zhang, Zhenglin Cheng, Yuanyu He, Mengna Wang et al.EMNLP 2024 · 1 citation
- Self-Contrast: Better Reflection Through Inconsistent Solving PerspectivesWenqi Zhang, Yongliang Shen, Linjuan Wu, Qiuying Peng et al.ACL 2024
- Agent-Pro: Learning to Evolve via Policy-Level Reflection and OptimizationWenqi Zhang, Ke Tang, Hai Wu, Mengna Wang et al.ACL 2024
Builds on19
- Chain-of-Thought Prompting Elicits Reasoning in Large Language ModelsJason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma et al.NeurIPS 2022 · 22,562 citations
- Large Language Models are Zero-Shot ReasonersTakeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo et al.NeurIPS 2022 · 8,168 citations
- BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language ModelsJunnan Li, Dongxu Li, Silvio Savarese, Steven C. H. HoiICML 2023 · 7,873 citations
- HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging FaceYongliang Shen, Kaitao Song, Xu Tan, Dongsheng Li et al.NeurIPS 2023 · 1,778 citations
- Perceiver: General Perception with Iterative AttentionAndrew Jaegle, Felix Gimeno, Andy Brock, Oriol Vinyals et al.ICML 2021 · 1,399 citations
Related papers
- Tree-Based Representation and Generation of Natural and Mathematical LanguageAlexander Scarlatos, Andrew S. LanACL 2023 · 13 citations
- HMS: A Hierarchical Solver with Dependency-Enhanced Understanding for Math Word ProblemXin Lin, Zhenya Huang, Hongke Zhao, Enhong Chen et al.AAAI 2021 · 70 citations
- A Tree-Based Structure-Aware Transformer Decoder for Image-To-Markup GenerationShuhan Zhong, Sizhe Song, Guanyao Li, S.-H. Gary ChanACM MM 2022 · 17 citations
- TDv2: A Novel Tree-Structured Decoder for Offline Mathematical Expression RecognitionChangjie Wu, Jun Du, Yunqing Li, Jianshu Zhang et al.AAAI 2022 · 23 citations
- TAMER: Tree-Aware Transformer for Handwritten Mathematical Expression RecognitionJianhua Zhu, Wenqi Zhao, Yu Li, Xingjian Hu et al.AAAI 2025 · 14 citations
