Skip to content
vedanshmathur7Public

About

Visual task factory: minimal-pair chart traps with verified answers to find where multimodal AI misreads decision charts (Innodata AI Hackathon 2026, Track 2)

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

MISREAD: a visual task factory for where AI misreads the charts that matter

Innodata AI Hackathon 2026, Track 2 (Visual Task Factory)

AI copilots now read dashboards, board decks and patient charts, then summarise them for people who act on the summary. MISREAD is a reusable factory that generates realistic decision charts with verified answers and measures where frontier multimodal models misread them, and why.

The core idea is minimal pairs. Every task is rendered twice from the same data: once as a clean reference chart and once with exactly one misleading-but-common design choice (a truncated axis, a dual axis, a log scale, look-alike colours, sparse gridlines or a reversed time axis). Question and answer stay identical. If a model gets the clean chart right and the trap chart wrong, the trap caused the error. We measure this as a paired effect with bootstrap confidence intervals, not as an anecdote.

3-minute demo: a model reads a blood-pressure spike as a drop once the time axis is reversed. Click to watch the full video.

▶ Watch the 3½-minute demo video on YouTube (or the mp4 in this repo): the problem, the factory, the 8 gates, the live console and the results. Solution deck: docs/MISREAD_solution_deck.pdf.

A real misread: the same blood-pressure data, the same question; the model flips the sign of the change when the time axis is reversed


Quickstart (60 seconds)

# needs uv (https://docs.astral.sh/uv/), or use the Dockerfile
make setup test          # install + 45 unit tests
make serve               # web console on http://127.0.0.1:8000 with the committed tasks & results

Reproduce everything from scratch (no API keys needed for generation):

uv run misread generate --n 192 --seed 1000 --out .   # tasks/ + evidence/factory_report.json
cp .env.example .env                                  # add any keys you have (Anthropic / Gemini / OpenRouter)
uv run misread eval                                   # cached + resumable; skips models without keys
uv run misread analyze                                # results/summary.json + results/REPORT.md

Docker: docker build -t misread . && docker run -p 8000:8000 misread


What the factory produces

Each task is a folder in tasks/<task_id>/:

file what it is
data.json ground-truth data, written first and hashed before anything is drawn
question.json question text, reasoning type, parameters
answer.json verified answer + tolerance (numeric) or option list (labels)
clean.png / trap.png the minimal pair (900×540, deterministic)
meta_*.json pixel position of every mark and text label (used by gates and the evidence overlay)
gates.json the result of all 8 validation gates

tasks/manifest.jsonl lists every task with SHA-256 hashes of its data and images.

The task space (meaningful variation by construction)

  • 3 domain skins: 🏥 clinical (vitals with normal ranges, ward data), 💰 finance (revenue, margins, MAU), 📦 operations (stock vs reorder line, SLAs). A new domain is one YAML file in src/misread/skins/.
  • 4 chart types: bar, grouped bar, stacked bar, line
  • 6 traps: truncated axis · dual axis · log scale · look-alike colours · sparse grid · reversed time
  • 8 reasoning types: read value · extremum · compare two · signed change · ratio · count outside range/target · count where A > B · largest jump
  • 3 difficulty levels: number of points, number of series, noise

Traps are only paired with question types where they are a real hypothesis (32 cells in taxonomy.py). For example, a truncated axis is paired with ratio questions, because a truncated axis exaggerates ratios. Variation is behavioural: different reasoning operations, chart semantics and failure mechanisms, not reworded templates.

Validity: 8 gates every task must pass (for both images)

gate what it guarantees
G1 schema well-formed task, answer among options, no duplicate labels
G2 data-first data is hashed before rendering and is unchanged after
G3 two solvers a second, independently written solver re-derives the answer and must agree
G4 pixels & OCR the pixel at every mark has the series colour, pixel order follows data order, and OCR reads the printed labels back
G5 perceptual solvability robustness certificate: the answer must not change if a reader misjudges every mark by ±5 px (400 Monte-Carlo + corner samples, on both images). Numeric tolerances are derived from the same envelope, not guessed. Text ≥ 9 px, no overlapping labels
G6 grounding the answer isn't given away by the question, and every entity the question names is printed in the image
G7 determinism re-rendering from the spec gives byte-identical PNGs
G8 grader self-test the analogue of mutation testing for the answer checker: correct variants (commas, units, 5.6e6, **bold**) pass, near-miss wrong answers and look-alike labels (Day 1 vs Day 11) fail

Rejected candidates are logged per gate in evidence/factory_report.json, which shows the guards doing real work.

Results so far

5 open-weights models (run on free Kaggle T4 GPUs), all 192 minimal pairs each. Δ = accuracy lost on the trap chart vs the clean chart (same data, same question), with a task-level bootstrap 95% CI.

model clean trap Δ points (95% CI) right on clean → wrong on trap
qwen3-vl-8b 72% 55% +18 (11–24) 44 of 192
qwen2.5-vl-7b 68% 46% +21 (14–29) 50 of 192
internvl3-8b 64% 54% +10 (3–17) 36 of 192
qwen2.5-vl-3b 60% 44% +17 (10–24) 44 of 192
smolvlm2-2b 25% 20% +5 (1–9) 14 of 192

Accuracy drop by trap (percentage points; * = 95% CI excludes zero)

model dual axis log scale lookalike colors reversed time sparse grid truncated axis
qwen3-vl-8b +25 +33* +19* +29* +19* -8
qwen2.5-vl-7b +33 +37* +31* +17 +26* -11
internvl3-8b +8 +40* +19* -4 +2 -8
qwen2.5-vl-3b +8 +20 +15* +8 +26* +14
smolvlm2-2b +17 +23* -4 +8 +0 +0

Headline findings (auto-generated by misread analyze):

  • internvl3-8b: a log scale drops accuracy by 40 points (90% → 50%, 95% CI 23–57, n=30 pairs).
  • qwen2.5-vl-7b: a log scale drops accuracy by 37 points (77% → 40%, 95% CI 17–53, n=30 pairs).
  • qwen3-vl-8b: a log scale drops accuracy by 33 points (87% → 53%, 95% CI 13–53, n=30 pairs).
  • smolvlm2-2b on truncated axis / delta: median error +68% on the clean chart vs +243% with the trap.
  • qwen2.5-vl-3b on truncated axis / delta: median error +14% on the clean chart vs +71% with the trap.
  • Not every trap hurts: truncated axis / value read raises accuracy for 3 of 5 models (e.g. internvl3-8b 50% → 83%), likely because the zoomed axis makes values easier to read.
  • Best model on trap charts: qwen3-vl-8b (55% on trap charts vs 72% on clean).

The image at the top is a real case: a systolic-BP spike (+35 mmHg) is read as a drop (−35) once the time axis runs right-to-left. Full tables: results/REPORT.md.

Repository map

src/misread/  taxonomy.py  sampler.py (data-first)  qa.py (solver 1)  render.py  gates.py (8 gates, solver 2)
              checker.py  factory.py  evaluate.py  analyze.py  kaggle_bridge.py  server.py  console/  skins/*.yaml
kaggle/       open_vlm_eval.py: open-weights VLMs on a free Kaggle GPU (no heavy compute runs locally)
tasks/  results/  evidence/  tests/  docs/TECHNICAL.md

Models & tools used (declared as required by the rules)

See docs/TECHNICAL.md § Models and tools.

About

Visual task factory: minimal-pair chart traps with verified answers to find where multimodal AI misreads decision charts (Innodata AI Hackathon 2026, Track 2)

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages