Manuscript Offprint

arXiv:2608.28481

NL2AGBench: Benchmarking LLM Auto-Formalization for AlphaGeometry

Samuel Xiao, Judy Song, Rory Hu, Ziliang Zong

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Samuel Xiao

Valley Christian High School

Fremont, CA

Judy Song

Vandegrift High School

Austin, TX

Rory Hu

Groton School

Cupertino, CA

Ziliang Zong

Computer Science Department

Texas State University

Abstract—Recent advances in large language models (LLMs) have demonstrated strong performance in natural language understanding and mathematical reasoning. However, their ability to translate informal mathematical problem statements into formal representations remains underexplored. This limitation is particularly important for neuro-symbolic geometry systems such as AlphaGeometry, whose theorem-proving engine requires inputs written in a specialized domain-specific language (DSL). Although AlphaGeometry achieved near-IMO gold-medalist performance on Olympiad geometry problems, the manual conversion of natural-language problems into its formal syntax remains a significant usability bottleneck. To address this gap, we introduce Natural Language to AlphaGeometry Benchmark (NL2AGBench), which aims to evaluate the ability of LLMs to translate English geometry problems into AlphaGeometry-compatible formal representations. NL2AGBench evaluates translation quality using execution-based verification within the AlphaGeometry framework rather than relying solely on textual similarity metrics. We evaluate ten state-of-the-art open- and closed-source LLMs spanning multiple parameter scales and analyze their performance in terms of executable translation accuracy, syntactic correctness, and error characteristics. Our experiments reveal a substantial performance gap between frontier closed-source models and open-source alternatives. While leading closed-source models achieve executable translation rates exceeding 80%, even the largest open-source models struggle to consistently preserve geometric constraints and produce valid formalizations. To better understand these failures, we introduce an error taxonomy that categorizes AlphaGeometry execution failures into syntax and logic errors. We further investigate mitigation strategies, including few-shot prompting, fine-tuning, and human-guided hinting, demonstrating measurable improvements across multiple model families.

Index Terms—AlphaGeometry, benchmark, translation, neuro-symbolic learning, prompt engineering.

I. INTRODUCTION

Recent progress in large language models (LLMs) has significantly advanced natural language understanding, code generation, and mathematical reasoning. Despite these advances, translating informal mathematical descriptions into machine-verifiable formal representations remains a challenging problem. This process, commonly referred to as autoformalization, is a critical prerequisite for many theorem-proving and neuro-symbolic reasoning systems because formal solvers require precise symbolic inputs rather than natural-language descriptions.

Geometry theorem proving presents a particularly challenging auto-formalization setting. Unlike algebraic problems, geometry problems often contain implicit spatial relationships, diagram-dependent information, and complex geometric constraints that must be preserved exactly during translation. Even small translation errors can fundamentally alter a problem's meaning and prevent downstream reasoning systems from producing valid proofs.

AlphaGeometry represents one of the most successful neuro-symbolic systems for Olympiad-level geometry reasoning [1]. By combining neural-guided auxiliary construction generation with symbolic deductive reasoning, AlphaGeometry solved 25 of 30 historical International Mathematical Olympiad (IMO) geometry problems and demonstrated performance comparable to elite human competitors. However, AlphaGeometry requires all problems to be expressed in a specialized domain-specific language (DSL). As a result, geometry problems written in standard mathematical English must first be manually translated into formal syntax before theorem proving can begin. This translation requirement remains a major barrier to accessibility, scalability, and practical deployment. Figure 1 illustrates this challenge. On the left is a geometry problem written in natural mathematical language, similar to the format used in Olympiad competitions and textbooks. On the right is the corresponding AlphaGeometry DSL representation required by the theorem prover. While the English description is concise and intuitive for human readers, the formal representation must explicitly encode geometric objects, constraints, incidences, and proof targets using a strict symbolic syntax. Minor omissions or incorrect constructions can fundamentally change the problem semantics and prevent the theorem prover from generating a valid proof.

