﻿# MBPP: compare task descriptions with released tests

Use MBPP task identities, full and sanitized schemas, prompting partitions, and executable tests without mistaking a few assertions for a complete specification.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/data-guide-mbpp-natural-language-tests/
Language: en

## Choose the programming problem variant

MBPP supplies short Python programming tasks designed for entry-level programmers. The [original paper](https://arxiv.org/abs/2108.07732) investigates synthesizing programs from natural-language descriptions in few-shot and fine-tuning settings. The [release repository](https://github.com/google-research/google-research/tree/master/mbpp) distinguishes the full collection from a hand-verified sanitized subset. These variants should be named explicitly: an edited description can remove ambiguity, and a smaller subset changes which problems contribute to the result. Neither variant should be substituted silently in a comparison.

## Inspect the configuration-specific schema

The [Google Research Datasets card](https://huggingface.co/datasets/google-research-datasets/mbpp/blob/main/README.md) lists different fields for full and sanitized configurations. The full schema includes `text`, `code`, `test_list`, `test_setup_code`, and `challenge_test_list`; the sanitized schema uses `prompt` and `test_imports` alongside task identity, solution, and tests. A loader that assumes all descriptions live in the same field can produce empty prompts without raising an obvious formatting error. Preserve setup or imports needed by the checks rather than appending them inconsistently across candidates.

## Separate demonstration tasks from training tasks

The release assigns task identities to testing, few-shot prompting, fine-tuning validation, and training. The sanitized subset inherits those groupings. A prompt partition is not an invitation to merge demonstration examples into model training while describing the run as the original evaluation. Store task-ID membership independently of row position, following [provenance practices](/journal/document-markdown-json-provenance/). Current card metadata and older code examples may expose different-looking split summaries, so verify the selected configuration instead of copying a historical snippet's denominator.

## State which assertions the model can see

The paper and repository discuss prompts that include tests. Showing released checks in a prompt measures a different condition from generating a solution from the description alone. Keep visible demonstrations separate from checks reserved for scoring. A program can satisfy a small assertion list yet behave incorrectly on an untested input. For an editorial error study, inspect boundary conditions, data types, and return conventions implied by the description, without presenting newly invented tests as part of the official benchmark.

## Report execution outcomes and exposure limits

Identify the Python environment, candidate extraction rule, and treatment of syntax errors or timeouts before computing success. A textual match to the reference solution is unnecessary when another program satisfies the intended task, while test success remains limited by test coverage. Use [deduplication and memorization analysis](/journal/training-deduplication-memorization/) when pretraining data may contain public MBPP statements or solutions. The benchmark is useful for controlled short-function synthesis; it does not establish repository maintenance ability or correctness for arbitrary programs. Preserve the exact task set and evaluation conditions with each result.
