megascience-eval
MegaScience: Pushing the Frontiers of Post-Training Datasets for Science Reasoning — Fan et al. (2025) (arXiv:2507.16812, 2025)
What this evaluates
Evaluates large language models' scientific reasoning capabilities across general science, specialized domains (chemistry, CS, medicine, physics), and mathematical problem-solving. It tests the model's ability to follow chain-of-thought prompting, extract precise answers (including units), and correctly identify multiple-choice options.
Datasets
- MegaScience Evaluation Suite (MMLU, GPQA-Diamond, MMLU-Pro, SuperGPQA, SciBench, OlympicArena, ChemBench, CS-Bench, MedQA, MedMCQA, PubMedQA, PIQA, GSM8K, MATH, MATH500) — total ?; splits: test (-1)
Metrics
EM (Exact Match) (primary) — range: [0, 1]
- Exact match accuracy between the extracted model prediction and the gold answer. For computational problems requiring units, both the numerical value and the unit must match exactly.
Input / output format
Input: Benchmark questions (multiple-choice or computational problems) provided with chain-of-thought prompting templates.
Output: Free-text model responses containing reasoning steps and a final answer, which may be formatted using \boxed{}, option labels, or plain text.
Scoring recipe
def score(predictions, golds):
matches = 0
for pred, gold in zip(predictions, golds):
# Stage 1: Identify answer indicator phrases
answer = extract_by_indicator(pred)
# Stage 2: Fallback to formatting patterns (\boxed{}, \mathrm{}, etc.)
if not answer:
answer = extract_by_format(pred)
# Stage 3: For MCQs, match option content if label extraction fails
if not answer:
answer = match_option_label(pred)
# Stage 4: Exact match (including unit if required)
if normalize(answer) == normalize(gold):
matches += 1
return matches / len(predictions)
Common pitfalls
- Relying solely on \boxed{} extraction misses valid answers that lack this formatting, incorrectly penalizing models.
- Failing to match option labels for multiple-choice questions when direct extraction of the label fails.
- Ignoring unit requirements for computational problems, leading to false negatives when only the numerical value matches.
Evidence (verbatim from paper)
EM (unit) represents exact match accuracy for both the numerical answer and its corresponding unit. To enhance extraction precision, we develop a comprehensive set of rule-based methods tailored to extract answers across diverse question types. Our answer extraction method operates through a two-stage process: (1) identifying answer indicator phrases that signal the presence of a final answer, and (2) extracting the answer content from various formatting patterns.
Citation
@misc{fan2025megascience,
title={MegaScience: Pushing the Frontiers of Post-Training Datasets for Science Reasoning},
author={Fan et al. (2025)},
year={2025},
note={arXiv:2507.16812}
}
1---2name: megascience-eval3description: Evaluates large language models' scientific reasoning capabilities across general science, specialized domains (chemistry, CS, medicine, physics), and mathematical problem-solving. It tests the model's ability to follow chain-of-thought prompting, extract precise answers (including units), and correctly identify multiple-choice options. Use when the user wants to benchmark on MegaScience Evaluation Suite (MMLU, GPQA-Diamond, MMLU-Pro, SuperGPQA, SciBench, OlympicArena, ChemBench, CS-Bench, MedQA, MedMCQA, PubMedQA, PIQA, GSM8K, MATH, MATH500), or asks about evaluating this task. Reports EM (Exact Match).4metadata:5 source: https://skillmd.com/skills/qhjqhj00/megascience-eval6 skill_kind: dataset_eval7 source_arxiv: 2507.168128 bibtex_key: fan2025megascience9 confidence: high10---1112# megascience-eval1314> MegaScience: Pushing the Frontiers of Post-Training Datasets for Science Reasoning — Fan et al. (2025) (arXiv:2507.16812, 2025)1516## What this evaluates1718Evaluates large language models' scientific reasoning capabilities across general science, specialized domains (chemistry, CS, medicine, physics), and mathematical problem-solving. It tests the model's ability to follow chain-of-thought prompting, extract precise answers (including units), and correctly identify multiple-choice options.1920## Datasets2122- **MegaScience Evaluation Suite (MMLU, GPQA-Diamond, MMLU-Pro, SuperGPQA, SciBench, OlympicArena, ChemBench, CS-Bench, MedQA, MedMCQA, PubMedQA, PIQA, GSM8K, MATH, MATH500)** — total ?; splits: test (-1)2324## Metrics2526- `EM (Exact Match)` **(primary)** — range: [0, 1]27 - Exact match accuracy between the extracted model prediction and the gold answer. For computational problems requiring units, both the numerical value and the unit must match exactly.2829## Input / output format3031**Input**: Benchmark questions (multiple-choice or computational problems) provided with chain-of-thought prompting templates.3233**Output**: Free-text model responses containing reasoning steps and a final answer, which may be formatted using \boxed{}, option labels, or plain text.3435## Scoring recipe3637```python38def score(predictions, golds):39 matches = 040 for pred, gold in zip(predictions, golds):41 # Stage 1: Identify answer indicator phrases42 answer = extract_by_indicator(pred)43 # Stage 2: Fallback to formatting patterns (\boxed{}, \mathrm{}, etc.)44 if not answer:45 answer = extract_by_format(pred)46 # Stage 3: For MCQs, match option content if label extraction fails47 if not answer:48 answer = match_option_label(pred)49 # Stage 4: Exact match (including unit if required)50 if normalize(answer) == normalize(gold):51 matches += 152 return matches / len(predictions)53```5455## Common pitfalls5657- Relying solely on \boxed{} extraction misses valid answers that lack this formatting, incorrectly penalizing models.58- Failing to match option labels for multiple-choice questions when direct extraction of the label fails.59- Ignoring unit requirements for computational problems, leading to false negatives when only the numerical value matches.6061## Evidence (verbatim from paper)6263> EM (unit) represents exact match accuracy for both the numerical answer and its corresponding unit. To enhance extraction precision, we develop a comprehensive set of rule-based methods tailored to extract answers across diverse question types. Our answer extraction method operates through a two-stage process: (1) identifying answer indicator phrases that signal the presence of a final answer, and (2) extracting the answer content from various formatting patterns.6465## Citation6667```bibtex68@misc{fan2025megascience,69 title={MegaScience: Pushing the Frontiers of Post-Training Datasets for Science Reasoning},70 author={Fan et al. (2025)},71 year={2025},72 note={arXiv:2507.16812}73}74```7576- arXiv: 2507.16812