liveBook · Manning

MMLU

As explained in LLMs in Production

MMLU is a benchmark suite that evaluates broad language understanding, world knowledge, and problem-solving across subjects and difficulty levels.

MMLU tests whether a language model can apply knowledge and reasoning across subjects, rather than merely recognize surface-level language patterns. Its questions span history, mathematics, morality, and law, with difficulty ranging from elementary to advanced professional levels. section 4.2.2

MMLU is useful when evaluating:

  • World knowledge beyond narrow language-understanding tasks. section 4.2.2
  • Problem-solving and deeper application of language understanding. section 4.2.2
  • Performance across both general and professionally difficult questions. section 4.2.2

Running an evaluation

A model can be wrapped as a DeepEval language model, moved to CUDA when available, and evaluated with the MMLU benchmark and MMLUTask.

How LLMs in Production covers it

How deep it goes
Tests applied knowledge through elementary-to-professional questions, extending beyond surface understanding without detailing question-by-question scoring.
Examples
Uses questions about history, mathematics, morality, and law, plus a DeepEval evaluation wrapper for a Transformers model.
What it assumes
Assumes familiarity with language models and Transformers while exposing model wrapping, tokenization, generation, and device selection.
What you can do after
Evaluate a language model’s cross-subject knowledge and reasoning with DeepEval’s MMLU benchmark.
How it connects
Connects deeper language understanding with world knowledge, problem-solving, GLUE, and SuperGLUE.

Also explained in

Compare how 2 books explain MMLU →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of LLMs in Production. The section links point to the parts of the book it draws on.