VLMs and OCR models on FERMAT
Add your model
Results come in as pull requests to this Space. Transcribe FERMAT with your model, grade the transcriptions with the Qwen3.8-27B judge, and open a PR with three files. We re-grade a random subset of your transcriptions with the same judge, recompute the tables and merge.
FERMAT (Nath et al., 2025) is gated on Hugging Face: accept its terms, then log in. Use the paper's OCR prompt (the default) for general VLMs, with thinking off; dedicated OCR models may use their model card's prompt (--user-prompt).
# install (the Qwen3.8-27B oracle grades ship with pink-eval 1.6 and later) pip install "pink-eval[fermat]" # 1) FERMAT images + manifest.jsonl pink fermat --out-dir fermat # 2) transcribe with your model (any OpenAI-compatible endpoint, e.g. vllm serve) pink ocr --manifest fermat/manifest.jsonl --model my-vlm \ --base-url http://localhost:8001/v1 --out ocr.jsonl # 3) grade with the judge (scripts/serve_qwen38_judge.sh in the PINK repo serves it on 2 GPUs, port 8000) pink grade --judge qwen3.8-27b --input ocr.jsonl --out grades.csv # 4) check your score pink score --model grades.csv --oracle fermat:qwen3.8-27b --missing zero
The pull request adds these files; <model> is a short lowercase id such as my-vlm-7b.
models/<model>.json # model card, below results/qwen3.8-27b/<model>.csv # grades.csv from pink grade transcriptions/<model>.jsonl # ocr.jsonl from pink ocr
{"name": "My-VLM-7B", "url": "https://huggingface.co/my-org/My-VLM-7B", "type": "VLM",
"params_b": 7.6, "note": "", "ocr_prompt": "paper", "source": "community", "added": "2026-12"}type is VLM or OCR; params_b is the total parameter count in billions (null for API models). Open the pull request on the Space's Community tab, or from Python:
from huggingface_hub import HfApi
HfApi().upload_folder(repo_id="CodeWorker/PINK-Leaderboard", repo_type="space",
folder_path="my_submission", create_pr=True, commit_message="Add My-VLM-7B")Grades from the paper's gpt-5 judge are also welcome; they go into the GPT-5 tab (results/gpt-5/).
How PINK scores a transcription
- Grade. A judge grades the transcription and, separately, the faithful transcription (the oracle) with the same five-item rubric: core formula, conditions, early and late calculation, final value; 20 points each.
- Penalize. A component that scores higher than the oracle was “fixed” by the transcription. It goes back to the oracle score when the gap is at most 10 points, and to 0 when it is larger.
- Score. PINK is the penalized total divided by the oracle total, over all samples. Raw is the same ratio without the penalty: above 1, the transcriptions grade better than what the students wrote.
In a 200-item human study, expert judgments preferred PINK's verdict 55.0% of the time, against 39.5% for BLEU. Open judges with thinking agree closely with GPT-5 on the paper's 15 VLMs: Kendall τ = 0.98 for Qwen3.8-27B and Qwen3.5-9B, against 0.90 for the paper's Qwen3-Next-80B. Details are on the project page.
BibTeX
@inproceedings{seong-etal-2026-vlms,
title = "When {VLM}s `Fix' Students: Identifying and Penalizing Over-Correction in the Evaluation of Multi-line Handwritten Math {OCR}",
author = "Seong, Jin and Liermann, Wencke and Kim, Minho and Shin, Jong-hun and Lim, Soojong",
booktitle = "Proceedings of the 2026 Conference on Empirical Methods in Natural Language Processing",
month = oct,
year = "2026",
address = "Budapest, Hungary",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2026.emnlp-main.476/",
doi = "10.18653/2026.emnlp-main.476",
pages = "10932--10953"
}