uchandar29 commited on
Commit
bbac1b3
·
verified ·
1 Parent(s): ea6245c

Updated AgroOmni dataset with sample images and README.md changes

Browse files
Files changed (2) hide show
  1. README.md +168 -146
  2. static/MIRAGE_sample.webp +3 -0
README.md CHANGED
@@ -1,196 +1,218 @@
1
  ---
2
  pretty_name: MIRAGE
3
- dataset_info:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  - config_name: MMST_Standard
5
- splits:
6
- - name: train
7
- num_examples: 17532
8
- - name: test
9
- num_examples: 8184
10
  - config_name: MMST_Contextual
11
- splits:
12
- - name: test
13
- num_examples: 3934
 
14
  - config_name: MMMT_Direct
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  splits:
16
  - name: train
 
17
  num_examples: 3876
18
  - name: dev
 
19
  num_examples: 878
20
  - name: test
 
21
  num_examples: 861
 
 
22
  - config_name: MMMT_Decomp
 
23
  splits:
24
  - name: train
 
25
  num_examples: 3876
26
  - name: dev
 
27
  num_examples: 878
28
  - name: test
 
29
  num_examples: 861
30
- configs:
 
31
  - config_name: MMST_Standard
32
- data_files:
33
- - split: train
34
- path: MMST_Standard/train-*.parquet
35
- - split: test
36
- path: MMST_Standard/test-*.parquet
 
 
 
 
 
37
  - config_name: MMST_Contextual
38
- data_files:
39
- - split: test
40
- path: MMST_Contextual/test-*.parquet
41
- - config_name: MMMT_Direct
42
- default: true
43
- data_files:
44
- - split: train
45
- path: MMMT_Direct/train-*.parquet
46
- - split: dev
47
- path: MMMT_Direct/dev-*.parquet
48
- - split: test
49
- path: MMMT_Direct/test-*.parquet
50
- - config_name: MMMT_Decomp
51
- data_files:
52
- - split: train
53
- path: MMMT_Decomp/train-*.parquet
54
- - split: dev
55
- path: MMMT_Decomp/dev-*.parquet
56
- - split: test
57
- path: MMMT_Decomp/test-*.parquet
58
- license: cc-by-sa-4.0
59
- task_categories:
60
- - image-text-to-text
61
- - visual-question-answering
62
- language:
63
- - en
64
- tags:
65
- - vqa
66
- - agriculture
67
- - agml
68
- - vision-language
69
- - mirage
70
- size_categories:
71
- - 100K<n<1M
72
  ---
73
 
74
  # MIRAGE
75
 
