/ Модель

Характеристики

Контекст
128 000 токенов
Параметры
7,1 млрд
Размер весов
16,6 ГБ
Лицензия
CC BY-NC 4.0
Архитектура
qwen2_5_vl · dense
Базовая модель
Qwen2.5-VL-7B-Instruct
Опубликована
2 ноя 2026

VEHME

Изображение и текст → текст3 профессии

VEHME проверяет рукописные математические решения и объясняет, где находится ошибка.

225скачиваний за 30 дней3лайкавеса обновлены16 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Изображение → текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

VEHME — специализированная мультимодальная модель для проверки рукописных решений по математике. Она создана авторами проекта VEHME на основе Qwen2.5-VL-7B-Instruct и дообучена с помощью supervised fine-tuning и GRPO. Модель принимает изображение математического задания, текст эталонного решения и изображение рукописного ответа ученика, после чего выдаёт оценку корректности и текстовое объяснение.

VEHME предназначена для обнаружения ошибок в многошаговых решениях и локализации неверного выражения или шага. В обучении использовались датасеты AIHub и FERMAT, синтетические рассуждения, дистиллированные из QwQ-32B, и модуль EVPM для поиска выражений в изображении. Архитектура — плотная vision-language модель Qwen2.5-VL с 7,1 млрд параметров; контекст — до 128 000 токенов. Карточка описывает задачи и датасеты на английском языке.

По результатам авторской оценки модель превосходит проверенные открытые базовые модели на двух рукописных математических бенчмарках, но точность локализации на FERMAT заметно ниже точности обнаружения ошибок. Для воспроизведения результатов авторы рекомендуют использовать опубликованный формат промпта и скрипты обработки изображений. Лицензия CC BY-NC 4.0 разрешает некоммерческое использование с указанием авторства.

Сценарии применения

  • проверка правильности рукописного решения математической задачи
  • поиск ошибочного шага в многошаговом решении
  • объяснение математической ошибки ученику
  • автоматизированная проверка письменных работ по математике

Ограничения

Качество локализации ошибок зависит от изображения и расположения рукописных выражений; на FERMAT точность локализации ниже точности обнаружения ошибок. Исходный датасет AIHub нельзя свободно перераспространять, а лицензия модели ограничивает использование некоммерческими целями.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

VEHME: A Vision-Language Model for Evaluating Handwritten Mathematics Expressions

VEHME is a vision-language model for evaluating open-form handwritten mathematical solutions. Given a math question, a reference solution, and a student's handwritten answer, VEHME assesses whether the student's reasoning is correct and, when incorrect, describes where the error occurs.

📄 Paper · 🌐 Project Website · 💻 Code

🎯 Model Overview

VEHME addresses two complementary tasks:

  • Error Detection (ED): Determine whether a handwritten student solution is correct or incorrect.
  • Error Localization (EL): Identify and explain the erroneous expression or step in an incorrect solution.

Unlike answer-only grading, VEHME is designed for handwritten, multi-step student work containing varied mathematical notation and layouts. The training pipeline combines supervised fine-tuning (SFT) with Group Relative Policy Optimization (GRPO). It also introduces an Expression-Aware Visual Prompting Module (EVPM) to improve localization of handwritten expressions in challenging layouts.

Key Features

  • Handwritten solution assessment: Directly evaluates messy handwriting of student mathematical work rather than requiring clean text transcription.
  • Reasoning-oriented feedback: Generates an explanation of its assessment together with an explicit correctness label.
  • Expression-level error localization: Describes an erroneous step or expression when a mistake is detected.
  • Specialized training: Uses distilled reasoning traces and reinforcement-learning rewards for correctness and localization.
  • Spatial grounding: The training pipeline includes EVPM for expression-aware visual prompting.

🏆 Performance Benchmarks

We evaluate VEHME-Qwen2.5-VL-7B against eight representative vision-language models, including four proprietary models and four open-source models, on two handwritten mathematics benchmarks: AIHub and FERMAT.

