arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.09619cs.CL
收藏

数学方程式生成的一种表达式树解码策略

An Expression Tree Decoding Strategy for Mathematical Equation Generation

Zhejiang University(浙江大学);Zhongxing Telecommunication Equipment Corporation(中兴通讯股份有限公司);University of Shanghai for Science and Technology(上海理工大学)

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

AI总结:

提出表达式树解码策略,通过逐层并行解码和二分图匹配对齐,解决数学方程式生成中表达式间并行与依赖关系被忽略的问题,显著提升复杂结构方程式的生成效果。

摘要:

从自然语言生成数学方程式需要准确理解数学表达式之间的关系。现有方法大致可分为 token 级和表达式级生成。前者将方程式视为一种数学语言,按顺序生成数学 token。表达式级方法则逐个生成每个表达式。然而,每个表达式代表一个求解步骤,这些步骤之间自然存在并行或依赖关系,而当前的顺序方法忽略了这一点。因此,我们将树结构集成到表达式级生成中,并提出一种表达式树解码策略。为了生成以表达式为节点的树,我们采用逐层并行解码策略:在每一层并行解码多个独立表达式(叶节点),并逐层重复并行解码,以顺序生成那些依赖于其他表达式的父节点表达式。此外,采用二分图匹配算法将每层的多个预测与标注进行对齐。实验表明,我们的方法优于其他基线方法,尤其是对于具有复杂结构的方程式。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