In short.
Mostly Basic Python Problems (MBPP) is a dataset for developers and researchers evaluating AI-generated Python code, but unclear task descriptions and inconsistent split documentation require care. Its entry-level programming tasks include reference solutions and three automated test cases per problem, according to the card. The full configuration contains 974 records and the sanitized configuration contains 427 across the metadata's four splits. The sanitized version received additional annotation to improve descriptions. No dataset loading, code execution or model evaluation was performed, so runtime compatibility, correctness and performance remain unassessed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete README.md at [https://huggingface.co/datasets/google-research-datasets/mbpp/raw/4bb6404fdc6cacfda99d4ac4205087b89d32030c/README.md], including embedded metadata, examples, the CC-BY-4.0 notice and citation. Referenced dataset files, other folders, the linked repository and the paper are excluded. No code or loading commands were executed; dataset-wide correctness, runtime compatibility, model performance and current behavior remain unassessed.
The overview
Identity
MBPP stands for Mostly Basic Python Problems. Google Research is identified as its curator, and the card describes an internal Google crowdsourcing effort. It accompanies the 2021 paper Program Synthesis with Large Language Models.
The resource contains English task descriptions and Python solutions. This account concerns the dataset card at source revision 4bb6404fdc6cacfda99d4ac4205087b89d32030c.
Assessment
MBPP offers a concrete starting point for evaluating whether a model can turn short programming instructions into Python solutions. Its descriptions, reference code and assertions provide the components for an evaluation.
Its entry-level scope means results should be interpreted as performance on these tasks. Passing the supplied assertions would not, by itself, establish general software reliability. The card provides no model scores or evidence of production suitability.
Users
The clearest audience is developers and researchers comparing code-generating models on basic Python problems. Beginners can inspect the descriptions, solutions and assertions to understand how code-generation evaluation works.
The documented tasks cover programming fundamentals and standard-library functionality. Suitability for evaluating other languages, large codebases or complete application development is not established.
Capabilities
The full configuration provides task_id, text, code, test_list, test_setup_code and challenge_test_list. These represent the task identifier, description, reference solution, ordinary assertions, test setup and additional challenge assertions. The shown full example has an empty challenge_test_list, so additional tests should not be assumed for every task.
The sanitized configuration provides source_file, task_id, prompt, code, test_imports and test_list. The card leaves the meaning of source_file unspecified. It describes additional annotation intended to improve task descriptions.
Using it
Requirements
Evaluating generated solutions requires a Python execution environment and support for the setup code or imports attached to each task. The card explicitly warns that generated code can be harmful and should run in a safe environment.
The required Python version, package versions, complete dependency list, hardware and execution limits are unspecified. Model access is needed to generate new candidate solutions, but the card does not prescribe a provider or model.
Mechanism
The intended evaluation pattern is to give a model a task description, obtain Python code, and evaluate that code using the task's assertions and required setup. Reference solutions are also included in the records.
The prompt split supplies examples for few-shot prompting, where examples accompany a new task; the card says this split is not for training. Exact prompt formatting, generation settings, number of attempts, scoring method and treatment of execution failures are not specified.
Setup
The card illustrates loading with load_dataset("mbpp") for the default full configuration and load_dataset("mbpp", "sanitized") for the sanitized configuration. It does not provide an installation procedure or package version, and these calls were not executed.
The metadata lists full splits as train 374, test 500, validation 90 and prompt 10. Sanitized splits are train 120, test 257, validation 43 and prompt 7. However, the displayed loading examples put all 974 or 427 records into a single test split, while the prose calls validation evaluation. Inspect the actual loaded split names and counts before defining an evaluation.
Example
Sanitized task 2 asks for shared elements between two lists. Its reference solution constructs a tuple from a set intersection. The first supplied assertion passes tuples containing (3, 4, 5, 6) and (5, 7, 4, 10), then compares the result as a set with {4, 5}.
The assertions check shared membership without requiring a particular output order. Although the prompt says lists, the shown inputs are tuples. This illustrates why task wording, reference code and assertions should be examined together. The example was not executed.
Assessment & evidence
Limitations
The card acknowledges that some task descriptions may not express enough information to solve the problem. Additional annotation in the sanitized version addresses description quality, but the card does not establish that every ambiguity was removed.
Three supplied tests per problem cannot establish correctness for every possible input. Broader test coverage, model exposure to these tasks during training, and generalization to real software projects are not assessed. The card also contains unresolved split-documentation inconsistencies and provides no substantive discussion of biases.
Reasoning
The sanitized configuration is a reasonable starting choice when clearer descriptions matter, because improving descriptions was the stated purpose of its additional annotation. This does not establish that its tasks or solutions are uniformly correct.
For interpretable comparisons, record the configuration, source revision, split membership, model inputs and scoring choices. The configurations contain different records and fields, so scores should not be treated as interchangeable without accounting for those differences.
Alternatives
The documented choice within MBPP is between the full configuration, which contains more records and a challenge-test field, and the sanitized configuration, which underwent additional description review and uses different fields.
The supplied card does not compare MBPP with other benchmarks. Relative quality, difficulty and coverage against external alternatives are unknown.
Evidence
The evidence consists of the dataset card, including configuration metadata, split counts, field descriptions, two example records, provenance statements and the licence notice. The exact source is [https://huggingface.co/datasets/google-research-datasets/mbpp/raw/4bb6404fdc6cacfda99d4ac4205087b89d32030c/README.md].
The card links to the Google Research repository [https://github.com/google-research/google-research/tree/master/mbpp] and the accompanying paper [https://arxiv.org/abs/2108.07732]. Their contents and the underlying dataset files are outside this evidence. No dataset loading, reference-solution execution or model evaluation was performed.
Access & freshness
Costs
The card does not state dataset access charges, model inference prices or evaluation compute costs. Total cost is unknown, and no monetary estimate can be established from the supplied evidence.
Rights
The card declares CC-BY-4.0 in both its metadata and licensing section. It names Google Research as curator and supplies a citation for Austin and colleagues' 2021 paper.
The full licence text and detailed reuse conditions are not reproduced. Consult those terms before reuse or redistribution, and retain the supplied attribution and notices. Rights covering external models, their outputs or additional dependencies are not established by this card.
Freshness
The source address pins the card to revision 4bb6404fdc6cacfda99d4ac4205087b89d32030c. The card references a 2021 paper but does not state its own last-updated date.
Compatibility with current dataset-loading software and changes in later revisions are unknown. The conflicting split descriptions make it particularly important to verify the structure of the version actually used.
Actions
Choose full or sanitized according to the evaluation goal, then verify the actual fields, split names and counts. Check representative descriptions against their solutions and assertions, especially where the intended behavior is unclear.
Define model inputs and scoring before evaluation, keep reference solutions separate from generation inputs, and use the prompt split according to its documented few-shot role. Execute generated Python only in a safely isolated environment. Record the source revision and consult the full CC-BY-4.0 terms before redistribution.
