MMLU
BenchmarkFree57-subject knowledge benchmark — 15K+ questions across STEM, humanities, professional domains.
Capabilities7 decomposed
few-shot multidomain knowledge evaluation across 57 subjects
Medium confidenceEvaluates language models on 15,908 multiple-choice questions organized hierarchically across 57 subjects (STEM, humanities, social sciences, professional) using few-shot prompting methodology. The system generates subject-specific prompts by formatting examples and questions, submits them to models, and aggregates accuracy scores at subject and category levels. This approach tests both breadth of knowledge and depth of reasoning across diverse domains without requiring task-specific fine-tuning.
Organizes 15,908 questions into a hierarchical taxonomy of 57 subjects with explicit category groupings (STEM, humanities, social sciences, professional), enabling fine-grained performance analysis across knowledge domains rather than treating evaluation as a monolithic task. The few-shot evaluation framework uses subject-specific example formatting via format_subject() and format_example() functions to maintain consistency across diverse question types.
MMLU is the most widely reported general LLM benchmark with standardized evaluation across 57 subjects, making results directly comparable across published papers and model releases, whereas domain-specific benchmarks (SQuAD, MATH, HumanEval) only measure narrow capabilities.
context-aware prompt generation with few-shot examples
Medium confidenceDynamically constructs evaluation prompts by formatting subject names, selecting few-shot examples from the training set, and assembling them into a coherent prompt structure that fits within model context windows. The gen_prompt() function orchestrates this process by calling format_subject() to normalize subject names and format_example() to structure individual question-answer pairs, then concatenating them with the target question. This ensures consistent prompt formatting across all 57 subjects while maintaining semantic clarity.
Implements a modular prompt generation pipeline with separate formatting functions (format_subject, format_example, gen_prompt) that maintain consistency across 57 diverse subjects. The architecture allows subject-specific customization while preserving a unified evaluation interface, enabling researchers to modify prompt templates without changing the core evaluation loop.
Separates prompt formatting logic from evaluation logic, making it easier to experiment with different prompt structures or few-shot strategies compared to monolithic evaluation scripts where formatting is embedded in the main loop.
context-window-aware prompt truncation via bpe tokenization
Medium confidenceEnsures prompts fit within model context windows by tokenizing text using Byte Pair Encoding (BPE), truncating token sequences to a maximum of 2048 tokens, and decoding back to text. The crop.py module implements this via BPE encoder download (if not cached locally), token truncation, and safe decoding that preserves text integrity. This prevents out-of-context errors when evaluating models with limited context windows while maintaining semantic coherence of the prompt.
Implements automatic context-window management using BPE tokenization with local caching of encoder resources, enabling transparent prompt adaptation without requiring model-specific configuration. The architecture downloads and caches the encoder on first use, avoiding repeated network calls while maintaining compatibility with OpenAI's tokenization standard.
Provides automatic, transparent context truncation compared to manual prompt engineering or model-specific context management, reducing evaluation setup complexity for researchers testing multiple models with different context constraints.
multi-level performance aggregation and hierarchical result reporting
Medium confidenceAggregates model accuracy scores across multiple levels of granularity: per-question (binary correct/incorrect), per-subject (e.g., abstract algebra, anatomy), per-category (e.g., STEM, humanities, social sciences), and overall. The evaluation process iterates through all 15,908 questions, computes subject-level accuracy by averaging question results, then aggregates to category and overall scores. This hierarchical structure enables detailed performance analysis and comparison across knowledge domains.
Implements a three-level aggregation hierarchy (question → subject → category → overall) that maps directly to the MMLU dataset structure, enabling fine-grained performance analysis while maintaining compatibility with published leaderboard results. The architecture separates aggregation logic from evaluation logic, allowing custom analysis without modifying core evaluation code.
Provides hierarchical result reporting across 57 subjects and 4 categories, enabling detailed performance analysis compared to single-number benchmarks (e.g., overall accuracy only) that obscure domain-specific strengths and weaknesses.
model calibration measurement with multiple metrics and binning strategies
Medium confidenceMeasures how well-calibrated model confidence predictions are using multiple calibration metrics (Expected Calibration Error, Static Calibration Error, Root Mean Square Calibration Error, Adaptive Calibration Error, Threshold Adaptive Calibration Error). The calib_tools.py module implements various binning schemes (uniform, adaptive) and normalization methods to compute calibration across prediction classes. This enables analysis of whether model confidence scores accurately reflect prediction correctness, identifying overconfident or underconfident models.
Implements five distinct calibration metrics (ECE, SCE, RMSCE, ACE, TACE) with pluggable binning strategies (uniform, adaptive) and normalization methods, enabling comprehensive calibration analysis beyond single-metric approaches. The modular architecture allows researchers to experiment with different calibration definitions and binning strategies without reimplementing core logic.
Provides multiple calibration metrics and binning strategies compared to single-metric approaches (e.g., ECE only), enabling more nuanced understanding of model confidence reliability and detection of calibration issues that single metrics might miss.
flan model evaluation with standardized inference pipeline
Medium confidenceImplements a complete evaluation pipeline specifically optimized for FLAN (Finetuned LAnguage Net) models, handling model loading, inference, and result collection. The evaluate_flan.py module orchestrates the full evaluation workflow: loading FLAN models, generating subject-specific prompts, executing inference with consistent hyperparameters (temperature, max tokens), collecting predictions, and aggregating results. This standardized pipeline ensures reproducible evaluation across FLAN model variants and versions.
Provides an end-to-end evaluation pipeline specifically optimized for FLAN models, handling model loading, inference, and result aggregation with consistent hyperparameters. The main() function orchestrates the complete workflow, enabling one-command evaluation of FLAN model variants without manual prompt engineering or result processing.
Offers a standardized FLAN evaluation pipeline compared to generic model evaluation scripts, ensuring reproducible results and enabling fair comparison across FLAN model variants and versions.
structured subject category taxonomy and hierarchical organization
Medium confidenceDefines and maintains a hierarchical taxonomy of 57 subjects organized into 4 high-level categories (STEM, humanities, social sciences, professional). The categories.py module encodes this taxonomy as a structured data structure (likely a dictionary or class hierarchy) that maps subjects to categories, enabling consistent categorization across the evaluation pipeline. This taxonomy is used throughout the evaluation process for subject-level result aggregation, category-level analysis, and leaderboard organization.
Encodes a structured taxonomy of 57 subjects into 4 categories as a centralized, reusable data structure (categories.py), enabling consistent categorization across all evaluation and analysis code. This separation of taxonomy definition from evaluation logic allows researchers to analyze results at multiple levels of granularity without duplicating category mappings.
Provides a centralized, version-controlled taxonomy compared to ad-hoc category definitions scattered across analysis scripts, ensuring consistency and enabling reproducible category-level analysis across publications.
Capabilities are decomposed by AI analysis. Each maps to specific user intents and improves with match feedback.
Related Artifactssharing capabilities
Artifacts that share capabilities with MMLU, ranked by overlap. Discovered automatically through the match graph.
Qwen3-8B
text-generation model by undefined. 88,95,081 downloads.
Qwen: Qwen3 32B
Qwen3-32B is a dense 32.8B parameter causal language model from the Qwen3 series, optimized for both complex reasoning and efficient dialogue. It supports seamless switching between a "thinking" mode for...
OpenAI: GPT-5.2
GPT-5.2 is the latest frontier-grade model in the GPT-5 series, offering stronger agentic and long context perfomance compared to GPT-5.1. It uses adaptive reasoning to allocate computation dynamically, responding quickly...
MiniMax: MiniMax M2.1
MiniMax-M2.1 is a lightweight, state-of-the-art large language model optimized for coding, agentic workflows, and modern application development. With only 10 billion activated parameters, it delivers a major jump in real-world...
OPT
Open Pretrained Transformers (OPT) by Facebook is a suite of decoder-only pre-trained transformers. [Announcement](https://ai.facebook.com/blog/democratizing-access-to-large-scale-language-models-with-opt-175b/).
Llama-3.2-3B-Instruct
text-generation model by undefined. 36,85,809 downloads.
Best For
- ✓LLM researchers and practitioners establishing model performance baselines
- ✓Teams evaluating proprietary or open-source models against industry standards
- ✓Organizations comparing multiple models before production deployment
- ✓Academic researchers publishing model capabilities in peer-reviewed venues
- ✓Researchers implementing few-shot evaluation protocols for language models
- ✓Teams building custom benchmarks that require consistent prompt formatting across domains
- ✓Developers extending MMLU to new subjects or question types
- ✓Evaluating models with context windows smaller than typical MMLU prompt lengths (~1500-2000 tokens)
Known Limitations
- ⚠Multiple-choice format may not capture nuanced reasoning or partial credit for partially correct answers
- ⚠Few-shot prompting performance varies significantly with example selection and ordering (sensitivity to prompt engineering)
- ⚠No evaluation of reasoning transparency — only final answer correctness is measured
- ⚠Subject distribution reflects English-language academic knowledge; limited coverage of non-Western knowledge systems
- ⚠Static benchmark — does not adapt to model capabilities or provide difficulty scaling
- ⚠Few-shot example selection is deterministic (fixed examples per subject) — does not optimize for example relevance or diversity
Requirements
Input / Output
UnfragileRank
UnfragileRank is computed from adoption signals, documentation quality, ecosystem connectivity, match graph feedback, and freshness. No artifact can pay for a higher rank.
About
Massive Multitask Language Understanding. 15,908 questions across 57 subjects (STEM, humanities, social sciences, professional). Tests broad knowledge and problem-solving. The most widely reported general LLM benchmark.
Categories
Alternatives to MMLU
Build high-quality LLM apps - from prototyping, testing to production deployment and monitoring.
Compare →Amplication brings order to the chaos of large-scale software development by creating Golden Paths for developers - streamlined workflows that drive consistency, enable high-quality code practices, simplify onboarding, and accelerate standardized delivery across teams.
Compare →Are you the builder of MMLU?
Claim this artifact to get a verified badge, access match analytics, see which intents users search for, and manage your listing.
Get the weekly brief
New tools, rising stars, and what's actually worth your time. No spam.
Data Sources
Looking for something else?
Search →