xyzzzh commited on
Commit
c1ff60f
·
verified ·
1 Parent(s): f1efd41

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +164 -3
README.md CHANGED
@@ -1,3 +1,164 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: MPF-Bench
3
+ language:
4
+ - en
5
+ license: other
6
+ task_categories:
7
+ - image-classification
8
+ - visual-question-answering
9
+ tags:
10
+ - multimodal
11
+ - vision-language
12
+ - benchmark
13
+ - reasoning
14
+ - evaluation
15
+ size_categories:
16
+ - 1K<n<10K
17
+ ---
18
+
19
+ # MPF-Bench
20
+
21
+ ## Dataset Summary
22
+
23
+ MPF-Bench (Masked Patch Finding Benchmark) is a programmatically generated benchmark family for **fine-grained visual reasoning** in vision-language models (VLMs).
24
+
25
+ Given a natural image, MPF-Bench partitions it into patches, masks one target patch, and asks the model to identify the candidate patch that correctly fills the missing region. Because each instance is defined directly by construction, MPF-Bench provides:
26
+
27
+ - deterministic labels
28
+ - exact scoring
29
+ - zero-cost annotation
30
+ - controlled difficulty through grid size, candidate count, and mask shape
31
+
32
+ The benchmark is released as **6 representative configurations**, each with **1,000 MPF test instances**, for a total of **6,000 evaluation examples**.
33
+
34
+ ## What This Dataset Measures
35
+
36
+ MPF-Bench is designed to evaluate whether a model can use:
37
+
38
+ - local texture and appearance compatibility
39
+ - spatial continuity
40
+ - context-dependent patch completion
41
+ - fine-grained discrimination under increasing ambiguity
42
+
43
+ It is intended primarily as a **benchmark for evaluation**, not as a general-purpose instruction-tuning dataset.
44
+
45
+ ## Released Configurations
46
+
47
+ The current release contains the following benchmark configurations:
48
+
49
+ - `bf_g4x4_c4_rect`
50
+ - `bf_g8x6_c4_rect`
51
+ - `bf_g8x6_c4_ellipse`
52
+ - `bf_g8x6_c8_rect`
53
+ - `bf_g8x8_c8_rect`
54
+ - `bf_g12x12_c16_rect`
55
+
56
+ These vary along three configurable dimensions:
57
+
58
+ - **Grid size**: e.g. `4x4`, `8x6`, `8x8`, `12x12`
59
+ - **Candidate count**: e.g. `4-way`, `8-way`, `16-way`
60
+ - **Mask shape**: `rect` or `ellipse`
61
+
62
+ ## Data Format
63
+
64
+ Depending on the export view, MPF-Bench may appear either as:
65
+
66
+ 1. a lightweight instruction-style JSON format, or
67
+ 2. a richer Hugging Face dataset format with rendered images and metadata
68
+
69
+ In the richer HF-native export, key fields include:
70
+
71
+ - `composite_image`: the full rendered benchmark image shown to the model
72
+ - `masked_image`: the main image with the target patch removed
73
+ - `target_patch_image`: the ground-truth missing patch
74
+ - `candidate_images`: candidate patch images
75
+ - `problem`: text description of the task
76
+ - `prompts`: prompt variants used for evaluation or teacher supervision
77
+ - `solution`: ground-truth patch index
78
+ - `solution_idx`: index position within the candidate set
79
+ - `candidate_patch_indices`: patch ids used in the composite
80
+ - `difficulty`: entropy / similarity / ambiguity statistics
81
+ - `layout_meta`: rendering layout metadata for the composite image
82
+ - `metadata`: configuration-level and provenance metadata
83
+
84
+ In the lightweight instruction-style JSON view, examples typically contain fields such as:
85
+
86
+ - `instruction`
87
+ - `input`
88
+ - `output`
89
+ - `images`
90
+ - `image_id`
91
+ - `id`
92
+ - `source_id`
93
+
94
+ ## Example Task
95
+
96
+ Each MPF instance follows a fixed composite-image protocol. A representative prompt is:
97
+
98
+ > You are a professional image analysis expert. Given one masked image and its candidate patches, select the single candidate that best fills the masked region. Judge continuity, texture, geometry, color, and semantic plausibility. Return only the final patch index inside `<mpf>` and `</mpf>`.
99
+
100
+ The answer is deterministic and can be parsed exactly from the returned patch index.
101
+
102
+ ## How To Load
103
+
104
+ ```python
105
+ from datasets import load_dataset
106
+
107
+ dataset = load_dataset("xyzzzh/MPF-Bench", "bf_g8x6_c4_rect")
108
+ split_name = list(dataset.keys())[0]
109
+ sample = dataset[split_name][0]
110
+
111
+ print(split_name)
112
+ print(sample.keys())
113
+ ```
114
+
115
+ If you work with the raw JSON export instead, load the JSON records directly and read the local image paths referenced by the `images` field.
116
+
117
+ ## Data Source and Provenance
118
+
119
+ MPF-Bench is constructed from widely used natural-image datasets, including:
120
+
121
+ - COCO
122
+ - Flickr30K
123
+
124
+ The benchmark instances are generated programmatically from source images after data splitting, so that held-out benchmark test images remain separate from images used in the training study described in the paper/project materials.
125
+
126
+ ## Annotation Process
127
+
128
+ MPF-Bench does **not** rely on manual question writing or manual answer annotation for benchmark construction.
129
+
130
+ Instead, labels are generated automatically from the image partition and mask placement procedure. This makes the benchmark:
131
+
132
+ - scalable
133
+ - exactly verifiable
134
+ - reproducible across models
135
+
136
+ ## Intended Uses
137
+
138
+ Recommended uses:
139
+
140
+ - zero-shot or few-shot evaluation of VLMs
141
+ - controlled ablations over ambiguity and local reasoning difficulty
142
+ - analysis of fine-grained visual reasoning failure modes
143
+
144
+ Possible secondary use:
145
+
146
+ - self-supervised or programmatic training experiments based on exact correctness signals
147
+
148
+ ## Limitations
149
+
150
+ - MPF-Bench measures a specific capability: patch-level local reasoning under controlled ambiguity. It is **not** a full measure of general multimodal intelligence.
151
+ - High performance on MPF-Bench should not be interpreted as broad robustness across all vision-language tasks.
152
+ - The dataset is derived from existing natural-image sources and therefore inherits some domain and content biases from those sources.
153
+ - The benchmark release is centered on representative configurations rather than exhaustive coverage of all possible MPF settings.
154
+
155
+ ## Licensing and Redistribution Notes
156
+
157
+ All source images remain under the licenses of their original datasets.
158
+
159
+ MPF-Bench is intended to distribute benchmark instances and derived metadata for evaluation. Please make sure your use complies with the original dataset terms for COCO, Flickr30K, and any other upstream data sources included in the release pipeline.
160
+
161
+ ## Homepage
162
+
163
+ - Project page: https://xyzzzh.github.io/MPF-Bench
164
+ - Code and generation pipeline: https://github.com/xyzzzh/MPF-Bench