Datasets:
The dataset viewer is not available for this subset.
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
- π‘ Why VisQuant Exists
- π Dataset at a Glance
- π Leaderboard
- π― Difficulty Breakdown
- β Question Types
- π Quick Start
- ποΈ Data Format
- π¬ How Images Are Built (No Annotation Needed)
- π¦ What's Inside
- π§© Object Categories (88 total)
- π What the Numbers Reveal
- π Reproduce / Extend
- π Citation
- π¬ Contact & Contributions
π’ VisQuant β The Object Counting Benchmark for Vision-Language Models
LLaVA-7B scores 30%. GPT-4V struggles. Can yours do better?
π‘ Why VisQuant Exists
Counting is supposedly trivial. You learned it at age 3.
Your frontier VLM didn't.
We tested LLaVA-7B on images with 1β20 everyday objects and it scored 30% overall β worse on hard scenes, barely better than random on expert-level images. VisQuant is a structured, difficulty-graded benchmark with zero label noise (counts are set by code, not annotators) designed to expose exactly where and why vision-language models fail at quantitative reasoning.
Every label in this dataset is mathematically guaranteed correct. No crowdworkers. No ambiguity. No hallucinated annotations.
π Dataset at a Glance
| πΌοΈ Total Images | 67,093 |
| β QA Pairs | 369,612 |
| π·οΈ Object Categories | 88 everyday objects |
| π― Count Range | 1 β 20 objects per image |
| π Difficulty Levels | Easy β Medium β Hard β Expert |
| β Label Accuracy | 100% (programmatically guaranteed) |
| π License | CC BY 4.0 |
π Leaderboard
Submit your model's results β open a discussion with your scores and we'll add you to the board.
| Rank | Model | Size | Easy | Medium | Hard | Expert | Overall |
|---|---|---|---|---|---|---|---|
| π₯ | Submit yours! | β | β | β | β | β | β |
| β | LLaVA-7B | 7B | 45.0% | 28.3% | 28.3% | 16.7% | 29.6% |
| β | moondream | 1.8B | 26.7% | 18.3% | 13.3% | 5.0% | 15.8% |
| β | Random chance (est.) | β | ~25% | ~20% | ~15% | ~12% | ~18% |
Metrics: exact-match accuracy on exact_count questions. 240 images tested per model (60/difficulty), temperature=0. LLaVA-13B results coming soon.
π― Difficulty Breakdown
Easy ββββββββββββββββ 7,183 images β 1β3 objects, simple spatial layouts
Medium ββββββββββββββββ 25,857 images β 2β6 objects, mixed arrangements, 1 type
Hard ββββββββββββββββ 21,390 images β 3β12 objects, dense scenes, 2β3 types
Expert ββββββββββββββββ 12,663 images β 5β20 objects, multi-type chaos
Easy is a warm-up. Expert is a wall.
β Question Types
Each image comes with up to 6 question types:
| Type | Example | Count |
|---|---|---|
exact_count |
"How many feathers are in this image?" β "7" |
140,894 |
threshold |
"Are there more than 5 rocks?" β "Yes" |
67,093 |
comparison |
"Are there more shells or buttons?" β "Shells" |
50,620 |
total_count |
"How many objects are there in total?" β "11" |
46,403 |
spatial |
"How are the objects arranged?" | 48,129 |
background |
"What surface are the objects on?" | 16,473 |
π Quick Start
from datasets import load_dataset
ds = load_dataset("Anas-Mohiuddin-Syed/visquant-v1")
Or load a specific difficulty split:
import json
# Stream easy examples only
with open("data/dataset.jsonl") as f:
easy = [json.loads(l) for l in f
if json.loads(l)[list(json.loads(l).keys())[0]]["difficulty"] == "easy"]
Evaluate your model:
from PIL import Image
sample_id = "visquant_00101"
image = Image.open(f"data/images/{sample_id}.png")
# Ask your VLM the first question
entry = ds[sample_id]
q = entry["questions"][0]["q"] # "How many twigs are in this image?"
gt = entry["questions"][0]["a"] # "4"
prediction = your_vlm(image, q)
correct = prediction.strip() == gt
ποΈ Data Format
Each record in data/dataset.jsonl:
{
"visquant_00101": {
"objects": { "twig": 4 },
"total_objects": 4,
"difficulty": "medium",
"background": "a marble surface",
"spatial_info": "exactly 4 twigs arranged in a semi-circle on a marble surface",
"questions": [
{ "type": "exact_count", "q": "How many twigs are in this image?", "a": "4" },
{ "type": "threshold", "q": "Are there more than 3 twigs?", "a": "Yes" },
{ "type": "spatial", "q": "How are the objects arranged?", "a": "Twigs arranged in a semi-circle" },
{ "type": "background", "q": "What surface are the objects on?", "a": "Marble surface" }
]
}
}
Images live at data/images/{image_id}.png β 512Γ512px PNG, transparent-composited sprites on photorealistic backgrounds.
π¬ How Images Are Built (No Annotation Needed)
Twemoji SVG sprites βββΊ PIL compositor βββΊ Exact N objects placed
(88 types) β at computed positions
βΌ
40+ background textures
(marble, wood, concreteβ¦)
β
βΌ
Labels written by the same
code that placed the objects
βββΊ Zero annotation error
Every count label equals the loop variable N that placed those objects. There is no human in the loop, and therefore no human error.
π¦ What's Inside
visquant-v1/
βββ data/
β βββ dataset.jsonl # 67,093 records, 369,612 QA pairs
β βββ images/
β βββ visquant_00101.png
β βββ visquant_00102.png
β βββ ... (67,093 total, 512Γ512px)
βββ README.md
π§© Object Categories (88 total)
feather Β· shell Β· button Β· leaf Β· acorn Β· ring Β· twig Β· bead Β· earring Β· bracelet Β· rock Β· pinecone Β· sock Β· hair clip Β· ribbon Β· bow Β· domino Β· remote control Β· flower Β· pebble Β· marble Β· coin Β· candle Β· eraser Β· chess piece Β· apple Β· banana Β· cup Β· dice Β· USB drive Β· pencil Β· stapler Β· binder clip Β· plate Β· mouse Β· cylinder Β· glass Β· puzzle piece Β· and 50 moreβ¦
π What the Numbers Reveal
Running LLaVA-7B across 240 VisQuant images surfaces a crisp, reproducible pattern:
The subitizing cliff at 3:
1 object β 75.0% accuracy ββββββββββββββββββββββββββββββββββββββββ
2 objects β 81.3% accuracy ββββββββββββββββββββββββββββββββββββββββ
βββββββββββββββββββββββββββββββββββ cliff βββββββββββββββββββββββββββ
3 objects β 18.4% accuracy ββββββββ
4 objects β 46.2% accuracy βββββββββββββββββββ
5 objects β 25.0% accuracy ββββββββββ
6 objects β 15.0% accuracy ββββββ
7 objects β 47.4% accuracy βββββββββββββββββββ β grid layout boost
8+ objects β collapses toward 0%
12+ objects β 0.0% (absolute failure)
Systematic undercounting bias: 20% of predictions are off by β1, vs 15.8% off by +1. The model consistently underestimates.
Expert ceiling: 16.7% β barely above a random guess for high-count, multi-type scenes.
VisQuant isolates these failure modes in a controlled, reproducible benchmark so you can measure, not guess how your model handles counting.
π Reproduce / Extend
The full generation pipeline is available. To regenerate or extend the dataset:
- Twemoji sprites β rasterized PNG (96Γ96px)
- PIL compositor places exactly N sprites per layout type
- Backgrounds: 40+ PIL-generated textures
- QA pairs generated rule-based from metadata
- Images filtered to remove layout overflow (stacked/row >4 objects)
π Citation
If you use VisQuant in your research, please cite:
@dataset{visquant_v1_2025,
title = {VisQuant: A Programmatic Object Counting Benchmark for Vision-Language Models},
author = {Syed, Anas Mohiuddin},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/datasets/Anas-Mohiuddin-Syed/visquant-v1},
license = {CC-BY-4.0},
note = {67,093 images Β· 369,612 QA pairs Β· 88 object categories}
}
π¬ Contact & Contributions
- Submit benchmark results: Open a Discussion
- Report issues: Found a bad image? Open an issue in Discussions
- Extend the dataset: PRs welcome β add new object types, layouts, or difficulty tiers
- Downloads last month
- 11