arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2410.20936cs.CL
收藏

基于符号等价性与语义一致性的数学命题自动形式化

Autoformalize Mathematical Statements by Symbolic Equivalence and Semantic Consistency

State Key Lab of Novel Software Technology, Nanjing University(南京大学现代软件技术国家重点实验室);Peking University(北京大学);University of Toronto(多伦多大学);Microsoft Research Asia(微软亚洲研究院)

Zenan Li, Yifan Wu, Zhaoyu Li, Xinming Wei, Xian Zhang, Fan Yang, Xiaoxing Ma

AI总结:

针对 LLM 数学命题自动形式化中 pass@1 与 pass@k 的差距,提出结合符号等价性和语义一致性从 k 个候选中选择最佳结果的框架,在 MATH 与 miniF2F 上显著提升准确率。

摘要:

自动形式化是将自然语言描述自动翻译为形式语言的任务,在多个领域都构成重大挑战,尤其是在数学领域。近期大语言模型(LLM)的进展展现出其甚至能够形式化竞赛级数学题目的可观能力。然而,我们观察到 LLM 生成的形式化结果在 pass@1 与 pass@k 准确率之间存在显著差距。为弥补这一差距,我们提出一种新颖框架,基于两种互补的自洽性方法——符号等价性与语义一致性——从 k 个自动形式化候选中评分并选出最佳结果。具体而言,符号等价性利用自动定理证明器识别各自动形式化候选之间的逻辑同质性;语义一致性则通过将候选非形式化,并计算原始文本与非形式化文本嵌入之间的相似度,来评估原意的保留程度。我们在 MATH 和 miniF2F 数据集上进行的大量实验表明,该方法显著提升了自动形式化准确率,在多种 LLM 和基线方法上实现了高达 0.22–1.35 倍的相对提升。

英文摘要:

Autoformalization, the task of automatically translating natural language descriptions into a formal language, poses a significant challenge across various domains, especially in mathematics. Recent advancements in large language models (LLMs) have unveiled their promising capabilities to formalize even competition-level math problems. However, we observe a considerable discrepancy between pass@1 and pass@k accuracies in LLM-generated formalizations. To address this gap, we introduce a novel framework that scores and selects the best result from k autoformalization candidates based on two complementary self-consistency methods: symbolic equivalence and semantic consistency. Elaborately, symbolic equivalence identifies the logical homogeneity among autoformalization candidates using automated theorem provers, and semantic consistency evaluates the preservation of the original meaning by informalizing the candidates and computing the similarity between the embeddings of the original and informalized texts. Our extensive experiments on the MATH and miniF2F datasets demonstrate that our approach significantly enhances autoformalization accuracy, achieving up to 0.22-1.35x relative improvements across various LLMs and baseline methods.

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

↑