Update dataset card
Browse files794 unmodified lines7957967977987988007998008028018028038048058068078086 unmodified lines81581681781881982082182238 unmodified lines8618628638648658668678683 unmodified lines87287387487587687787887953 unmodified lines9339349359369379389399403 unmodified lines94494594694794894995095140 unmodified lines9929939949959969979989993 unmodified lines1003100410051006100710081009101037 unmodified lines104810491050103410511052105310541037105510561057794 unmodified lineshf download SciKnowOrg/HighSchoolBench-OEQ --repo-type dataset --include "subsets/*" --local-dir HighSchoolBench-OEQ```
## Benchmarking our dataset on LLMs using the OpenAI API
The 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.## Benchmarking Data Using LLMs or VLMs via OpenAI-Compatible APIs
**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.The following examples demonstrate how to benchmark language and vision-language models on individual HighSchoolBench-OEQ configurations using the OpenAI API. Text, image, and table configurations are illustrated below. Each example evaluates the full test split of the selected configuration using **ROUGE-L F1** for worked solutions, explanations, and multi-part answers, or **normalized exact match** for short answers.
Examples of models that can be used include Llama 3.3 70B, Qwen3, and DeepSeek-V3 for text-based inputs, and GPT-4.1-mini, GPT-4o, Qwen2.5-VL, and Llama 3.2 Vision for image-based inputs.
> **Note:** 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. ROUGE-L measures textual overlap with reference answers and does not, by itself, establish whether a response is scientifically correct.
```bashpip install datasets openai rouge-score pillow6 unmodified lines
This example evaluates text-based worked solutions against reference answers using ROUGE-L.
In the example below, we use the OpenAI model `gpt-4.1-mini`. The code can be adapted to other OpenAI-compatible APIs, such as GWDG and OpenRouter, by changing the API key, base URL, and model name.
```pythonimport osfrom datasets import load_dataset38 unmodified linesprint(f"Average ROUGE-L F1: {sum(scores) / len(scores):.3f}")```
**Smoke test (five question IDs):** IDs: `[insert IDs]`. Mean ROUGE-L F1: **[0.000]**.
</details>
<details>3 unmodified lines
This example evaluates image-supported scientific explanations using a multimodal model and ROUGE-L.
In the example below, we use the OpenAI model `gpt-4.1-mini`. The code can be adapted to other OpenAI-compatible APIs, such as GWDG and OpenRouter, by changing the API key, base URL, and model name.
```pythonimport osimport io53 unmodified linesprint(f"Average ROUGE-L F1: {sum(scores) / len(scores):.3f}")```
**Smoke test (five question IDs):** IDs: `[insert IDs]`. Mean ROUGE-L F1: **[0.000]**.
</details>
<details>3 unmodified lines
This example evaluates multi-part answers based on Markdown-formatted tables using ROUGE-L.
In the example below, we use the OpenAI model `gpt-4.1-mini`. The code can be adapted to other OpenAI-compatible APIs, such as GWDG and OpenRouter, by changing the API key, base URL, and model name.
```pythonimport osfrom datasets import load_dataset40 unmodified linesprint(f"Average ROUGE-L F1: {sum(scores) / len(scores):.3f}")```
**Smoke test (five question IDs):** IDs: `[insert IDs]`. Mean ROUGE-L F1: **[0.000]**.
</details>
<details>3 unmodified lines
This example evaluates short scientific answers using normalized exact match.
In the example below, we use the OpenAI model `gpt-4.1-mini`. The code can be adapted to other OpenAI-compatible APIs, such as GWDG and OpenRouter, by changing the API key, base URL, and model name.
```pythonimport osfrom datasets import load_dataset37 unmodified linesprint(f"Normalized exact match: {correct / len(questions):.2%}")```
</details>**Smoke test (five question IDs):** IDs: `[insert IDs]`. Normalized exact-match accuracy: **[X/5 (XX%)]**.
</details>
**Note:** Each dataset configuration must be loaded and evaluated separately for benchmarking.
## Citation
README.md+22-5