Compare LLM Performance on MMLU Benchmark
Promptfoo MMLU benchmark comparing GPT-5 vs GPT-5 Mini with step-by-step reasoning prompts and format-checking assertions.
Why it matters
Evaluate and compare the performance of different large language models, specifically GPT-5 and GPT-5 Mini, on the MMLU benchmark. This asset helps users understand the capabilities and differences between these models for complex reasoning tasks.
Outcomes
What it gets done
Run MMLU benchmark tests for specified LLMs.
Analyze and compare the results of the benchmark tests.
Summarize the performance differences between GPT-5 and GPT-5 Mini.
Provide insights into model strengths and weaknesses based on MMLU scores.
Install
Add it to your toolbox
Run in your project directory:
curl -fsSL https://spark.entire.vc/get/pfoo-compare-gpt-5-vs-gpt-5-mini-mmlu | bash Overview
Compare Gpt 5 Vs Gpt 5 Mini Mmlu
A promptfoo MMLU benchmark comparing GPT-5 and GPT-5 Mini on reasoning-heavy subjects (Abstract Algebra, Formal Logic) using a chain-of-thought prompt, with regex-based answer extraction and rubric-graded reasoning quality. Use when benchmarking GPT-5 vs GPT-5 Mini or similar models on structured academic reasoning, or as a template for HuggingFace-dataset-driven promptfoo evals.
What it does
This is a promptfoo evaluation configuration benchmarking GPT-5 against GPT-5 Mini on the MMLU (Massive Multitask Language Understanding) academic benchmark, using an enhanced chain-of-thought prompt rather than a bare question. The shared prompt template instructs the model to act as "an expert test taker," present the question with its four multiple-choice options (A-D), think through the answer step by step, and conclude with a strictly formatted final line: "Therefore, the answer is A/B/C/D." Both providers are configured with max_tokens: 1000 to allow room for the requested reasoning trace before the final answer.
Its defaultTest assertion block applies three checks to every question: latency must stay under 60 seconds (a notably generous threshold reflecting that step-by-step reasoning takes longer than a bare answer), an llm-rubric model-graded assertion confirms the response actually includes clear step-by-step reasoning rather than just an answer, and a regex assertion enforces the exact required output format ("Therefore, the answer is [ABCD]") so automated grading can reliably extract the final choice. Test cases are pulled directly from HuggingFace's cais/mmlu dataset via promptfoo's huggingface:// dataset provider, starting deliberately with reasoning-heavy subjects - Abstract Algebra and Formal Logic, 10 questions each - chosen specifically because that's where improvements from the enhanced step-by-step prompting are expected to be most visible between the full and mini model.
When to use - and when NOT to
Use this configuration when benchmarking GPT-5 against GPT-5 Mini, or as a template for comparing any two models, on structured academic multiple-choice reasoning, especially when evaluating whether chain-of-thought prompting narrows the capability gap between a full-size and mini model on logic-heavy subjects.
It is scoped to two specific MMLU subjects (Abstract Algebra, Formal Logic) at a sample size of 10 questions each - it is not a full MMLU run across all 57 subjects, so results here indicate a targeted, reasoning-heavy slice rather than comprehensive benchmark coverage.
Inputs and outputs
Input is MMLU multiple-choice questions pulled live from HuggingFace's cais/mmlu dataset for the Abstract Algebra and Formal Logic subsets. Output is promptfoo's evaluation report comparing GPT-5 and GPT-5 Mini's accuracy (via the regex-extracted final answer), reasoning quality (via the llm-rubric check), and response latency for each question.
- huggingface://datasets/cais/mmlu?split=test&subset=abstract_algebra&config=abstract_algebra&limit=10
Integrations
Built on the promptfoo evaluation framework, pulling test data directly from HuggingFace Datasets (cais/mmlu) via promptfoo's dataset-provider syntax, and targeting OpenAI's GPT-5 and GPT-5 Mini models with a shared chain-of-thought prompt template.
Who it's for
Developers or researchers comparing GPT-5 and GPT-5 Mini's academic reasoning performance, or building similar promptfoo evaluations that pull test cases directly from HuggingFace benchmark datasets with automated regex-based answer extraction.
Source README
yaml-language-server: $schema=https://promptfoo.dev/config-schema.json
description: GPT-5 vs gpt-5-mini MMLU comparison with enhanced prompting
| prompts: |
|---|
You are an expert test taker. Please solve the following multiple choice question step by step.
Question: {{question}}
Options:
A) {{choices[0]}}
B) {{choices[1]}}
C) {{choices[2]}}
D) {{choices[3]}}
Think through this step by step, then provide your final answer in the format "Therefore, the answer is A/B/C/D."
providers:
- id: openai:gpt-5
config:
max_tokens: 1000 - id: openai:gpt-5-mini
config:
max_tokens: 1000
defaultTest:
assert:
- type: latency
threshold: 60000
- type: llm-rubric
value: Response includes clear step-by-step reasoning
- type: regex
value: 'Therefore, the answer is [ABCD]'
tests:
Start with reasoning-heavy subjects where improvements are most visible
- huggingface://datasets/cais/mmlu?split=test&subset=abstract_algebra&config=abstract_algebra&limit=10
- huggingface://datasets/cais/mmlu?split=test&subset=formal_logic&config=formal_logic&limit=10
FAQ
Common questions
Discussion
Questions & comments · 0
Sign In Sign in to leave a comment.