clockbench-angle-v1 / README.md
upsonyeon's picture
Fix LaTeX backslash escapes in v1.2 README.md Dataset Card
a442860 verified
|
Raw History Blame Contribute Delete
16.7 kB
---
pretty_name: ClockBench Angle & Confusing Variations v1.2
language:
- en
- ko
license: cc-by-4.0
task_categories:
- image-to-text
- visual-question-answering
tags:
- clock
- analog-clock
- clockbench
- vlm-benchmark
- diagnostic-probing
- multimodal
- visual-reasoning
- time-reading
size_categories:
- n<1K
dataset_info:
features:
- name: image
dtype: image
- name: id
dtype: string
- name: source
dtype: string
- name: variation
dtype: string
- name: subtype
dtype: string
- name: pair_group
dtype: string
- name: time_group
dtype: string
- name: style_index
dtype: int32
- name: hands_mode
dtype: string
- name: numerals_mode
dtype: string
- name: dial_theme
dtype: string
- name: graduations
dtype: bool
- name: roman_four
dtype: string
- name: numeral_orientation
dtype: string
- name: width
dtype: int32
- name: height
dtype: int32
- name: valid
dtype: bool
- name: hours
dtype: int32
- name: minutes
dtype: int32
- name: seconds
dtype: int32
- name: has_seconds
dtype: bool
- name: gt_time
dtype: string
- name: time_str
dtype: string
- name: target_time_hms
dtype: string
- name: hour_deg
dtype: float64
- name: minute_deg
dtype: float64
- name: second_deg
dtype: float64
- name: hm_angle_deg
dtype: float64
- name: hs_angle_deg
dtype: float64
- name: ms_angle_deg
dtype: float64
splits:
- name: exact_hour
num_bytes: 7153345
num_examples: 84
- name: existing_mirror_pair
num_bytes: 5109505
num_examples: 56
- name: angle_acute
num_bytes: 16762955
num_examples: 105
- name: angle_right
num_bytes: 16803439
num_examples: 105
- name: angle_obtuse
num_bytes: 16776073
num_examples: 105
- name: angle_straight
num_bytes: 16743874
num_examples: 105
- name: confusing_ambiguous
num_bytes: 16633373
num_examples: 105
download_size: 95620298
dataset_size: 95982564
configs:
- config_name: default
data_files:
- split: exact_hour
path: data/exact_hour-*
- split: existing_mirror_pair
path: data/existing_mirror_pair-*
- split: angle_acute
path: data/angle_acute-*
- split: angle_right
path: data/angle_right-*
- split: angle_obtuse
path: data/angle_obtuse-*
- split: angle_straight
path: data/angle_straight-*
- split: confusing_ambiguous
path: data/confusing_ambiguous-*
---
# ClockBench Angle & Confusing Variations (`v1.2`)
아날로그 시계 판독 능력을 **정각 베이스라인(`01:00`–`12:00`)**, **대칭 쌍(`10:10` vs `01:50`)**, **시침·분침·초침 각도 경계 분포(4종)**, 그리고 **혼동 유발 케이스(겹침·삼중 겹침·정시 직전·대칭/스왑 쌍)** 중심으로 정밀 진단하기 위한 VLM(Vision-Language Model) 프로빙 벤치마크 데이터셋입니다.
A controlled **665-image** analog clock VLM diagnostic probing benchmark (**95 unique base times × 7 dial styles**) organized into **7 splits** with deterministic opaque hash IDs, strict `hm`/`hms` ground-truth consistency, full boundary-angle coverage, and continuous hand-angle metadata.
## Domain Positioning & Design Scope
`clockbench-angle-v1` is intentionally designed as a **controlled planar geometric diagnostic probing benchmark**:
- **Clean Factorial Ablation (`95 time_groups × 7 styles = 665 images`)**: All images are rendered as crisp, front-facing **512×512 planar synthetic dials** so evaluators can cleanly disentangle **hand-angle geometry failures** (acute/right/obtuse/straight, overlaps, pre-hour traps, left-right mirror swaps) from **dial visual style factors** (Roman vs. Arabic vs. numeral-less, white/black/cream themes, `IV` vs. `IIII`, graduations on/off, upright vs. circular numerals, `hms` vs. `hm`).
- **Complementary to Real-World Benchmarks**: Because perspective distortion, ambient lighting, motion blur, and partial occlusion are intentionally held constant, this benchmark **complements** rather than replaces real-world in-the-wild clock datasets (such as *TickTockVQA* and photographic ClockBench subsets). Failures observed here isolate fundamental geometric and spatial-reasoning bottlenecks in VLMs under noise-free visual conditions.
> [!NOTE]
> **Zero Label Leakage (`v1.2`)**:
> Every public sample uses an opaque deterministic hash identifier (`cb_<sha256[:10]>`) and an opaque factorial grouping key (`time_group`: `tg_001`–`tg_095`). Original filenames and internal storage IDs are completely removed from the Parquet tables, embedded image paths, and `metadata/` files. Always pass only the `image` to evaluated models and grade strictly against `gt_time` / `hours`, `minutes`, `seconds` (or `metadata/answers.json`).
## Split Overview (총 665장 · 7개 스플릿)
| Split | Source | Unique Times | Styles (`1`–`7`) | Images | Description |
| --- | --- | ---: | ---: | ---: | --- |
| `exact_hour` | Existing baseline (`정각`) | 12 | 7 | 84 | Exact on-the-hour baseline (`01:00` through `12:00`) |
| `existing_mirror_pair` | Existing baseline (`10:10 vs 01:50`) | 8 | 7 | 56 | Mirror-symmetric `10:10` vs `01:50` pairs across seconds (`00/10/30/50`) |
| `angle_acute` | Generated (`m != 0`) | 15 | 7 | 105 | Acute hour–minute hand angle (`25°–50°`) spanning both edges (`25°–33°`, `45°–50°`) |
| `angle_right` | Generated (`m != 0`) | 15 | 7 | 105 | Near-right hour–minute hand angle (`82°–98°`) spanning both edges (`82°–86°`, `94°–98°`) |
| `angle_obtuse` | Generated (`m != 0`) | 15 | 7 | 105 | Obtuse hour–minute hand angle (`125°–145°`) spanning both edges (`125°–130°`, `140°–145°`) |
| `angle_straight` | Generated (`m != 0`) | 15 | 7 | 105 | Near-straight / opposed hour–minute angle (`168°–180°`) spanning `168°–172°` and `177°–180°` |
| `confusing_ambiguous` | Generated (`m != 0`) | 15 | 7 | 105 | Balanced traps: `hand_overlap` (3), `triple_overlap` (3), `pre_hour_trap` (3), `mirror_swap_pair` (6; 3 symmetric pairs) |
| **Total** | — | **95** | **7** | **665** | 12 exact-hour + 83 non-exact-hour base times |
## Empirical Angle Distribution (`hm_angle_deg`, Computed from Published Data)
Each base time is rendered in both 3-hand (`hms`, 4 styles with continuous sub-second hand progression) and 2-hand (`hm`, 3 styles with exact minute-level angles and no second hand). All generated angle splits satisfy their target bounds in **both** `hms` and `hm` modes:
| Split | Times | Images | Target Range | Empirical Min | Empirical Max | Empirical Mean | `hms` Range | `hm` Range |
| --- | ---: | ---: | --- | ---: | ---: | ---: | --- | --- |
| `exact_hour` | 12 | 84 | `0°–180°` (30° grid) | 0.00° | 180.00° | 90.00° | 0.00°–180.00° | 0.00°–180.00° |
| `existing_mirror_pair` | 8 | 56 | `110°–120°` | 110.42° | 119.58° | 115.00° | 110.42°–119.58° | 115.00°–115.00° |
| `angle_acute` | 15 | 105 | `25°–50°` | 25.00° | 50.00° | 37.45° | 25.73°–49.20° | 25.00°–50.00° |
| `angle_right` | 15 | 105 | `82°–98°` | 82.00° | 98.00° | 89.72° | 83.01°–97.78° | 82.00°–98.00° |
| `angle_obtuse` | 15 | 105 | `125°–145°` | 125.00° | 145.00° | 134.84° | 126.65°–144.92° | 125.00°–145.00° |
| `angle_straight` | 15 | 105 | `168°–180°` | 168.00° | 179.96° | 176.24° | 170.02°–179.96° | 168.00°–179.50° |
| `confusing_ambiguous` | 15 | 105 | `0°–180°` (trap mix) | 0.10° | 176.62° | 79.54° | 0.10°–176.62° | 0.50°–172.50° |
| **Overall** | **95** | **665** | — | **0.00°** | **180.00°** | **102.81°** | — | — |
## 7 Dial Styles per `time_group` (`style_index` 1–7)
| `style_index` | `hands_mode` | `numerals_mode` | `dial_theme` | `graduations` | `roman_four` | `numeral_orientation` |
| ---: | --- | --- | --- | --- | --- | --- |
| 1 | `hms` | `roman` | `white` | `true` | `IV` | `upright` |
| 2 | `hms` | `arabic` | `white` | `true` | `IV` | `upright` |
| 3 | `hms` | `none` | `black` | `true` | `IV` | `upright` |
| 4 | `hm` | `none` | `black` | `true` | `IV` | `upright` |
| 5 | `hms` | `roman` | `cream` | `true` | `IIII` | `upright` |
| 6 | `hm` | `arabic` | `white` | `false` | `IV` | `circular` |
| 7 | `hm` | `none` | `white` | `false` | `IV` | `circular` |
## Standard Evaluation Protocol & Grading Rules
### 1. Canonical Prompts (`simple` & `detailed`)
- **`simple` prompt** (single-turn direct clock reading, recommended for lightweight VLM probing):
```text
What time does this clock show?
Reply with ONLY a JSON object (no preface, no code block):
{"hours": X, "minutes": Y, "seconds": Z or false}
(Only include seconds as an integer if a seconds hand is visible; otherwise use false.)
```
- **`detailed` prompt** (official ClockBench 4-turn schema: `question_time`, `question_shift`, `question_angle`, `question_zone` provided in `metadata/dataset.json`):
```text
What time is it? Is it a valid time that is possible? Always include validity, hours and minutes in your response, only include seconds if there is a seconds hand present. Include date, month and day of the week in your answer if they are explicitly shown. Use 12 or 24 hour format based on what you see in the image.
Please respond in the following JSON format:
{
"valid": true OR false,
"hours": X,
"minutes": Y,
"seconds": Z OR false,
"date": A OR false,
"month": B OR false,
"weekday": C OR false
}
```
### 2. Grading Metrics
1. **Strict Exact Match (`exact_match` on `gt_time`)**:
- `hands_mode == "hms"` (`has_seconds == true`): predicted `(hours, minutes, seconds)` must match `(hours, minutes, seconds)` exactly (12-hour equivalence `0 ≡ 12` normalized to `1..12`), matching `gt_time` (`"HH:MM:SS"`).
- `hands_mode == "hm"` (`has_seconds == false`): predicted `(hours, minutes)` must match exactly **and** predicted `seconds` must be `false` / `null` (no hallucinated second hand), matching `gt_time` (`"HH:MM"`). Never grade `hm` rows against `target_time_hms` (which is `null` on `hm` in v1.2).
2. **Hour–Minute Exact Match (`hm_only`)**:
- Evaluates exact match on `(hours, minutes)` ignoring seconds, allowing clean comparison between `hm` and `hms` styles.
3. **Minute-Tolerance Accuracy (`±1 min`)**:
- Counts a prediction as correct when the circular error on the 12-hour dial satisfies `Δ_circ <= 60` seconds (or `<= 1` minute on `hm` dials).
4. **Circular Time Error (`Δ_circ`, seconds)**:
- On a 12-hour analog dial with period $T = 12 \times 3600 = 43200\text{ s}$ (or $T = 86400\text{ s}$ for 24-hour Q2/Q4 follow-up tasks), convert ground truth and prediction to total seconds modulo $T$:
$$t = ((h \bmod 12)\cdot 3600 + m\cdot 60 + s) \bmod T$$
$$\Delta_{\text{circ}}(t_{\text{pred}}, t_{\text{gt}}) = \min\!\big(|t_{\text{pred}} - t_{\text{gt}}| \bmod T,\; T - (|t_{\text{pred}} - t_{\text{gt}}| \bmod T)\big)$$
- Report mean and median $\Delta_{\text{circ}}$ over incorrect valid predictions (and overall MAE in seconds/minutes).
5. **Multi-Run Stability Protocol**:
- Run **5 independent stochastic evaluations** (`NUM_RUNS = 5`) per model/prompt configuration and report **`mean ± std`** accuracy across the 5 runs alongside **5-run majority-vote** accuracy per sample `id`.
### 3. Reference Baseline Table (Qwen3.5 Series — v1.2)
| Model | Prompt Mode | Exact Match (`mean ± std`) | Exact Match (5-Run Maj.) | `hm_only` Acc | `±1 min` Acc | Median Circular Err (s) | Status |
| --- | --- | :---: | :---: | :---: | :---: | :---: | --- |
| `Qwen/Qwen3.5-0.8B` | `simple` / `detailed` | TBD | TBD | TBD | TBD | TBD | Pending v1.2 run |
| `Qwen/Qwen3.5-2B` | `simple` / `detailed` | TBD | TBD | TBD | TBD | TBD | Pending v1.2 run |
| `Qwen/Qwen3.5-4B` | `simple` / `detailed` | TBD | TBD | TBD | TBD | TBD | Pending v1.2 run |
## Quick Start
```python
from datasets import load_dataset
# Load all 7 splits (665 images total)
ds = load_dataset("ClockBenchWithDEV1/clockbench-angle-v1")
print(ds)
# Inspect canonical ground truth and factorial grouping
sample_hms = ds["angle_acute"][0] # style_index=1 (hms)
sample_hm = ds["angle_acute"][3] # style_index=4 (hm)
print(sample_hms["id"], sample_hms["time_group"], sample_hms["gt_time"], sample_hms["target_time_hms"])
print(sample_hm["id"], sample_hm["time_group"], sample_hm["gt_time"], sample_hm["target_time_hms"])
# -> cb_... tg_021 01:10:08 01:10:08
# -> cb_... tg_021 01:10 None
```
## Schema Columns (30 Columns)
- **Image & Opaque Identity**: `image` (`PIL.Image`, 512×512), `id` (`cb_<sha256[:10]>`), `source` (`existing_drive` | `generated`), `width`, `height`
- **Benchmark Stratification & Factorial Grouping**: `variation`, `subtype` (`exact_hour`, `acute_hm`, `right_hm`, `obtuse_hm`, `straight_hm`, `hand_overlap`, `triple_overlap`, `pre_hour_trap`, `mirror_swap_pair`), `pair_group`, `time_group` (`tg_001`–`tg_095`)
- **Visual Style**: `style_index` (`1`–`7`), `hands_mode` (`hms` | `hm`), `numerals_mode` (`roman` | `arabic` | `none`), `dial_theme` (`white` | `black` | `cream`), `graduations` (`bool`), `roman_four` (`IV` | `IIII`), `numeral_orientation` (`upright` | `circular`)
- **Ground Truth**: `valid`, `hours`, `minutes`, `seconds` (`null` on `hm`, `int` on `hms`), `has_seconds` (`bool`), `gt_time` (canonical `"HH:MM"` on `hm` / `"HH:MM:SS"` on `hms`), `time_str` (`"H:MM"` / `"H:MM:SS"`), `target_time_hms` (`null` on `hm`, `"HH:MM:SS"` on `hms`)
- **Hand Angles (deg, 12 o'clock = 0°, clockwise)**: `hour_deg`, `minute_deg`, `second_deg`, `hm_angle_deg`, `hs_angle_deg`, `ms_angle_deg`
## Companion Metadata Files (`metadata/`)
Structured manifests and ClockBench evaluation files for all **665** items (using opaque `cb_...` IDs with zero `filename`/`drive_file_id` leakage) are included in `metadata/`:
- `metadata/clockbench_angle_benchmark.json` — Full 665-item benchmark manifest (JSON)
- `metadata/clockbench_angle_benchmark.yaml` — Identical 665-item benchmark manifest (YAML, verified `JSON == YAML`)
- `metadata/dataset.json` — ClockBench 4-turn evaluation input format (665 items, keyed by opaque `id`)
- `metadata/answers.json` — ClockBench grading ground-truth format (665 items, keyed by opaque `id`)
## Changelog
### `v1.2`
- **Critical `hm` label consistency fix**: Added canonical `gt_time` (`"HH:MM"` on `hm`, `"HH:MM:SS"` on `hms`) and set `target_time_hms = null` on all `hm` rows (eliminating the v1.1 stale-seconds mismatch on 2-hand dials).
- **Zero-leakage opaque identifiers & schema cleanup**: Replaced time-encoding IDs with deterministic opaque hashes (`cb_<sha256[:10]>`), added opaque `time_group` (`tg_001`–`tg_095`) for factorial ablation, and completely removed `filename` and `drive_file_id` from public Parquet splits, embedded image paths, and `metadata/` manifests.
- **Boundary angle & subtype expansion (490 → 665 images)**: Expanded each of the 5 generated splits from 10 to **15 unique non-exact-hour times** (+25 times × 7 styles = +175 images), covering both upper and lower boundaries across `angle_acute` (`25.00°–50.00°`), `angle_right` (`82.00°–98.00°`), `angle_obtuse` (`125.00°–145.00°`), and `angle_straight` (`168.00°–179.96°`), and balancing `confusing_ambiguous` to 3 `hand_overlap`, 3 `triple_overlap`, 3 `pre_hour_trap`, and 6 `mirror_swap_pair` (3 symmetric pairs).
- **Documentation upgrade**: Added explicit domain positioning (planar geometric diagnostic probing complementary to TickTockVQA), computed empirical angle distribution table, and standard evaluation/grading protocol.
### `v1.1`
- Added `exact_hour` baseline split (12 times × 7 styles = 84 images) for 490 total images across 7 splits.
### `v1.0`
- Initial release with 6 splits (406 images: `existing_mirror_pair` + 4 angle splits + `confusing_ambiguous`).
## Contributors & Collaborators (공동 작업자)
- **[@upsonyeon](https://huggingface.co/upsonyeon)** — Angle-variation & confusing-case benchmark expansion (525 generated images), v1.2 boundary & schema hardening, structured `JSON`/`YAML` manifests, and Hugging Face Hub packaging
- **[@Hayoon05](https://huggingface.co/Hayoon05) (HAYOONSEO)** — ClockBench 7-style clock generator specification, exact-hour baseline dataset (`exact_hour`, 84 images), and `10:10` vs `01:50` mirror-pair dataset (`existing_mirror_pair`, 56 images)