TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/An Expression Tree Decoding Strategy for Mathematical Equa...

An Expression Tree Decoding Strategy for Mathematical Equation Generation

Wenqi Zhang, Yongliang Shen, Qingpeng Nong, Zeqi Tan, Yanna Ma, Weiming Lu

2023-10-14Structured PredictionMathematical ReasoningMathMath Word Problem Solving
PaperPDFCode

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.

Results

TaskDatasetMetricValueModel
Question AnsweringMath23KAccuracy (5-fold)84.1Exp-Tree
Question AnsweringMath23KAccuracy (training-test)86.2Exp-Tree
Question AnsweringMAWPSAccuracy (%)92.3Exp-Tree
Question AnsweringMathQAAnswer Accuracy81.5Exp-Tree
Math Word Problem SolvingMath23KAccuracy (5-fold)84.1Exp-Tree
Math Word Problem SolvingMath23KAccuracy (training-test)86.2Exp-Tree
Math Word Problem SolvingMAWPSAccuracy (%)92.3Exp-Tree
Math Word Problem SolvingMathQAAnswer Accuracy81.5Exp-Tree
Mathematical Question AnsweringMath23KAccuracy (5-fold)84.1Exp-Tree
Mathematical Question AnsweringMath23KAccuracy (training-test)86.2Exp-Tree
Mathematical Question AnsweringMAWPSAccuracy (%)92.3Exp-Tree
Mathematical Question AnsweringMathQAAnswer Accuracy81.5Exp-Tree
Mathematical ReasoningMath23KAccuracy (5-fold)84.1Exp-Tree
Mathematical ReasoningMath23KAccuracy (training-test)86.2Exp-Tree
Mathematical ReasoningMAWPSAccuracy (%)92.3Exp-Tree
Mathematical ReasoningMathQAAnswer Accuracy81.5Exp-Tree

Related Papers

VAR-MATH: Probing True Mathematical Reasoning in Large Language Models via Symbolic Multi-Instance Benchmarks2025-07-17QuestA: Expanding Reasoning Capacity in LLMs via Question Augmentation2025-07-17A Survey of Deep Learning for Geometry Problem Solving2025-07-16Scaling Up RL: Unlocking Diverse Reasoning in LLMs via Prolonged Training2025-07-16KisMATH: Do LLMs Have Knowledge of Implicit Structures in Mathematical Reasoning?2025-07-15Temperature and Persona Shape LLM Agent Consensus With Minimal Accuracy Gains in Qualitative Coding2025-07-15Personalized Exercise Recommendation with Semantically-Grounded Knowledge Tracing2025-07-15Reasoning or Memorization? Unreliable Results of Reinforcement Learning Due to Data Contamination2025-07-14