Update dataset card
Browse files12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049---pretty_name: HighSchoolBench-OEQlanguage:- enlanguage_creators:- foundmultilinguality:- monolingualsource_datasets:- originaltask_categories:- question-answering- visual-question-answering- text-generationsize_categories:- 1K<n<10Ktags:- highschoolbench- benchmark- education- high-school- exam- stem- science- mathematics- multimodal- image- text- open-ended- free-responseconfigs:- config_name: context_text_only__calculation_with_work_answerdefault: truedata_files:- split: trainpath: data/context_text_only__calculation_with_work_answer/train-*.parquet- split: validationpath: data/context_text_only__calculation_with_work_answer/validation-*.parquet- split: testpath: data/context_text_only__calculation_with_work_answer/test-*.parquet- config_name: context_text_contextualized_images__explanation_answerdata_files:- split: trainpath: data/context_text_contextualized_images__explanation_answer/train-*.parquet- split: testpath: data/context_text_contextualized_images__explanation_answer/test-*.parquet- config_name: context_text_contextualized_images__multi_part_answerdata_files:- split: testpath: data/context_text_contextualized_images__multi_part_answer/test-*.parquet- config_name: context_text_images__calculation_with_work_answerdata_files:- split: trainpath: data/context_text_images__calculation_with_work_answer/train-*.parquet- split: validationpath: data/context_text_images__calculation_with_work_answer/validation-*.parquet- split: testpath: data/context_text_images__calculation_with_work_answer/test-*.parquet- config_name: context_text_images__explanation_answerdata_files:- split: trainpath: data/context_text_images__explanation_answer/train-*.parquet- split: validationpath: data/context_text_images__explanation_answer/validation-*.parquet- split: testpath: data/context_text_images__explanation_answer/test-*.parquet- config_name: context_text_images__multi_part_answerdata_files:- split: trainpath: data/context_text_images__multi_part_answer/train-*.parquet- split: testpath: data/context_text_images__multi_part_answer/test-*.parquet- config_name: context_text_images__short_answerdata_files:- split: trainpath: data/context_text_images__short_answer/train-*.parquet- split: validationpath: data/context_text_images__short_answer/validation-*.parquet- split: testpath: data/context_text_images__short_answer/test-*.parquet- config_name: context_text_only__explanation_answerdata_files:- split: trainpath: data/context_text_only__explanation_answer/train-*.parquet- split: validationpath: data/context_text_only__explanation_answer/validation-*.parquet- split: testpath: data/context_text_only__explanation_answer/test-*.parquet- config_name: context_text_only__multi_part_answerdata_files:- split: trainpath: data/context_text_only__multi_part_answer/train-*.parquet- split: validationpath: data/context_text_only__multi_part_answer/validation-*.parquet- split: testpath: data/context_text_only__multi_part_answer/test-*.parquet- config_name: context_text_only__short_answerdata_files:- split: trainpath: data/context_text_only__short_answer/train-*.parquet- split: validationpath: data/context_text_only__short_answer/validation-*.parquet- split: testpath: data/context_text_only__short_answer/test-*.parquet- config_name: context_text_table__calculation_with_work_answerdata_files:- split: trainpath: data/context_text_table__calculation_with_work_answer/train-*.parquet- split: validationpath: data/context_text_table__calculation_with_work_answer/validation-*.parquet- split: testpath: data/context_text_table__calculation_with_work_answer/test-*.parquet- config_name: context_text_table__explanation_answerdata_files:- split: trainpath: data/context_text_table__explanation_answer/train-*.parquet- split: validationpath: data/context_text_table__explanation_answer/validation-*.parquet- split: testpath: data/context_text_table__explanation_answer/test-*.parquet- config_name: context_text_table__multi_part_answerdata_files:- split: trainpath: data/context_text_table__multi_part_answer/train-*.parquet- split: testpath: data/context_text_table__multi_part_answer/test-*.parquet- config_name: context_text_table__short_answerdata_files:- split: trainpath: data/context_text_table__short_answer/train-*.parquet- split: validationpath: data/context_text_table__short_answer/validation-*.parquet- split: testpath: data/context_text_table__short_answer/test-*.parquet- config_name: context_text_table_image__calculation_with_work_answerdata_files:- split: trainpath: data/context_text_table_image__calculation_with_work_answer/train-*.parquet- split: testpath: data/context_text_table_image__calculation_with_work_answer/test-*.parquet- config_name: context_text_table_image__explanation_answerdata_files:- split: trainpath: data/context_text_table_image__explanation_answer/train-*.parquet- split: validationpath: data/context_text_table_image__explanation_answer/validation-*.parquet- split: testpath: data/context_text_table_image__explanation_answer/test-*.parquet- config_name: context_text_table_image__multi_part_answerdata_files:- split: trainpath: data/context_text_table_image__multi_part_answer/train-*.parquet- split: testpath: data/context_text_table_image__multi_part_answer/test-*.parquet- config_name: context_text_table_image__short_answerdata_files:- split: trainpath: data/context_text_table_image__short_answer/train-*.parquet- split: validationpath: data/context_text_table_image__short_answer/validation-*.parquet- split: testpath: data/context_text_table_image__short_answer/test-*.parquetdataset_info:- config_name: context_text_only__calculation_with_work_answerfeatures:- 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: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_contextualized_images__explanation_answerfeatures:- 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: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_contextualized_images__multi_part_answerfeatures:- 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: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_images__calculation_with_work_answerfeatures:- 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_contextdtype: string- name: imagelist: image- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_images__explanation_answerfeatures:- 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_contextdtype: string- name: imagelist: image- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_images__multi_part_answerfeatures:- 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_contextdtype: string- name: imagelist: image- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_images__short_answerfeatures:- 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_contextdtype: string- name: imagelist: image- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_only__explanation_answerfeatures:- 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: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_only__multi_part_answerfeatures:- 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: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_only__short_answerfeatures:- 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: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_table__calculation_with_work_answerfeatures:- 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_contextdtype: string- name: tabledtype: string- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_table__explanation_answerfeatures:- 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_contextdtype: string- name: tabledtype: string- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_table__multi_part_answerfeatures:- 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_contextdtype: string- name: tabledtype: string- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_table__short_answerfeatures:- 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_contextdtype: string- name: tabledtype: string- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_table_image__calculation_with_work_answerfeatures:- 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_contextdtype: string- name: imagelist: image- name: table_contextdtype: string- name: tabledtype: string- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_table_image__explanation_answerfeatures:- 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_contextdtype: string- name: imagelist: image- name: table_contextdtype: string- name: tabledtype: string- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_table_image__multi_part_answerfeatures:- 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_contextdtype: string- name: imagelist: image- name: table_contextdtype: string- name: tabledtype: string- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_table_image__short_answerfeatures:- 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_contextdtype: string- name: imagelist: image- name: table_contextdtype: string- name: tabledtype: string- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string---# HighSchoolBench-OEQ[GitHub](https://github.com/sciknoworg/high-school-science) • [Master’s thesis](https://doi.org/10.15488/22429)## Dataset description**HighSchoolBench-OEQ** contains **2,952 open-ended questions** from standardized high-school assessments and academic competitions. It is the open-ended 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, tables, or combinations of these modalities.Each question is paired with a free-text reference answer. Answers include worked calculations, explanations, multi-part responses, and exact or short scientific answers. The multiple-choice component is available separately as [HighSchoolBench-MCQ](https://huggingface.co/datasets/SciKnowOrg/HighSchoolBench-MCQ).## Dataset statisticsThe **OEQ component of HighSchoolBench** contains **2,952 open-ended question–answer pairs**. Each instance consists of a question and its corresponding reference answer. 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` | 449 || `validation` | 141 || `test` | 2,362 || **Total** | **2,952** |## ConfigurationsThe OEQ dataset is organized into **18 configurations** based on the modalities of the supporting context and the expected answer form.| Configuration | Question context | Answer form | Questions ||---|---|---|---:|| `context_text_only__calculation_with_work_answer` | Text | Worked solution | 655 || `context_text_only__explanation_answer` | Text | Explanation/description | 585 || `context_text_only__multi_part_answer` | Text | Multi-part answer | 53 || `context_text_only__short_answer` | Text | Exact or short scientific answer | 416 || `context_text_images__calculation_with_work_answer` | Text and images | Worked solution | 195 || `context_text_images__explanation_answer` | Text and images | Explanation/description | 453 || `context_text_images__multi_part_answer` | Text and images | Multi-part answer | 9 || `context_text_images__short_answer` | Text and images | Exact or short scientific answer | 219 || `context_text_table__calculation_with_work_answer` | Text and tables | Worked solution | 92 || `context_text_table__explanation_answer` | Text and tables | Explanation/description | 98 || `context_text_table__multi_part_answer` | Text and tables | Multi-part answer | 15 || `context_text_table__short_answer` | Text and tables | Exact or short scientific answer | 71 || `context_text_table_image__calculation_with_work_answer` | Text, tables, and images | Worked solution | 7 || `context_text_table_image__explanation_answer` | Text, tables, and images | Explanation/description | 49 || `context_text_table_image__multi_part_answer` | Text, tables, and images | Multi-part answer | 8 || `context_text_table_image__short_answer` | Text, tables, and images | Exact or short scientific answer | 24 || `context_text_contextualized_images__explanation_answer` | Images with associated text | Explanation/description | 2 || `context_text_contextualized_images__multi_part_answer` | Images with associated text | Multi-part answer | 1 || **Total** | | | **2,952** |In contextualized configurations, individual images 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. | || `correct_answer` | Free-text reference answer for the question. | || `answer_type` | Expected form of the answer. | || `image` | Images provided as question context. | Optional; may be absent depending on the configuration. || `image_context` | Accompanying text associated with the images. | Optional || `table` | Table provided as question context. | Optional; Markdown string. || `table_context` | Accompanying text associated with the table. | Optional || `image_N` | Individual image provided as question context. | Optional; contextualized configurations. || `image_context_N` | Accompanying text associated with an individual image. | Optional || `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-OEQ is organized into separate configurations based on question context and answer forms. 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-OEQ", "context_text_only__short_answer", split="test")print(dataset)```### Accessing a question```pythonexample = dataset[0]print("Context:", example["context"])print("Question:", example["question"])print("Reference answer:", example["correct_answer"])print("Answer type:", example["answer_type"])```### Listing available configurations```pythonfrom datasets import get_dataset_config_namesprint(get_dataset_config_names("SciKnowOrg/HighSchoolBench-OEQ"))```### Downloading the JSON files```bashhf download SciKnowOrg/HighSchoolBench-OEQ --repo-type dataset --include "subsets/*" --local-dir HighSchoolBench-OEQ```## Benchmarking our dataset on LLMs using the OpenAI APIThe examples below show how to benchmark the full test split of an individual HighSchoolBench-OEQ configuration through the OpenAI API. They illustrate four answer forms using simple evaluation measures: **ROUGE-L F1** for worked solutions, explanations, and multi-part answers; and **normalized exact match** for short answers.**Image-based questions require a multimodal model capable of processing images.** The example `gpt-4.1-mini` model supports both text and images. Tables are supplied directly as Markdown text.```bashpip install datasets openai rouge-score pillow```### Example: Worked solutions — TextConfiguration: `context_text_only__calculation_with_work_answer````pythonimport osfrom datasets import load_datasetfrom openai import OpenAIfrom rouge_score import rouge_scorer# 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-OEQ", "context_text_only__calculation_with_work_answer", split="test")# 4. Generate predictions and compare with reference answersscorer = rouge_scorer.RougeScorer(["rougeL"], use_stemmer=True)scores = []for item in questions:# Construct the question promptprompt = ("Using the information provided below, answer the high school 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""Provide the necessary calculations, working steps, and final answer.")# Query the modelresponse = client.chat.completions.create(model=MODEL, messages=[{"role": "user", "content": prompt}])prediction = response.choices[0].message.content or ""reference = item["correct_answer"]# Score word-sequence overlap against the referencescore = scorer.score(reference, prediction)["rougeL"].fmeasurescores.append(score)print(f"Question {item['instance']}: ROUGE-L F1 = {score:.3f}")print(f"Average ROUGE-L F1: {sum(scores) / len(scores):.3f}")```### Example: Explanations — ImagesConfiguration: `context_text_images__explanation_answer`A vision-capable model receives the question images alongside the text.```pythonimport osimport ioimport base64from datasets import load_datasetfrom openai import OpenAIfrom rouge_score import rouge_scorer# 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-OEQ", "context_text_images__explanation_answer", split="test")# 3. Convert PIL images to base64 data URLsdef 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 compare with reference answersscorer = rouge_scorer.RougeScorer(["rougeL"], use_stemmer=True)scores = []for item in questions:# Construct the question promptprompt = ("Using the information provided below, answer the high school question.\n\n"f"Subject: {item['subject']}\n"f"Domain: {item['domain']}\n\n"f"Context:\n{item['context'] or 'None'}\n\n"f"{item.get('image_context') or ''}\n""The accompanying image(s) are part of the context.\n\n"f"Question:\n{item['question']}\n\n""Use all text and images to provide a clear explanation that answers the question.")# Attach all context images to a multimodal requestcontent = [{"type": "text", "text": prompt}]for i, image in enumerate(item["image"], 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}])prediction = response.choices[0].message.content or ""reference = item["correct_answer"]# Score word-sequence overlap against the referencescore = scorer.score(reference, prediction)["rougeL"].fmeasurescores.append(score)print(f"Question {item['instance']}: ROUGE-L F1 = {score:.3f}")print(f"Average ROUGE-L F1: {sum(scores) / len(scores):.3f}")```### Example: Multi-part answers — TablesConfiguration: `context_text_table__multi_part_answer`The Markdown table is included directly in the model prompt.```pythonimport osfrom datasets import load_datasetfrom openai import OpenAIfrom rouge_score import rouge_scorer# 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-OEQ", "context_text_table__multi_part_answer", split="test")# 4. Generate predictions and compare with reference answersscorer = rouge_scorer.RougeScorer(["rougeL"], use_stemmer=True)scores = []for item in questions:# Construct the question promptprompt = ("Using the information provided below, answer the high school question.\n\n"f"Subject: {item['subject']}\n"f"Domain: {item['domain']}\n\n"f"Context:\n{item['context'] or 'None'}\n\n"f"{item.get('table_context') or ''}\n"f"Table:\n{item['table']}\n\n"f"Question:\n{item['question']}\n\n""Answer every part of the question clearly and in the order asked.")# Query the modelresponse = client.chat.completions.create(model=MODEL, messages=[{"role": "user", "content": prompt}])prediction = response.choices[0].message.content or ""reference = item["correct_answer"]# Score word-sequence overlap against the referencescore = scorer.score(reference, prediction)["rougeL"].fmeasurescores.append(score)print(f"Question {item['instance']}: ROUGE-L F1 = {score:.3f}")print(f"Average ROUGE-L F1: {sum(scores) / len(scores):.3f}")```### Example: Short scientific answers — TextConfiguration: `context_text_only__short_answer````pythonimport osfrom datasets import load_datasetfrom openai import OpenAI# 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-OEQ", "context_text_only__short_answer", split="test")# 4. Generate predictions and compare with reference answerscorrect = 0for item in questions:# Construct the question promptprompt = ("Using the information provided below, answer the high school 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""Provide only the short final answer, including units where needed.")# Query the modelresponse = client.chat.completions.create(model=MODEL, messages=[{"role": "user", "content": prompt}])prediction = response.choices[0].message.content or ""reference = item["correct_answer"]# Compare normalized strings (case and whitespace only)predicted = " ".join(prediction.casefold().split())expected = " ".join(reference.casefold().split())correct += predicted == expectedprint(f"Question {item['instance']}: model {prediction!r}, correct {reference!r}")print(f"Normalized exact match: {correct / len(questions):.2%}")```To benchmark all OEQ questions, evaluate the remaining configurations separately and combine per-question results, accounting for different answer types. These introductory metrics demonstrate API usage but **do not reproduce the full research evaluation**. ROUGE-L measures text overlap, not scientific or mathematical correctness; normalized exact match does not recognize all equivalent units, numbers, or expressions.## 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}}```1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063---pretty_name: HighSchoolBench-OEQlanguage:- enlanguage_creators:- foundmultilinguality:- monolingualsource_datasets:- originaltask_categories:- question-answering- visual-question-answering- text-generationsize_categories:- 1K<n<10Ktags:- highschoolbench- benchmark- education- high-school- exam- stem- science- mathematics- multimodal- image- text- open-ended- free-responseconfigs:- config_name: context_text_only__calculation_with_work_answerdefault: truedata_files:- split: trainpath: data/context_text_only__calculation_with_work_answer/train-*.parquet- split: validationpath: data/context_text_only__calculation_with_work_answer/validation-*.parquet- split: testpath: data/context_text_only__calculation_with_work_answer/test-*.parquet- config_name: context_text_contextualized_images__explanation_answerdata_files:- split: trainpath: data/context_text_contextualized_images__explanation_answer/train-*.parquet- split: testpath: data/context_text_contextualized_images__explanation_answer/test-*.parquet- config_name: context_text_contextualized_images__multi_part_answerdata_files:- split: testpath: data/context_text_contextualized_images__multi_part_answer/test-*.parquet- config_name: context_text_images__calculation_with_work_answerdata_files:- split: trainpath: data/context_text_images__calculation_with_work_answer/train-*.parquet- split: validationpath: data/context_text_images__calculation_with_work_answer/validation-*.parquet- split: testpath: data/context_text_images__calculation_with_work_answer/test-*.parquet- config_name: context_text_images__explanation_answerdata_files:- split: trainpath: data/context_text_images__explanation_answer/train-*.parquet- split: validationpath: data/context_text_images__explanation_answer/validation-*.parquet- split: testpath: data/context_text_images__explanation_answer/test-*.parquet- config_name: context_text_images__multi_part_answerdata_files:- split: trainpath: data/context_text_images__multi_part_answer/train-*.parquet- split: testpath: data/context_text_images__multi_part_answer/test-*.parquet- config_name: context_text_images__short_answerdata_files:- split: trainpath: data/context_text_images__short_answer/train-*.parquet- split: validationpath: data/context_text_images__short_answer/validation-*.parquet- split: testpath: data/context_text_images__short_answer/test-*.parquet- config_name: context_text_only__explanation_answerdata_files:- split: trainpath: data/context_text_only__explanation_answer/train-*.parquet- split: validationpath: data/context_text_only__explanation_answer/validation-*.parquet- split: testpath: data/context_text_only__explanation_answer/test-*.parquet- config_name: context_text_only__multi_part_answerdata_files:- split: trainpath: data/context_text_only__multi_part_answer/train-*.parquet- split: validationpath: data/context_text_only__multi_part_answer/validation-*.parquet- split: testpath: data/context_text_only__multi_part_answer/test-*.parquet- config_name: context_text_only__short_answerdata_files:- split: trainpath: data/context_text_only__short_answer/train-*.parquet- split: validationpath: data/context_text_only__short_answer/validation-*.parquet- split: testpath: data/context_text_only__short_answer/test-*.parquet- config_name: context_text_table__calculation_with_work_answerdata_files:- split: trainpath: data/context_text_table__calculation_with_work_answer/train-*.parquet- split: validationpath: data/context_text_table__calculation_with_work_answer/validation-*.parquet- split: testpath: data/context_text_table__calculation_with_work_answer/test-*.parquet- config_name: context_text_table__explanation_answerdata_files:- split: trainpath: data/context_text_table__explanation_answer/train-*.parquet- split: validationpath: data/context_text_table__explanation_answer/validation-*.parquet- split: testpath: data/context_text_table__explanation_answer/test-*.parquet- config_name: context_text_table__multi_part_answerdata_files:- split: trainpath: data/context_text_table__multi_part_answer/train-*.parquet- split: testpath: data/context_text_table__multi_part_answer/test-*.parquet- config_name: context_text_table__short_answerdata_files:- split: trainpath: data/context_text_table__short_answer/train-*.parquet- split: validationpath: data/context_text_table__short_answer/validation-*.parquet- split: testpath: data/context_text_table__short_answer/test-*.parquet- config_name: context_text_table_image__calculation_with_work_answerdata_files:- split: trainpath: data/context_text_table_image__calculation_with_work_answer/train-*.parquet- split: testpath: data/context_text_table_image__calculation_with_work_answer/test-*.parquet- config_name: context_text_table_image__explanation_answerdata_files:- split: trainpath: data/context_text_table_image__explanation_answer/train-*.parquet- split: validationpath: data/context_text_table_image__explanation_answer/validation-*.parquet- split: testpath: data/context_text_table_image__explanation_answer/test-*.parquet- config_name: context_text_table_image__multi_part_answerdata_files:- split: trainpath: data/context_text_table_image__multi_part_answer/train-*.parquet- split: testpath: data/context_text_table_image__multi_part_answer/test-*.parquet- config_name: context_text_table_image__short_answerdata_files:- split: trainpath: data/context_text_table_image__short_answer/train-*.parquet- split: validationpath: data/context_text_table_image__short_answer/validation-*.parquet- split: testpath: data/context_text_table_image__short_answer/test-*.parquetdataset_info:- config_name: context_text_only__calculation_with_work_answerfeatures:- 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: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_contextualized_images__explanation_answerfeatures:- 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: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_contextualized_images__multi_part_answerfeatures:- 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: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_images__calculation_with_work_answerfeatures:- 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_contextdtype: string- name: imagelist: image- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_images__explanation_answerfeatures:- 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_contextdtype: string- name: imagelist: image- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_images__multi_part_answerfeatures:- 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_contextdtype: string- name: imagelist: image- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_images__short_answerfeatures:- 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_contextdtype: string- name: imagelist: image- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_only__explanation_answerfeatures:- 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: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_only__multi_part_answerfeatures:- 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: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_only__short_answerfeatures:- 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: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_table__calculation_with_work_answerfeatures:- 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_contextdtype: string- name: tabledtype: string- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_table__explanation_answerfeatures:- 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_contextdtype: string- name: tabledtype: string- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_table__multi_part_answerfeatures:- 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_contextdtype: string- name: tabledtype: string- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_table__short_answerfeatures:- 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_contextdtype: string- name: tabledtype: string- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_table_image__calculation_with_work_answerfeatures:- 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_contextdtype: string- name: imagelist: image- name: table_contextdtype: string- name: tabledtype: string- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_table_image__explanation_answerfeatures:- 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_contextdtype: string- name: imagelist: image- name: table_contextdtype: string- name: tabledtype: string- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_table_image__multi_part_answerfeatures:- 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_contextdtype: string- name: imagelist: image- name: table_contextdtype: string- name: tabledtype: string- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string- config_name: context_text_table_image__short_answerfeatures:- 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_contextdtype: string- name: imagelist: image- name: table_contextdtype: string- name: tabledtype: string- name: questiondtype: string- name: correct_answerdtype: string- name: answer_typedtype: string- name: splitdtype: string---# HighSchoolBench-OEQ[GitHub](https://github.com/sciknoworg/high-school-science) • [Zenodo dataset](https://doi.org/10.5281/zenodo.24169334) • [Master’s thesis](https://doi.org/10.15488/22429)## Dataset description**HighSchoolBench-OEQ** contains **2,952 open-ended questions** from standardized high-school assessments and academic competitions. It is the open-ended 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, tables, or combinations of these modalities.Each question is paired with a free-text reference answer. Answers include worked calculations, explanations, multi-part responses, and exact or short scientific answers. The multiple-choice component is available separately as [HighSchoolBench-MCQ](https://huggingface.co/datasets/SciKnowOrg/HighSchoolBench-MCQ).## Dataset statisticsThe **OEQ component of HighSchoolBench** contains **2,952 open-ended question–answer pairs**. Each instance consists of a question and its corresponding reference answer. 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` | 449 || `validation` | 141 || `test` | 2,362 || **Total** | **2,952** |## ConfigurationsThe OEQ dataset is organized into **18 configurations** based on the modalities of the supporting context and the expected answer form.| Configuration | Question context | Answer form | Questions ||---|---|---|---:|| `context_text_only__calculation_with_work_answer` | Text | Worked solution | 655 || `context_text_only__explanation_answer` | Text | Explanation/description | 585 || `context_text_only__multi_part_answer` | Text | Multi-part answer | 53 || `context_text_only__short_answer` | Text | Exact or short scientific answer | 416 || `context_text_images__calculation_with_work_answer` | Text and images | Worked solution | 195 || `context_text_images__explanation_answer` | Text and images | Explanation/description | 453 || `context_text_images__multi_part_answer` | Text and images | Multi-part answer | 9 || `context_text_images__short_answer` | Text and images | Exact or short scientific answer | 219 || `context_text_table__calculation_with_work_answer` | Text and tables | Worked solution | 92 || `context_text_table__explanation_answer` | Text and tables | Explanation/description | 98 || `context_text_table__multi_part_answer` | Text and tables | Multi-part answer | 15 || `context_text_table__short_answer` | Text and tables | Exact or short scientific answer | 71 || `context_text_table_image__calculation_with_work_answer` | Text, tables, and images | Worked solution | 7 || `context_text_table_image__explanation_answer` | Text, tables, and images | Explanation/description | 49 || `context_text_table_image__multi_part_answer` | Text, tables, and images | Multi-part answer | 8 || `context_text_table_image__short_answer` | Text, tables, and images | Exact or short scientific answer | 24 || `context_text_contextualized_images__explanation_answer` | Images with associated text | Explanation/description | 2 || `context_text_contextualized_images__multi_part_answer` | Images with associated text | Multi-part answer | 1 || **Total** | | | **2,952** |In contextualized configurations, individual images 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` | Identifier. | || `assessment_program` | Source assessment or academic competition. | || `assessment_type` | Classification of the assessment source, such as national, international, state, or competition. | || `assessment_category` | Assessment stage or category, such as pre-qualifying, semifinal, or final, when provided. | || `subject` | Academic subject of the question. | || `domain` | Subarea or topic within the academic subject. | || `context` | Supporting text for answering the question. | || `question` | Question text. | || `correct_answer` | Free-text reference answer for the question. | || `answer_type` | Expected form of the answer. | || `image` | Images provided as question context. | Optional; may be absent depending on the configuration. || `image_context` | Accompanying text associated with the images. | Optional; may be absent depending on the configuration. || `table` | Table provided as question context. | Optional; may be absent depending on the configuration. || `table_context` | Accompanying text associated with the table. | Optional; may be absent depending on the configuration. || `image_N` | Individual image provided as question context in contextualized configurations. | Optional; may be absent depending on the configuration. || `image_context_N` | Accompanying text associated with an individual image. | Optional; may be absent depending on the configuration. || `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-OEQ is organized into separate configurations based on question context and answer forms. 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-OEQ", "context_text_only__short_answer", split="test")print(dataset)```### Accessing a question```pythonexample = dataset[0]print("Context:", example["context"])print("Question:", example["question"])print("Reference answer:", example["correct_answer"])print("Answer type:", example["answer_type"])```### Listing available configurations```pythonfrom datasets import get_dataset_config_namesprint(get_dataset_config_names("SciKnowOrg/HighSchoolBench-OEQ"))```### Downloading the JSON files```bashhf download SciKnowOrg/HighSchoolBench-OEQ --repo-type dataset --include "subsets/*" --local-dir HighSchoolBench-OEQ```## Benchmarking our dataset on LLMs using the OpenAI APIThe examples below show how to benchmark the full test split of an individual HighSchoolBench-OEQ configuration through the OpenAI API. They illustrate four answer forms using simple evaluation measures: **ROUGE-L F1** for worked solutions, explanations, and multi-part answers; and **normalized exact match** for short answers.**Image-based questions require a multimodal model capable of processing images.** The example `gpt-4.1-mini` model supports both text and images. Tables are supplied directly as Markdown text.```bashpip install datasets openai rouge-score pillow```<details><summary><strong>Example: Worked solutions — Text</strong></summary>Configuration: `context_text_only__calculation_with_work_answer````pythonimport osfrom datasets import load_datasetfrom openai import OpenAIfrom rouge_score import rouge_scorer# 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-OEQ", "context_text_only__calculation_with_work_answer", split="test")# 4. Generate predictions and compare with reference answersscorer = rouge_scorer.RougeScorer(["rougeL"], use_stemmer=True)scores = []for item in questions:# Construct the question promptprompt = ("Using the information provided below, answer the high school 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""Provide the necessary calculations, working steps, and final answer.")# Query the modelresponse = client.chat.completions.create(model=MODEL, messages=[{"role": "user", "content": prompt}])prediction = response.choices[0].message.content or ""reference = item["correct_answer"]# Score word-sequence overlap against the referencescore = scorer.score(reference, prediction)["rougeL"].fmeasurescores.append(score)print(f"Question {item['instance']}: ROUGE-L F1 = {score:.3f}")print(f"Average ROUGE-L F1: {sum(scores) / len(scores):.3f}")```</details><details><summary><strong>Example: Explanations — Images</strong></summary>Configuration: `context_text_images__explanation_answer`A vision-capable model receives the question images alongside the text.```pythonimport osimport ioimport base64from datasets import load_datasetfrom openai import OpenAIfrom rouge_score import rouge_scorer# 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-OEQ", "context_text_images__explanation_answer", split="test")# 3. Convert PIL images to base64 data URLsdef 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 compare with reference answersscorer = rouge_scorer.RougeScorer(["rougeL"], use_stemmer=True)scores = []for item in questions:# Construct the question promptprompt = ("Using the information provided below, answer the high school question.\n\n"f"Subject: {item['subject']}\n"f"Domain: {item['domain']}\n\n"f"Context:\n{item['context'] or 'None'}\n\n"f"{item.get('image_context') or ''}\n""The accompanying image(s) are part of the context.\n\n"f"Question:\n{item['question']}\n\n""Use all text and images to provide a clear explanation that answers the question.")# Attach all context images to a multimodal requestcontent = [{"type": "text", "text": prompt}]for i, image in enumerate(item["image"], 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}])prediction = response.choices[0].message.content or ""reference = item["correct_answer"]# Score word-sequence overlap against the referencescore = scorer.score(reference, prediction)["rougeL"].fmeasurescores.append(score)print(f"Question {item['instance']}: ROUGE-L F1 = {score:.3f}")print(f"Average ROUGE-L F1: {sum(scores) / len(scores):.3f}")```</details><details><summary><strong>Example: Multi-part answers — Tables</strong></summary>Configuration: `context_text_table__multi_part_answer`The Markdown table is included directly in the model prompt.```pythonimport osfrom datasets import load_datasetfrom openai import OpenAIfrom rouge_score import rouge_scorer# 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-OEQ", "context_text_table__multi_part_answer", split="test")# 4. Generate predictions and compare with reference answersscorer = rouge_scorer.RougeScorer(["rougeL"], use_stemmer=True)scores = []for item in questions:# Construct the question promptprompt = ("Using the information provided below, answer the high school question.\n\n"f"Subject: {item['subject']}\n"f"Domain: {item['domain']}\n\n"f"Context:\n{item['context'] or 'None'}\n\n"f"{item.get('table_context') or ''}\n"f"Table:\n{item['table']}\n\n"f"Question:\n{item['question']}\n\n""Answer every part of the question clearly and in the order asked.")# Query the modelresponse = client.chat.completions.create(model=MODEL, messages=[{"role": "user", "content": prompt}])prediction = response.choices[0].message.content or ""reference = item["correct_answer"]# Score word-sequence overlap against the referencescore = scorer.score(reference, prediction)["rougeL"].fmeasurescores.append(score)print(f"Question {item['instance']}: ROUGE-L F1 = {score:.3f}")print(f"Average ROUGE-L F1: {sum(scores) / len(scores):.3f}")```</details><details><summary><strong>Example: Short scientific answers — Text</strong></summary>Configuration: `context_text_only__short_answer````pythonimport osfrom datasets import load_datasetfrom openai import OpenAI# 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-OEQ", "context_text_only__short_answer", split="test")# 4. Generate predictions and compare with reference answerscorrect = 0for item in questions:# Construct the question promptprompt = ("Using the information provided below, answer the high school 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""Provide only the short final answer, including units where needed.")# Query the modelresponse = client.chat.completions.create(model=MODEL, messages=[{"role": "user", "content": prompt}])prediction = response.choices[0].message.content or ""reference = item["correct_answer"]# Compare normalized strings (case and whitespace only)predicted = " ".join(prediction.casefold().split())expected = " ".join(reference.casefold().split())correct += predicted == expectedprint(f"Question {item['instance']}: model {prediction!r}, correct {reference!r}")print(f"Normalized exact match: {correct / len(questions):.2%}")```</details>**Note:** Each dataset configuration must be loaded and evaluated separately for benchmarking.## CitationIf you use HighSchoolBench, please cite the dataset archived on Zenodo:```bibtex@dataset{rani2026highschoolbench,author = {Rani, Krishna and D'Souza, Jennifer},title = {HighSchoolBench: A Multimodal Benchmark Constructed from U.S. High-School Standardized Tests},year = {2026},publisher = {Zenodo},version = {v1},doi = {10.5281/zenodo.24169334},url = {https://doi.org/10.5281/zenodo.24169334}}```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+1063-1049