Datasets:
Update dataset card
Browse files123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962---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_optionsdefault: truedata_files:- split: trainpath: data/context_text_images__text_options/train-*.parquet- split: validationpath: data/context_text_images__text_options/validation-*.parquet- split: testpath: data/context_text_images__text_options/test-*.parquet- config_name: context_text_contextualized_images__image_optionsdata_files:- split: testpath: data/context_text_contextualized_images__image_options/test-*.parquet- config_name: context_text_contextualized_images__text_optionsdata_files:- split: trainpath: data/context_text_contextualized_images__text_options/train-*.parquet- split: validationpath: data/context_text_contextualized_images__text_options/validation-*.parquet- split: testpath: data/context_text_contextualized_images__text_options/test-*.parquet- config_name: context_text_contextualized_tables__image_optionsdata_files:- split: testpath: data/context_text_contextualized_tables__image_options/test-*.parquet- config_name: context_text_contextualized_tables__text_optionsdata_files:- split: trainpath: data/context_text_contextualized_tables__text_options/train-*.parquet- split: validationpath: data/context_text_contextualized_tables__text_options/validation-*.parquet- split: testpath: data/context_text_contextualized_tables__text_options/test-*.parquet- config_name: context_text_contextualized_tables_images__image_optionsdata_files:- split: testpath: data/context_text_contextualized_tables_images__image_options/test-*.parquet- config_name: context_text_contextualized_tables_images__text_optionsdata_files:- split: trainpath: data/context_text_contextualized_tables_images__text_options/train-*.parquet- split: validationpath: data/context_text_contextualized_tables_images__text_options/validation-*.parquet- split: testpath: data/context_text_contextualized_tables_images__text_options/test-*.parquet- config_name: context_text_images__image_optionsdata_files:- split: trainpath: data/context_text_images__image_options/train-*.parquet- split: validationpath: data/context_text_images__image_options/validation-*.parquet- split: testpath: data/context_text_images__image_options/test-*.parquet- config_name: context_text_only__image_optionsdata_files:- split: trainpath: data/context_text_only__image_options/train-*.parquet- split: validationpath: data/context_text_only__image_options/validation-*.parquet- split: testpath: data/context_text_only__image_options/test-*.parquet- config_name: context_text_only__table_optionsdata_files:- split: trainpath: data/context_text_only__table_options/train-*.parquet- split: validationpath: data/context_text_only__table_options/validation-*.parquet- split: testpath: data/context_text_only__table_options/test-*.parquet- config_name: context_text_only__text_optionsdata_files:- split: trainpath: data/context_text_only__text_options/train-*.parquet- split: validationpath: data/context_text_only__text_options/validation-*.parquet- split: testpath: data/context_text_only__text_options/test-*.parquet- config_name: context_text_table__image_optionsdata_files:- split: testpath: data/context_text_table__image_options/test-*.parquet- config_name: context_text_table__text_optionsdata_files:- split: trainpath: data/context_text_table__text_options/train-*.parquet- split: validationpath: data/context_text_table__text_options/validation-*.parquet- split: testpath: data/context_text_table__text_options/test-*.parquet- config_name: context_text_table_image__image_optionsdata_files:- split: testpath: data/context_text_table_image__image_options/test-*.parquet- config_name: context_text_table_image__text_optionsdata_files:- split: trainpath: data/context_text_table_image__text_options/train-*.parquet- split: validationpath: data/context_text_table_image__text_options/validation-*.parquet- split: testpath: data/context_text_table_image__text_options/test-*.parquetdataset_info:- config_name: context_text_images__text_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: imageslist: image- name: questiondtype: string- name: answer_optionslist: string- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: splitdtype: string- config_name: context_text_contextualized_images__image_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: image_context_1dtype: string- name: image_1dtype: image- name: image_context_2dtype: string- name: image_2dtype: image- name: image_context_3dtype: string- name: image_3dtype: image- name: questiondtype: string- name: answer_optionslist: image- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: option_image_label_groupslist:list: string- name: splitdtype: string- config_name: context_text_contextualized_images__text_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: image_context_1dtype: string- name: image_1dtype: image- name: image_context_2dtype: string- name: image_2dtype: image- name: image_context_3dtype: string- name: image_3dtype: image- name: image_context_4dtype: string- name: image_4dtype: image- name: questiondtype: string- name: answer_optionslist: string- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: splitdtype: string- config_name: context_text_contextualized_tables__image_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: table_context_1dtype: string- name: table_1dtype: string- name: table_context_2dtype: string- name: table_2dtype: string- name: questiondtype: string- name: answer_optionslist: image- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: option_image_label_groupslist:list: string- name: splitdtype: string- config_name: context_text_contextualized_tables__text_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: table_context_1dtype: string- name: table_1dtype: string- name: table_context_2dtype: string- name: table_2dtype: string- name: table_context_3dtype: string- name: table_3dtype: string- name: table_context_4dtype: string- name: table_4dtype: string- name: questiondtype: string- name: answer_optionslist: string- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: splitdtype: string- config_name: context_text_contextualized_tables_images__image_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: image_context_1dtype: string- name: image_1dtype: image- name: image_context_2dtype: string- name: image_2dtype: image- name: image_context_3dtype: string- name: image_3dtype: image- name: table_context_1dtype: string- name: table_1dtype: string- name: table_context_2dtype: string- name: table_2dtype: string- name: questiondtype: string- name: answer_optionslist: image- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: option_image_label_groupslist:list: string- name: splitdtype: string- config_name: context_text_contextualized_tables_images__text_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: image_context_1dtype: string- name: image_1dtype: image- name: image_context_2dtype: string- name: image_2dtype: image- name: image_context_3dtype: string- name: image_3dtype: image- name: table_context_1dtype: string- name: table_1dtype: string- name: table_context_2dtype: string- name: table_2dtype: string- name: table_context_3dtype: string- name: table_3dtype: string- name: questiondtype: string- name: answer_optionslist: string- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: splitdtype: string- config_name: context_text_images__image_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: imageslist: image- name: questiondtype: string- name: answer_optionslist: image- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: option_image_label_groupslist:list: string- name: splitdtype: string- config_name: context_text_only__image_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: questiondtype: string- name: answer_optionslist: image- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: option_image_label_groupslist:list: string- name: splitdtype: string- config_name: context_text_only__table_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: questiondtype: string- name: answer_optionslist: string- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: splitdtype: string- config_name: context_text_only__text_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: questiondtype: string- name: answer_optionslist: string- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: splitdtype: string- config_name: context_text_table__image_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: tablesdtype: string- name: questiondtype: string- name: answer_optionslist: image- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: option_image_label_groupslist:list: string- name: splitdtype: string- config_name: context_text_table__text_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: tablesdtype: string- name: questiondtype: string- name: answer_optionslist: string- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: splitdtype: string- config_name: context_text_table_image__image_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: imageslist: image- name: tablesdtype: string- name: questiondtype: string- name: answer_optionslist: image- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: option_image_label_groupslist:list: string- name: splitdtype: string- config_name: context_text_table_image__text_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: imageslist: image- name: tablesdtype: string- name: questiondtype: string- name: answer_optionslist: string- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: splitdtype: 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 statisticsThe 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.## ConfigurationsThe 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 fieldsThe 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 filesThe 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": "..."}`.## UsageLoad a configuration using the Hugging Face `datasets` library:```pythonfrom datasets import load_datasetdataset = load_dataset("SciKnowOrg/HighSchoolBench-MCQ","context_text_only__text_options",)print(dataset)```Access a question and its text answer options:```pythonexample = 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:```pythonfrom datasets import get_dataset_config_namesprint(get_dataset_config_names("SciKnowOrg/HighSchoolBench-MCQ"))```To download the JSON Lines files and accompanying images:```bashhf download SciKnowOrg/HighSchoolBench-MCQ \--repo-type dataset \--include "subsets/*" \--local-dir HighSchoolBench-MCQ```## Evaluating an LLM via APIThese 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.```bashpip install datasets openai```<details open><summary><b>Text-only questions</b></summary>```pythonfrom datasets import load_datasetfrom openai import OpenAI# 1. Choose your model and APIclient = OpenAI(api_key="YOUR_API_KEY", # keep your key privatebase_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 questionsquestions = load_dataset("SciKnowOrg/HighSchoolBench-MCQ", "context_text_only__text_options", split="test")# 3. Ask the model and score its answerscorrect = 0for 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 == expectedprint(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>```pythonimport base64, iofrom datasets import load_datasetfrom openai import OpenAI# 1. Choose your model and API (the model must accept images)client = OpenAI(api_key="YOUR_API_KEY", # keep your key privatebase_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 questionsquestions = 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 URLimage_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 answerscorrect = 0for 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 == expectedprint(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`.## CitationIf 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}}```1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039---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_optionsdefault: truedata_files:- split: trainpath: data/context_text_images__text_options/train-*.parquet- split: validationpath: data/context_text_images__text_options/validation-*.parquet- split: testpath: data/context_text_images__text_options/test-*.parquet- config_name: context_text_contextualized_images__image_optionsdata_files:- split: testpath: data/context_text_contextualized_images__image_options/test-*.parquet- config_name: context_text_contextualized_images__text_optionsdata_files:- split: trainpath: data/context_text_contextualized_images__text_options/train-*.parquet- split: validationpath: data/context_text_contextualized_images__text_options/validation-*.parquet- split: testpath: data/context_text_contextualized_images__text_options/test-*.parquet- config_name: context_text_contextualized_tables__image_optionsdata_files:- split: testpath: data/context_text_contextualized_tables__image_options/test-*.parquet- config_name: context_text_contextualized_tables__text_optionsdata_files:- split: trainpath: data/context_text_contextualized_tables__text_options/train-*.parquet- split: validationpath: data/context_text_contextualized_tables__text_options/validation-*.parquet- split: testpath: data/context_text_contextualized_tables__text_options/test-*.parquet- config_name: context_text_contextualized_tables_images__image_optionsdata_files:- split: testpath: data/context_text_contextualized_tables_images__image_options/test-*.parquet- config_name: context_text_contextualized_tables_images__text_optionsdata_files:- split: trainpath: data/context_text_contextualized_tables_images__text_options/train-*.parquet- split: validationpath: data/context_text_contextualized_tables_images__text_options/validation-*.parquet- split: testpath: data/context_text_contextualized_tables_images__text_options/test-*.parquet- config_name: context_text_images__image_optionsdata_files:- split: trainpath: data/context_text_images__image_options/train-*.parquet- split: validationpath: data/context_text_images__image_options/validation-*.parquet- split: testpath: data/context_text_images__image_options/test-*.parquet- config_name: context_text_only__image_optionsdata_files:- split: trainpath: data/context_text_only__image_options/train-*.parquet- split: validationpath: data/context_text_only__image_options/validation-*.parquet- split: testpath: data/context_text_only__image_options/test-*.parquet- config_name: context_text_only__table_optionsdata_files:- split: trainpath: data/context_text_only__table_options/train-*.parquet- split: validationpath: data/context_text_only__table_options/validation-*.parquet- split: testpath: data/context_text_only__table_options/test-*.parquet- config_name: context_text_only__text_optionsdata_files:- split: trainpath: data/context_text_only__text_options/train-*.parquet- split: validationpath: data/context_text_only__text_options/validation-*.parquet- split: testpath: data/context_text_only__text_options/test-*.parquet- config_name: context_text_table__image_optionsdata_files:- split: testpath: data/context_text_table__image_options/test-*.parquet- config_name: context_text_table__text_optionsdata_files:- split: trainpath: data/context_text_table__text_options/train-*.parquet- split: validationpath: data/context_text_table__text_options/validation-*.parquet- split: testpath: data/context_text_table__text_options/test-*.parquet- config_name: context_text_table_image__image_optionsdata_files:- split: testpath: data/context_text_table_image__image_options/test-*.parquet- config_name: context_text_table_image__text_optionsdata_files:- split: trainpath: data/context_text_table_image__text_options/train-*.parquet- split: validationpath: data/context_text_table_image__text_options/validation-*.parquet- split: testpath: data/context_text_table_image__text_options/test-*.parquetdataset_info:- config_name: context_text_images__text_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: imageslist: image- name: questiondtype: string- name: answer_optionslist: string- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: splitdtype: string- config_name: context_text_contextualized_images__image_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: image_context_1dtype: string- name: image_1dtype: image- name: image_context_2dtype: string- name: image_2dtype: image- name: image_context_3dtype: string- name: image_3dtype: image- name: questiondtype: string- name: answer_optionslist: image- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: option_image_label_groupslist:list: string- name: splitdtype: string- config_name: context_text_contextualized_images__text_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: image_context_1dtype: string- name: image_1dtype: image- name: image_context_2dtype: string- name: image_2dtype: image- name: image_context_3dtype: string- name: image_3dtype: image- name: image_context_4dtype: string- name: image_4dtype: image- name: questiondtype: string- name: answer_optionslist: string- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: splitdtype: string- config_name: context_text_contextualized_tables__image_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: table_context_1dtype: string- name: table_1dtype: string- name: table_context_2dtype: string- name: table_2dtype: string- name: questiondtype: string- name: answer_optionslist: image- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: option_image_label_groupslist:list: string- name: splitdtype: string- config_name: context_text_contextualized_tables__text_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: table_context_1dtype: string- name: table_1dtype: string- name: table_context_2dtype: string- name: table_2dtype: string- name: table_context_3dtype: string- name: table_3dtype: string- name: table_context_4dtype: string- name: table_4dtype: string- name: questiondtype: string- name: answer_optionslist: string- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: splitdtype: string- config_name: context_text_contextualized_tables_images__image_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: image_context_1dtype: string- name: image_1dtype: image- name: image_context_2dtype: string- name: image_2dtype: image- name: image_context_3dtype: string- name: image_3dtype: image- name: table_context_1dtype: string- name: table_1dtype: string- name: table_context_2dtype: string- name: table_2dtype: string- name: questiondtype: string- name: answer_optionslist: image- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: option_image_label_groupslist:list: string- name: splitdtype: string- config_name: context_text_contextualized_tables_images__text_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: image_context_1dtype: string- name: image_1dtype: image- name: image_context_2dtype: string- name: image_2dtype: image- name: image_context_3dtype: string- name: image_3dtype: image- name: table_context_1dtype: string- name: table_1dtype: string- name: table_context_2dtype: string- name: table_2dtype: string- name: table_context_3dtype: string- name: table_3dtype: string- name: questiondtype: string- name: answer_optionslist: string- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: splitdtype: string- config_name: context_text_images__image_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: imageslist: image- name: questiondtype: string- name: answer_optionslist: image- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: option_image_label_groupslist:list: string- name: splitdtype: string- config_name: context_text_only__image_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: questiondtype: string- name: answer_optionslist: image- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: option_image_label_groupslist:list: string- name: splitdtype: string- config_name: context_text_only__table_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: questiondtype: string- name: answer_optionslist: string- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: splitdtype: string- config_name: context_text_only__text_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: questiondtype: string- name: answer_optionslist: string- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: splitdtype: string- config_name: context_text_table__image_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: tablesdtype: string- name: questiondtype: string- name: answer_optionslist: image- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: option_image_label_groupslist:list: string- name: splitdtype: string- config_name: context_text_table__text_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: tablesdtype: string- name: questiondtype: string- name: answer_optionslist: string- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: splitdtype: string- config_name: context_text_table_image__image_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: imageslist: image- name: tablesdtype: string- name: questiondtype: string- name: answer_optionslist: image- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: option_image_label_groupslist:list: string- name: splitdtype: string- config_name: context_text_table_image__text_optionsfeatures:- name: instancedtype: int64- name: assessment_programdtype: string- name: assessment_typedtype: string- name: assessment_categorydtype: string- name: subjectdtype: string- name: domaindtype: string- name: contextdtype: string- name: imageslist: image- name: tablesdtype: string- name: questiondtype: string- name: answer_optionslist: string- name: answer_option_labelslist: string- name: correct_answerlist: string- name: num_correct_answer_optionsdtype: int32- name: splitdtype: 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 statisticsThe **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** |## ConfigurationsThe 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 formatThe 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 filesThe 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 datasetHighSchoolBench-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_datasetdataset = 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 APIThe 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 MCQsConfiguration: `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 textoptions = "\n".join(f"{label}. {text}" for label, text in zip(item["answer_option_labels"], item["answer_options"]))# Build the question promptprompt = ("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 modelresponse = client.chat.completions.create(model=MODEL, messages=[{"role": "user", "content": prompt}])reply = response.choices[0].message.content or ""# Normalize label order for exact-match scoringpredicted = ",".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 MCQsConfiguration: `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 textoptions = "\n".join(f"{label}. {text}" for label, text in zip(item["answer_option_labels"], item["answer_options"]))# Build the question promptprompt = ("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 datasetcontent = [{"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 scoringpredicted = ",".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 MCQsConfiguration: `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 textoptions = "\n".join(f"{label}. {text}" for label, text in zip(item["answer_option_labels"], item["answer_options"]))# Build the question promptprompt = ("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 modelresponse = client.chat.completions.create(model=MODEL, messages=[{"role": "user", "content": prompt}])reply = response.choices[0].message.content or ""# Normalize label order for exact-match scoringpredicted = ",".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.## CitationIf 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