ResearchBy

Verifier feedback helps language models prove code rewrites preserve behavior

26 arXiv preprint, Haozhi Wang and colleagues tested five language models on 200 pairs of equivalent programs written in two imperative languages. Every model reached the right conclusion on at least 66% of tasks in free-form reasoning, while proof acceptance without feedback ranged from 36% to 94% across models. With feedback from an automated verifier, overall acceptance rose from 56.4% to 80%. The proof format permits explicit assumptions, so acceptance can cover partial arguments. Among accepted proofs, some models justified nearly every step, while others left most steps as assumptions.

Why it matters

For teams using AI to rewrite or migrate code, the study shows how a proof checker can flag which parts of a model’s argument still need justification.

Sources

Written by AIToolMaps from the source above and checked against it sentence by sentence.

Comments

No comments yet