Formalize Once, Edit the Rest: Efficient Lean-Based Answer Selection for Math Reasoning
The paper introduces BASE, a base-and-edit pipeline that leverages a specialized rewriter model (LEANSCRIBE) to formalize a single candidate answer and efficiently derive the remaining K-1 formal statements through in-place editing, thereby significantly reducing computational costs while improving answer selection accuracy in Lean-based mathematical reasoning.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are a teacher grading a stack of 8 different math essays written by a smart but sometimes confused student (the AI). Each essay tries to solve the same problem, but they all arrive at slightly different answers. Your job is to figure out which one is actually correct.
Traditionally, to check if an answer is right, you might ask a super-rigid, machine-checkable math robot (called Lean) to verify each essay one by one. But here's the catch: before the robot can check an essay, you have to translate the student's messy, natural-language handwriting into the robot's strict, computer-code language. This translation process is slow, expensive, and requires a lot of computing power. If you have 8 essays, you have to pay for 8 expensive translations.
The paper introduces a new method called BASE (Base-and-Edit) that changes the game. Instead of translating all 8 essays from scratch, BASE does something clever:
1. The "Base" Discovery
First, the system looks at the essays in order of confidence (starting with the one the student thinks is most likely correct). It translates just one of them into the robot's language and asks the robot, "Does this make sense?"
- If the robot says "Yes, this is a valid math statement," that becomes the Base.
- If the robot says "No," it tries the next one.
- Usually, the first or second try works. So, you only pay for one expensive translation.
2. The "Edit" (The Magic Trick)
Now, instead of translating the remaining 7 essays from scratch, BASE realizes they are almost identical to the first one. They share the same problem structure; they just have a different number or answer at the end.
Think of the first translated essay as a cookie cutter. The other 7 essays are just the same cookie shape, but with a different "filling" (the answer).
- Simple Edits: If the answer is written exactly the same way (e.g., "5"), BASE just swaps the number.
- Smart Edits (LEANSCRIBE): Sometimes the student writes the answer in a weird way (like "the square root of 13 times 3"). The robot might have translated that as a complex code block. BASE uses a special helper model called LEANSCRIBE to figure out exactly where that complex code block is and how to swap it out for the new answer's code. It's like having a master chef who knows exactly which ingredient to swap in a recipe without ruining the whole dish.
The Result: A "Pareto Improvement"
The paper claims this method is a "Pareto improvement," which is a fancy way of saying: "We got better results while spending less money."
- Cheaper: Instead of paying for 8 translations, they pay for 1 translation and 7 cheap edits. This cuts the cost by about 5 times (specifically, 5.4x on average).
- More Accurate: Surprisingly, this method actually found the correct answer more often than checking everyone from scratch. Why? Because by reusing the "Base" that the robot already approved, the system avoids the mistakes that happen when you try to translate a new, messy essay from scratch. It's like using a proven, sturdy blueprint for a house and just changing the paint color, rather than trying to build a new house from scratch every time.
The Bottom Line
The authors built a system that stops wasting time re-translating the same math problem over and over. It finds one "good" version, locks it in, and then just tweaks the answer for the rest. This makes checking math answers with AI faster, cheaper, and surprisingly more reliable.
What they didn't claim:
- They didn't say this fixes the AI's math skills; it just helps pick the best answer from a list.
- They didn't claim it works for every type of problem (only those where the answers look structurally similar).
- They admitted that while the "translation" is checked, the final "proof" (the step-by-step logic) is still hard for current robots to do quickly, so they focus on checking if the answer looks right in the robot's language first.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.