Evaluating LLM Math Skills in Practice: From Reverse Engineering Tasks to Proof Writing
Benchmark scores miss how large language models behave on real work: instruction following, refusal boundaries, reasoning-chain quality, and token or quota cost. This article outlines a reusable evaluation framework drawn from two intensive use cases—security-oriented reverse analysis of public vulnerabilities and independent proofs of open mathematical statements—and shows how to track constraint adherence, refusal rate, spend, and writing quality across model versions.
Introduction: Why Scores Are Not Enough
Release-time benchmark numbers mainly capture performance on standard tests. Real development work also depends on dimensions those scores ignore: how stably a model follows instructions, where it refuses, how long and readable its reasoning chains are, and how much quota a unit of work consumes. Drawing on intensive use that included reverse analysis and mathematical proof writing, this article lays out a reusable evaluation framework.
1. Evaluation Dimensions
1.1 Architecture and Instruction Following
Whether a model is usable shows up first in how it handles complex instructions. Common failures include:
- Task drift: Over a long prompt the model leaves the original constraints—for example, switching language when the brief required an English lecture note.
- Format collapse: Specified layout structures fall apart in the output.
- Context forgetting: Later steps drop preconditions from earlier in a multi-step task.
A sound design should keep constraints in force across thousands of tokens of prompt. A simple test is to use prompts that mix hard and soft constraints (for example, “prove a given mathematical statement and write it as an English lecture note in a specified layout”) and measure how often those constraints still hold.
1.2 The Refusal-Rate Trade-off
On security-related work such as vulnerability analysis and proof-of-concept (PoC) modification, refusal rate is a critical and often overlooked metric. The refusal boundary can shift sharply between versions of the same model:
- Early versions may refuse even legitimate security research, which hurts usability.
- Some newer versions tighten the boundary so that previously completable tasks are refused, and usability gets worse rather than better.
Version upgrades are not the same as experience upgrades. People who use models on security tasks should rerun their own benchmark set after each update instead of assuming old behavior still holds.
1.3 Quota Cost and Queueing
Commercial models typically meter usage, and cost for the same task can differ by several times across models. Heavy users should watch two things:
- Per-task spend: Run a standardized task (for example, producing a structured lecture note) and record the share of quota it uses.
- Queues and concurrency limits: Peak-time availability directly affects throughput.
A practical habit is a spend ledger: average cost per typical task, then allocate monthly quota so high-cost models are reserved for work they actually do well.
2. Case Study 1: Reverse Analysis and Public Vulnerability Workflows
Large models are widely used to assist vulnerability analysis in security research. A typical workflow is:
- Given a public patch or advisory, have the model analyze the root cause.
- Have the model adapt or write verification code from that logic.
- Validate in an authorized test environment.
In practice, models completed rewrites of exploit code for several publicly disclosed (n-day) issues that then verified in a real environment. That suggests leading models are already usable on the chain “understand vulnerability logic, then rewrite verification code.” Caveats:
- Rising refusal rates interrupt the workflow; repeatedly rephrasing prompts has a high hidden cost.
- Generated code still needs human review; models can introduce unstable memory operations or wrong boundary handling.
# Illustrative helper flow for verificationdef validate_exploit(model_output, sandbox):patch = extract_code(model_output) # extract generated codestatic_check = lint_and_audit(patch) # static reviewresult = sandbox.run(patch) # dynamic check in isolationreturn static_check and result.success
3. Case Study 2: Open Mathematical Proofs
Proof writing is a high-pressure test of reasoning because it needs:
- Long, strict logical chains—one wrong step invalidates the whole proof.
- Accurate reading of mathematical text (for example, formal algebra, sheaf theory, homological algebra).
- Technical writing that turns a proof into a structured lecture note.
A representative test is to take a result that an authoritative source states without a proof and require the model to prove it independently and write it up in English. With no proof in the source to copy, the model has to do mathematics rather than retrieve and stitch. In practice, one such lecture note used about 2% of a monthly quota, so cost stayed manageable, and quality was usable. Intensive math tasks are therefore a cheap, discriminating “health check” for models.
When scoring math ability, watch:
- Chain-of-thought quality: Concise, structured reasoning beats long stacking; overly long chains often mean the model is detouring and also slow the response.
- Natural writing: Whether the prose reads like an experienced mathematician and whether the logic connects smoothly.
- Layered ranking: Compare candidates on open problems, known problem types, and calculation separately rather than a single total score.
4. A Reusable Evaluation Method
From the above, a practical process is:
- Build a baseline task set: Cover 5–10 frequent real tasks spanning hard-constraint formatting, mathematical reasoning, and code generation.
- Record quantitative metrics: Constraint adherence rate, refusal rate, per-task quota, reasoning-chain length.
- Blind cross-review: Compare outputs anonymously so brand preference does not skew judgment.
- Regress regularly: Rerun the baseline after model updates to track capability drift.
Conclusion
Evaluating a large model should go beyond whether it can do a task and ask at what cost, stability, and quality it completes your work. Experience metrics—refusal rate, quota burn, reasoning-chain quality—often predict long-term value better than leaderboard scores. A personal baseline set, rerun over time, is the most reliable basis for choosing a model.
