arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.15795cs.AIcs.CLcs.LGcs.PL
收藏

Lean-ing on Quality:高质量数据如何在自动形式化中胜过多样化多语言数据

Lean-ing on Quality: How High-Quality Data Beats Diverse Multilingual Data in AutoFormalization

Stanford University(斯坦福大学)

Willy Chan, Michael Souliman, Jakob Nordhagen, Brando Miranda, Elyas Obbad, Kai Fronsdal Sanmi Koyejo

AI总结:

针对大语言模型自动形式化性能不佳、标注数据稀缺的问题,提出三种基于人工提示回译的合成数据生成方法,以数据质量优先,仅用少量token就在ProofNet基准上超越了用大规模多语言数据集微调的模型,降低了证明形式化的资源成本。

摘要:

自动形式化(将非形式化数学语言转化为形式化规范与证明的过程)对当前最先进的(大)语言模型而言仍是一项艰巨任务。现有研究对性能差距的成因给出了相互矛盾的解释。为此,我们提出一种新颖方法,即借助人工精心设计的提示词开展回译,以增强语言模型的数学能力,尤其针对标注数据稀缺带来的挑战。具体而言,我们评估了该策略的三种主要变体:(1)实时(在线)回译;(2)结合少样本扩增的蒸馏(离线)回译;(3)与证明状态信息整合的逐行证明分析。每种变体均以数据质量优先于数量为设计原则,聚焦生成证明的高保真度而非单纯的数据规模。我们的研究结果表明,采用所提方法生成优先质量而非数量的合成数据,可提升大语言模型的自动形式化性能,这一点通过ProofNet等标准基准测试得到验证。关键在于,我们的方法仅用极少的token数就超越了预训练模型。我们还通过策略性提示与回译证明,我们的方法在ProofNet基准上的表现超过了使用MMA等大规模多语言数据集进行微调的模型,而所用token数仅为后者的1/150。综上,我们的方法提供了一种颇具前景的新途径,可大幅降低证明形式化所需的资源,从而加速数学领域的人工智能发展。

英文摘要:

Autoformalization, the process of transforming informal mathematical language into formal specifications and proofs remains a difficult task for state-of-the-art (large) language models. Existing works point to competing explanations for the performance gap. To this end, we introduce a novel methodology that leverages back-translation with hand-curated prompts to enhance the mathematical capabilities of language models, particularly addressing the challenge posed by the scarcity of labeled data. Specifically, we evaluate three primary variations of this strategy: (1) on-the-fly (online) backtranslation, (2) distilled (offline) backtranslation with few-shot amplification, and (3) line-by-line proof analysis integrated with proof state information. Each variant is designed to optimize data quality over quantity, focusing on the high fidelity of generated proofs rather than sheer data scale. Our findings provide evidence that employing our proposed approaches to generate synthetic data, which prioritizes quality over volume, improves the Autoformalization performance of LLMs as measured by standard benchmarks such as ProofNet. Crucially, our approach outperforms pretrained models using a minimal number of tokens. We also show, through strategic prompting and backtranslation, that our approaches surpass the performance of fine-tuning with extensive multilingual datasets such as MMA on ProofNet with only 1/150th of the tokens. Taken together, our methods show a promising new approach to significantly reduce the resources required to formalize proofs, thereby accelerating AI for math.

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

↑