ShadenA commited on
Commit
092863f
·
verified ·
1 Parent(s): 96fb17f

Fresh upload: drop booklet_source, reorder columns

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. README.md +464 -0
  2. __pycache__/build_dataset.cpython-310.pyc +0 -0
  3. _mathpix_cache/003165ee6eeb7d2c.jpg +3 -0
  4. _mathpix_cache/00395e4cd7af4ef4.jpg +3 -0
  5. _mathpix_cache/00989d4fc9fa6b08.jpg +3 -0
  6. _mathpix_cache/01136328ededfddf.jpg +3 -0
  7. _mathpix_cache/0157f39bbc5f8af2.jpg +3 -0
  8. _mathpix_cache/021064be5eebdfb5.jpg +3 -0
  9. _mathpix_cache/0279173a86b0a2f6.jpg +3 -0
  10. _mathpix_cache/02c78916aa8450a5.jpg +3 -0
  11. _mathpix_cache/032ff89c482c9fbe.jpg +3 -0
  12. _mathpix_cache/04b2e8302720a009.jpg +3 -0
  13. _mathpix_cache/04c1a5d493b3bf05.jpg +3 -0
  14. _mathpix_cache/04f622f2c683f1ca.jpg +3 -0
  15. _mathpix_cache/053a0630a9f4e755.jpg +3 -0
  16. _mathpix_cache/053ee8785472331b.jpg +3 -0
  17. _mathpix_cache/05d564dd30af406b.jpg +3 -0
  18. _mathpix_cache/061a51b8f40aeedf.jpg +3 -0
  19. _mathpix_cache/06e9ba97ecfd864e.jpg +3 -0
  20. _mathpix_cache/07b1557402418d82.jpg +3 -0
  21. _mathpix_cache/07d4af08859351b9.jpg +3 -0
  22. _mathpix_cache/07dfecf60a4ef4a2.jpg +3 -0
  23. _mathpix_cache/082060dc5a2d119a.jpg +3 -0
  24. _mathpix_cache/083ac97d8240a2dd.jpg +3 -0
  25. _mathpix_cache/085d885b551bf316.jpg +3 -0
  26. _mathpix_cache/08a804f0d9c317f5.jpg +3 -0
  27. _mathpix_cache/08bd26afea8d1010.jpg +3 -0
  28. _mathpix_cache/08ef203ba543fe4b.jpg +3 -0
  29. _mathpix_cache/08fd96d36848c1da.jpg +3 -0
  30. _mathpix_cache/094b60757f311c54.jpg +3 -0
  31. _mathpix_cache/09c087b1b9247f4d.jpg +3 -0
  32. _mathpix_cache/09efebc57896e99b.jpg +3 -0
  33. _mathpix_cache/0a050783757f5e71.jpg +3 -0
  34. _mathpix_cache/0b317835dd585191.jpg +3 -0
  35. _mathpix_cache/0b574acc9f40d027.jpg +3 -0
  36. _mathpix_cache/0b74794db546a3aa.jpg +3 -0
  37. _mathpix_cache/0c35d14ad776d92d.jpg +3 -0
  38. _mathpix_cache/0caec9b56a4ff6ac.jpg +3 -0
  39. _mathpix_cache/0cec568d4cd8c924.jpg +3 -0
  40. _mathpix_cache/0d04588fdb4726b7.jpg +3 -0
  41. _mathpix_cache/0e5b09dbbca0984e.jpg +3 -0
  42. _mathpix_cache/10a5da87fc57a5c5.jpg +3 -0
  43. _mathpix_cache/10aa7b1bcb3165ed.jpg +3 -0
  44. _mathpix_cache/10ce401389ba6894.jpg +3 -0
  45. _mathpix_cache/10da2653cc6df3b9.jpg +3 -0
  46. _mathpix_cache/111aec08b805de08.jpg +3 -0
  47. _mathpix_cache/1222bb089beaa570.jpg +3 -0
  48. _mathpix_cache/123adf3012fd3396.jpg +3 -0
  49. _mathpix_cache/13045bdd87a5477b.jpg +3 -0
  50. _mathpix_cache/139ea7be30bf3871.jpg +3 -0
