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
针对 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.
Know Your Limits : On the Faithfulness of LLMs as Solvers and Autoformalizers in Legal Reasoning
UC Santa Cruz(加州大学圣克鲁兹分校);Univ. Helsinki(赫尔辛基大学);CodeX, Stanford(斯坦福大学CodeX中心);Stanford University(斯坦福大学);Canyon Crest Academy(峡谷峰学院);Monta Vista High School(蒙塔维斯塔高中);Los Altos High School(洛斯阿尔托斯高中)
Autoformalizing Natural Language to First-Order Logic: A Case Study in Logical Fallacy Detection
Stanford University(斯坦福大学);X, the moonshot factory(X moonshot工厂);Max Planck Institute for Intelligent Systems(马克斯·普朗克智能系统研究所);ETH Zürich(苏黎世联邦理工学院);University of Toronto(多伦多大学)
In Search of the Long-Tail: Systematic Generation of Long-Tail Inferential Knowledge via Logical Rule Guided Search
University of Southern California(南加州大学);Ohio State University(俄亥俄州立大学);Fudan University(复旦大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所);University of Pittsburgh(匹兹堡大学);University of Washington(华盛顿大学);Cornell University(康奈尔大学)