AnonymousECCV15285 commited on
Commit
5745473
·
verified ·
1 Parent(s): 4fb1a00

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +97 -43
README.md CHANGED
@@ -1,63 +1,117 @@
1
  ---
2
  license: mit
3
- pretty_name: MMB Counterfactual Dataset
4
  task_categories:
5
- - visual-question-answering
6
- - multiple-choice
7
  language:
8
- - en
9
  tags:
10
- - vision
11
- - language
12
- - multimodal
13
- - counterfactual
14
- - question-answering
15
- - synthetic
16
  size_categories:
17
- - 1K<n<10K
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  ---
19
 
20
- # MMB Counterfactual Dataset
21
 
22
- A counterfactual VQA dataset constructed using the CLEVR blender assets to procedurally generate both negative and normal counter factual VQA images and questions for the Multimodal Benchmark paper.
23
- ## Dataset Structure
24
 
25
- This repository contains counterfactual visual question answering data with:
26
 
27
- - **Original images** and **counterfactual variants** (modifications to test reasoning)
28
- - **Questions** for each image variant
29
- - **Answer matrices** showing how each image answers each question (9 values per scene: 3 images × 3 questions)
30
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
  ### Loading from Python
33
 
34
- After pushing this repository to the Hub, load it with:
35
 
36
  ```python
37
  from datasets import load_dataset
38
 
 
39
  ds = load_dataset("scholo/MMB_dataset", split="train")
40
- print(ds[0])
41
- ```
42
-
43
- No `trust_remote_code=True` needed since we use standard Parquet format!
44
-
45
- ## Directory Structure
46
-
47
- ```
48
- MMB-Dataset/
49
- ── README.md # This file
50
- ├── .gitattributes # Git LFS configuration for images
51
- ├── data/ # Dataset files (Parquet format)
52
- ── train.parquet # Main dataset file
53
- ├── Dataset/ # Current dataset run
54
- ── images/ # All PNG images (referenced by Parquet)
55
- │ ├── scenes/ # JSON scene descriptions (reference)
56
- │ ├── image_mapping_with_questions.csv # Original CSV (source)
57
- │ ├── checkpoint.json # Run metadata
58
- │ └── run_metadata.json # Run metadata
59
- ```
60
-
61
- ## License
62
-
63
- MIT
 
1
  ---
2
  license: mit
3
+ pretty_name: MMIB Evaluation Dataset
4
  task_categories:
5
+ - visual-question-answering
6
+ - multiple-choice
7
  language:
8
+ - en
9
  tags:
10
+ - vision
11
+ - language
12
+ - multimodal
13
+ - counterfactual
14
+ - mechanistic-interpretability
15
+ - synthetic
16
  size_categories:
17
+ - n<1K
18
+ dataset_info:
19
+ features:
20
+ - name: original_image
21
+ dtype: image
22
+ - name: counterfactual1_image
23
+ dtype: image
24
+ - name: counterfactual2_image
25
+ dtype: image
26
+ - name: counterfactual1_type
27
+ dtype: string
28
+ - name: counterfactual2_type
29
+ dtype: string
30
+ - name: counterfactual1_description
31
+ dtype: string
32
+ - name: counterfactual2_description
33
+ dtype: string
34
+ - name: original_question
35
+ dtype: string
36
+ - name: counterfactual1_question
37
+ dtype: string
38
+ - name: counterfactual2_question
39
+ dtype: string
40
+ - name: original_question_difficulty
41
+ dtype: string
42
+ - name: counterfactual1_question_difficulty
43
+ dtype: string
44
+ - name: counterfactual2_question_difficulty
45
+ dtype: string
46
+ - name: original_image_answer_to_original_question
47
+ dtype: string
48
+ - name: original_image_answer_to_cf1_question
49
+ dtype: string
50
+ - name: original_image_answer_to_cf2_question
51
+ dtype: string
52
+ - name: cf1_image_answer_to_original_question
53
+ dtype: string
54
+ - name: cf1_image_answer_to_cf1_question
55
+ dtype: string
56
+ - name: cf1_image_answer_to_cf2_question
57
+ dtype: string
58
+ - name: cf2_image_answer_to_original_question
59
+ dtype: string
60
+ - name: cf2_image_answer_to_cf1_question
61
+ dtype: string
62
+ - name: cf2_image_answer_to_cf2_question
63
+ dtype: string
64
+ configs:
65
+ - config_name: default
66
+ data_files:
67
+ - split: train
68
+ path: data/train-*
69
  ---
