arXiv:2608.28481cs.CLcs.AI2026-08

评测大模型将几何题转为形式化语言的能力,发现闭源模型远胜开源。

NL2AGBench: Benchmarking LLM Auto-Formalization for AlphaGeometry

论文配图:NL2AGBench: Benchmarking LLM Auto-Formalization for AlphaGeometry
图 1 · 摘自论文原文
  • 用AlphaGeometry执行验证替代文本相似度,评估翻译质量
  • 闭源模型可实现80%以上可执行翻译率,开源模型难保几何约束
  • 提出语法与逻辑错误分类体系,提示和微调能有效提升性能

大型语言模型在自然语言理解与数学推理方面表现突出,但其将非形式化数学问题转化为形式化表达的能力仍待探索。这对需要专用领域语言(DSL)输入的神经符号几何系统(如AlphaGeometry)尤为关键。尽管AlphaGeometry已接近国际数学奥林匹克金牌水平,但将自然语言题手动转换为正式语法仍是主要使用瓶颈。为此,我们提出自然语言到AlphaGeometry基准(NL2AGBench),通过在AlphaGeometry中执行验证来评估大模型将英文几何题转为兼容形式表示的能力。我们评估了十种主流开源与闭源大模型,涵盖多种参数规模,分析可执行翻译率、语法正确性及错误特征。实验显示闭源模型与开源模型间存在显著差距:领先闭源模型可实现超过80%的可执行翻译率,而最大开源模型仍难以稳定保持几何约束并生成有效形式化表达。我们引入错误分类体系,区分语法与逻辑错误,并研究少量示例提示、微调与人工提示等缓解策略,均在多个模型族中带来可测量的改进。

原文摘要 · Abstract (English)

Recent advances in large language models (LLMs) have demonstrated strong capabilities in natural language understanding and mathematical reasoning. However, their ability to translate informal mathematical problems into formal representations remains underexplored. This limitation is particularly important for neuro-symbolic geometry systems such as AlphaGeometry, whose theorem-proving engine requires inputs in a specialized domain-specific language (DSL). Although AlphaGeometry achieves near-IMO gold-medalist performance, manually converting natural-language problems into its formal syntax remains a significant usability bottleneck. To address this challenge, we introduce the Natural Language to AlphaGeometry Benchmark (NL2AGBench), which evaluates LLMs in translating English geometry problems into AlphaGeometry-compatible formal representations. NL2AGBench uses execution-based verification within AlphaGeometry to assess translation quality rather than relying solely on textual similarity. We evaluate ten state-of-the-art open- and closed-source LLMs across multiple parameter scales and analyze executable translation accuracy, syntactic correctness, and error characteristics. Our experiments reveal a substantial performance gap between closed- and open-source models: leading closed-source models achieve executable translation rates above 80%, while even the largest open-source models struggle to consistently preserve geometric constraints and produce valid formalizations. We introduce an error taxonomy distinguishing syntax and logic errors and investigate mitigation strategies, including few-shot prompting, fine-tuning, and human-guided hinting, which yield measurable improvements across multiple model families.

大模型形式化几何推理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。