arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2110.03501stat.MLcs.CLcs.LG
收藏

预训练语言模型也是符号数学求解器!

Pretrained Language Models are Symbolic Mathematics Solvers too!

Sharif University of Technology(谢里夫理工大学);University of Tartu(塔尔图大学);University of South Carolina(南卡罗来纳大学)

Kimia Noorbakhsh, Modar Sulaiman, Mahdi Sharifi, Kallol Roy, Pooyan Jamshidi

摘要:

解决符号数学一直是人类智慧的舞台,需要组合推理和递归。然而,最近的研究表明,像Transformers这样的大规模语言模型是通用的,并且令人惊讶的是,它可以作为序列到序列的任务来训练,以解决复杂的数学方程。这些大型的Transformer模型需要大量的训练数据来推广到看不见的符号数学问题。在本文中,我们提出了一种解决符号任务的有效方法,首先通过语言翻译预训练Transformer模型,然后微调预训练的Transformer模型来解决符号数学的下游任务。我们使用我们的预训练模型在集成任务上实现了相当的准确性,同时使用了大约$1.5$数量级的训练样本,相对于最先进的符号数学深度学习。与积分相比,微分方程任务的测试准确度要低得多,因为它们需要更高阶的递归,而这些递归在语言翻译中是不存在的。我们从Anna Karenina Principle(AKP)中提出了预训练语言模型的泛化性。我们用不同的语言翻译对模型进行预训练。我们的研究结果表明,在解决符号数学任务的语言偏见。最后,我们研究了微调模型对分布偏移的符号数学任务的鲁棒性,并且我们的方法在函数集成的分布偏移场景中具有更好的推广性。

英文摘要:

Solving symbolic mathematics has always been of in the arena of human ingenuity that needs compositional reasoning and recurrence. However, recent studies have shown that large-scale language models such as transformers are universal and surprisingly can be trained as a sequence-to-sequence task to solve complex mathematical equations. These large transformer models need humongous amounts of training data to generalize to unseen symbolic mathematics problems. In this paper, we present a sample efficient way of solving the symbolic tasks by first pretraining the transformer model with language translation and then fine-tuning the pretrained transformer model to solve the downstream task of symbolic mathematics. We achieve comparable accuracy on the integration task with our pretrained model while using around $1.5$ orders of magnitude less number of training samples with respect to the state-of-the-art deep learning for symbolic mathematics. The test accuracy on differential equation tasks is considerably lower comparing with integration as they need higher order recursions that are not present in language translations. We propose the generalizability of our pretrained language model from Anna Karenina Principle (AKP). We pretrain our model with different pairs of language translations. Our results show language bias in solving symbolic mathematics tasks. Finally, we study the robustness of the fine-tuned model on symbolic math tasks against distribution shift, and our approach generalizes better in distribution shift scenarios for the function integration.

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

↑