arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2305.12563cs.CLcs.LG
收藏

一个用于评估 Transformer 数学推理与泛化能力的符号框架

A Symbolic Framework for Evaluating Mathematical Reasoning and Generalisation with Transformers

University of Manchester(曼彻斯特大学);Idiap Research Institute(伊迪亚普研究所)

Jordan Meadows, Marco Valentino, Damien Teney, Andre Freitas

AI总结:

提出基于符号引擎生成并扰动方程推导的评估框架,揭示 BERT 与 GPT 在分布外数学推理及间接数学实体引用上的共同弱点。

摘要:

本文提出一种借助符号引擎大规模生成并扰动方程详细推导过程的方法,用于评估 Transformer 对分布外数学推理问题的泛化能力。我们将该框架实例化于序列分类任务场景中,比较了 GPT-4、GPT-3.5 以及一系列经过微调的 BERT 模型的能力,并通过对对称性和变量表面形式等推理方面进行扰动,探究特定算子与泛化失败之间的关系。令人惊讶的是,我们的实证评估表明,微调模型的平均分布内性能超过了 GPT-3.5,并可与 GPT-4 相媲美。然而,对输入推理的扰动可使其性能最多下降 80 个 F1 点。总体而言,结果表明,通过在训练期间纳入结构适当的推导依赖关系,较小的开源模型的分布内性能有可能与 GPT 匹敌;同时,结果也凸显了 BERT 与 GPT 之间的一个共同弱点,即在解码对数学实体的间接引用方面相对无能。我们发布了完整代码库、构建的数据集以及微调后的模型,以推动该领域未来的进展。

英文摘要:

This paper proposes a methodology for generating and perturbing detailed derivations of equations at scale, aided by a symbolic engine, to evaluate the generalisability of Transformers to out-of-distribution mathematical reasoning problems. Instantiating the framework in the context of sequence classification tasks, we compare the capabilities of GPT-4, GPT-3.5, and a canon of fine-tuned BERT models, exploring the relationship between specific operators and generalisation failure via the perturbation of reasoning aspects such as symmetry and variable surface forms. Surprisingly, our empirical evaluation reveals that the average in-distribution performance of fine-tuned models surpasses GPT-3.5, and rivals GPT-4. However, perturbations to input reasoning can reduce their performance by up to 80 F1 points. Overall, the results suggest that the in-distribution performance of smaller open-source models may potentially rival GPT by incorporating appropriately structured derivation dependencies during training, and highlight a shared weakness between BERT and GPT involving a relative inability to decode indirect references to mathematical entities. We release the full codebase, constructed datasets, and fine-tuned models to encourage future progress in the field.

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

↑