TopoAlign: A Framework for Aligning Code to Math via Topological Decomposition

作者: Yupei Li, Philipp Borchert, Gerasimos Lampouras

摘要

Large Language Models (LLMs) excel at both informal and formal (e.g. Lean 4) mathematical reasoning but still struggle with autoformalisation, the task of transforming informal into formal mathematical statements. Yet, the performance of current Math LLMs is constrained by the scarcity of large-scale corpora, particularly those containing pairs of informal and formal statements. Interestingly, the formal languages used in autoformalisation share structural similarities with programming languages, and code data is available at scale. However, current models trained on code do not transfer effectively to formal math, due to structural and syntactic differences between them. To address this, we propose TopoAlign, a framework that unlocks widely available code repositories as training resources for Math LLMs. TopoAlign decomposes code into docstrings, main functions, and dependency functions, and reassembles these components into analogues that structurally mirror formal statements. We train three state-of-the-art models, , and , and evaluate them on the , , and benchmarks. TopoAlign provides substantial gains for , improving performance by 17.77% on BEq@10 and 68.82% on typecheck@10, and also measurably improves by 0.12% on BEq@10 and 1.09% on typecheck@10 despite introducing no new mathematical knowledge.

PDF打开原文
用 AI 找相似论文

可以直接复制这句话问 AI

用 Paperlist 找和「TopoAlign: A Framework for Aligning Code to Math via Topological Decomposition」相似的论文(id: 238313,EMNLP 2026)
set up https://paperlist.ai/SKILL.md

接入 MCP命令行 CLI