The challenge of converting natural-language geometry problems into formal representations is closely related to semantic parsing and mathematical auto-formalization. Prior work has explored translating informal mathematics into proof-assistant languages such as Lean, Isabelle, and Metamath, while recent studies have investigated the use of LLMs to assist formal theorem proving [2], [3]. However, existing benchmarks primarily evaluate proof generation, mathematical reasoning, or general auto-formalization. To the best of our knowledge, no benchmark specifically evaluates the translation of natural-language geometry problems into AlphaGeometry-compatible formal representations.

To address this gap, we introduce NL2AGBench, a benchmark designed to evaluate the ability of LLMs to trans-

Problem in English

Let ABC be an acute-angled triangle with AB!=AC. The circle with diameter BC intersects the sides AB and AC at M and N respectively. Denote by O the midpoint of the side BC. The bisectors of the angles <BAC and <MON intersect at R. Prove that the circumcircles of the triangles BMR and CNR have a common point lying on the side BC.

Source: IMO 2004 P1

Figure

AG Domain Language Translation

a b c = triangle a b c; o = midpoint o

b c; m = on_circle m o b, on_line m

a b; n = on_circle n o b, on_line n a

c; r = angle_bisector r b a c,

angle_bisector r m o n; o1 = circle

o1 b m r; o2 = circle o2 c n r; p =

on_circle p o1 r, on_circle p o2 r ?

coll p b c

Key Translation Gap

Fig. 1. Translation gap between natural-language geometry problems and AlphaGeometry's formal DSL. While AlphaGeometry has demonstrated strong theorem-proving capabilities, the manual formalization step remains a major barrier to usability and large-scale deployment.

late English geometry problems into AlphaGeometry's DSL. NL2AGBench consists of geometry problems paired with verified formal representations and evaluates model outputs through direct execution within AlphaGeometry. This execution-based evaluation allows us to assess not only syntactic correctness but also whether generated translations preserve the geometric semantics required for theorem proving.

Using NL2AGBench, we evaluate a diverse collection of open- and closed-source LLMs and analyze their ability to bridge the gap between natural-language problem descriptions and formal geometric reasoning systems. Our results reveal a substantial performance disparity between frontier closed-source models and open-source alternatives, highlighting the difficulty of geometry-specific auto-formalization. We further characterize common failure modes through a systematic error taxonomy and analyze mitigation strategies including few-shot prompting, fine-tuning, and human-guided hints.

Our main contributions are summarized as follows:

• We introduce NL2AGBench, a benchmark for evaluating the translation of natural-language geometry problems into AlphaGeometry-compatible domain-specific language representations. The benchmark provides a standardized framework for studying geometry auto-formalization and LLM-assisted theorem-proving pipelines.

• We conduct a comprehensive evaluation of ten state-of-the-art LLMs, including both open-source and closed-source models spanning multiple parameter scales. Our results reveal a substantial performance gap between frontier proprietary models and currently available open-source alternatives. The largest open-source model achieves a score of under 46% with an optimized prompting technique, while closed-source large frontier models have reached 85% and above.

• We introduce a systematic error taxonomy for Alpha-Geometry translation failures, categorizing execution failures into syntax and logic errors. This taxonomy provides practical insights into common failure modes and facilitates future research on geometry auto-formalization.

• We investigate multiple translation-improvement strategies, including few-shot prompting, fine-tuning, and human-guided hinting. Our experiments demonstrate that targeted prompting and guidance can significantly improve pass rates for Llama3.1:70b by 23%, GPT-4o-mini:8b by 8%, and Qwen3:235b by 33.3%.

References (17)

  • Solving olympiad geometry without human demonstrations
  • Semantic parsing on freebase from question-answer pairs
  • Language to logical form with neural attention
  • A deductive database approach to automated geometry theorem proving and discovering
  • Tonggeometry
  • Autoformalization with large language models
  • Draft, sketch, and prove: Guiding formal theorem provers with informal proofs
  • Minif2f: A cross-system benchmark for formal mathematical statement proving
  • Leandojo: Theorem proving with retrieval-augmented language models
  • Proofbridge
  • Alphaproof
  • Measuring mathematical problem solving with the math dataset
  • Training Verifiers to Solve Math Word Problems
  • Olympiadbench: A challenging benchmark for promoting agi with olympiad-level bilingual multimodal scientific problems
  • DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models
  • Chain-of-thought prompting elicits reasoning in large language models
  • Self-consistency improves chain of thought reasoning in language models