RamonK commited on
Commit
29a5da7
·
verified ·
1 Parent(s): 22806f4

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +276 -3
README.md CHANGED
@@ -1,3 +1,276 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ task_categories:
4
+ - question-answering
5
+ language:
6
+ - en
7
+ - de
8
+ tags:
9
+ - math
10
+ - mathematics
11
+ pretty_name: Math Dataset for elementary school level
12
+ size_categories:
13
+ - 1K<n<10K
14
+ ---
15
+ # Math Dataset for elementary school grade
16
+
17
+ This repository is dedicated to compiling a comprehensive and balanced dataset tailored to match the mathematics curriculum for 10-year-olds. Our goal is to provide a robust resource that supports the development and evaluation of educational tools like chatbots, which can effectively answer math questions tailored to elementary students.
18
+
19
+ **For more info, please visit our [GitHub](https://github.com/RamonKaspar/MathDataset-ElementarySchool/).**
20
+
21
+ ## Methodology
22
+
23
+ We followed a methodical approach to construct this dataset:
24
+
25
+ - **Classification of Math Questions:** We categorized questions to allow for targeted educational interventions and specialized solution techniques.
26
+
27
+ - **Search for Suitable Datasets:** We identified datasets for each category, ensuring they align with the learning level and content requirements of elementary school math.
28
+
29
+ - **Compilation and Sampling:** We combined and randomly sampled from exisitng datasets to create a diverse collection that accurately mirrors the types of math challenges faced by 10-year-olds.
30
+
31
+ ## Categorization
32
+
33
+ Our dataset categorizes mathematical questions into three groups:
34
+
35
+ 1. **Arithmetic:** Includes basic calculations, measurement conversions, and more. (E.g. "What is 1.20m in mm?" or "What is 12+8?")
36
+ 2. **Word Problems:** Engages students with real-world scenarios requiring mathematical solutions. (E.g. "If you split 50$ equally among 5 people, how much does each get?")
37
+ 3. **Geometry:** Focuses on shape, space, and measurement problems suitable for young learners. (E.g. "What is the volume of a sphere with radius 6 cm?")
38
+
39
+ These categories where inspired by [Ahn et al., 2024](https://arxiv.org/abs/2402.00157).
40
+
41
+ ## Dataset Selection Criteria
42
+
43
+ We adhered to rigorous criteria to ensure the dataset's relevance and quality:
44
+
45
+ - Language: English-only to maintain consistency across data.
46
+ - Educational Level: Suitable for elementary school math levels.
47
+ - Content Type: Focused exclusively on text-based datasets, avoiding any that include pictures or additional multimedia sources to ensure straightforward analysis.
48
+ - Single Float Answer: The answer to each question is a single float value. This ensures easy evaluation.
49
+
50
+ # Dataset Overview
51
+
52
+ ### Format
53
+
54
+ The dataset is a collection of `.json` objects. Each object has the following format:
55
+
56
+ ```json
57
+ {
58
+ "category": "Arithmetic | Word Problems | Gemoetry",
59
+ "subcategory": "<divided category further>",
60
+ "question": "<question>",
61
+ "answer": "<answer as float>",
62
+ "reasoning": "(optional) <can be an equation, python program, etc.>",
63
+ "source": "<source dataset name>"
64
+ }
65
+ ```
66
+
67
+ Example Entry (from the SVAMP dataset):
68
+
69
+ ```json
70
+ {
71
+ "category": "Word Problem",
72
+ "subcategory": "challenge",
73
+ "question": "Dan had $ 3 left with him after he bought a candy bar. If he had $ 4 at the start, how much did the candy bar cost?",
74
+ "answer": 1.0,
75
+ "reasoning": "( 4.0 - 3.0 )",
76
+ "source": "SVAMP"
77
+ }
78
+ ```
79
+
80
+ ### Directory Structure & Data Management
81
+
82
+ The datasets are versioned into three types for each category:
83
+
84
+ - `<category>_complete.csv/json`: Provides the comprehensive dataset, ideal for extensive analysis.
85
+ - `<category>_1000.csv/json`: A balanced sample of 1000 items, perfect for in-depth testing.
86
+ - `<category>_100.csv/json`: A smaller sample of 100 items, designed for quick assessments.
87
+
88
+ For ease of access, the complete datasets for smaller samples (`<category>_1000.csv/json` and `<category>_100.csv/json`) are directly accessible within this repository in the data directory.
89
+
90
+ ## Translation to German
91
+
92
+ We translated the datasets to german (using the DeepL API). See our [GitHub](https://github.com/RamonKaspar/MathDataset-ElementarySchool/) for the dataset and more info.
93
+
94
+ ## Oerview of the different dataset versions
95
+
96
+ This table gives an overview of the different dataset versions.
97
+
98
+ | Section | Name | Number of subcategories | Size |
99
+ | ----------------- | ----------------------- | ----------------------- | --------- |
100
+ | I. Arithmetic | `arithmetic_complete` | 14 | 7,731,654 |
101
+ | | `arithmetic_1000` | 14 | 1,000 |
102
+ | | `arithmetic_100` | 14 | 100 |
103
+ | II. Word Problems | `wordProblems_complete` | 3 | 1,995 |
104
+ | | `wordProblems_1000` | 3 | 1,000 |
105
+ | | `wordProblems_100` | 3 | 100 |
106
+ | III. Geometry | `geometry_complete` | 1 | 1,698 |
107
+ | | `geometry_1000` | 1 | 1,000 |
108
+ | | `geometry_100` | 1 | 100 |
109
+
110
+ ## Exploring the Dataset
111
+
112
+ A nice overview of all available datasets in the mathematical domain can be found in [Lu et al, 2023](https://arxiv.org/abs/2212.10535) and in [Ahn et al., 2024](https://arxiv.org/abs/2402.00157).
113
+
114
+ In constructing this dataset, we made a concerted effort to include a comprehensive range of datasets that are best suited for the educational level and cognitive abilities of 10-year-olds. While we don't provide extensive details on the selection process for each dataset, our overarching goal was to incorporate as many relevant and suitable datasets as possible.
115
+
116
+ <table border="1" style="border-collapse: collapse; width: 100%;">
117
+ <caption>Overview of the dataset. Here all versions with 1000 samples are listed.</caption>
118
+ <thead>
119
+ <tr>
120
+ <th colspan="4"><h3>I. Arithmetic</h3></th>
121
+ </tr>
122
+ </thead>
123
+ <thead>
124
+ <tr>
125
+ <th><strong>Source</strong></th>
126
+ <th><strong>Subcategory</strong></th>
127
+ <th><strong>Size</strong></th>
128
+ <th><strong>Example</strong></th>
129
+ </tr>
130
+ </thead>
131
+ <tbody>
132
+ <tr>
133
+ <td><a href="https://github.com/GanjinZero/math401-llm">Math-401</a></td>
134
+ <td><code>arithmetic_mixed</code></td>
135
+ <td>71</td>
136
+ <td>log 10(797)=</td>
137
+ </tr>
138
+ <tr>
139
+ <td rowspan="13"><a href="https://github.com/google-deepmind/mathematics_dataset">Mathematics Dataset (Google Deepmin)</a></td>
140
+ <td><code>add_or_sub</code></td>
141
+ <td>71</td>
142
+ <td>What is -6.5 + -1.5?</td>
143
+ </tr>
144
+ <tr>
145
+ <td><code>add_sub_multiple</code></td>
146
+ <td>71</td>
147
+ <td>Calculate -4 + 0 - ((-3 - -1) + 7).</td>
148
+ </tr>
149
+ <tr>
150
+ <td><code>conversion</code></td>
151
+ <td>71</td>
152
+ <td>What is three eighths of a kilogram in grams?</td>
153
+ </tr>
154
+ <tr>
155
+ <td><code>div</code></td>
156
+ <td>71</td>
157
+ <td>Calculate -238 divided by -3.</td>
158
+ </tr>
159
+ <tr>
160
+ <td><code>div_remainder</code></td>
161
+ <td>73</td>
162
+ <td>What is the remainder when 255 is divided by 20?</td>
163
+ </tr>
164
+ <tr>
165
+ <td><code>gcd</code></td>
166
+ <td>72</td>
167
+ <td>What is the highest common divisor of 75 and 390?</td>
168
+ </tr>
169
+ <tr>
170
+ <td><code>lcm</code></td>
171
+ <td>72</td>
172
+ <td>Calculate the lowest common multiple of 1355 and 80.</td>
173
+ </tr>
174
+ <tr>
175
+ <td><code>mul</code></td>
176
+ <td>72</td>
177
+ <td>Multiply -0.0756 and 0.14.</td>
178
+ </tr>
179
+ <tr>
180
+ <td><code>mul_div_multiple</code></td>
181
+ <td>71</td>
182
+ <td>Evaluate 2/(-6)*(-120)/(-80).</td>
183
+ </tr>
184
+ <tr>
185
+ <td><code>place_value</code></td>
186
+ <td>71</td>
187
+ <td>What is the tens digit of 5546?</td>
188
+ </tr>
189
+ <tr>
190
+ <td><code>round_number</code></td>
191
+ <td>71</td>
192
+ <td>Round 4117.6 to the nearest 10.</td>
193
+ </tr>
194
+ <tr>
195
+ <td><code>sequence_next_term</code></td>
196
+ <td>72</td>
197
+ <td>What comes next: -75, -80, -85, -90?</td>
198
+ </tr>
199
+ <tr>
200
+ <td><code>time</code></td>
201
+ <td>71</td>
202
+ <td>How many minutes are there between 1:03 PM and 9:11 PM?</td>
203
+ </tr>
204
+ </tbody>
205
+ <thead>
206
+ <tr>
207
+ <th colspan="4"><h3>II. Word Problems</h3></th>
208
+ </tr>
209
+ </thead>
210
+ <thead>
211
+ <tr>
212
+ <th><strong>Source</strong></th>
213
+ <th><strong>Subcategory</strong></th>
214
+ <th><strong>Size</strong></th>
215
+ <th><strong>Example</strong></th>
216
+ </tr>
217
+ </thead>
218
+ <tbody>
219
+ <tr>
220
+ <td><a href="https://github.com/arkilpatel/SVAMP">SVAMP</a></td>
221
+ <td><code>challenge</code></td>
222
+ <td>334</td>
223
+ <td>At the arcade Edward won 9 tickets. If he spent 4 tickets on a beanie and later won 4 more tickets, how many would he have?</td>
224
+ </tr>
225
+ <tr>
226
+ <td><a href="https://github.com/wangxr14/Algebraic-Word-Problem-Solver/blob/master/data/AddSub.json">AddSub</a></td>
227
+ <td><code>add_sub</code></td>
228
+ <td>333</td>
229
+ <td>Tim has 44 books. Sam has 52 books. How many books do they have together?</td>
230
+ </tr>
231
+ <tr>
232
+ <td><a href="https://huggingface.co/datasets/ChilleD/MultiArith">MultiArith</a></td>
233
+ <td><code>multi_step</code></td>
234
+ <td>333</td>
235
+ <td>Roger had 25 books. If he sold 21 of them and used the money he earned to buy 30 new books, how many books would Roger have?</td>
236
+ </tr>
237
+ </tbody>
238
+ <thead>
239
+ <tr>
240
+ <th colspan="4"><h3>III. Geometry</h3></th>
241
+ </tr>
242
+ </thead>
243
+ <thead>
244
+ <tr>
245
+ <th><strong>Source</strong></th>
246
+ <th><strong>Subcategory</strong></th>
247
+ <th><strong>Size</strong></th>
248
+ <th><strong>Example</strong></th>
249
+ </tr>
250
+ </thead>
251
+ <tbody>
252
+ <tr>
253
+ <td><a href="https://allenai.org/data/lila">MathQA Geometry</a></td>
254
+ <td><code>geometry</code></td>
255
+ <td>1000</td>
256
+ <td>Find the surface area of a 8 cm x 6 cm x 2 cm brick</td>
257
+ </tr>
258
+ </tbody>
259
+ </table>
260
+
261
+ ## References
262
+
263
+ Overview of existing datasets in the mathematical domain:
264
+
265
+ - P. Lu, L. Qiu, W. Yu, S. Welleck, and K.-W. Chang, “A Survey of Deep Learning for Mathematical Reasoning.” arXiv, Jun. 21, 2023. Accessed: May 02, 2024. [Online]. Available: http://arxiv.org/abs/2212.10535
266
+ - J. Ahn, R. Verma, R. Lou, D. Liu, R. Zhang, and W. Yin, “Large Language Models for Mathematical Reasoning: Progresses and Challenges.” arXiv, Apr. 05, 2024. doi: 10.48550/arXiv.2402.00157.
267
+ - W. Liu et al., “Mathematical Language Models: A Survey.” arXiv, Feb. 23, 2024. Accessed: May 02, 2024. [Online]. Available: http://arxiv.org/abs/2312.07622
268
+
269
+ References for the used datasets we sampled from:
270
+
271
+ - **[Math-401](https://github.com/GanjinZero/math401-llm)**: W. Liu et al., “Mathematical Language Models: A Survey.” arXiv, Feb. 23, 2024. Accessed: May 02, 2024. [Online]. Available: http://arxiv.org/abs/2312.07622
272
+ - **[Mathematics Dataset](https://github.com/google-deepmind/mathematics_dataset)**: D. Saxton, E. Grefenstette, F. Hill, and P. Kohli, “Analysing Mathematical Reasoning Abilities of Neural Models.” arXiv, Apr. 02, 2019. doi: 10.48550/arXiv.1904.01557.
273
+ - **[SVAMP](https://github.com/arkilpatel/SVAMP)**: A. Patel, S. Bhattamishra, and N. Goyal, “Are NLP Models really able to Solve Simple Math Word Problems?” arXiv, Apr. 15, 2021. doi: 10.48550/arXiv.2103.07191.
274
+ - **[AddSub](https://github.com/wangxr14/Algebraic-Word-Problem-Solver/blob/master/data/AddSub.json)**: M. J. Hosseini, H. Hajishirzi, O. Etzioni, and N. Kushman, “Learning to Solve Arithmetic Word Problems with Verb Categorization,” in Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP), A. Moschitti, B. Pang, and W. Daelemans, Eds., Doha, Qatar: Association for Computational Linguistics, Oct. 2014, pp. 523–533. doi: 10.3115/v1/D14-1058.
275
+ - **[MultiArith](https://huggingface.co/datasets/ChilleD/MultiArith)**: S. Roy and D. Roth, “Solving General Arithmetic Word Problems.” arXiv, Aug. 20, 2016. doi: 10.48550/arXiv.1608.01413.
276
+ - **[MathQA Geometry](https://allenai.org/data/lila)**: A. Amini, S. Gabriel, S. Lin, R. Koncel-Kedziorski, Y. Choi, and H. Hajishirzi, “MathQA: Towards Interpretable Math Word Problem Solving with Operation-Based Formalisms,” in Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), J. Burstein, C. Doran, and T. Solorio, Eds., Minneapolis, Minnesota: Association for Computational Linguistics, Jun. 2019, pp. 2357–2367. doi: 10.18653/v1/N19-1245.