We consider two evaluation tasks:

  • Error Detection (ED): Determine whether a student's handwritten mathematical solution is correct.
  • Error Localization (EL): Identify the location of errors within an incorrect solution.

Performance is measured using Accuracy (Acc) and F1 score (F1). All results are reported as percentages (%), with higher values indicating better performance.

AIHub Benchmark

ModelED Acc ↑ED F1 ↑EL Acc ↑EL F1 ↑
Proprietary Models
GPT-4o73.0048.6762.8861.01
GPT-4o-mini57.1532.9738.9849.18
Gemini-2.0-Flash75.4050.3067.4065.73
Gemini-2.5-Flash-Preview71.0146.9163.0065.68
Open-source Models
Phi-4-multimodal-instruct38.5729.3935.9321.33
Qwen2.5-VL-7B-Instruct46.6831.4838.0033.75
Pixtral-12B52.6731.6932.2038.35
Llama-3.2-11B-Vision-Instruct19.4918.5844.785.62
VEHME-Qwen2.5-VL-7B (Ours)73.0149.2261.1358.18

FERMAT Benchmark

ModelED Acc ↑ED F1 ↑EL Acc ↑EL F1 ↑
Proprietary Models
GPT-4o66.6258.5755.0466.07
GPT-4o-mini81.7556.6247.1862.61
Gemini-2.0-Flash75.2243.1364.2475.13
Gemini-2.5-Flash-Preview80.1245.6863.3574.72
Open-source Models
Phi-4-multimodal-instruct36.2022.3316.9115.15
Qwen2.5-VL-7B-Instruct44.8126.0424.3332.18
Pixtral-12B41.3925.5610.533.52
Llama-3.2-11B-Vision-Instruct32.4922.1521.0722.67
VEHME-Qwen2.5-VL-7B (Ours)62.6129.8131.9044.36

Key Findings

  • Best open-source performance: VEHME outperforms all evaluated open-source baselines across both datasets and both tasks, on Accuracy and F1.
  • Substantial improvement over the base model: On AIHub, VEHME improves Error Detection accuracy from 46.68% to 73.01% (+26.33 percentage points) and Error Localization accuracy from 38.00% to 61.13% (+23.13 percentage points).
  • Competitive with proprietary models on AIHub: VEHME achieves 73.01% Error Detection accuracy, comparable to GPT-4o (73.00%) and close to Gemini-2.0-Flash (75.40%).
  • Generalization to FERMAT: VEHME achieves 62.61% Error Detection accuracy and 31.90% Error Localization accuracy on FERMAT, exceeding all evaluated open-source baselines, although proprietary models retain stronger performance.

🔍 Expected Inputs and Output

Inputs

  1. An image of the mathematics question.
  2. A reference answer (text).
  3. An image of the student's handwritten solution.

Output format

<think>
Explanation of the student's reasoning and whether an error is present.
</think>
<correctness>
Incorrect
</correctness>
<localization>
Description of the incorrect mathematical expression or step.
</localization>

For a correct solution, the <correctness> field should contain Correct, and the <localization> field should contain None.

🚀 Getting Started

Installation

pip install -U transformers accelerate torch pillow qwen-vl-utils

Example Inference (Transformers)

import torch
from transformers import AutoProcessor, Qwen2_5_VLForConditionalGeneration
from qwen_vl_utils import process_vision_info

MODEL_ID = "phuongnt/VEHME"

model = Qwen2_5_VLForConditionalGeneration.from_pretrained(
    MODEL_ID,
    torch_dtype="auto",
    device_map="auto",
)
processor = AutoProcessor.from_pretrained(MODEL_ID)

prompt = """The following contains a math problem consisting of both a Question
and a Student Answer. Analyze the Student Answer to determine whether
there is any error. Explain your assessment, then follow this exact format:
<think>
Detailed reasoning explaining whether and where an error occurs.
</think>
<correctness>
Correct or Incorrect
</correctness>
<localization>
Identify the erroneous expression or step; write None if there is no error.
</localization>

Question: [first image]
Reference answer: The correct solution is ...
Student answer: [second image]"""

