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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
task_categories:
|
3 |
+
- text-generation
|
4 |
+
language:
|
5 |
+
- it
|
6 |
+
size_categories:
|
7 |
+
- 1K<n<10K
|
8 |
+
configs:
|
9 |
+
- config_name: italian
|
10 |
+
data_files:
|
11 |
+
- split: test
|
12 |
+
path: medical_school_questions.jsonl
|
13 |
+
tags:
|
14 |
+
- culture
|
15 |
+
- knowledge
|
16 |
+
- chemistry
|
17 |
+
- biology
|
18 |
+
- math
|
19 |
+
- reasoning
|
20 |
+
---
|
21 |
+
|
22 |
+
# Medschool-Test, or *"Test di Medicina"*
|
23 |
+
|
24 |
+
## Is your LLM able to pass a National Entrance Exam for the Italian Medical School?
|
25 |
+
|
26 |
+
This a Huggingface dataset designed for evaluating Language Model (LLM) on a broad range of questions from the **national entrance exams for the Italian medical school**.
|
27 |
+
The dataset includes multiple-choice questions from various subjects such as biology, chemistry, physics, mathematics, world knowledge, and more.
|
28 |
+
Each question is accompanied by five answer choices, with one correct answer.
|
29 |
+
|
30 |
+
## Features
|
31 |
+
|
32 |
+
- **Multiple topics**: Questions cover a wide range of subjects, including biology, chemistry, physics, mathematics, world knowledge (with a focus on Italian culture), and more.
|
33 |
+
|
34 |
+
- **"Multiple-choice" and "Cloze-style" formats**: Each question has five answer choices, with one correct answer. This dataset is designed to evaluate LLMs on both multiple-choice and cloze-style questions. More specifically, each question is presented in the following formats:
|
35 |
+
|
36 |
+
- **Multiple-choice**: The question is followed by five answer choices, with one correct answer. The evaluation metrics is based on the model's ability to select the correct answer when presented with the question and answer choices.
|
37 |
+
|
38 |
+
- **Cloze-style**: The question is NOT followed by answer choices. The evaluation metric is based on the model's ability to generate the correct answer when presented with the question only.
|
39 |
+
|
40 |
+
- **Large-scale**: The dataset contains over 3K high-quality questions, making it suitable for the evaluation of LLMs.
|
41 |
+
|
42 |
+
- **Italian (and English coming soon)**: The dataset is currently available in Italian, with an English version coming soon.
|
43 |
+
|
44 |
+
|
45 |
+
## Evaluation
|
46 |
+
|
47 |
+
The dataset is designed to evaluate LLMs on a wide range of questions from medical school entrance exams. The evaluation metrics are based on the model's ability to select the correct answer when presented with the question and answer choices (multiple-choice format) or generate the correct answer when presented with the question only (cloze-style format).
|
48 |
+
|
49 |
+
### Scoring
|
50 |
+
|
51 |
+
For each question, the model obtains a score ranging from -0.4 to 1.5, based on the following criteria:
|
52 |
+
- **Correct Answer**: If the model selects the correct answer, it receives a score of 1.5.
|
53 |
+
- **Incorrect Answer**: If the model selects an incorrect answer, it receives a score of -0.4.
|
54 |
+
- **No Answer**: If the model does not select any answer, it receives a score of 0.0.
|
55 |
+
|
56 |
+
The final score is calculated as the weighted average of the scores obtained on all questions, where the weight of each question depends on the topic of the question, as follows:
|
57 |
+
| Subject | Score | Weight |
|
58 |
+
|--------------------|-------|----------|
|
59 |
+
| Biology | 23/60 | 0.3833 |
|
60 |
+
| Chemistry | 15/60 | 0.25 |
|
61 |
+
| Math & Physics | 13/60 | 0.2167 |
|
62 |
+
| World Knowledge | 4/60 | 0.0667 |
|
63 |
+
| Logic & Reasoning | 5/60 | 0.0833 |
|
64 |
+
|
65 |
+
This is the same scoring system used for the official Italian medical school entrance exams.
|
66 |
+
|
67 |
+
### Evaluation Script
|
68 |
+
|
69 |
+
> [!NOTE]
|
70 |
+
> We will release the evaluation script soon. Stay tuned!
|
71 |
+
|
72 |
+
The evaluation is based on the `lm-evaluation-harness` library, which provides a simple and flexible way to evaluate LLMs on a wide range of tasks and datasets. The tasks are defined in `tasks/medschool-entrance-exams`.
|
73 |
+
|
74 |
+
To run the evaluation, you can use the following command:
|
75 |
+
|
76 |
+
```bash
|
77 |
+
MODEL_ARGS="pretrained=meta-llama/Meta-Llama-3.1-8B-Instruct,dtype=bfloat16"
|
78 |
+
|
79 |
+
lm_eval \
|
80 |
+
--model hf \
|
81 |
+
--model_args $MODEL_ARGS \
|
82 |
+
--tasks medschool_entrance_exams_it_mc,medschool_entrance_exams_it_cloze \
|
83 |
+
--batch_size auto \
|
84 |
+
--log_samples \
|
85 |
+
--output_path outputs/ \
|
86 |
+
--include tasks/medschool-entrance-exams/
|
87 |
+
|
88 |
+
```
|
89 |
+
|
90 |
+
This command evaluates the model `meta-llama/Meta-Llama-3.1-8B-Instruct` on the Italian version of the dataset in both multiple-choice and cloze-style formats. The evaluation results are saved in the `outputs/` directory.
|
91 |
+
|
92 |
+
Please, refer to the [lm-evaluation-harness](https://github.com/eleutherai/lm-evaluation-harness) repository for more details on how to use the library.
|
93 |
+
|
94 |
+
|
95 |
+
## Data
|
96 |
+
|
97 |
+
### Source
|
98 |
+
|
99 |
+
The dataset is collected from the official Italian website of the Ministry of Education, University and Research ([MIUR](https://www.miur.gov.it/)), which hosts a large collection of past entrance exams for medical school in Italy. The dataset includes questions from various subjects, such as biology, chemistry, physics, mathematics, world knowledge, and more. You can find the original dataset [here](https://domande-ap.mur.gov.it/domande).
|
100 |
+
|
101 |
+
### Composition
|
102 |
+
|
103 |
+
The dataset contains over 3K questions, making it suitable for training and evaluating LLMs. The following table shows the number of questions in the dataset for each subject:
|
104 |
+
|
105 |
+
| Subject | Number of questions |
|
106 |
+
|---------------|---------------------|
|
107 |
+
| Biology | 1,180 |
|
108 |
+
| Chemistry | 1,009 |
|
109 |
+
| Math & Physics | 655 |
|
110 |
+
| World knowledge | 245 |
|
111 |
+
| Logic & Reasoning | 212 |
|
112 |
+
| **Total** | **3,301** |
|
113 |
+
|
114 |
+
|
115 |
+
### Size comparison with other benchmarks
|
116 |
+
|
117 |
+
The dataset contains over 3K questions, making it suitable for training and evaluating LLMs. The following table shows the size of the dataset compared to other benchmarks:
|
118 |
+
|
119 |
+
| **Dataset** | **Number of questions** |
|
120 |
+
|--------------------------|------------------------|
|
121 |
+
| Medical School Entrance Exams | ~3,300 |
|
122 |
+
| ARC-Challenge (test) | ~1,170 |
|
123 |
+
| ARC-Easy (test) | ~2,380 |
|
124 |
+
| BoolQ (validation) | ~3,270 |
|
125 |
+
| CommonSenseQA (validation) | ~1,220 |
|
126 |
+
| GSM8K (test) | ~1,320 |
|
127 |
+
| MMLU (test) | ~14,000 |
|
128 |
+
| PIQA (validation) | ~1,850 |
|
129 |
+
| SciQ (test) | ~1,000 |
|
130 |
+
| TruthfulQA (test) | ~820 |
|
131 |
+
| WinoGrande (test) | ~1,767 |
|
132 |
+
|
133 |
+
### Format
|
134 |
+
|
135 |
+
The dataset is provided in JSONL format, with each line representing a single question in the following format:
|
136 |
+
|
137 |
+
```json
|
138 |
+
{
|
139 |
+
"id": 1691,
|
140 |
+
"topic": "biologia",
|
141 |
+
"text": "Come sono definite le cellule staminali che sono in grado di differenziarsi in tutti i tipi di cellule presenti nel corpo umano, ma non possono dare origine ad un organismo completo?",
|
142 |
+
"answers": [
|
143 |
+
"Cellule Staminali Multipotenti",
|
144 |
+
"Cellule Staminali Pluripotenti",
|
145 |
+
"Cellule Staminali Totipotenti",
|
146 |
+
"Cellule Staminali Unipotenti",
|
147 |
+
"Cellule Staminali Oligopotenti"
|
148 |
+
],
|
149 |
+
"label": 1
|
150 |
+
}
|
151 |
+
```
|
152 |
+
|
153 |
+
where:
|
154 |
+
- `id` (int): The unique identifier of the question.
|
155 |
+
- `topic` (str): The subject of the question.
|
156 |
+
- `text` (str): The text of the question.
|
157 |
+
- `answers` (list): A list of five answer choices, with one correct answer.
|
158 |
+
- `label` (int): The index of the correct answer in the `answers` list (0-indexed).
|
159 |
+
|
160 |
+
|
161 |
+
### Examples
|
162 |
+
|
163 |
+
#### Biology
|
164 |
+
|
165 |
+
```json
|
166 |
+
{
|
167 |
+
"id": 1691,
|
168 |
+
"topic": "biologia",
|
169 |
+
"text": "Come sono definite le cellule staminali che sono in grado di differenziarsi in tutti i tipi di cellule presenti nel corpo umano, ma non possono dare origine ad un organismo completo?",
|
170 |
+
"answers": [
|
171 |
+
"Cellule Staminali Multipotenti",
|
172 |
+
"Cellule Staminali Pluripotenti",
|
173 |
+
"Cellule Staminali Totipotenti",
|
174 |
+
"Cellule Staminali Unipotenti",
|
175 |
+
"Cellule Staminali Oligopotenti"
|
176 |
+
],
|
177 |
+
"label": 1
|
178 |
+
}
|
179 |
+
```
|
180 |
+
|
181 |
+
#### Chemistry
|
182 |
+
|
183 |
+
```json
|
184 |
+
{
|
185 |
+
"id": 19,
|
186 |
+
"topic": "chimica",
|
187 |
+
"text": "Rispetto alla classificazione che si trova nella tavola periodica il fluoro fa parte del: ",
|
188 |
+
"answers": [
|
189 |
+
"gruppo dei gas nobili",
|
190 |
+
"gruppo degli alogeni",
|
191 |
+
"gruppo dei lantanidi",
|
192 |
+
"secondo gruppo",
|
193 |
+
"quarto periodo"
|
194 |
+
],
|
195 |
+
"label": 1
|
196 |
+
}
|
197 |
+
```
|
198 |
+
|
199 |
+
#### Math & Physics
|
200 |
+
|
201 |
+
```json
|
202 |
+
{
|
203 |
+
"id": 1203,
|
204 |
+
"topic": "fisica-matematica",
|
205 |
+
"text": "Quali sono le coordinate del centro della circonferenza di equazione x^2 + y^2 + 2x – 6y + 5 = 0?",
|
206 |
+
"answers": [
|
207 |
+
"(2 ; –6)",
|
208 |
+
"(–2 ; 6)",
|
209 |
+
"(1 ; 3)",
|
210 |
+
"(–1 ; 3)",
|
211 |
+
"(2 ; 3)"
|
212 |
+
],
|
213 |
+
"label": 3
|
214 |
+
}
|
215 |
+
```
|
216 |
+
|
217 |
+
#### World Knowledge
|
218 |
+
|
219 |
+
```json
|
220 |
+
{
|
221 |
+
"id": 11,
|
222 |
+
"topic": "competenze-conoscenze",
|
223 |
+
"text": "Quale dei seguenti è il primo romanzo di Italo Calvino, pubblicato nel 1947?",
|
224 |
+
"answers": [
|
225 |
+
"Se una notte d'inverno un viaggiatore",
|
226 |
+
"Il barone rampante",
|
227 |
+
"Palomar",
|
228 |
+
"Le cosmicomiche",
|
229 |
+
"Il sentiero dei nidi di ragno"
|
230 |
+
],
|
231 |
+
"label": 4
|
232 |
+
}
|
233 |
+
```
|
234 |
+
|
235 |
+
#### Logic & Reasoning
|
236 |
+
|
237 |
+
```json
|
238 |
+
{
|
239 |
+
"id": 2539,
|
240 |
+
"topic": "logica",
|
241 |
+
"text": "Tutti i pasticcieri praticano il kendo; Gianluca pratica il kendo. Quale delle seguenti affermazioni aggiuntive consentirebbe di dedurre con certezza che Gianluca è un pasticciere?",
|
242 |
+
"answers": [
|
243 |
+
"Tra le persone che praticano kendo vi sono dei pasticcieri",
|
244 |
+
"Alcune persone che praticano kendo si chiamano Gianluca",
|
245 |
+
"Alcune persone che praticano kendo sono pasticcieri",
|
246 |
+
"Non è certo che ogni persona che pratica kendo sia anche un pasticciere",
|
247 |
+
"Ogni persona che pratica kendo è anche un pasticciere"
|
248 |
+
],
|
249 |
+
"label": 4
|
250 |
+
}
|
251 |
+
```
|
252 |
+
|
253 |
+
|
254 |
+
|
255 |
+
## Contributing
|
256 |
+
|
257 |
+
Contributions to this dataset are welcome! If you have additional tasks or domains that you would like to include, please submit a pull request.
|
258 |
+
|
259 |
+
|
260 |
+
## License
|
261 |
+
|
262 |
+
This dataset is released under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0). Feel free to use it for research, commercial, or personal purposes.
|