70
 
71
+ # Multimodal Mechanistic Interpretability Benchmark (MMIB) Dataset
72
 
 
 
73
 
 
74
 
75
+ The **MMIB Dataset** is a highly controlled, synthetic vision-language dataset designed to rigorously evaluate mechanistic interpretability (MI) methods in Large Multimodal Models (VLMs). Built upon procedurally generated CLEVR-style assets, this dataset provides exact ground-truth causal pathways to test whether MI techniques (like causal tracing or interchange interventions) localize genuine cognitive circuits or merely identify descriptive correlations.
 
 
76
 
77
+ Unlike standard VQA benchmarks, MMIB uses strict **automated rejection sampling** to eliminate geometric ambiguity, ensuring every spatial and causal relationship is mathematically verifiable.
78
+
79
+ ## Dataset Structure & Interventions
80
+
81
+ This dataset is built on a structured intervention triplet for every base scene. Each row provides a complete $3 \times 3$ cross-modal evaluation matrix (3 images $\times$ 3 text queries), allowing researchers to systematically trace cross-modal information flow.
82
+
83
+ ### 1. Semantic Counterfactuals (Causal Reasoning)
84
+ To evaluate the model's internal causal logic, we generate minimal counterfactual pairs where the intervention mathematically guarantees a change in the ground-truth answer ($y' \neq y$).
85
+ * **Image-Based CFs:** 10 targeted 3D scene graph edits (e.g., `change_color`, `change_position`, `relational_flip`) that alter the visual logic while keeping the question fixed.
86
+ * **Text-Based CFs:** Minimal deterministic mutations to the textual query (e.g., swapping "red" for "blue" or "left" for "right") that guarantee an answer flip on the fixed base image.
87
+
88
+ ### 2. Negative Counterfactuals (Diagnostic Stress Tests)
89
+ To control for basic visual fragility, we generate **Negative Counterfactuals** featuring 8 types of perceptual corruptions (e.g., `add_noise`, `change_lighting`, `apply_fisheye`). These interventions drastically alter the image distribution *without* changing the underlying 3D geometry or ground-truth answer ($y' = y$). They serve as an experimental baseline: if a model fails on these stress tests, its failure on semantic tasks indicates vulnerability to domain shifts rather than flawed causal logic.
90
+
91
+ ## Using the Dataset
92
 
93
  ### Loading from Python
94
 
95
+ The dataset is hosted in standard Parquet format. You can load it directly into your mechanistic evaluation pipeline using the Hugging Face `datasets` library:
96
 
97
  ```python
98
  from datasets import load_dataset
99
 
100
+ # Load the MMIB dataset
101
  ds = load_dataset("scholo/MMB_dataset", split="train")
102
+
103
+ # Inspect the 3x3 evaluation matrix for the first scene
104
+ print("Base Question:", ds[0]['original_question'])
105
+ print("Base Image -> Base Question Answer:", ds[0]['original_image_answer_to_original_question'])
106
+ print("Semantic CF Image -> Base Question Answer:", ds[0]['cf1_image_answer_to_original_question'])
107
+ (No trust_remote_code=True is required.)Directory StructureMMB-Dataset/
108
+ ├── README.md # This dataset card
109
+ ├── .gitattributes # Git LFS configuration
110
+ ├── data/ # Dataset files (Parquet format)
111
+ │ └── train.parquet # Main benchmark matrix
112
+ ├── Dataset/ # Raw generation artifacts
113
+ ├── images/ # Uncompressed PNG renders (720x720)
114
+ ── scenes/ # JSON 3D scene graphs and metadata
115
+ ├── image_mapping_with_questions.csv # Source mapping for the 3x3 grid
116
+ ── run_metadata.json # Procedural generation engine parameters
117
+ Application & ProtocolFollowing the rigorous evaluation protocol established in the MMIB paper, interpretability metrics (such as Circuit Performance Ratio, Circuit-Model Distance, and Interchange Intervention Accuracy) should only be computed on samples where the target VLM correctly answers the base question ($a_b = y$). This behavioral filter ensures that the model possesses the causal circuit prior to mechanistic evaluation.LicenseMIT