Improving Autoformalization using Type Checking

类型(生物学) 计算机科学 程序设计语言 地质学 古生物学
作者
Auguste Poiroux,Gail Garfinkel Weiss,Viktor Kunčak,Antoine Bosselut
出处
期刊:Cornell University - arXiv [Cornell University]
标识
DOI:10.48550/arxiv.2406.07222
摘要

Large language models show promise for autoformalization, the task of automatically translating natural language into formal languages. However, current autoformalization methods remain limited. The last reported state-of-the-art performance on the ProofNet formalization benchmark for the Lean proof assistant, achieved using Codex for Lean 3, only showed successful formalization of 16.1% of informal statements. Similarly, our evaluation of GPT-4o for Lean 4 only produces successful translations 34.9% of the time. Our analysis shows that the performance of these models is largely limited by their inability to generate formal statements that successfully type-check (i.e., are syntactically correct and consistent with types) - with a whopping 86.6% of GPT-4o errors starting from a type-check failure. In this work, we propose a method to fix this issue through decoding with type-check filtering, where we initially sample a diverse set of candidate formalizations for an informal statement, then use the Lean proof assistant to filter out candidates that do not type-check. Using GPT-4o as a base model, and combining our method with self-consistency, we obtain a +18.3% absolute increase in formalization accuracy, and achieve a new state-of-the-art of 53.2% on ProofNet with Lean 4.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
Lou应助月亮采纳,获得10
刚刚
充电宝应助炙心采纳,获得10
刚刚
raolowe发布了新的文献求助10
1秒前
2秒前
3秒前
小刘完成签到,获得积分10
3秒前
坦率灵槐发布了新的文献求助10
5秒前
Zhoulei完成签到 ,获得积分10
5秒前
FashionBoy应助深情的新儿采纳,获得10
6秒前
Orange应助海洋球采纳,获得10
7秒前
开心发布了新的文献求助10
8秒前
小二郎应助xxj采纳,获得10
8秒前
abcd发布了新的文献求助10
8秒前
9秒前
阳和启蛰发布了新的文献求助20
10秒前
充电宝应助Waa采纳,获得10
10秒前
李爱国应助王杰采纳,获得10
12秒前
猪猪意完成签到,获得积分10
12秒前
12秒前
13秒前
TZT完成签到,获得积分10
13秒前
zzz完成签到,获得积分10
14秒前
AI imaging完成签到,获得积分10
14秒前
14秒前
Lucas应助冷傲迎梦采纳,获得10
14秒前
Jodie发布了新的文献求助30
15秒前
16秒前
17秒前
亦芝狐完成签到,获得积分10
17秒前
小马甲应助cocolinfly采纳,获得30
19秒前
20秒前
丘比特应助布鞋真暖采纳,获得10
20秒前
海洋球发布了新的文献求助10
20秒前
CJR发布了新的文献求助10
21秒前
莫愁发布了新的文献求助10
21秒前
22秒前
23秒前
25秒前
空勒发布了新的文献求助10
26秒前
Jasper应助OK采纳,获得10
26秒前
高分求助中
Principles of Economics, 11th Edition 10000
University Physics with Modern Physics, 16th edition 10000
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Matrix Methods in Data Mining and Pattern Recognition 510
Social Skills Improvement System-Rating Scales--Chinese Version 500
Dynamische Polarisation von H-1 und B-11 in (CH-3)-3NBH-3 500
CLSI M07 2024 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7245553
求助须知:如何正确求助?哪些是违规求助? 8869355
关于积分的说明 18709562
捐赠科研通 6921896
什么是DOI,文献DOI怎么找? 3197363
关于科研通互助平台的介绍 2371956
邀请新用户注册赠送积分活动 2172230