Dataset Viewer
The dataset viewer is not available for this subset.
Job manager crashed while running this job (missing heartbeats).

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.

πŸ”’ VisQuant β€” The Object Counting Benchmark for Vision-Language Models

LLaVA-7B scores 30%. GPT-4V struggles. Can yours do better?

License: CC BY 4.0 Dataset Size QA Pairs Object Types


πŸ’‘ 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:

  1. Twemoji sprites β†’ rasterized PNG (96Γ—96px)
  2. PIL compositor places exactly N sprites per layout type
  3. Backgrounds: 40+ PIL-generated textures
  4. QA pairs generated rule-based from metadata
  5. 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

Built with πŸ”’ and zero annotation error Β· CC BY 4.0 Β· 2025
Downloads last month
11