messages = [
    {
        "role": "user",
        "content": [
            {"type": "image", "image": "file:///path/to/question.png"},
            {"type": "image", "image": "file:///path/to/student_solution.png"},
            {"type": "text", "text": prompt},
        ],
    }
]

text = processor.apply_chat_template(
    messages, tokenize=False, add_generation_prompt=True
)
image_inputs, video_inputs = process_vision_info(messages)
inputs = processor(
    text=[text], images=image_inputs, videos=video_inputs,
    padding=True, return_tensors="pt"
).to(model.device)

with torch.inference_mode():
    output_ids = model.generate(**inputs, max_new_tokens=1024)

output_ids = output_ids[:, inputs.input_ids.shape[1]:]
print(processor.batch_decode(output_ids, skip_special_tokens=True)[0])

Note: For exact reproduction of the paper, use the provided inference scripts, including the published prompt format and image processing.

📊 Training Details

Base Model

VEHME is built on Qwen2.5-VL-7B-Instruct, a 7-billion-parameter vision-language model.

Training Pipeline

The paper describes a two-stage training process:

  1. Supervised fine-tuning: Structured reasoning and grading examples are distilled from QwQ-32B to teach the model the target response format and error analysis behavior.
  2. Reinforcement learning (GRPO): A composite reward encourages mathematical correctness, useful error localization, response formatting, and reasoning quality.

The full pipeline also uses EVPM, a YOLO-based module trained on synthesized multi-line handwritten mathematical expressions to predict expression bounding boxes. More information can be found in our paper.

Training Data

  • AIHub handwritten mathematics dataset: Handwritten mathematics problems and student responses.
  • FERMAT: A handwritten mathematical reasoning/error-analysis dataset.
  • Synthetic reasoning data: Distilled QwQ-32B analyses used during supervised fine-tuning.
  • Synthetic expression canvases: Used to train EVPM.

Public redistribution of the underlying AIHub dataset are not possible due to the provider's terms and geographic restrictions.

Training Configuration

SettingValue
Fine-tuningLoRA on MLP layers
LoRA rank / alpha8 / 32
OptimizerAdamW
Learning rate5e-5
SchedulerCosine decay
Warmup ratio0.05
Global batch size192
Weight decay0.1
Training epochs1
Training computeApproximately 6 NVIDIA A100 GPU-days
Training frameworkms-swift
Inference frameworkvLLM

🔗 Resources

📜 License

This model is released under the Creative Commons Attribution-NonCommercial 4.0 International License.

The model was trained using the 수학 과목 자동 풀이 데이터 dataset provided by AIHub. AIHub permits commercial and non-commercial use and distribution of trained models, subject to its applicable terms and source attribution requirements. The original AIHub dataset is not redistributed with VEHME.

📝 Citation

If VEHME is useful for your research, please cite:

@inproceedings{nguyen-etal-2025-vehme,
    title = "{VEHME}: A Vision-Language Model For Evaluating Handwritten Mathematics Expressions",
    author = "Nguyen, Thu Phuong and Nguyen, Duc M. and Jeon, Hyotaek and Lee, Hyunwook and Song, Hyunmin and Ko, Sungahn and Kim, Taehwan",
    booktitle = "Proceedings of the 2025 Conference on Empirical Methods in Natural Language Processing",
    year = "2025",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2025.emnlp-main.1619/"
}

🙏 Acknowledgments

This work was conducted by researchers at Ulsan National Institute of Science and Technology (UNIST) and Pohang University of Science and Technology (POSTECH). The paper acknowledges support from Korean NRF and IITP programs, and the use of data provided by the AIHub Open AI Dataset Project. See the publication for complete grant information.

This model is built upon Qwen2.5-VL-7B-Instruct by Alibaba Cloud. We thank the Qwen team for their excellent foundation model.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen2_5_VLForConditionalGeneration
Ревизия весов
47b5d5a

0 моделей