Datasets:
Update dataset card
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619621234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039---
pretty_name: HighSchoolBench-MCQ
language:
- en
language_creators:
- found
multilinguality:
- monolingual
source_datasets:
- original
task_categories:
- multiple-choice
- visual-question-answering
- question-answering
task_ids:
- multiple-choice-qa
size_categories:
- 1K<n<10K
tags:
- highschoolbench
- benchmark
- education
- high-school
- exam
- stem
- science
- mathematics
- multimodal
- image
- text
- multiple-choice
configs:
- config_name: context_text_images__text_options
default: true
data_files:
- split: train
path: data/context_text_images__text_options/train-*.parquet
- split: validation
path: data/context_text_images__text_options/validation-*.parquet
- split: test
path: data/context_text_images__text_options/test-*.parquet
- config_name: context_text_contextualized_images__image_options
data_files:
- split: test
path: data/context_text_contextualized_images__image_options/test-*.parquet
- config_name: context_text_contextualized_images__text_options
data_files:
- split: train
path: data/context_text_contextualized_images__text_options/train-*.parquet
- split: validation
path: data/context_text_contextualized_images__text_options/validation-*.parquet
- split: test
path: data/context_text_contextualized_images__text_options/test-*.parquet
- config_name: context_text_contextualized_tables__image_options
data_files:
- split: test
path: data/context_text_contextualized_tables__image_options/test-*.parquet
- config_name: context_text_contextualized_tables__text_options
data_files:
- split: train
path: data/context_text_contextualized_tables__text_options/train-*.parquet
- split: validation
path: data/context_text_contextualized_tables__text_options/validation-*.parquet
- split: test
path: data/context_text_contextualized_tables__text_options/test-*.parquet
- config_name: context_text_contextualized_tables_images__image_options
data_files:
- split: test
path: data/context_text_contextualized_tables_images__image_options/test-*.parquet
- config_name: context_text_contextualized_tables_images__text_options
data_files:
- split: train
path: data/context_text_contextualized_tables_images__text_options/train-*.parquet
- split: validation
path: data/context_text_contextualized_tables_images__text_options/validation-*.parquet
- split: test
path: data/context_text_contextualized_tables_images__text_options/test-*.parquet
- config_name: context_text_images__image_options
data_files:
- split: train
path: data/context_text_images__image_options/train-*.parquet
- split: validation
path: data/context_text_images__image_options/validation-*.parquet
- split: test
path: data/context_text_images__image_options/test-*.parquet
- config_name: context_text_only__image_options
data_files:
- split: train
path: data/context_text_only__image_options/train-*.parquet
- split: validation
path: data/context_text_only__image_options/validation-*.parquet
- split: test
path: data/context_text_only__image_options/test-*.parquet
- config_name: context_text_only__table_options
data_files:
- split: train
path: data/context_text_only__table_options/train-*.parquet
- split: validation
path: data/context_text_only__table_options/validation-*.parquet
- split: test
path: data/context_text_only__table_options/test-*.parquet
- config_name: context_text_only__text_options
data_files:
- split: train
path: data/context_text_only__text_options/train-*.parquet
- split: validation
path: data/context_text_only__text_options/validation-*.parquet
- split: test
path: data/context_text_only__text_options/test-*.parquet
- config_name: context_text_table__image_options
data_files:
- split: test
path: data/context_text_table__image_options/test-*.parquet
- config_name: context_text_table__text_options
data_files:
- split: train
path: data/context_text_table__text_options/train-*.parquet
- split: validation
path: data/context_text_table__text_options/validation-*.parquet
- split: test
path: data/context_text_table__text_options/test-*.parquet
- config_name: context_text_table_image__image_options
data_files:
- split: test
path: data/context_text_table_image__image_options/test-*.parquet
- config_name: context_text_table_image__text_options
data_files:
- split: train
path: data/context_text_table_image__text_options/train-*.parquet
- split: validation
path: data/context_text_table_image__text_options/validation-*.parquet
- split: test
path: data/context_text_table_image__text_options/test-*.parquet
dataset_info:
- config_name: context_text_images__text_options
features:
- name: instance
dtype: int64
- name: assessment_program
dtype: string
- name: assessment_type
dtype: string
- name: assessment_category
dtype: string
- name: subject
dtype: string
- name: domain
dtype: string
- name: context
dtype: string
- name: images
list: image
- name: question
dtype: string
- name: answer_options
list: string
- name: answer_option_labels
list: string
- name: correct_answer
list: string
- name: num_correct_answer_options
dtype: int32
- name: split
dtype: string
- config_name: context_text_contextualized_images__image_options
features:
- name: instance
dtype: int64
- name: assessment_program
dtype: string
- name: assessment_type
dtype: string
- name: assessment_category
dtype: string
- name: subject
dtype: string
- name: domain
dtype: string
- name: context
dtype: string
- name: image_context_1
dtype: string
- name: image_1
dtype: image
- name: image_context_2
dtype: string
- name: image_2
dtype: image
- name: image_context_3
dtype: string
- name: image_3
dtype: image
- name: question
dtype: string
- name: answer_options
list: image
- name: answer_option_labels
list: string
- name: correct_answer
list: string
- name: num_correct_answer_options
dtype: int32
- name: option_image_label_groups
list:
list: string
- name: split
dtype: string
- config_name: context_text_contextualized_images__text_options
features:
- name: instance
dtype: int64
- name: assessment_program
dtype: string
- name: assessment_type
dtype: string
- name: assessment_category
dtype: string
- name: subject
dtype: string
- name: domain
dtype: string
- name: context
dtype: string
- name: image_context_1
dtype: string
- name: image_1
dtype: image
- name: image_context_2
dtype: string
- name: image_2
dtype: image
- name: image_context_3
dtype: string
- name: image_3
dtype: image
- name: image_context_4
dtype: string
- name: image_4
dtype: image
- name: question
dtype: string
- name: answer_options
list: string
- name: answer_option_labels
list: string
- name: correct_answer
list: string
- name: num_correct_answer_options
dtype: int32
- name: split
dtype: string
- config_name: context_text_contextualized_tables__image_options
features:
- name: instance
dtype: int64
- name: assessment_program
dtype: string
- name: assessment_type
dtype: string
- name: assessment_category
dtype: string
- name: subject
dtype: string
- name: domain
dtype: string
- name: context
dtype: string
- name: table_context_1
dtype: string
- name: table_1
dtype: string
- name: table_context_2
dtype: string
- name: table_2
dtype: string
- name: question
dtype: string
- name: answer_options
list: image
- name: answer_option_labels
list: string
- name: correct_answer
list: string
- name: num_correct_answer_options
dtype: int32
- name: option_image_label_groups
list:
list: string
- name: split
dtype: string
- config_name: context_text_contextualized_tables__text_options
features:
- name: instance
dtype: int64
- name: assessment_program
dtype: string
- name: assessment_type
dtype: string
- name: assessment_category
dtype: string
- name: subject
dtype: string
- name: domain
dtype: string
- name: context
dtype: string
- name: table_context_1
dtype: string
- name: table_1
dtype: string
- name: table_context_2
dtype: string
- name: table_2
dtype: string
- name: table_context_3
dtype: string
- name: table_3
dtype: string
- name: table_context_4
dtype: string
- name: table_4
dtype: string
- name: question
dtype: string
- name: answer_options
list: string
- name: answer_option_labels
list: string
- name: correct_answer
list: string
- name: num_correct_answer_options
dtype: int32
- name: split
dtype: string
- config_name: context_text_contextualized_tables_images__image_options
features:
- name: instance
dtype: int64
- name: assessment_program
dtype: string
- name: assessment_type
dtype: string
- name: assessment_category
dtype: string
- name: subject
dtype: string
- name: domain
dtype: string
- name: image_context_1
dtype: string
- name: image_1
dtype: image
- name: image_context_2
dtype: string
- name: image_2
dtype: image
- name: image_context_3
dtype: string
- name: image_3
dtype: image
- name: table_context_1
dtype: string
- name: table_1
dtype: string
- name: table_context_2
dtype: string
- name: table_2
dtype: string
- name: question
dtype: string
- name: answer_options
list: image
- name: answer_option_labels
list: string
- name: correct_answer
list: string
- name: num_correct_answer_options
dtype: int32
- name: option_image_label_groups
list:
list: string
- name: split
dtype: string
- config_name: context_text_contextualized_tables_images__text_options
features:
- name: instance
dtype: int64
- name: assessment_program
dtype: string
- name: assessment_type
dtype: string
- name: assessment_category
dtype: string
- name: subject
dtype: string
- name: domain
dtype: string
- name: context
dtype: string
- name: image_context_1
dtype: string
- name: image_1
dtype: image
- name: image_context_2
dtype: string
- name: image_2
dtype: image
- name: image_context_3
dtype: string
- name: image_3
dtype: image
- name: table_context_1
dtype: string
- name: table_1
dtype: string
- name: table_context_2
dtype: string
- name: table_2
dtype: string
- name: table_context_3
dtype: string
- name: table_3
dtype: string
- name: question
dtype: string
- name: answer_options
list: string
- name: answer_option_labels
list: string
- name: correct_answer
list: string
- name: num_correct_answer_options
dtype: int32
- name: split
dtype: string
- config_name: context_text_images__image_options
features:
- name: instance
dtype: int64
- name: assessment_program
dtype: string
- name: assessment_type
dtype: string
- name: assessment_category
dtype: string
- name: subject
dtype: string
- name: domain
dtype: string
- name: context
dtype: string
- name: images
list: image
- name: question
dtype: string
- name: answer_options
list: image
- name: answer_option_labels
list: string
- name: correct_answer
list: string
- name: num_correct_answer_options
dtype: int32
- name: option_image_label_groups
list:
list: string
- name: split
dtype: string
- config_name: context_text_only__image_options
features:
- name: instance
dtype: int64
- name: assessment_program
dtype: string
- name: assessment_type
dtype: string
- name: assessment_category
dtype: string
- name: subject
dtype: string
- name: domain
dtype: string
- name: context
dtype: string
- name: question
dtype: string
- name: answer_options
list: image
- name: answer_option_labels
list: string
- name: correct_answer
list: string
- name: num_correct_answer_options
dtype: int32
- name: option_image_label_groups
list:
list: string
- name: split
dtype: string
- config_name: context_text_only__table_options
features:
- name: instance
dtype: int64
- name: assessment_program
dtype: string
- name: assessment_type
dtype: string
- name: assessment_category
dtype: string
- name: subject
dtype: string
- name: domain
dtype: string
- name: context
dtype: string
- name: question
dtype: string
- name: answer_options
list: string
- name: answer_option_labels
list: string
- name: correct_answer
list: string
- name: num_correct_answer_options
dtype: int32
- name: split
dtype: string
- config_name: context_text_only__text_options
features:
- name: instance
dtype: int64
- name: assessment_program
dtype: string
- name: assessment_type
dtype: string
- name: assessment_category
dtype: string
- name: subject
dtype: string
- name: domain
dtype: string
- name: context
dtype: string
- name: question
dtype: string
- name: answer_options
list: string
- name: answer_option_labels
list: string
- name: correct_answer
list: string
- name: num_correct_answer_options
dtype: int32
- name: split
dtype: string
- config_name: context_text_table__image_options
features:
- name: instance
dtype: int64
- name: assessment_program
dtype: string
- name: assessment_type
dtype: string
- name: assessment_category
dtype: string
- name: subject
dtype: string
- name: domain
dtype: string
- name: context
dtype: string
- name: tables
dtype: string
- name: question
dtype: string
- name: answer_options
list: image
- name: answer_option_labels
list: string
- name: correct_answer
list: string
- name: num_correct_answer_options
dtype: int32
- name: option_image_label_groups
list:
list: string
- name: split
dtype: string
- config_name: context_text_table__text_options
features:
- name: instance
dtype: int64
- name: assessment_program
dtype: string
- name: assessment_type
dtype: string
- name: assessment_category
dtype: string
- name: subject
dtype: string
- name: domain
dtype: string
- name: context
dtype: string
- name: tables
dtype: string
- name: question
dtype: string
- name: answer_options
list: string
- name: answer_option_labels
list: string
- name: correct_answer
list: string
- name: num_correct_answer_options
dtype: int32
- name: split
dtype: string
- config_name: context_text_table_image__image_options
features:
- name: instance
dtype: int64
- name: assessment_program
dtype: string
- name: assessment_type
dtype: string
- name: assessment_category
dtype: string
- name: subject
dtype: string
- name: domain
dtype: string
- name: context
dtype: string
- name: images
list: image
- name: tables
dtype: string
- name: question
dtype: string
- name: answer_options
list: image
- name: answer_option_labels
list: string
- name: correct_answer
list: string
- name: num_correct_answer_options
dtype: int32
- name: option_image_label_groups
list:
list: string
- name: split
dtype: string
- config_name: context_text_table_image__text_options
features:
- name: instance
dtype: int64
- name: assessment_program
dtype: string
- name: assessment_type
dtype: string
- name: assessment_category
dtype: string
- name: subject
dtype: string
- name: domain
dtype: string
- name: context
dtype: string
- name: images
list: image
- name: tables
dtype: string
- name: question
dtype: string
- name: answer_options
list: string
- name: answer_option_labels
list: string
- name: correct_answer
list: string
- name: num_correct_answer_options
dtype: int32
- name: split
dtype: string
---
# HighSchoolBench-MCQ
[GitHub](https://github.com/sciknoworg/high-school-science) • [Master’s thesis](https://doi.org/10.15488/22429)
## Dataset description
**HighSchoolBench-MCQ** contains **7,549 multiple-choice questions** from high-school standardized assessments and science competitions. It is the multiple-choice component of **HighSchoolBench**, a multimodal benchmark for evaluating language and vision-language models on high-school assessment questions.
The questions come from assessments such as **NAEP, SAT, PSAT, PISA, ACT, and IB**, U.S. state examinations, science bowls, and U.S. science olympiads. They include text-based questions and questions involving diagrams, images, and tables. Answer options are provided as text, images, or tables.
Each question includes the correct answer label(s) and metadata identifying its source assessment, subject, and domain. The open-ended component is available separately as [HighSchoolBench-OEQ](https://huggingface.co/datasets/SciKnowOrg/HighSchoolBench-OEQ).
## Dataset statistics
The dataset contains **7,549 questions and 2,419 images**.
| Split | Questions |
|---|---:|
| `train` | 1,143 |
| `validation` | 375 |
| `test` | 6,031 |
| **Total** | **7,549** |
The source split `val` is exposed as `validation` on Hugging Face. The `split` field retains the original source label.
## Configurations
The dataset is organized into **15 configurations** according to the question context and answer-option format.
| Configuration | Question context | Option format |
|---|---|---|
| `context_text_only__text_options` | Text | Text |
| `context_text_only__image_options` | Text | Images |
| `context_text_only__table_options` | Text | Tables |
| `context_text_images__text_options` | Text and images | Text |
| `context_text_images__image_options` | Text and images | Images |
| `context_text_table__text_options` | Text and tables | Text |
| `context_text_table__image_options` | Text and tables | Images |
| `context_text_table_image__text_options` | Text, tables, and images | Text |
| `context_text_table_image__image_options` | Text, tables, and images | Images |
| `context_text_contextualized_images__text_options` | Images with associated passages | Text |
| `context_text_contextualized_images__image_options` | Images with associated passages | Images |
| `context_text_contextualized_tables__text_options` | Tables with associated passages | Text |
| `context_text_contextualized_tables__image_options` | Tables with associated passages | Images |
| `context_text_contextualized_tables_images__text_options` | Tables and images with associated passages | Text |
| `context_text_contextualized_tables_images__image_options` | Tables and images with associated passages | Images |
In contextualized configurations, individual images and tables are stored alongside their associated passages.
## Data format
### Main fields
| Field | Description |
|---|---|
| `instance` | Numerical identifier associated with each dataset instance. |
| `assessment_program` | Source assessment or competition. |
| `assessment_type` | Assessment type, such as national or state. |
| `assessment_category` | Assessment category, when provided. |
| `subject` | Subject assigned to the question. |
| `domain` | Topic within the subject. |
| `context` | Supporting passage or shared context, when available. |
| `question` | Question stem. Mathematical expressions use LaTeX. |
| `answer_options` | Ordered answer options as strings or images. Table options are represented as Markdown strings. |
| `answer_option_labels` | Labels corresponding to the answer options. |
| `correct_answer` | List of correct option labels (including single-answer questions). |
| `num_correct_answer_options` | Number of correct option labels, equal to `len(correct_answer)`. |
| `split` | Original split label: `train`, `val`, or `test` (last column). |
### Context-specific fields
The following fields appear where relevant to the configuration:
| Field | Description |
|---|---|
| `images` | List of images accompanying the question. |
| `image_context` | Text associated with the images. |
| `tables` | Tables represented as Markdown strings. |
| `table_context` | Text associated with the tables. |
| `image_N`, `image_context_N` | Individual image and its associated passage. |
| `table_N`, `table_context_N` | Individual table and its associated passage. |
| `option_image_label_groups` | Option labels represented in each answer-option image. |
An answer-option image may contain several choices. For example, `[["A", "B", "C", "D"]]` indicates that one image contains all four labeled choices.
### Available files
The dataset is provided in two formats:
- **Parquet:** `data/<configuration>/`, with typed columns and embedded images. These files are used by the Hugging Face dataset viewer and `load_dataset`.
- **JSON Lines and images:** `subsets/<configuration>/<split>/`, containing a `metadata.jsonl` file and the images referenced by its records.
In Parquet, `answer_options` and `answer_option_labels` are separate ordered lists. In the JSON Lines files, the public column name is `answer_options`; where the source used a mapping, that mapping is retained, such as `{"A": "...", "B": "..."}`.
## Usage
Load a configuration using the Hugging Face `datasets` library:
```python
from datasets import load_dataset
dataset = load_dataset(
"SciKnowOrg/HighSchoolBench-MCQ",
"context_text_only__text_options",
)
print(dataset)
```
Access a question and its text answer options:
```python
example = dataset["test"][0]
print("Context:", example["context"])
print("Question:", example["question"])
for label, option in zip(
example["answer_option_labels"],
example["answer_options"],
):
print(f"{label}. {option}")
print("Correct answer:", example["correct_answer"])
# In image-bearing configurations, image columns load as PIL images.
```
List the available configurations:
```python
from datasets import get_dataset_config_names
print(get_dataset_config_names("SciKnowOrg/HighSchoolBench-MCQ"))
```
To download the JSON Lines files and accompanying images:
```bash
hf download SciKnowOrg/HighSchoolBench-MCQ \
--repo-type dataset \
--include "subsets/*" \
--local-dir HighSchoolBench-MCQ
```
## Evaluating an LLM via API
These short **zero-shot** examples ask an LLM questions through an OpenAI-compatible API and report **exact-match accuracy**: an answer counts as correct only if the model gives exactly the labels in `correct_answer`, so multiple-answer questions need all their labels. The first example uses text-only questions; the second sends the question images as well.
```bash
pip install datasets openai
```
<details open>
<summary><b>Text-only questions</b></summary>
```python
from datasets import load_dataset
from openai import OpenAI
# 1. Choose your model and API
client = OpenAI(
api_key="YOUR_API_KEY", # keep your key private
base_url="https://api.openai.com/v1", # or any OpenAI-compatible API, e.g. https://openrouter.ai/api/v1
)
MODEL = "gpt-4.1-mini"
# 2. Load test questions
questions = load_dataset("SciKnowOrg/HighSchoolBench-MCQ", "context_text_only__text_options", split="test")
# 3. Ask the model and score its answers
correct = 0
for item in questions:
options = "\n".join(f"{label}. {text}" for label, text in zip(item["answer_option_labels"], item["answer_options"]))
prompt = (
f"{item['context'] or ''}\n\n"
f"Question: {item['question']}\n\n"
f"{options}\n\n"
"Reply with only the label(s) of the correct option(s), for example: A or A,C"
)
response = client.chat.completions.create(model=MODEL, messages=[{"role": "user", "content": prompt}])
reply = response.choices[0].message.content or ""
predicted = sorted(reply.upper().replace(" ", "").strip(".").split(","))
expected = sorted(label.upper() for label in item["correct_answer"])
correct += predicted == expected
print(f"Question {item['instance']}: model {predicted}, correct {expected}")
print(f"Accuracy: {correct}/{len(questions)}")
```
</details>
<details>
<summary><b>Questions with images</b> (needs a model that accepts images)</summary>
```python
import base64, io
from datasets import load_dataset
from openai import OpenAI
# 1. Choose your model and API (the model must accept images)
client = OpenAI(
api_key="YOUR_API_KEY", # keep your key private
base_url="https://api.openai.com/v1", # or any OpenAI-compatible API, e.g. https://openrouter.ai/api/v1
)
MODEL = "gpt-4.1-mini"
# 2. Load test questions
questions = load_dataset("SciKnowOrg/HighSchoolBench-MCQ", "context_text_images__text_options", split="test")
def image_to_url(image):
# The API receives each image as a base64 data URL
image_format = image.format or "PNG"
buffer = io.BytesIO()
image.save(buffer, format=image_format)
return f"data:image/{image_format.lower()};base64," + base64.b64encode(buffer.getvalue()).decode()
# 3. Ask the model and score its answers
correct = 0
for item in questions:
options = "\n".join(f"{label}. {text}" for label, text in zip(item["answer_option_labels"], item["answer_options"]))
prompt = (
f"{item['context'] or ''}\n\n"
f"Question: {item['question']}\n\n"
f"{options}\n\n"
"Reply with only the label(s) of the correct option(s), for example: A or A,C"
)
content = [{"type": "text", "text": prompt}]
content += [{"type": "image_url", "image_url": {"url": image_to_url(image)}} for image in item["images"]]
response = client.chat.completions.create(model=MODEL, messages=[{"role": "user", "content": content}])
reply = response.choices[0].message.content or ""
predicted = sorted(reply.upper().replace(" ", "").strip(".").split(","))
expected = sorted(label.upper() for label in item["correct_answer"])
correct += predicted == expected
print(f"Question {item['instance']}: model {predicted}, correct {expected}")
print(f"Accuracy: {correct}/{len(questions)}")
```
</details>
To try another model, change `MODEL`; to use another provider, change `api_key` and `base_url`.
## Citation
If you use HighSchoolBench, please cite:
```bibtex
@misc{rani2026highschoolbench,
title = {HighSchoolBench: A Multimodal Benchmark of High School Assessment Questions},
author = {Rani, Krishna and D'Souza, Jennifer},
year = {2026},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/datasets/SciKnowOrg/HighSchoolBench-MCQ},
\url{https://huggingface.co/datasets/SciKnowOrg/HighSchoolBench-OEQ}}
}
```
HighSchoolBench was introduced in the following master’s thesis:
```bibtex
@mastersthesis{rani2026highschoolbench_thesis,
title = {Toward Robust LLM Benchmarking in High School Science Education:
Constructing a QA Corpus from Standardized Tests},
author = {Rani, Krishna},
school = {Gottfried Wilhelm Leibniz Universit{\"a}t Hannover},
year = {2026},
doi = {10.15488/22429},
url = {https://doi.org/10.15488/22429}
}
```---pretty_name: HighSchoolBench-MCQlanguage:- enlanguage_creators:- foundmultilinguality:- monolingualsource_datasets:- originaltask_categories:- multiple-choice- visual-question-answering- question-answeringtask_ids:- multiple-choice-qasize_categories:- 1K<n<10Ktags:- highschoolbench- benchmark- education- high-school- exam- stem- science- mathematics- multimodal- image- text- multiple-choiceconfigs:- config_name: context_text_images__text_options default: true data_files: - split: train path: data/context_text_images__text_options/train-*.parquet - split: validation path: data/context_text_images__text_options/validation-*.parquet - split: test path: data/context_text_images__text_options/test-*.parquet- config_name: context_text_contextualized_images__image_options data_files: - split: test path: data/context_text_contextualized_images__image_options/test-*.parquet- config_name: context_text_contextualized_images__text_options data_files: - split: train path: data/context_text_contextualized_images__text_options/train-*.parquet - split: validation path: data/context_text_contextualized_images__text_options/validation-*.parquet - split: test path: data/context_text_contextualized_images__text_options/test-*.parquet- config_name: context_text_contextualized_tables__image_options data_files: - split: test path: data/context_text_contextualized_tables__image_options/test-*.parquet- config_name: context_text_contextualized_tables__text_options data_files: - split: train path: data/context_text_contextualized_tables__text_options/train-*.parquet - split: validation path: data/context_text_contextualized_tables__text_options/validation-*.parquet - split: test path: data/context_text_contextualized_tables__text_options/test-*.parquet- config_name: context_text_contextualized_tables_images__image_options data_files: - split: test path: data/context_text_contextualized_tables_images__image_options/test-*.parquet- config_name: context_text_contextualized_tables_images__text_options data_files: - split: train path: data/context_text_contextualized_tables_images__text_options/train-*.parquet - split: validation path: data/context_text_contextualized_tables_images__text_options/validation-*.parquet - split: test path: data/context_text_contextualized_tables_images__text_options/test-*.parquet- config_name: context_text_images__image_options data_files: - split: train path: data/context_text_images__image_options/train-*.parquet - split: validation path: data/context_text_images__image_options/validation-*.parquet - split: test path: data/context_text_images__image_options/test-*.parquet- config_name: context_text_only__image_options data_files: - split: train path: data/context_text_only__image_options/train-*.parquet - split: validation path: data/context_text_only__image_options/validation-*.parquet - split: test path: data/context_text_only__image_options/test-*.parquet- config_name: context_text_only__table_options data_files: - split: train path: data/context_text_only__table_options/train-*.parquet - split: validation path: data/context_text_only__table_options/validation-*.parquet - split: test path: data/context_text_only__table_options/test-*.parquet- config_name: context_text_only__text_options data_files: - split: train path: data/context_text_only__text_options/train-*.parquet - split: validation path: data/context_text_only__text_options/validation-*.parquet - split: test path: data/context_text_only__text_options/test-*.parquet- config_name: context_text_table__image_options data_files: - split: test path: data/context_text_table__image_options/test-*.parquet- config_name: context_text_table__text_options data_files: - split: train path: data/context_text_table__text_options/train-*.parquet - split: validation path: data/context_text_table__text_options/validation-*.parquet - split: test path: data/context_text_table__text_options/test-*.parquet- config_name: context_text_table_image__image_options data_files: - split: test path: data/context_text_table_image__image_options/test-*.parquet- config_name: context_text_table_image__text_options data_files: - split: train path: data/context_text_table_image__text_options/train-*.parquet - split: validation path: data/context_text_table_image__text_options/validation-*.parquet - split: test path: data/context_text_table_image__text_options/test-*.parquetdataset_info:- config_name: context_text_images__text_options features: - name: instance dtype: int64 - name: assessment_program dtype: string - name: assessment_type dtype: string - name: assessment_category dtype: string - name: subject dtype: string - name: domain dtype: string - name: context dtype: string - name: images list: image - name: question dtype: string - name: answer_options list: string - name: answer_option_labels list: string - name: correct_answer list: string - name: num_correct_answer_options dtype: int32 - name: split dtype: string- config_name: context_text_contextualized_images__image_options features: - name: instance dtype: int64 - name: assessment_program dtype: string - name: assessment_type dtype: string - name: assessment_category dtype: string - name: subject dtype: string - name: domain dtype: string - name: context dtype: string - name: image_context_1 dtype: string - name: image_1 dtype: image - name: image_context_2 dtype: string - name: image_2 dtype: image - name: image_context_3 dtype: string - name: image_3 dtype: image - name: question dtype: string - name: answer_options list: image - name: answer_option_labels list: string - name: correct_answer list: string - name: num_correct_answer_options dtype: int32 - name: option_image_label_groups list: list: string - name: split dtype: string- config_name: context_text_contextualized_images__text_options features: - name: instance dtype: int64 - name: assessment_program dtype: string - name: assessment_type dtype: string - name: assessment_category dtype: string - name: subject dtype: string - name: domain dtype: string - name: context dtype: string - name: image_context_1 dtype: string - name: image_1 dtype: image - name: image_context_2 dtype: string - name: image_2 dtype: image - name: image_context_3 dtype: string - name: image_3 dtype: image - name: image_context_4 dtype: string - name: image_4 dtype: image - name: question dtype: string - name: answer_options list: string - name: answer_option_labels list: string - name: correct_answer list: string - name: num_correct_answer_options dtype: int32 - name: split dtype: string- config_name: context_text_contextualized_tables__image_options features: - name: instance dtype: int64 - name: assessment_program dtype: string - name: assessment_type dtype: string - name: assessment_category dtype: string - name: subject dtype: string - name: domain dtype: string - name: context dtype: string - name: table_context_1 dtype: string - name: table_1 dtype: string - name: table_context_2 dtype: string - name: table_2 dtype: string - name: question dtype: string - name: answer_options list: image - name: answer_option_labels list: string - name: correct_answer list: string - name: num_correct_answer_options dtype: int32 - name: option_image_label_groups list: list: string - name: split dtype: string- config_name: context_text_contextualized_tables__text_options features: - name: instance dtype: int64 - name: assessment_program dtype: string - name: assessment_type dtype: string - name: assessment_category dtype: string - name: subject dtype: string - name: domain dtype: string - name: context dtype: string - name: table_context_1 dtype: string - name: table_1 dtype: string - name: table_context_2 dtype: string - name: table_2 dtype: string - name: table_context_3 dtype: string - name: table_3 dtype: string - name: table_context_4 dtype: string - name: table_4 dtype: string - name: question dtype: string - name: answer_options list: string - name: answer_option_labels list: string - name: correct_answer list: string - name: num_correct_answer_options dtype: int32 - name: split dtype: string- config_name: context_text_contextualized_tables_images__image_options features: - name: instance dtype: int64 - name: assessment_program dtype: string - name: assessment_type dtype: string - name: assessment_category dtype: string - name: subject dtype: string - name: domain dtype: string - name: image_context_1 dtype: string - name: image_1 dtype: image - name: image_context_2 dtype: string - name: image_2 dtype: image - name: image_context_3 dtype: string - name: image_3 dtype: image - name: table_context_1 dtype: string - name: table_1 dtype: string - name: table_context_2 dtype: string - name: table_2 dtype: string - name: question dtype: string - name: answer_options list: image - name: answer_option_labels list: string - name: correct_answer list: string - name: num_correct_answer_options dtype: int32 - name: option_image_label_groups list: list: string - name: split dtype: string- config_name: context_text_contextualized_tables_images__text_options features: - name: instance dtype: int64 - name: assessment_program dtype: string - name: assessment_type dtype: string - name: assessment_category dtype: string - name: subject dtype: string - name: domain dtype: string - name: context dtype: string - name: image_context_1 dtype: string - name: image_1 dtype: image - name: image_context_2 dtype: string - name: image_2 dtype: image - name: image_context_3 dtype: string - name: image_3 dtype: image - name: table_context_1 dtype: string - name: table_1 dtype: string - name: table_context_2 dtype: string - name: table_2 dtype: string - name: table_context_3 dtype: string - name: table_3 dtype: string - name: question dtype: string - name: answer_options list: string - name: answer_option_labels list: string - name: correct_answer list: string - name: num_correct_answer_options dtype: int32 - name: split dtype: string- config_name: context_text_images__image_options features: - name: instance dtype: int64 - name: assessment_program dtype: string - name: assessment_type dtype: string - name: assessment_category dtype: string - name: subject dtype: string - name: domain dtype: string - name: context dtype: string - name: images list: image - name: question dtype: string - name: answer_options list: image - name: answer_option_labels list: string - name: correct_answer list: string - name: num_correct_answer_options dtype: int32 - name: option_image_label_groups list: list: string - name: split dtype: string- config_name: context_text_only__image_options features: - name: instance dtype: int64 - name: assessment_program dtype: string - name: assessment_type dtype: string - name: assessment_category dtype: string - name: subject dtype: string - name: domain dtype: string - name: context dtype: string - name: question dtype: string - name: answer_options list: image - name: answer_option_labels list: string - name: correct_answer list: string - name: num_correct_answer_options dtype: int32 - name: option_image_label_groups list: list: string - name: split dtype: string- config_name: context_text_only__table_options features: - name: instance dtype: int64 - name: assessment_program dtype: string - name: assessment_type dtype: string - name: assessment_category dtype: string - name: subject dtype: string - name: domain dtype: string - name: context dtype: string - name: question dtype: string - name: answer_options list: string - name: answer_option_labels list: string - name: correct_answer list: string - name: num_correct_answer_options dtype: int32 - name: split dtype: string- config_name: context_text_only__text_options features: - name: instance dtype: int64 - name: assessment_program dtype: string - name: assessment_type dtype: string - name: assessment_category dtype: string - name: subject dtype: string - name: domain dtype: string - name: context dtype: string - name: question dtype: string - name: answer_options list: string - name: answer_option_labels list: string - name: correct_answer list: string - name: num_correct_answer_options dtype: int32 - name: split dtype: string- config_name: context_text_table__image_options features: - name: instance dtype: int64 - name: assessment_program dtype: string - name: assessment_type dtype: string - name: assessment_category dtype: string - name: subject dtype: string - name: domain dtype: string - name: context dtype: string - name: tables dtype: string - name: question dtype: string - name: answer_options list: image - name: answer_option_labels list: string - name: correct_answer list: string - name: num_correct_answer_options dtype: int32 - name: option_image_label_groups list: list: string - name: split dtype: string- config_name: context_text_table__text_options features: - name: instance dtype: int64 - name: assessment_program dtype: string - name: assessment_type dtype: string - name: assessment_category dtype: string - name: subject dtype: string - name: domain dtype: string - name: context dtype: string - name: tables dtype: string - name: question dtype: string - name: answer_options list: string - name: answer_option_labels list: string - name: correct_answer list: string - name: num_correct_answer_options dtype: int32 - name: split dtype: string- config_name: context_text_table_image__image_options features: - name: instance dtype: int64 - name: assessment_program dtype: string - name: assessment_type dtype: string - name: assessment_category dtype: string - name: subject dtype: string - name: domain dtype: string - name: context dtype: string - name: images list: image - name: tables dtype: string - name: question dtype: string - name: answer_options list: image - name: answer_option_labels list: string - name: correct_answer list: string - name: num_correct_answer_options dtype: int32 - name: option_image_label_groups list: list: string - name: split dtype: string- config_name: context_text_table_image__text_options features: - name: instance dtype: int64 - name: assessment_program dtype: string - name: assessment_type dtype: string - name: assessment_category dtype: string - name: subject dtype: string - name: domain dtype: string - name: context dtype: string - name: images list: image - name: tables dtype: string - name: question dtype: string - name: answer_options list: string - name: answer_option_labels list: string - name: correct_answer list: string - name: num_correct_answer_options dtype: int32 - name: split dtype: string---
# HighSchoolBench-MCQ
[GitHub](https://github.com/sciknoworg/high-school-science) • [Master’s thesis](https://doi.org/10.15488/22429)
## Dataset description
**HighSchoolBench-MCQ** contains **7,549 multiple-choice questions** from standardized high-school assessments and academic competitions. It is the multiple-choice component of **HighSchoolBench**, a multimodal benchmark for evaluating language and vision-language models on authentic high-school assessment questions.
The dataset includes questions from national and international assessments, U.S. state examinations, and subject-specific academic competitions, including science Olympiads and PhysicsBowl. Questions may include supporting text, images, and tables, while answer options can be represented as text, images, or tables.
Both single-answer and multiple-answer questions are supported. Each question includes the correct option label(s) and metadata describing its source assessment, subject, and domain. The open-ended component is available separately as [HighSchoolBench-OEQ](https://huggingface.co/datasets/SciKnowOrg/HighSchoolBench-OEQ).
## Dataset statistics
The **MCQ component of HighSchoolBench** contains **7,549 multiple-choice question–answer pairs**. Each instance consists of a question, its answer options, and the corresponding correct answer label(s). Questions may include supporting context in the form of text, images, tables, or combinations of these modalities.
The dataset is divided into the following splits:
| Split | Questions ||---|---:|| `train` | 1,143 || `validation` | 375 || `test` | 6,031 || **Total** | **7,549** |
## Configurations
The MCQ dataset is organized into **15 configurations** based on the modalities of the supporting context and answer options.
| Configuration | Question context | Option format ||---|---|---|| `context_text_only__text_options` | Text | Text || `context_text_only__image_options` | Text | Images || `context_text_only__table_options` | Text | Tables || `context_text_images__text_options` | Text and images | Text || `context_text_images__image_options` | Text and images | Images || `context_text_table__text_options` | Text and tables | Text || `context_text_table__image_options` | Text and tables | Images || `context_text_table_image__text_options` | Text, tables, and images | Text || `context_text_table_image__image_options` | Text, tables, and images | Images || `context_text_contextualized_images__text_options` | Images with associated text | Text || `context_text_contextualized_images__image_options` | Images with associated text | Images || `context_text_contextualized_tables__text_options` | Tables with associated text | Text || `context_text_contextualized_tables__image_options` | Tables with associated text | Images || `context_text_contextualized_tables_images__text_options` | Tables and images with associated text | Text || `context_text_contextualized_tables_images__image_options` | Tables and images with associated text | Images |
In contextualized configurations, individual images and tables are paired with their associated text to preserve the supporting information relevant to each question.
## Hugging Face data format
The table below describes the columns available in the Hugging Face dataset.
| Column name | Description | Comment ||---|---|---|| `instance` | Numerical identifier of the question instance within the dataset. | || `assessment_program` | Source assessment or academic competition. | || `assessment_type` | Type of assessment. | || `assessment_category` | Additional assessment classification. | Optional || `subject` | Academic subject of the question. | || `domain` | Topic or knowledge area within the subject. | || `context` | Supporting text for the question. | May be empty. || `question` | Question text. | || `answer_options` | Answer options provided for the question. | || `answer_option_labels` | Labels corresponding to the answer options. | || `correct_answer` | Correct answer label(s). | || `num_correct_answer_options` | Number of correct answer options. | || `images` | Images provided as question context. | Optional; may be absent depending on the configuration. || `image_context` | Accompanying text associated with the images. | Optional || `tables` | Tables provided as question context. | Optional || `table_context` | Accompanying text associated with the tables. | Optional || `image_N` | Individual image provided as question context. | Optional; contextualized configurations. || `image_context_N` | Accompanying text associated with an individual image. | Optional || `table_N` | Individual table provided as question context. | Optional; contextualized configurations. || `table_context_N` | Accompanying text associated with an individual table. | Optional || `option_image_label_groups` | Groups of option labels represented within answer-option images. | Optional; image-option configurations. || `split` | Dataset split assigned to the instance. | |
### Available files
The dataset is available in two formats:
- **Parquet:** `data/<configuration>/` is the default format used by Hugging Face. It supports direct loading through the `datasets` library, allowing language and vision-language models to be benchmarked on the dataset.- **JSON:** `subsets/<configuration>/<split>/` provides the same dataset content as Parquet in a human-readable format for inspection and analysis. The JSON records are stored in `metadata.jsonl`, with images stored as associated files where applicable.
## Browsing the dataset
HighSchoolBench-MCQ is organized into separate configurations based on question context and answer-option modalities. For benchmarking, load and evaluate each configuration separately. The results can then be combined to assess overall model performance across the dataset.
### Loading a configuration
```pythonfrom datasets import load_dataset
dataset = load_dataset("SciKnowOrg/HighSchoolBench-MCQ", "context_text_only__text_options", split="test")print(dataset)```
### Accessing a question
```pythonexample = dataset[0]print("Context:", example["context"])print("Question:", example["question"])for label, option in zip(example["answer_option_labels"], example["answer_options"]): print(f"{label}. {option}")print("Correct answer:", example["correct_answer"])```
### Listing available configurations
```pythonfrom datasets import get_dataset_config_namesprint(get_dataset_config_names("SciKnowOrg/HighSchoolBench-MCQ"))```
### Downloading the JSON files
```bashhf download SciKnowOrg/HighSchoolBench-MCQ --repo-type dataset --include "subsets/*" --local-dir HighSchoolBench-MCQ```
## Benchmarking our dataset on LLMs using the OpenAI API
The following examples demonstrate how to benchmark language and vision-language models on individual HighSchoolBench-MCQ configurations using the OpenAI API. Text, image, and table configurations are illustrated below. Each example evaluates the full test split of the selected configuration and calculates exact-match accuracy against the reference option labels.
**Image-based questions require a multimodal model that supports image inputs.** The example model, `gpt-4.1-mini`, supports text and images. Tables are supplied as Markdown-formatted text.
```bashpip install datasets openai scikit-learn pillow```
### Example: Text-based MCQs
Configuration: `context_text_only__text_options`
```pythonimport osfrom datasets import load_datasetfrom openai import OpenAIfrom sklearn.metrics import accuracy_score
# 1. Configure the model and APIclient = OpenAI( api_key=os.getenv("OPENAI_API_KEY"), base_url="https://api.openai.com/v1",)MODEL = "gpt-4.1-mini"
# 2. Load the full test split of one configurationquestions = load_dataset("SciKnowOrg/HighSchoolBench-MCQ", "context_text_only__text_options", split="test")
# 3. Generate predictions and collect reference labelspredictions = []references = []
for item in questions: # Pair each option label with its text options = "\n".join(f"{label}. {text}" for label, text in zip(item["answer_option_labels"], item["answer_options"]))
# Build the question prompt prompt = ( "Using the information provided below, answer the multiple-choice question.\n\n" f"Subject: {item['subject']}\n" f"Domain: {item['domain']}\n\n" f"Context:\n{item['context'] or 'None'}\n" "\n" f"Question:\n{item['question']}\n\n" f"Options:\n{options}\n\n" f"Select exactly {item['num_correct_answer_options']} correct option(s).\n" "Return only the selected option label(s), separated by commas if necessary.\n" "Do not include explanations, option text, or additional information." )
# Query the model response = client.chat.completions.create(model=MODEL, messages=[{"role": "user", "content": prompt}]) reply = response.choices[0].message.content or ""
# Normalize label order for exact-match scoring predicted = ",".join(sorted(label.strip().upper() for label in reply.strip().strip(".").split(","))) expected = ",".join(sorted(label.strip().upper() for label in item["correct_answer"])) predictions.append(predicted) references.append(expected) print(f"Question {item['instance']}: model {predicted}, correct {expected}")
# 5. Report exact-match accuracyprint(f"Accuracy: {accuracy_score(references, predictions):.2%}")```
### Example: Image-based MCQs
Configuration: `context_text_images__text_options`
The accompanying images are sent to a vision-capable model.
```pythonimport osimport ioimport base64from datasets import load_datasetfrom openai import OpenAIfrom sklearn.metrics import accuracy_score
# 1. Configure the multimodal model and APIclient = OpenAI( api_key=os.getenv("OPENAI_API_KEY"), base_url="https://api.openai.com/v1",)MODEL = "gpt-4.1-mini"
# 2. Load the full test split of one configurationquestions = load_dataset("SciKnowOrg/HighSchoolBench-MCQ", "context_text_images__text_options", split="test")
# 3. Encode PIL images for the multimodal APIdef image_to_url(image): buffer = io.BytesIO() image.convert("RGB").save(buffer, format="PNG") return "data:image/png;base64," + base64.b64encode(buffer.getvalue()).decode("utf-8")
# 4. Generate predictions and collect reference labelspredictions = []references = []
for item in questions: # Pair each option label with its text options = "\n".join(f"{label}. {text}" for label, text in zip(item["answer_option_labels"], item["answer_options"]))
# Build the question prompt prompt = ( "Using the information provided below, answer the multiple-choice question.\n\n" f"Subject: {item['subject']}\n" f"Domain: {item['domain']}\n\n" f"Context:\n{item['context'] or 'None'}\n" f"{item.get('image_context') or ''}\n" "The accompanying images are part of the context.\n\n" f"Question:\n{item['question']}\n\n" f"Options:\n{options}\n\n" f"Select exactly {item['num_correct_answer_options']} correct option(s).\n" "Return only the selected option label(s), separated by commas if necessary.\n" "Do not include explanations, option text, or additional information." )
# Attach images in the order stored in the dataset content = [{"type": "text", "text": prompt}] for i, image in enumerate(item["images"], start=1): content.append({"type": "text", "text": f"Context image {i}:"}) content.append({"type": "image_url", "image_url": {"url": image_to_url(image)}})
response = client.chat.completions.create(model=MODEL, messages=[{"role": "user", "content": content}]) reply = response.choices[0].message.content or ""
# Normalize label order for exact-match scoring predicted = ",".join(sorted(label.strip().upper() for label in reply.strip().strip(".").split(","))) expected = ",".join(sorted(label.strip().upper() for label in item["correct_answer"])) predictions.append(predicted) references.append(expected) print(f"Question {item['instance']}: model {predicted}, correct {expected}")
# 5. Report exact-match accuracyprint(f"Accuracy: {accuracy_score(references, predictions):.2%}")```
### Example: Table-based MCQs
Configuration: `context_text_table__text_options`
The `tables` field is a Markdown-formatted string supplied directly to the model.
```pythonimport osfrom datasets import load_datasetfrom openai import OpenAIfrom sklearn.metrics import accuracy_score
# 1. Configure the model and APIclient = OpenAI( api_key=os.getenv("OPENAI_API_KEY"), base_url="https://api.openai.com/v1",)MODEL = "gpt-4.1-mini"
# 2. Load the full test split of one configurationquestions = load_dataset("SciKnowOrg/HighSchoolBench-MCQ", "context_text_table__text_options", split="test")
# 4. Generate predictions and collect reference labelspredictions = []references = []
for item in questions: # Pair each option label with its text options = "\n".join(f"{label}. {text}" for label, text in zip(item["answer_option_labels"], item["answer_options"]))
# Build the question prompt prompt = ( "Using the information provided below, answer the multiple-choice question.\n\n" f"Subject: {item['subject']}\n" f"Domain: {item['domain']}\n\n" f"Context:\n{item['context'] or 'None'}\n" f"{item.get('table_context') or ''}\n\n" f"Tables:\n{item['tables']}\n\n" f"Question:\n{item['question']}\n\n" f"Options:\n{options}\n\n" f"Select exactly {item['num_correct_answer_options']} correct option(s).\n" "Return only the selected option label(s), separated by commas if necessary.\n" "Do not include explanations, option text, or additional information." )
# Query the model response = client.chat.completions.create(model=MODEL, messages=[{"role": "user", "content": prompt}]) reply = response.choices[0].message.content or ""
# Normalize label order for exact-match scoring predicted = ",".join(sorted(label.strip().upper() for label in reply.strip().strip(".").split(","))) expected = ",".join(sorted(label.strip().upper() for label in item["correct_answer"])) predictions.append(predicted) references.append(expected) print(f"Question {item['instance']}: model {predicted}, correct {expected}")
# 5. Report exact-match accuracyprint(f"Accuracy: {accuracy_score(references, predictions):.2%}")```
To benchmark the complete MCQ dataset, run the remaining configurations separately and combine per-question results across configurations (rather than taking an unweighted average of configuration accuracies). These introductory examples provide the number of correct options to the model and therefore illustrate **answer-count-informed** evaluation. They do not reproduce every setting of the research evaluation pipeline.
## Citation
If you use HighSchoolBench, please cite:
```bibtex@misc{rani2026highschoolbench, title = {HighSchoolBench: A Multimodal Benchmark of High School Assessment Questions}, author = {Rani, Krishna and D'Souza, Jennifer}, year = {2026}, publisher = {Hugging Face}, howpublished = {\url{https://huggingface.co/datasets/SciKnowOrg/HighSchoolBench-MCQ}, \url{https://huggingface.co/datasets/SciKnowOrg/HighSchoolBench-OEQ}}}```
HighSchoolBench was introduced in the following master’s thesis:
```bibtex@mastersthesis{rani2026highschoolbench_thesis, title = {Toward Robust LLM Benchmarking in High School Science Education: Constructing a QA Corpus from Standardized Tests}, author = {Rani, Krishna}, school = {Gottfried Wilhelm Leibniz Universit{\"a}t Hannover}, year = {2026}, doi = {10.15488/22429}, url = {https://doi.org/10.15488/22429}}```README.md+1039-962