Update dataset card
Browse files794 unmodified lines7957967977987998008018028038048056 unmodified lines81281381481581681738 unmodified lines8568578588598608613 unmodified lines86586686786886987053 unmodified lines9249259269279289293 unmodified lines93393493593693793840 unmodified lines9799809819829839843 unmodified lines98898999099199299337 unmodified lines1031103210331034103510361037103810391040794 unmodified lineshf 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 pillow6 unmodified linesThis example evaluates text-based worked solutions against reference answers using ROUGE-L.```pythonimport osfrom datasets import load_dataset38 unmodified linesprint(f"Average ROUGE-L F1: {sum(scores) / len(scores):.3f}")```</details><details>3 unmodified linesThis example evaluates image-supported scientific explanations using a multimodal model and ROUGE-L.```pythonimport osimport io53 unmodified linesprint(f"Average ROUGE-L F1: {sum(scores) / len(scores):.3f}")```</details><details>3 unmodified linesThis example evaluates multi-part answers based on Markdown-formatted tables using ROUGE-L.```pythonimport osfrom datasets import load_dataset40 unmodified linesprint(f"Average ROUGE-L F1: {sum(scores) / len(scores):.3f}")```</details><details>3 unmodified linesThis example evaluates short scientific answers using normalized exact match.```pythonimport osfrom datasets import load_dataset37 unmodified linesprint(f"Normalized exact match: {correct / len(questions):.2%}")```</details>**Note:** Each dataset configuration must be loaded and evaluated separately for benchmarking.## Citation794 unmodified lines7957967977987998008018028038048058068078086 unmodified lines81581681781881982082182238 unmodified lines8618628638648658668678683 unmodified lines87287387487587687787887953 unmodified lines9339349359369379389399403 unmodified lines94494594694794894995095140 unmodified lines9929939949959969979989993 unmodified lines1003100410051006100710081009101037 unmodified lines1048104910501051105210531054105510561057794 unmodified lineshf download SciKnowOrg/HighSchoolBench-OEQ --repo-type dataset --include "subsets/*" --local-dir HighSchoolBench-OEQ```## Benchmarking Data Using LLMs or VLMs via OpenAI-Compatible APIsThe 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 linesThis 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 linesThis 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 linesThis 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 linesThis 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%}")```**Smoke test (five question IDs):** IDs: `[insert IDs]`. Normalized exact-match accuracy: **[X/5 (XX%)]**.</details>## Citation
README.md+22-5