README.md ADDED
@@ -0,0 +1,464 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pretty_name: MathNet — Olympiad Math Reasoning & Retrieval (Preview)
3
+ license: cc-by-4.0
4
+ task_categories:
5
+ - question-answering
6
+ - text-generation
7
+ - image-to-text
8
+ language:
9
+ - en
10
+ - pt
11
+ - es
12
+ - fr
13
+ - it
14
+ - sr
15
+ - sl
16
+ - de
17
+ - zh
18
+ - ro
19
+ - ko
20
+ - nl
21
+ - ru
22
+ - mn
23
+ - mk
24
+ - pl
25
+ - hu
26
+ tags:
27
+ - mathematics
28
+ - olympiad
29
+ - reasoning
30
+ - competition-math
31
+ - multimodal
32
+ - retrieval
33
+ - iclr-2026
34
+ - preview
35
+ size_categories:
36
+ - 10K<n<100K
37
+ configs:
38
+ - config_name: all
39
+ data_files:
40
+ - split: train
41
+ path: data/all/train-*.parquet
42
+ default: true
43
+ - config_name: Argentina
44
+ data_files:
45
+ - split: train
46
+ path: data/Argentina/train-*.parquet
47
+ - config_name: Asia_Pacific_Mathematics_Olympiad_APMO
48
+ data_files:
49
+ - split: train
50
+ path: data/Asia_Pacific_Mathematics_Olympiad_APMO/train-*.parquet
51
+ - config_name: Austria
52
+ data_files:
53
+ - split: train
54
+ path: data/Austria/train-*.parquet
55
+ - config_name: Balkan_Mathematical_Olympiad
56
+ data_files:
57
+ - split: train
58
+ path: data/Balkan_Mathematical_Olympiad/train-*.parquet
59
+ - config_name: Baltic_Way
60
+ data_files:
61
+ - split: train
62
+ path: data/Baltic_Way/train-*.parquet
63
+ - config_name: Belarus
64
+ data_files:
65
+ - split: train
66
+ path: data/Belarus/train-*.parquet
67
+ - config_name: Benelux_Mathematical_Olympiad
68
+ data_files:
69
+ - split: train
70
+ path: data/Benelux_Mathematical_Olympiad/train-*.parquet
71
+ - config_name: Brazil
72
+ data_files:
73
+ - split: train
74
+ path: data/Brazil/train-*.parquet
75
+ - config_name: Bulgaria
76
+ data_files:
77
+ - split: train
78
+ path: data/Bulgaria/train-*.parquet
79
+ - config_name: Canada
80
+ data_files:
81
+ - split: train
82
+ path: data/Canada/train-*.parquet
83
+ - config_name: China
84
+ data_files:
85
+ - split: train
86
+ path: data/China/train-*.parquet
87
+ - config_name: Croatia
88
+ data_files:
89
+ - split: train
90
+ path: data/Croatia/train-*.parquet
91
+ - config_name: Czech_Republic
92
+ data_files:
93
+ - split: train
94
+ path: data/Czech_Republic/train-*.parquet
95
+ - config_name: Czech-Polish-Slovak_Mathematical_Match
96
+ data_files:
97
+ - split: train
98
+ path: data/Czech-Polish-Slovak_Mathematical_Match/train-*.parquet
99
+ - config_name: Estonia
100
+ data_files:
101
+ - split: train
102
+ path: data/Estonia/train-*.parquet
103
+ - config_name: European_Girls'_Mathematical_Olympiad_EGMO
104
+ data_files:
105
+ - split: train
106
+ path: data/European_Girls'_Mathematical_Olympiad_EGMO/train-*.parquet
107
+ - config_name: France
108
+ data_files:
109
+ - split: train
110
+ path: data/France/train-*.parquet
111
+ - config_name: Germany
112
+ data_files:
113
+ - split: train
114
+ path: data/Germany/train-*.parquet
115
+ - config_name: Greece
116
+ data_files:
117
+ - split: train
118
+ path: data/Greece/train-*.parquet
119
+ - config_name: Hong_Kong
120
+ data_files:
121
+ - split: train
122
+ path: data/Hong_Kong/train-*.parquet
123
+ - config_name: IMO
124
+ data_files:
125
+ - split: train
126
+ path: data/IMO/train-*.parquet
127
+ - config_name: Ibero-American_Mathematical_Olympiad
128
+ data_files:
129
+ - split: train
130
+ path: data/Ibero-American_Mathematical_Olympiad/train-*.parquet
131
+ - config_name: India
132
+ data_files:
133
+ - split: train
134
+ path: data/India/train-*.parquet
135
+ - config_name: Iran
136
+ data_files:
137
+ - split: train
138
+ path: data/Iran/train-*.parquet
139
+ - config_name: Ireland
140
+ data_files:
141
+ - split: train
142
+ path: data/Ireland/train-*.parquet
143
+ - config_name: Italy
144
+ data_files:
145
+ - split: train
146
+ path: data/Italy/train-*.parquet
147
+ - config_name: JBMO
148
+ data_files:
149
+ - split: train
150
+ path: data/JBMO/train-*.parquet
151
+ - config_name: Japan
152
+ data_files:
153
+ - split: train
154
+ path: data/Japan/train-*.parquet
155
+ - config_name: Mexico
156
+ data_files:
157
+ - split: train
158
+ path: data/Mexico/train-*.parquet
159
+ - config_name: Middle_European_Mathematical_Olympiad_MEMO
160
+ data_files:
161
+ - split: train
162
+ path: data/Middle_European_Mathematical_Olympiad_MEMO/train-*.parquet
163
+ - config_name: Moldova
164
+ data_files:
165
+ - split: train
166
+ path: data/Moldova/train-*.parquet
167
+ - config_name: Mongolia
168
+ data_files:
169
+ - split: train
170
+ path: data/Mongolia/train-*.parquet
171
+ - config_name: Netherlands
172
+ data_files:
173
+ - split: train
174
+ path: data/Netherlands/train-*.parquet
175
+ - config_name: New_Zealand
176
+ data_files:
177
+ - split: train
178
+ path: data/New_Zealand/train-*.parquet
179
+ - config_name: Nordic_Mathematical_Olympiad
180
+ data_files:
181
+ - split: train
182
+ path: data/Nordic_Mathematical_Olympiad/train-*.parquet
183
+ - config_name: North_Macedonia
184
+ data_files:
185
+ - split: train
186
+ path: data/North_Macedonia/train-*.parquet
187
+ - config_name: Philippines
188
+ data_files:
189
+ - split: train
190
+ path: data/Philippines/train-*.parquet
191
+ - config_name: Romania
192
+ data_files:
193
+ - split: train
194
+ path: data/Romania/train-*.parquet
195
+ - config_name: Romanian_Master_of_Mathematics_RMM
196
+ data_files:
197
+ - split: train
198
+ path: data/Romanian_Master_of_Mathematics_RMM/train-*.parquet
199
+ - config_name: Russia
200
+ data_files:
201
+ - split: train
202
+ path: data/Russia/train-*.parquet
203
+ - config_name: Saudi_Arabia
204
+ data_files:
205
+ - split: train
206
+ path: data/Saudi_Arabia/train-*.parquet
207
+ - config_name: Serbia
208
+ data_files:
209
+ - split: train
210
+ path: data/Serbia/train-*.parquet
211
+ - config_name: Silk_Road_Mathematics_Competition
212
+ data_files:
213
+ - split: train
214
+ path: data/Silk_Road_Mathematics_Competition/train-*.parquet
215
+ - config_name: Singapore
216
+ data_files:
217
+ - split: train
218
+ path: data/Singapore/train-*.parquet
219
+ - config_name: Slovenia
220
+ data_files:
221
+ - split: train
222
+ path: data/Slovenia/train-*.parquet
223
+ - config_name: South_Africa
224
+ data_files:
225
+ - split: train
226
+ path: data/South_Africa/train-*.parquet
227
+ - config_name: South_Korea
228
+ data_files:
229
+ - split: train
230
+ path: data/South_Korea/train-*.parquet
231
+ - config_name: Soviet_Union
232
+ data_files:
233
+ - split: train
234
+ path: data/Soviet_Union/train-*.parquet
235
+ - config_name: Spain
236
+ data_files:
237
+ - split: train
238
+ path: data/Spain/train-*.parquet
239
+ - config_name: Switzerland
240
+ data_files:
241
+ - split: train
242
+ path: data/Switzerland/train-*.parquet
243
+ - config_name: Taiwan
244
+ data_files:
245
+ - split: train
246
+ path: data/Taiwan/train-*.parquet
247
+ - config_name: Thailand
248
+ data_files:
249
+ - split: train
250
+ path: data/Thailand/train-*.parquet
251
+ - config_name: Turkey
252
+ data_files:
253
+ - split: train
254
+ path: data/Turkey/train-*.parquet
255
+ - config_name: Ukraine
256
+ data_files:
257
+ - split: train
258
+ path: data/Ukraine/train-*.parquet
259
+ - config_name: United_States
260
+ data_files:
261
+ - split: train
262
+ path: data/United_States/train-*.parquet
263
+ - config_name: Vietnam
264
+ data_files:
265
+ - split: train
266
+ path: data/Vietnam/train-*.parquet
267
+ - config_name: Zhautykov_Olympiad
268
+ data_files:
269
+ - split: train
270
+ path: data/Zhautykov_Olympiad/train-*.parquet
271
+ ---
272
+
273
+ <div align="center">
274
+
275
+ <img src="assets/title_w_logo_dark.png" alt="MathNet" width="960"/>
276
+
277
+ <a href="https://mathnet.mit.edu"><img alt="Website" src="https://img.shields.io/badge/website-mathnet.mit.edu-0d056f"></a>
278
+ <a href="https://arxiv.org/abs/2604.18584"><img alt="ICLR 2026" src="https://img.shields.io/badge/ICLR-2026-b31b1b"></a>
279
+
280
+ **Shaden Alshammari**<sup>1\*</sup> &ensp; **Kevin Wen**<sup>1\*</sup> &ensp; **Abrar Zainal**<sup>3\*</sup> &ensp; **Mark Hamilton**<sup>1</sup>
281
+ **Navid Safaei**<sup>4</sup> &ensp; **Sultan Albarakati**<sup>2</sup> &ensp; **William T. Freeman**<sup>1†</sup> &ensp; **Antonio Torralba**<sup>1†</sup>
282
+
283
+ <sup>1</sup>MIT &ensp; <sup>2</sup>KAUST &ensp; <sup>3</sup>HUMAIN &ensp; <sup>4</sup>Bulgarian Academy of Sciences &ensp; <sub>\*† equal contribution</sub>
284
+
285
+ </div>
286
+
287
+ ---
288
+ [Quick Start](#quick-start) · [Overview](#overview) · [Tasks](#three-benchmark-tasks) · [Comparison](#how-mathnet-compares-to-existing-math-benchmarks) · [Dataset Stats](#dataset-at-a-glance) · [Data Sources](#data-sources) · [Pipeline](#data-pipeline) · [Schema](#schema) · [License](#license) · [Citation](#citation)
289
+
290
+ ---
291
+ ## Quick start
292
+
293
+ ```python
294
+ from datasets import load_dataset
295
+
296
+ # Default: all problems
297
+ ds = load_dataset("ShadenA/MathNet", split="train")
298
+
299
+ # Or a specific country / competition-body config
300
+ arg = load_dataset("ShadenA/MathNet", "Argentina", split="train")
301
+ apmo = load_dataset("ShadenA/MathNet", "Asia_Pacific_Mathematics_Olympiad_APMO", split="train")
302
+
303
+ row = ds[0]
304
+ print(row["competition"], row["year"], row["country"])
305
+ print(row["problem_markdown"])
306
+ for img in row["images"]:
307
+ img.show() # PIL image — renders inline in the HF viewer
308
+ ```
309
+
310
+ ## Overview
311
+
312
+ <img src="assets/overview.png" alt="MathNet overview: large-scale multilingual data, high-quality solutions, diverse topics, and three evaluation tasks" width="100%"/>
313
+
314
+ Mathematical problem solving remains a challenging test of reasoning for large language and multimodal models, yet existing benchmarks are limited in size, language coverage, and task diversity. We introduce **MathNet**, a high-quality, large-scale, multimodal, and multilingual dataset of Olympiad-level math problems together with a benchmark for evaluating mathematical reasoning in generative models **and** mathematical retrieval in embedding-based systems.
315
+
316
+ MathNet spans **47 countries**, **17 languages**, and **two decades** of competitions, comprising **30,676 expert-authored problems with solutions** across diverse domains. Alongside the core dataset, we construct a retrieval benchmark of mathematically equivalent and structurally similar problem pairs curated by human experts.
317
+
318
+ ---
319
+
320
+ ## Three benchmark tasks
321
+
322
+ | | Task | What it measures |
323
+ |---|---|---|
324
+ | **I** | **Problem Solving** | Generative models on Olympiad problems, graded against expert solutions |
325
+ | **II** | **Math-Aware Retrieval** | Embedding models' ability to retrieve mathematically equivalent / structurally similar problems |
326
+ | **III** | **Retrieval-Augmented Problem Solving** | How retrieval quality affects reasoning when similar problems are given as context |
327
+
328
+ Even state-of-the-art reasoners remain challenged: **78.4% (Gemini-3.1-Pro)** and **69.3% (GPT-5)** on `MathNet-Solve-Test`. Embedding models struggle with equivalence retrieval (Recall@1 under 5% for all tested models), and RAG gains are highly sensitive to retrieval quality — expert retrieval lifts DeepSeek-V3.2-Speciale to **97.3%** on `MathNet-RAG`.
329
+
330
+
331
+ ## How MathNet compares to existing math benchmarks
332
+
333
+ | Benchmark | Size | Languages | Multimodal | Source | Difficulty |
334
+ |---|---:|---|:-:|---|---|
335
+ | GSM8K | 8,500 | EN | — | Crowdsourced | Grade school |
336
+ | MATH | 12,500 | EN | — | Competitions/textbooks | High school |
337
+ | MATH-Vision | 3,040 | EN | ✓ | Math competitions | High school |
338
+ | OlympiadBench | 6,142 | EN, ZH | ✓ | Official websites | Olympiad |
339
+ | OlympicArena | 3,233 | EN, ZH | ✓ | Official websites | Olympiad |
340
+ | Omni-Math | 4,428 | EN | — | AoPS / contest pages | Olympiad |
341
+ | OlymMATH | 200 | EN, ZH | — | AoPS / official | Olympiad |
342
+ | MathArena | 162 | EN | ✓ | Newly released competitions | Olympiad |
343
+ | IMOBench | 460 | EN | — | IMO & national archives | Olympiad |
344
+ | **MathNet (ours)** | **30,676** | **17** (EN, ZH, ES, RU, FR, RO, + 11 more) | **✓** | **Official country booklets / international & national contests** | **Olympiad** |
345
+
346
+ ## Dataset at a glance
347
+
348
+ <img src="assets/dataset_stats.png" alt="MathNet dataset statistics: contest types, solution length vs. prior benchmarks, problems per year, topic distribution, and language distribution" width="100%"/>
349
+
350
+ **What the figure shows.** *(a)* A mix of national, regional, TST, and international competitions. *(b)* MathNet solutions are **substantially longer** than those in prior math benchmarks — long-form proofs, not one-line answers. *(c)* Problems per year — the corpus has grown steadily since the early 2000s. *(d)* Coverage across geometry, algebra, combinatorics, number theory, and their sub-topics. *(e)* **74% English, 26% non-English** across **17 languages**; Portuguese, Spanish, French, Italian, Serbian, Slovenian, German, Chinese, Romanian, Korean, Dutch, Russian, Mongolian, Macedonian, Polish, and Hungarian all appear.
351
+
352
+ ### Topic taxonomy (excerpt)
353
+
354
+ MathNet ships with a curated olympiad-style taxonomy. Top-level domains include:
355
+
356
+ - **Geometry** — plane (triangles, quadrilaterals, circles, concurrency/collinearity, transformations, Miquel/Simson/Brocard, geometric inequalities, combinatorial geometry, analytic methods), solid, differential, non-Euclidean
357
+ - **Algebra** — prealgebra, polynomials, inequalities, functional equations, sequences/series, linear algebra, abstract algebra
358
+ - **Number Theory** — divisibility, primes, modular arithmetic, Diophantine equations, quadratic residues, \(p\)-adic methods
359
+ - **Combinatorics** — counting, graph theory, extremal / pigeonhole, invariants/monovariants, games, coloring, generating functions
360
+ - **Calculus / Analysis** — limits, inequalities, real analysis, combinatorial analysis
361
+ - **Probability & Statistics** — discrete and continuous
362
+
363
+ Every problem carries a hierarchical topic path (e.g. `Geometry > Plane Geometry > Quadrilaterals > Cyclic quadrilaterals`) usable for stratified evaluation or curriculum construction.
364
+
365
+ ## Data sources
366
+
367
+ Each year, participating IMO countries contribute original problems for use in their national contests and team selection examinations. MathNet is built from **official problem booklets** collected from **47 countries spanning 1985–2025** — **1,595 PDF volumes** totalling more than **25,000 pages**. Unlike prior math benchmarks that rely on community platforms such as AoPS, every problem and solution in MathNet is authored and disseminated by national teams themselves, ensuring expert-level quality, stylistic consistency, and immunity from the noisy or informal annotations that plague crowd-sourced collections.
368
+
369
+ A meaningful portion of the collection — particularly older national booklets — was physically obtained and scanned by hand by our IMO expert co-authors, who have attended the International Mathematical Olympiad since 2006 and accumulated a personal archive of official competition materials over nearly two decades.
370
+
371
+ ## Data pipeline
372
+
373
+ <img src="assets/pipeline.png" alt="MathNet data extraction and curation pipeline" width="100%"/>
374
+
375
+ Extracting aligned problem–solution pairs from a heterogeneous corpus of mathematical documents is non-trivial: some booklets separate problems and solutions into different sections, others interleave them; numbering schemes and naming conventions vary across countries and even within a single document. Regex-based heuristics break down at this scale, so we designed a multi-stage LLM pipeline.
376
+
377
+ **Stage 1 — Document ingestion & segmentation.** All booklets are converted to Markdown via `dots-ocr`, a multilingual document parsing framework designed for both digital typeset PDFs and scanned copies across many languages. `Gemini-2.5-Flash` then identifies problem and solution segments by outputting only their line numbers, and records authors, hints, remarks, source file, and page numbers for provenance.
378
+
379
+ **Stage 2 — Problem–solution extraction.** Given the line segments from Stage 1, `GPT-4.1` extracts the corresponding problem and solution in LaTeX-friendly Markdown, together with a surrounding text buffer to handle cases where content spans across context boundaries.
380
+
381
+ **Stage 3 — Extraction verification.** Each extracted pair passes three independent checks before being retained:
382
+ 1. **Rule-based similarity check** — text similarity between the extraction and original OCR output ensures the LLM made only formatting changes and introduced no hallucinated content.
383
+ 2. **GPT-4.1-as-judge** — GPT-4.1 compares page screenshots against the extracted pair to catch OCR errors, incorrect figure associations, and incomplete solutions.
384
+ 3. **Human expert review** — low-confidence cases are manually reviewed by annotators. A pair is retained only if all three mechanisms agree.
385
+
386
+ Provenance (source booklet, page numbers, authors where given) is preserved on every problem.
387
+
388
+ ## What this preview contains
389
+
390
+ A **diverse 100-problem slice** sampled round-robin across countries, prioritizing problems with figures so the multimodal path is visible end-to-end. Images are **embedded** in the parquet as HF `Image()` features — they render inline in the dataset viewer and decode to PIL on load.
391
+
392
+ ## Schema
393
+
394
+ | Column | Type | Notes |
395
+ |---|---|---|
396
+ | `unique_id` | string | Stable SHA-256 content hash |
397
+ | `country` | string | Country / regional body of origin |
398
+ | `competition` | string | e.g. `IMO 2023`, `Cono Sur Mathematical Olympiad` |
399
+ | `year` | int32 | Year of competition |
400
+ | `section` | string\|null | Day / round / level |
401
+ | `problem_number` | string | As printed in the booklet |
402
+ | `problem_markdown` | string | Problem statement (Markdown + LaTeX) |
403
+ | `solutions_markdown` | list&lt;string&gt; | Official / provided solutions |
404
+ | `answers_markdown` | list&lt;string&gt; | Final answers when stated separately |
405
+ | `topics` | list&lt;list&lt;string&gt;&gt; | Hierarchical tags |
406
+ | `topics_flat` | list&lt;string&gt; | Joined `A > B > C` strings |
407
+ | `language` | string | Source booklet language |
408
+ | `source_booklet` | string | Booklet id (e.g. `ARG_2003`) |
409
+ | `booklet_source` | string | Upstream collection label |
410
+ | `has_images` | bool | Whether the problem cites figures |
411
+ | `num_images` | int32 | Count of referenced figures |
412
+ | `images` | list&lt;Image&gt; | Inlined bytes, decoded to PIL |
413
+ | `natural_language_description` | string\|null | LLM-assisted NL rephrasing |
414
+ | `main_ideas` | list&lt;string&gt; | LLM-assisted key solution ideas |
415
+ | `final_answer` | string\|null | LLM-extracted final answer |
416
+ | `problem_type` | string\|null | `proof`, `answer`, `proof and answer`, … |
417
+ | `metadata_confidence` | float32 | Self-rated confidence of LLM metadata |
418
+ | `original_problem_markdown` | string\|null | Pre-normalization text |
419
+
420
+ > The enriched fields (`natural_language_description`, `main_ideas`, `final_answer`, `problem_type`, `metadata_confidence`) are **LLM-assisted** and not fully human-audited in the preview. Treat them as convenience annotations, not ground truth.
421
+
422
+ ## Configs / splits
423
+
424
+ One config per **country or regional body** plus a default `all` config unioning everything. Each config has a single `train` split — this is a preview, not the train/test partitioning of `MathNet-Solve` (which is `train: 23,776`, `test: 6,400`, `test-hard: 500` in the full release).
425
+
426
+ ## Intended uses & limitations
427
+
428
+ **Good for.** Olympiad-level reasoning evaluation, multilingual math evaluation, figure-grounded multimodal math, topic-stratified analysis, retrieval benchmarks over mathematical structure, and **RL training** — the large pool of expert-written solutions provides dense rewards for verifiable-answer problems, while the math-aware similarity pairs open a new axis: rewarding a model for retrieving a structurally equivalent problem is a natural, automatically verifiable signal that does not require a closed-form answer.
429
+
430
+ **Caveats.**
431
+ - **Not contamination-clean.** Olympiad problems are indexed widely; assume leakage when evaluating pretrained models.
432
+ - **Preview schema may change** before the full release.
433
+ - **LLM-assisted metadata is imperfect.**
434
+
435
+ ## License
436
+
437
+ With the kind support of IMO President Gregor Dolinar, we reached out to the leaders of all participating countries and obtained their permission to share this dataset publicly. Where a country or contest organization asserts its own copyright, that copyright is retained and takes precedence — see `competition`, `country`, and `source_booklet` on each row. For all remaining problems where no explicit copyright was asserted, the dataset is released under **[Creative Commons Attribution 4.0 International (CC BY 4.0)](https://creativecommons.org/licenses/by/4.0/)**.
438
+
439
+ In short: use freely, cite the paper, and respect any explicit rights claimed by the original national team.
440
+
441
+ If you are a rightsholder with a concern, please open an issue or email [shaden@mit.edu](mailto:shaden@mit.edu).
442
+
443
+ ## Citation
444
+
445
+ ```bibtex
446
+ @inproceedings{alshammari2026mathnet,
447
+ title = {MathNet: A Global Multimodal Benchmark for Mathematical
448
+ Reasoning and Retrieval},
449
+ author = {Alshammari, Shaden and Wen, Kevin and Zainal, Abrar and
450
+ Hamilton, Mark and Safaei, Navid and Albarakati, Sultan and
451
+ Freeman, William T. and Torralba, Antonio},
452
+ booktitle = {International Conference on Learning Representations},
453
+ year = {2026},
454
+ url = {https://mathnet.mit.edu}
455
+ }
456
+ ```
457
+
458
+ ## Links
459
+
460
+ - 🌐 **Website & paper:** <https://mathnet.mit.edu>
461
+ - 🔭 **Browse all 30K problems:** <https://mathnet.mit.edu/explorer.html>
462
+ - ✉️ **Contact:** [shaden@mit.edu](mailto:shaden@mit.edu)
463
+
464
+ <p align="center"><sub>© 2026 Massachusetts Institute of Technology · MathNet · ICLR 2026</sub></p>
__pycache__/build_dataset.cpython-310.pyc ADDED
Binary file (13.1 kB). View file
 
_mathpix_cache/003165ee6eeb7d2c.jpg ADDED

Git LFS Details

  • SHA256: 8d5b90b88e696d7a7ece11c3fc57d1cfa1e4d8af09a824b8d7ce06f9f0ce4aac
  • Pointer size: 130 Bytes
  • Size of remote file: 21.9 kB
_mathpix_cache/00395e4cd7af4ef4.jpg ADDED

Git LFS Details

  • SHA256: eaa2ca2e2e38013a9d9530bbfd0fe36f46458517f3d6664f9116a004ce25c741
  • Pointer size: 130 Bytes
  • Size of remote file: 32.1 kB
_mathpix_cache/00989d4fc9fa6b08.jpg ADDED

Git LFS Details

  • SHA256: 0eca77ec678ee334bf350ac2545580679536dd8fd887d0390649345ee44ec1c1
  • Pointer size: 130 Bytes
  • Size of remote file: 18.7 kB
_mathpix_cache/01136328ededfddf.jpg ADDED

Git LFS Details

  • SHA256: e10912f2e0e4397cb58fab3bf4578eec211610ee8064ebe8de53e880a4a2f3d7
  • Pointer size: 130 Bytes
  • Size of remote file: 66.1 kB
_mathpix_cache/0157f39bbc5f8af2.jpg ADDED

Git LFS Details

  • SHA256: dae1692226536b7d19c91f48c73dd4c31e19b36b079d68c6aa8931236b5038c5
  • Pointer size: 130 Bytes
  • Size of remote file: 18.9 kB
_mathpix_cache/021064be5eebdfb5.jpg ADDED

Git LFS Details

  • SHA256: e07132e77c5dfb8c6ffa632b350b44d051a4c98a467051def3eeb457c8eba63e
  • Pointer size: 130 Bytes
  • Size of remote file: 58.4 kB
_mathpix_cache/0279173a86b0a2f6.jpg ADDED

Git LFS Details

  • SHA256: dbf93505edb662cfe0e2db42fc3609808197f58053bc275cf6927870a933393b
  • Pointer size: 130 Bytes
  • Size of remote file: 40.3 kB
_mathpix_cache/02c78916aa8450a5.jpg ADDED

Git LFS Details

  • SHA256: e6dcfb02f347bcab929d5799d2569c9e531d5d58732dfacbef2f1eeb5b1d0407
  • Pointer size: 129 Bytes
  • Size of remote file: 3.2 kB
_mathpix_cache/032ff89c482c9fbe.jpg ADDED

Git LFS Details

  • SHA256: a1f61c051074fe42848e142fc27e6d1e8a45705e74602e60eb8a10ac442fd680
  • Pointer size: 130 Bytes
  • Size of remote file: 16.1 kB
_mathpix_cache/04b2e8302720a009.jpg ADDED

Git LFS Details

  • SHA256: dc69566f1a865588970eb63efcd2d191e76e4b1791b51a6b0ea8539942d96a8d
  • Pointer size: 130 Bytes
  • Size of remote file: 57.1 kB
_mathpix_cache/04c1a5d493b3bf05.jpg ADDED

Git LFS Details

  • SHA256: cb0093f468840c7238dcfb900ca6ddb8a7e8c5a1c145f3a8dd72c1f7ed5e92a5
  • Pointer size: 130 Bytes
  • Size of remote file: 14.2 kB
_mathpix_cache/04f622f2c683f1ca.jpg ADDED

Git LFS Details

  • SHA256: 3c48edd9169d794c210fd8e5a3928f411f44f6ee1fa5c7a008f4f96ada722180
  • Pointer size: 130 Bytes
  • Size of remote file: 39.2 kB
_mathpix_cache/053a0630a9f4e755.jpg ADDED

Git LFS Details

  • SHA256: e83ca191d3d54b21a608df82828a0870001b940fba9c5aec2da613c78366b9c4
  • Pointer size: 130 Bytes
  • Size of remote file: 59 kB
_mathpix_cache/053ee8785472331b.jpg ADDED

Git LFS Details

  • SHA256: 1c9b3aa765779cfe7b4f3e97dd8df32651e96a84e86a82222e7772f21a316229
  • Pointer size: 130 Bytes
  • Size of remote file: 23.6 kB
_mathpix_cache/05d564dd30af406b.jpg ADDED

Git LFS Details

  • SHA256: 4e9dee3769502814340d3cb38bff353b82a824c0fbed84ca7547994ae7d9b526
  • Pointer size: 130 Bytes
  • Size of remote file: 49.2 kB
_mathpix_cache/061a51b8f40aeedf.jpg ADDED

Git LFS Details

  • SHA256: 46c43bb5bddf6fee513747f3722474515e874098bb56467ff842b905b6126485
  • Pointer size: 130 Bytes
  • Size of remote file: 68.6 kB
_mathpix_cache/06e9ba97ecfd864e.jpg ADDED

Git LFS Details

  • SHA256: f488a06b611e103ed8dd933b3823f043dc1a5a281ca97e7511abcc6473fc9bb9
  • Pointer size: 130 Bytes
  • Size of remote file: 80.5 kB
_mathpix_cache/07b1557402418d82.jpg ADDED

Git LFS Details

  • SHA256: 071f992d81453b7e60297e1bad7e93a348067be87ebef229d5a5782a434ffe4c
  • Pointer size: 130 Bytes
  • Size of remote file: 67.2 kB
_mathpix_cache/07d4af08859351b9.jpg ADDED

Git LFS Details

  • SHA256: dd6dd3e44c8075bf5cd597c86241c9ad809f24b2731ef1b1c7854e58bec968bf
  • Pointer size: 130 Bytes
  • Size of remote file: 35.8 kB
_mathpix_cache/07dfecf60a4ef4a2.jpg ADDED

Git LFS Details

  • SHA256: 69f4f14ec5eabd2e05b381da26c96f0c7d35b06c80a712bdde7b82e1c9256306
  • Pointer size: 130 Bytes
  • Size of remote file: 22.6 kB
_mathpix_cache/082060dc5a2d119a.jpg ADDED

Git LFS Details

  • SHA256: f02102c81a2bfa6e28c11ed078a049b7bdf9b1fff3daa0752932438d212fcfb0
  • Pointer size: 130 Bytes
  • Size of remote file: 51.8 kB
_mathpix_cache/083ac97d8240a2dd.jpg ADDED

Git LFS Details

  • SHA256: fcb7222b1eaed3bfccb9e3216e5de3723540aed2744aea189125e35c9482838c
  • Pointer size: 131 Bytes
  • Size of remote file: 100 kB
_mathpix_cache/085d885b551bf316.jpg ADDED

Git LFS Details

  • SHA256: 0fe8253b6dd885ca0ae9798c0cf4e557d8eb2f5a8840a8b5208f41eb7313f10e
  • Pointer size: 131 Bytes
  • Size of remote file: 100 kB
_mathpix_cache/08a804f0d9c317f5.jpg ADDED

Git LFS Details

  • SHA256: 326300828995c6549b7ba8ffcb27afb3aa89707ea750fc999016805959d9583f
  • Pointer size: 130 Bytes
  • Size of remote file: 61.1 kB
_mathpix_cache/08bd26afea8d1010.jpg ADDED

Git LFS Details

  • SHA256: 7db31533c4238b917ebdffe340ec5b2870ef4dd7d4c9d0ac8d906b3897b0afc9
  • Pointer size: 130 Bytes
  • Size of remote file: 82.5 kB
_mathpix_cache/08ef203ba543fe4b.jpg ADDED

Git LFS Details

  • SHA256: 5c1760f84d2f4c02d01f344c0b05899f4b9240218530773522ba120a5d318be1
  • Pointer size: 130 Bytes
  • Size of remote file: 24.1 kB
_mathpix_cache/08fd96d36848c1da.jpg ADDED

Git LFS Details

  • SHA256: 3a702197826cf265140db50061531efab7950c96411c2dd4c8d413a3d50809c0
  • Pointer size: 130 Bytes
  • Size of remote file: 27.6 kB
_mathpix_cache/094b60757f311c54.jpg ADDED

Git LFS Details

  • SHA256: 008d395891a23a6fb348a3994148d0f5801e30e9c84efe33d08072918113f347
  • Pointer size: 131 Bytes
  • Size of remote file: 124 kB
_mathpix_cache/09c087b1b9247f4d.jpg ADDED

Git LFS Details

  • SHA256: bd9f4e452b449b18c136be887405f466c595a240e606b30e771590cfac637f48
  • Pointer size: 130 Bytes
  • Size of remote file: 98.3 kB
_mathpix_cache/09efebc57896e99b.jpg ADDED

Git LFS Details

  • SHA256: 493458b3083b6a17419b99a05d0071704480be491b8bb9b20a2c4aab72f4058d
  • Pointer size: 131 Bytes
  • Size of remote file: 107 kB
_mathpix_cache/0a050783757f5e71.jpg ADDED

Git LFS Details

  • SHA256: c56a51fb044613123d9cb0b21e84d5d5b0e2c5baf51798a2816941241305a75d
  • Pointer size: 130 Bytes
  • Size of remote file: 14.4 kB
_mathpix_cache/0b317835dd585191.jpg ADDED

Git LFS Details

  • SHA256: 3188bae07c66a09c02d54d61998cb4bd5a020af5f7545c50083d9d09f8d17374
  • Pointer size: 130 Bytes
  • Size of remote file: 55 kB
_mathpix_cache/0b574acc9f40d027.jpg ADDED

Git LFS Details

  • SHA256: eec4b39bd7376e74732583d879593814c7b81ded26af69c96e9985ffce4f2d42
  • Pointer size: 130 Bytes
  • Size of remote file: 49.7 kB
_mathpix_cache/0b74794db546a3aa.jpg ADDED

Git LFS Details

  • SHA256: 32407bf11d58e89512fe1651218f4a270a6582401aa7b32421f35001874e4669
  • Pointer size: 130 Bytes
  • Size of remote file: 39.3 kB
_mathpix_cache/0c35d14ad776d92d.jpg ADDED

Git LFS Details

  • SHA256: d59fe07e66e82a82fa3e671b630d48a5f450559305553044fc2fbe8453e5f081
  • Pointer size: 130 Bytes
  • Size of remote file: 24.3 kB
_mathpix_cache/0caec9b56a4ff6ac.jpg ADDED

Git LFS Details

  • SHA256: a5e2ee02ccf4a89c83cb7dcafc9081f9fed745447fcf0cd69736a6f6ddfdc2e3
  • Pointer size: 130 Bytes
  • Size of remote file: 32.5 kB
_mathpix_cache/0cec568d4cd8c924.jpg ADDED

Git LFS Details

  • SHA256: a22a125a554528e34e34c60ed272aed4707a56b2a4cfa9057d47cf0008910ef4
  • Pointer size: 131 Bytes
  • Size of remote file: 112 kB
_mathpix_cache/0d04588fdb4726b7.jpg ADDED

Git LFS Details

  • SHA256: 4d7e26b55d066f1396d6ed4f9eedaebb345acbcf1f719a0c813f3d95ddb4d93e
  • Pointer size: 129 Bytes
  • Size of remote file: 1.91 kB
_mathpix_cache/0e5b09dbbca0984e.jpg ADDED

Git LFS Details

  • SHA256: e1d70756e2d0814013c3c6e470695f15a2df965ca8d425afe5009d7f5b6e3258
  • Pointer size: 130 Bytes
  • Size of remote file: 29.3 kB
_mathpix_cache/10a5da87fc57a5c5.jpg ADDED

Git LFS Details

  • SHA256: 8ac81811f4c76ff12da94506208e59f551d1df442916553699392e4b74d93ec9
  • Pointer size: 130 Bytes
  • Size of remote file: 59.4 kB
_mathpix_cache/10aa7b1bcb3165ed.jpg ADDED

Git LFS Details

  • SHA256: 506cc440b2a9ff3fbd2a970936a44374043838c6def42206a42c8fd94760a643
  • Pointer size: 130 Bytes
  • Size of remote file: 86.3 kB
_mathpix_cache/10ce401389ba6894.jpg ADDED

Git LFS Details

  • SHA256: 05ea411c9462c47d24ea7c1b451e447d4d26bde2a434e564753bafb622f0cdea
  • Pointer size: 130 Bytes
  • Size of remote file: 17.3 kB
_mathpix_cache/10da2653cc6df3b9.jpg ADDED

Git LFS Details

  • SHA256: 35821cfd6a8099f21f4796ae3f54b63d9a93176bfaf50032b4c9feddffe633bc
  • Pointer size: 130 Bytes
  • Size of remote file: 25.4 kB
_mathpix_cache/111aec08b805de08.jpg ADDED

Git LFS Details

  • SHA256: e3b1cfef91c17902738c4c1969195f3ffeefb1e045920ef079be1e62656ea496
  • Pointer size: 130 Bytes
  • Size of remote file: 32.8 kB
_mathpix_cache/1222bb089beaa570.jpg ADDED

Git LFS Details

  • SHA256: 968e059896f21d30b849f9a05120e9eafc4ce39d1c9b0578f9117769ec931aaa
  • Pointer size: 130 Bytes
  • Size of remote file: 39.1 kB
_mathpix_cache/123adf3012fd3396.jpg ADDED

Git LFS Details

  • SHA256: 068b5262b9ccfbb90e43ffde0f9d9f366aad36cbd2998b6748e439badfb015eb
  • Pointer size: 130 Bytes
  • Size of remote file: 97.5 kB
_mathpix_cache/13045bdd87a5477b.jpg ADDED

Git LFS Details

  • SHA256: f8d2d35fbe3eda16fbf8e00f8699d7bf4f50043376bc772f99feba379dc38ed4
  • Pointer size: 130 Bytes
  • Size of remote file: 12.4 kB
_mathpix_cache/139ea7be30bf3871.jpg ADDED

Git LFS Details

  • SHA256: 6a1d35c26561bfb47390f04a24d0fc648b1abdd0ac79db56896c30547c4b1155
  • Pointer size: 130 Bytes
  • Size of remote file: 42.8 kB