How Do I Evaluate My Model?
Learn how to evaluate VLM performance in Datature Vi. Understand IoU, F1, BLEU, BERTScore, and what good scores look like for phrase grounding and VQA.
Evaluation tells you whether your trained VLM actually learned the right patterns from your data. Datature Vi computes metrics automatically during training and shows them on the run dashboard. For phrase grounding, the key metrics are IoU and F1. For VQA, the key metrics are BLEU and BERTScore. This page explains each metric in plain language and shows you what "good" looks like.
Why evaluate?
Training loss tells you the model is learning. Evaluation metrics tell you if it's learning the RIGHT things on data it hasn't seen before. Datature Vi uses a validation set (images held out from training) to compute these metrics at regular intervals throughout the run.
A model with low training loss but poor evaluation metrics has memorized your training data rather than learning general patterns. Evaluation catches this before you deploy.
Phrase grounding metrics
These metrics apply when your task is phrase grounding. They measure how well the model draws bounding boxes around objects described in text. Datature Vi computes them on validation images at each evaluation checkpoint.
VQA metrics
These metrics apply when your task is visual question answering. They measure how well the model's generated text matches your reference answers. Datature Vi tracks them on the run dashboard alongside loss curves.
Freeform text evaluation
Freeform text tasks produce custom output formats: JSON, YAML, structured reports, or domain-specific text. Automated metrics like BERTScore and BLEU apply to freeform text the same way they do to VQA, but they only measure text similarity. For structured outputs, you also need to verify format compliance and field accuracy.
Automated metrics
Datature Vi computes BERTScore and BLEU on freeform text validation samples during training. These metrics tell you whether the model's output conveys the same meaning and wording as your annotations. Use the same interpretation guidelines from the VQA metrics section above.
Manual evaluation for structured output
When your freeform text model produces structured data (JSON, YAML, or custom schemas), automated metrics miss important failure modes. A response with correct meaning but broken JSON syntax will score well on BERTScore while being useless to your application.
Check these dimensions manually on 20-30 inference outputs:
Reading metric combinations
Individual metrics tell you one dimension of model performance. Combining them reveals specific failure patterns and points you toward the right fix.
Phrase grounding combinations
VQA combinations
What does good look like?
There is no universal threshold for any of these metrics. What counts as "good" depends on your task, your data, and how the model's output will be used. A medical imaging task may need very high IoU, while a rough object count task can tolerate lower overlap. A VQA model answering free-text questions will naturally score lower on BLEU than one producing short, formulaic answers.
Instead of chasing a specific number, focus on trends: are your metrics improving across training runs? When they plateau, use the metric combinations section above to diagnose what's holding the model back. Compare runs against each other rather than against a fixed target.
How to improve a weak model
If your metrics are stagnating or declining, work through these steps in order. Datature Vi re-evaluates automatically on your next training run, so you can measure progress after each change.
For visual, per-image analysis of where the model fails, use Advanced Evaluation.
Frequently asked questions
Further reading
- VLM Evaluation Metrics Guide -- A comprehensive look at evaluation metrics for vision-language models.
- Confusion Matrix Guide -- How to use confusion matrices to diagnose model errors.
Related resources
Updated 3 months ago