76
- MIRAGE is a benchmark for multimodal, expert-guided agricultural consultations,
77
- introduced in ["MIRAGE: A Benchmark for Multimodal Information-Seeking and
78
- Reasoning in Agricultural Expert-Guided Conversations"](https://arxiv.org/abs/2506.20100)
79
- (arXiv:2506.20100, NeurIPS 2025). It's built from real crop health and pest
80
- diagnosis consultations — curated down from 218,000 raw interactions
81
- (2012–2025) to 37,512 high-quality ones, spanning 7,600+ distinct biological
82
- entities (plants, pests, diseases). Unlike closed-set VQA benchmarks, MIRAGE's
83
- scenarios are underspecified and open-world by design, requiring models to
84
- recognize when they need more context rather than guessing. In the paper's
85
- evaluation, 20+ frontier vision-language models were tested, with the
86
- best (GPT-4.1) reaching only 43.9% identification accuracy.
87
 
88
- ## Configs
89
 
90
- MIRAGE ships as four configs, corresponding to the paper's task families:
91
 
92
- | config | description | splits |
93
- |---|---|---|
94
- | `MMST_Standard` | Single-turn, self-contained questions answerable from the given text + image(s) alone — entity identification, causal explanation, visually-grounded answers. | train, test |
95
- | `MMST_Contextual` | Single-turn questions with a latent information gap — the model must recognize missing context (location, time, agricultural background) rather than answer directly. | test |
96
- | `MMMT_Direct` **(default)** | Multi-turn dialogues; at each turn the model must decide whether to ask a clarifying question or answer, and generate that utterance directly. | train, dev, test |
97
- | `MMMT_Decomp` | The same underlying multi-turn dialogues as `MMMT_Direct`, reformulated as a decomposed reasoning task (hence the matching unique-image counts between the two configs below). | train, dev, test |
98
 
99
- `MMMT_Direct` is set as the default config.
100
 
101
- ## Layout
 
 
 
 
 
102
 
103
- Each config is a self-contained folder — its own metadata parquet(s) plus its
104
- own `images/` folder of zip shards — following the same storage format across
105
- every AgML-standardized dataset:
106
 
107
  ```
108
- MIRAGE_P/
109
- MMST_Standard/
110
- train-0000-of-0001.parquet # 17,532 rows
111
- test-0000-of-0001.parquet # 8,184 rows
112
- images/
113
- image-mmst_standard-000-of-003.zip ... 002 # 46,874 unique images, 6.92GB
114
- path_to_shard.parquet
115
- MMST_Contextual/
116
- test-0000-of-0001.parquet # 3,934 rows
117
- images/
118
- image-mmst_contextual-000-of-001.zip # 8,032 unique images, 1.33GB
119
- path_to_shard.parquet
120
- MMMT_Direct/
121
- train-0000-of-0001.parquet # 3,876 rows
122
- dev-0000-of-0001.parquet # 878 rows
123
- test-0000-of-0001.parquet # 861 rows
124
- images/
125
- image-mmmt_direct-000-of-001.zip # 7,995 unique images, 1.32GB
126
- path_to_shard.parquet
127
- MMMT_Decomp/
128
- train-0000-of-0001.parquet # 3,876 rows
129
- dev-0000-of-0001.parquet # 878 rows
130
- test-0000-of-0001.parquet # 861 rows
131
- images/
132
- image-mmmt_decomp-000-of-001.zip # 7,995 unique images, 1.32GB
133
- path_to_shard.parquet
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  ```
135
 
136
- Every row has: `images`, `id`, `messages`, `raw_metadata`. `images` holds
137
- `{"bytes": None, "path": ...}` per referenced image — but unlike AgroOmni,
138
- `path` here is a **SHA256 content hash**, not a filesystem path: MIRAGE's
139
- source data has no path metadata at all (images exist only as embedded bytes
140
- per row), so the hash is what makes dedup and shard lookup possible.
141
- `path_to_shard.parquet` maps each unique hash to the shard filename holding
142
- it. `answer_type` (mcqa/oeqa) lives inside `raw_metadata` rather than as its
143
- own column, keeping the schema consistent with every other AgML dataset.
144
-
145
- **Not auto-loadable via `load_dataset()`.** Requires the companion loader
146
- (`load_agml_dataset()`), which reads images lazily and directly out of the
147
- zip shards — no extraction step.
148
-
149
- ## Why content hashing instead of paths
150
-
151
- The companion loader looks up each image independently via
152
- `zipfile.ZipFile.open(member_name)` — true random access via zip's central
153
- directory, no extraction needed — so, as with AgroOmni, there's no
154
- correctness requirement that a row's co-referenced images share a shard.
155
- Since MIRAGE has no natural path identifiers, a SHA256 hash of each image's
156
- raw bytes is used instead, which has the added benefit of deduplicating any
157
- images that repeat across rows within a config.
158
 
159
  ## Usage
160
 
161
  ```python
162
  from agml import loadImageTextToTextDataset
163
 
164
- ds = loadImageTextToTextDataset(
165
- "Project-AgML/MIRAGE",
166
- config="MMMT_Direct",
167
- token=HF_TOKEN
168
- )
169
- print(ds) # DatasetDict({'train': ..., 'dev': ..., 'test': ...})
170
- ds["train"][0] # images decoded lazily on access
171
  ```
172
 
173
  ## Citation
174
 
175
- If you use this dataset, please cite the original MIRAGE paper:
176
-
177
  ```bibtex
178
- @misc{mirage2025,
179
- title = {MIRAGE: A Benchmark for Multimodal Information-Seeking and Reasoning in Agricultural Expert-Guided Conversations},
180
- author = {Dongre, Vardhan and Gui, Chi and Garg, Shubham and Nayyeri, Hooshang and Tur, Gokhan and Hakkani-T{\"u}r, Dilek and Adve, Vikram S.},
181
- year = {2025},
182
- eprint = {2506.20100},
183
- archivePrefix = {arXiv},
184
- primaryClass = {cs.CL},
185
- note = {NeurIPS 2025},
186
- url = {https://arxiv.org/abs/2506.20100}
187
  }
188
  ```
189
 
190
- Project page: https://mirage-benchmark.github.io/
191
-
192
- Code: https://github.com/MIRAGE-Benchmark/MIRAGE-Benchmark
193
-
194
- ---
195
-
196
- This dataset is indexed and structured on https://project-agml.github.io/ as part of the AgML python library. This dataset was reformatted from its original format to match HuggingFace's Imagefolder standards but requires an external module (agml) that processes and returns a HF Dataset object faster than HF module functions.
 
1
  ---
2
  pretty_name: MIRAGE
3
+ license: cc-by-sa-4.0
4
+ task_categories:
5
+ - image-text-to-text
6
+ - visual-question-answering
7
+ size_categories:
8
+ - 10K<n<100K
9
+ source_datasets:
10
+ - AskExtension
11
+ configs:
12
+ - config_name: MMMT_Direct
13
+ default: true
14
+ data_files:
15
+ - split: train
16
+ path: MMMT_Direct/train-0000-of-0001.parquet
17
+ - split: dev
18
+ path: MMMT_Direct/dev-0000-of-0001.parquet
19
+ - split: test
20
+ path: MMMT_Direct/test-0000-of-0001.parquet
21
+ - config_name: MMMT_Decomp
22
+ data_files:
23
+ - split: train
24
+ path: MMMT_Decomp/train-0000-of-0001.parquet
25
+ - split: dev
26
+ path: MMMT_Decomp/dev-0000-of-0001.parquet
27
+ - split: test
28
+ path: MMMT_Decomp/test-0000-of-0001.parquet
29
  - config_name: MMST_Standard
30
+ data_files:
31
+ - split: train
32
+ path: MMST_Standard/train-0000-of-0001.parquet
33
+ - split: test
34
+ path: MMST_Standard/test-0000-of-0001.parquet
35
  - config_name: MMST_Contextual
36
+ data_files:
37
+ - split: test
38
+ path: MMST_Contextual/test-0000-of-0001.parquet
39
+ dataset_info:
40
  - config_name: MMMT_Direct
41
+ features: &features
42
+ - name: images
43
+ list:
44
+ - name: bytes
45
+ dtype: 'null'
46
+ - name: path
47
+ dtype: string
48
+ - name: id
49
+ dtype: string
50
+ - name: messages
51
+ list:
52
+ - name: role
53
+ dtype: string
54
+ - name: content
55
+ list:
56
+ - name: type
57
+ dtype: string
58
+ - name: text
59
+ dtype: string
60
+ - name: raw_metadata
61
+ dtype: string
62
  splits:
63
  - name: train
64
+ num_bytes: 3734905
65
  num_examples: 3876
66
  - name: dev
67
+ num_bytes: 844393
68
  num_examples: 878
69
  - name: test
70
+ num_bytes: 844960
71
  num_examples: 861
72
+ download_size: 1325714410
73
+ dataset_size: 1325714410
74
  - config_name: MMMT_Decomp
75
+ features: *features
76
  splits:
77
  - name: train
78
+ num_bytes: 4407679
79
  num_examples: 3876
80
  - name: dev
81
+ num_bytes: 995362
82
  num_examples: 878
83
  - name: test
84
+ num_bytes: 992906
85
  num_examples: 861
86
+ download_size: 1326686099
87
+ dataset_size: 1326686099
88
  - config_name: MMST_Standard
89
+ features: *features
90
+ splits:
91
+ - name: train
92
+ num_bytes: 17348634
93
+ num_examples: 17532
94
+ - name: test
95
+ num_bytes: 7962774
96
+ num_examples: 8184
97
+ download_size: 6948107240
98
+ dataset_size: 6948107240
99
  - config_name: MMST_Contextual
100
+ features: *features
101
+ splits:
102
+ - name: test
103
+ num_bytes: 6599964
104
+ num_examples: 3934
105
+ download_size: 1341825286
106
+ dataset_size: 1341825286
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
107
  ---
108
 
109
  # MIRAGE
110
 
111
+ ![MIRAGE sample images](static/MIRAGE_sample.webp)
 
 
 
 
 
 
 
 
 
 
112
 
113
+ MIRAGE is a benchmark built from real conversations between farmers or gardeners and agricultural experts on the AskExtension platform. The authors collected about 285,000 consultations from 2012 to 2025 and kept 37,512 high-quality ones, covering more than 7,600 plants, pests and diseases. Many questions leave out key details, so a good model has to notice what is missing and ask, not just answer.
114
 
115
+ The authors tested 22 vision-language models. Even the best, GPT-4.1, reached only 43.9% identification accuracy.
116
 
117
+ - Paper: [MIRAGE: A Benchmark for Multimodal Information-Seeking and Reasoning in Agricultural Expert-Guided Conversations](https://arxiv.org/abs/2506.20100) (NeurIPS 2025 Datasets and Benchmarks)
118
+ - Project page: [mirage-benchmark.github.io](https://mirage-benchmark.github.io/)
119
+ - Original dataset: [MIRAGE-Benchmark/MIRAGE](https://huggingface.co/datasets/MIRAGE-Benchmark/MIRAGE)
 
 
 
120
 
121
+ ## Configs
122
 
123
+ | Config | What it is | Train | Dev | Test |
124
+ |---|---|---|---|---|
125
+ | `MMST_Standard` | Single-turn questions that can be answered from the text and images | 17,532 | | 8,184 |
126
+ | `MMST_Contextual` | Single-turn questions with missing context (place, time or background) the model should notice | | | 3,934 |
127
+ | `MMMT_Direct` | Multi-turn dialogues where the model decides to ask a clarifying question or answer, then writes it | 3,876 | 878 | 861 |
128
+ | `MMMT_Decomp` | The same dialogues, with the known and missing goals spelled out | 3,876 | 878 | 861 |
129
 
130
+ ## Structure
 
 
131
 
132
  ```
133
+ MMST_Standard/
134
+ train-0000-of-0001.parquet
135
+ test-0000-of-0001.parquet
136
+ images/
137
+ image-mmst_standard-000-of-003.zip ... image-mmst_standard-002-of-003.zip
138
+ path_to_shard.parquet
139
+ MMST_Contextual/
140
+ test-0000-of-0001.parquet
141
+ images/
142
+ MMMT_Direct/
143
+ train-0000-of-0001.parquet
144
+ dev-0000-of-0001.parquet
145
+ test-0000-of-0001.parquet
146
+ images/
147
+ MMMT_Decomp/
148
+ (same as MMMT_Direct)
149
+ Source_Data_For_MMMT.json
150
+ ```
151
+
152
+ Each config has its own `images/` folder. Unique images per config: `MMST_Standard` 46,874, `MMST_Contextual` 8,032, `MMMT_Direct` and `MMMT_Decomp` 7,995 each.
153
+
154
+ Each row has:
155
+
156
+ - `images`: list of `{"bytes": null, "path": <sha256>}`, up to 3 per row, in the source's `image_1`, `image_2`, `image_3` order. The path is the SHA256 of the image bytes and points into a zip shard through that config's `images/path_to_shard.parquet`.
157
+ - `id`: `mirage_<config>_<split>_<counter>`, for example `mirage_mmst_standard_test_0`.
158
+ - `messages`: one user turn (images, then text) and one assistant turn.
159
+ - In the MMST configs, the text is the question and the assistant turn is the expert's answer.
160
+ - In the MMMT configs, the text is the dialogue so far (`dialog_context`, with `user:` and `expert:` lines), and the assistant turn is the next expert utterance.
161
+ - `raw_metadata`: JSON string.
162
+ - MMST: `original_id`, `subset`, `answer_type`, `category`, `entity_type`, `entity_name`, `entity_scientific_name`, `entity_common_names`, `state`, `county` and `asked_time`. `MMST_Contextual` also has `location_related`, `time_related`, `location_related_analysis` and `time_related_analysis`.
163
+ - MMMT: `original_id`, `subset`, `answer_type`, `decision` (such as `<Clarify>`), `dialog_turns`, `known_goal` and `missing_goal`.
164
+
165
+ Example (texts shortened):
166
+
167
+ ```json
168
+ {
169
+ "images": [{"bytes": null, "path": "cbff90a5ba89a76488f0533e5a98dc2a33095785a299e90eb7c09664a058e773"}],
170
+ "id": "mirage_mmst_standard_test_0",
171
+ "messages": [
172
+ {"role": "user", "content": [
173
+ {"type": "image", "text": null},
174
+ {"type": "text", "text": "My arborvitae's have little gold, looking seeds on the ends and are also turning brown. Part of it m..."}
175
+ ]},
176
+ {"role": "assistant", "content": [{"type": "text", "text": "The seeds are just that. Just like some get pine cones, this is the arborvitae's..."}]}
177
+ ],
178
+ "raw_metadata": "{\"original_id\": \"#885475\", \"subset\": \"MMST_Standard\", \"answer_type\": \"oeqa\", \"category\": \"Plant Care and Gardening Guidance\", \"entity_type\": \"plant\", \"entity_name\": \"arborvitae\", \"entity_scientific_name\": \"\", \"entity_common_names\": [], \"state\": \"Minnesota\", \"county\": \"Stearns County\", \"asked_time\": \"2024-09-16 16:35:00\"}"
179
+ }
180
  ```
181
 
182
+ ### Changes from the original data
183
+
184
+ - Each source config becomes a config here, with its own source splits. `dev` keeps its source name.
185
+ - `image_1`, `image_2` and `image_3` become the `images` list. Empty slots are left out.
186
+ - The MMMT dialogue history stays as one block of text in the user turn, exactly as in `dialog_context`. It is not split into separate turns.
187
+ - Some source fields are renamed in `raw_metadata`: `id` becomes `original_id`, and `meta_data_state`, `meta_data_county` and `meta_data_asked_time` become `state`, `county` and `asked_time`.
188
+ - `raw_metadata` also has two fields that are not in the source:
189
+ - `subset`: the config name.
190
+ - `answer_type`: added during conversion. It is `mcqa` when the question lists at least two lettered or numbered options, or the answer is a single letter or digit, and `oeqa` otherwise. MMMT rows are always `oeqa`.
191
+ - `MMMT_Direct` rows have `known_goal` and `missing_goal` set to null, since only `MMMT_Decomp` has them in the source.
192
+ - Images are stored once per config, deduplicated by SHA256. `MMMT_Direct` and `MMMT_Decomp` share the same images, so each holds its own copy.
193
+ - `Source_Data_For_MMMT.json` from the original dataset is included unchanged.
 
 
 
 
 
 
 
 
 
 
194
 
195
  ## Usage
196
 
197
  ```python
198
  from agml import loadImageTextToTextDataset
199
 
200
+ dataset = loadImageTextToTextDataset("Project-AgML/MIRAGE", config="MMST_Standard")
201
+
202
+ sample = dataset["test"][0]
203
+ sample["images"] # list of PIL images
204
+ sample["messages"]
 
 
205
  ```
206
 
207
  ## Citation
208
 
 
 
209
  ```bibtex
210
+ @article{dongre2025mirage,
211
+ title={MIRAGE: A Benchmark for Multimodal Information-Seeking and Reasoning in Agricultural Expert-Guided Conversations},
212
+ author={Dongre, Vardhan and Gui, Chi and Garg, Shubham and Nayyeri, Hooshang and Tur, Gokhan and Hakkani-T{\"{u}}r, Dilek and Adve, Vikram S},
213
+ journal={arXiv preprint arXiv:2506.20100},
214
+ year={2025}
 
 
 
 
215
  }
216
  ```
217
 
218
+ This dataset is indexed and structured on https://project-agml.github.io/ as part of Project AgML @ UC Davis. This dataset was reformatted from its original format to match HuggingFace's Imagefolder standards but requires an external module (agml) that processes and returns a HF Dataset object faster than HF module functions.
 
 
 
 
 
 
static/MIRAGE_sample.webp ADDED

Git LFS Details

  • SHA256: ab7218ad545a32ac4e8ffc7c6b5d1805928343441c78c9ee8bb6b30a971ca782
  • Pointer size: 133 Bytes
  • Size of remote file: 29.4 MB