Qwen2.5-Math-7B-Instruct — descriptive error verifier (v2)
Given a math question, an incorrect student solution and a natural-language error description, the model answers
aligned if the description is supported by the solution, otherwise not_aligned.
Full-parameter SFT of Qwen/Qwen2.5-Math-7B-Instruct; loss only on the assistant label.
Source: private repository WooYoungSeok/tutee_error, directory verifier_sft/, config config/descriptive_verifier_v2.json
(training code at commit eefe7a8, results at 95dfdfa).
Usage
Use the chat template with exactly these messages and greedy decoding (the evaluation used max_new_tokens=10).
Scoring is exact match after stripping whitespace; anything else counts as invalid.
System:
You are a mathematical error verifier.
Given a mathematics question, an incorrect solution, and an error description,
determine whether the description accurately describes an error
actually present in the solution.
Respond with aligned if the description is supported by the solution
in the context of the question. Otherwise, respond with not_aligned.
The description may use different wording from the solution and does
not need to cover every error. However, all error claims in the
description must be supported. A shared mathematical topic or an error
that could occur in the question is not enough.
Output exactly one label: aligned or not_aligned.
Do not provide an explanation or any other text.
User (placeholders filled with the question, the incorrect solution and the error description):
Question:
{question}
Incorrect solution:
{solution}
Error description:
{error_description}
Training
- Data v2: 2724 / 341 / 344 anchors (train / validation / test); each anchor gives one positive (its own description) and one negative (a description from a case in the same split and dataset with a different source label and a different question group). Sources: EIC (GSM8K, MathQA), MathClean, MathEdu, Stepwise. Solutions carrying more than one source label were removed before splitting. Question-group split 80/10/10.
- Targets are automatic; negatives were not semantically reviewed.
- 5 epochs, lr 1e-05, weight decay 0.01, warmup ratio 0.1, per-device batch 8 x gradient accumulation 4 (effective 32), bf16, gradient checkpointing, max length 4096, DeepSpeed ZeRO-2 with CPU optimizer offload, 1x A100 80GB, 8 h 18 min.
- Best checkpoint by validation loss: epoch 3 (these weights).
| epoch | step | validation loss |
|---|---|---|
| 1 | 171 | 0.0472 |
| 2 | 342 | 0.0583 |
| 3 | 513 | 0.0308 |
| 4 | 684 | 0.0429 |
| 5 | 855 | 0.0462 |
Evaluation (v2 test, 688 rows = 344 pairs)
Agreement with the automatic targets; 95% interval from a question-group bootstrap.
| model | accuracy [95% CI] | macro-F1 | pair accuracy | invalid |
|---|---|---|---|---|
| this model (exact match) | 0.9738 [0.9593, 0.9855] | 0.9738 | 0.9506 | 0.0000 |
| gpt-5.6-sol (exact match) | 0.9637 [0.9504, 0.9764] | 0.9636 | 0.9273 | 0.0000 |
| Qwen2.5-Math-7B-Instruct, untuned (gpt-4o-mini verdict extraction) | 0.7820 [0.7515, 0.8103] | 0.7808 | 0.5901 | 0.0000 |
| Qwen2.5-Math-7B-Instruct, untuned (exact match) | 0.0000 [0.0000, 0.0000] | 0.0000 | 0.0000 | 0.9985 |
Accuracy by dataset (this model): eic 0.9795, mathclean 0.9674, mathedu 0.9593, stepwise 0.9878