atlas

Research map / Large language models / Instruction and fine-tuning

Multi-language Diversity Benefits Autoformalization

NeurIPS 2024 · Large language models › Instruction and fine-tuning · approach: Fine-tuning generalization and delta compression · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Creates MMA, a 332K informal-formal dataset by using GPT-4 to informalise Isabelle AFP and Lean4 mathlib4 statements, and fine-tunes LLaMA-33B and Mistral 7B on it for multi-language autoformalization.

Problem

Autoformalization needs large parallel informal-formal data, which is scarce; existing work relies on small manually curated corpora or few-shot prompting, which suffers from data scarcity and formal-language difficulty.

Approach

Reverse-direction distilled back-translation: use GPT-4 to informalise existing formal statements from two proof libraries (Isabelle AFP and Lean4 mathlib4) into natural language, then fine-tune open LLMs to formalise, and show that jointly training on multiple formal languages beats single-language training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Fine-tune LLaMA on both Isabelle and Lean4 MMA data instead of Isabelle-only data (ablation)LLaMA-33B autoformalization · miniF2F + ProofNet, Isabelleacceptable with minimal corrections: 6% -> 18%Helped
Fine-tune LLaMA on both Isabelle and Lean4 MMA data instead of Lean4-only data (ablation)LLaMA-33B autoformalization · miniF2F + ProofNet, Lean4acceptable with minimal corrections: 10% -> 16%Helped
Fine-tune Mistral on both Isabelle and Lean4 MMA data instead of Isabelle-only data (ablation)Mistral 7B autoformalization · miniF2F + ProofNet, Isabelleacceptable with minimal corrections: 20% -> 29%Helped
Fine-tune Mistral on both Isabelle and Lean4 MMA data instead of Lean4-only data (ablation)Mistral 7B autoformalization · miniF2F + ProofNet, Lean4acceptable with minimal corrections: 26% -> 31%Helped
Fine-tune on MMA instead of using the base modelLLaMA-33B and Mistral 7B autoformalization · miniF2F + ProofNet, Isabelle and Lean4acceptable with minimal corrections: 0% -> 6–31%Helped
Train on both Isabelle and Lean4 rather than Isabelle only (ablation)Autoformalization models · 200 evaluation samples, Isabelleaverage correction effort: 2.785 -> 2.415Helped
Train on both Isabelle and Lean4 rather than Lean4 only (ablation)Autoformalization models · 200 evaluation samples, Lean4average correction effort: 2.67 -> 2.495Helped
Fine-tune on Isabelle and Lean4 MMA data instead of using the base modelAutoformalization models · 200 evaluation samples, Isabelleaverage correction effort: 4 -> 2.415Helped
Fine-tune on Isabelle and Lean4 MMA data instead of using the base modelAutoformalization models · 200 evaluation samples, Lean4average correction effort: 3.995 -> 2.495Helped

Surprising findings

Limitations

Experimental setup

Datasets: MMA (Isabelle AFP and Lean4 mathlib4 informal-formal pairs) miniF2F ProofNet

Benchmarks: miniF2F ProofNet

Metrics: compilation rate human correction effort level (0-4 Likert) share of formalisations acceptable with minimal corrections validation loss and token accuracy

Baselines: base LLaMA-33B (no fine-tuning) base Mistral 7B (no fine-tuning) single-language fine-tuned models (Isabelle only, Lean4 only)

Builds on: back-translation Codex-based autoformalization (Azerbayev et al.) instruction prompting

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy