atlas

Research map / Large language models / Alignment and preferences

FormalAlign: Automated Alignment Evaluation for Autoformalization

ICLR 2025 · Large language models › Alignment and preferences · approach: Steering and correcting LLM behavior · 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.

Proposes FormalAlign, a Mistral-7B evaluator trained jointly with cross-entropy autoformalization loss and a contrastive alignment loss to automatically score informal-formal (Lean 4) statement alignment.

Problem

Autoformalization (informal math to Lean 4) needs semantic alignment checking between informal and formal statements, but current evaluation relies on manual review, compiler checks (only logical validity), or BLEU/BERTScore (surface similarity), which miss subtle misalignments.

Approach

Fine-tune an LLM with a combined loss (autoformalization cross-entropy + contrastive loss between informal and formal hidden states), then score alignment by averaging a generation certainty score and a hidden-state cosine similarity score, with misaligned negatives created by six perturbation strategies.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use the combined cross-entropy and contrastive losses instead of cross-entropy loss alone (ablation)FormalAlign (Mistral-7B) · FormL4-BasicAlignment Selection: 98.64 -> 99.21Helped
use the combined cross-entropy and contrastive losses instead of cross-entropy loss alone (ablation)FormalAlign (Mistral-7B) · FormL4-RandomAlignment Selection: 82.81 -> 85.85Helped
use the combined cross-entropy and contrastive losses instead of cross-entropy loss alone (ablation)FormalAlign (Mistral-7B) · MiniF2F-ValidAlignment Selection: 52.45 -> 66.39Helped
use the combined cross-entropy and contrastive losses instead of cross-entropy loss alone (ablation)FormalAlign (Mistral-7B) · MiniF2F-TestAlignment Selection: 54.32 -> 66.70Helped
use the combined cross-entropy and contrastive losses instead of contrastive loss alone (ablation)FormalAlign (Mistral-7B) · MiniF2F-ValidAlignment Selection: 36.07 -> 66.39Helped
combine certainty and similarity scores instead of using certainty score alone (ablation)FormalAlign (Mistral-7B) · MiniF2F-ValidAlignment Selection: 53.69 -> 66.39Helped
combine certainty and similarity scores instead of using certainty score alone (ablation)FormalAlign (Mistral-7B) · MiniF2F-TestAlignment Selection: 55.55 -> 66.70Helped
add contrastive learning loss to the autoformalization training objective (ablation)FormalAlign autoformalization model · FormL4 BasicAutoformalization performance: 40.92 -> 43.14Helped
add contrastive learning loss to the autoformalization training objective (ablation)FormalAlign autoformalization model · FormL4 RandomAutoformalization performance: 35.88 -> 36.02Helped
fine-tune Mistral-7B as FormalAlign instead of using GPT-4automated alignment evaluation · FormL4-BasicAlignment Selection: 88.91 -> 99.21Helped
fine-tune Mistral-7B as FormalAlign instead of using GPT-4automated alignment evaluation · FormL4-BasicPrecision: 26.33 -> 93.65Helped
fine-tune Mistral-7B as FormalAlign instead of using GPT-4automated alignment evaluation · MiniF2F-ValidAlignment Selection: 64.34 -> 66.39Helped

Surprising findings

Limitations

Experimental setup

Datasets: FormL4 MMA MiniF2F

Benchmarks: FormL4-Basic FormL4-Random MiniF2F-Valid MiniF2F-Test

Metrics: Alignment Selection (AS) precision recall correctness ratio

Baselines: GPT-4 GPT-3.5 GPT-4o BLEU BERTScore Lean 4 compiler

Builds on: Mistral-7B InfoNCE contrastive loss BERTScore FormL4 MiniF2F

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