MBPP
MBPP (Mostly Basic Python Problems) is a benchmark of 974 crowd-sourced Python programming problems designed to be solvable by entry-level programmers. Each problem consists of a task description, code solution, and 3 automated test cases covering programming fundamentals and standard library functionality.
Sarvam-30B from Sarvam AI currently leads the MBPP leaderboard with a score of 0.927 across 33 evaluated AI models.
What MBPP measures
MBPP is a text benchmark that evaluates large language models on general and reasoning tasks. LLM Stats tracks 33 models on this benchmark, with a maximum possible score of 100. Current average across reported models is 0.7, with the leader reaching 0.9.
Compare leaders on the best AI for general and best AI for reasoning leaderboards.
Publication
- Paper
- Program Synthesis with Large Language Models
- Authors
- Jacob Austin, Augustus Odena, Maxwell Nye, Maarten Bosma, and 7 others
- Published
- arXiv
- 2108.07732
Abstract
This paper explores the limits of the current generation of large language models for program synthesis in general purpose programming languages. We evaluate a collection of such models (with between 244M and 137B parameters) on two new benchmarks, MBPP and MathQA-Python, in both the few-shot and fine-tuning regimes. Our benchmarks are designed to measure the ability of these models to synthesize short Python programs from natural language descriptions. The Mostly Basic Programming Problems (MBPP) dataset contains 974 programming tasks, designed to be solvable by entry-level programmers. The MathQA-Python dataset, a Python version of the MathQA benchmark, contains 23914 problems that evaluate the ability of the models to synthesize code from more complex text. On both datasets, we find that synthesis performance scales log-linearly with model size. Our largest models, even without finetuning on a code dataset, can synthesize solutions to 59.6 percent of the problems from MBPP using few-shot learning with a well-designed prompt. Fine-tuning on a held-out portion of the dataset improves performance by about 10 percentage points across most model sizes. On the MathQA-Python dataset, the largest fine-tuned model achieves 83.8 percent accuracy. Going further, we study the model's ability to engage in dialog about code, incorporating human feedback to improve its solutions. We find that natural language feedback from a human halves the error rate compared to the model's initial prediction. Additionally, we conduct an error analysis to shed light on where these models fall short and what types of programs are most difficult to generate. Finally, we explore the semantic grounding of these models by fine-tuning them to predict the results of program execution. We find that even our best models are generally unable to predict the output of a program given a specific input.
Sarvam-30B leads with 0.9%, followed by Llama-3.3 Nemotron Super 49B v1 at 0.9% and
Qwen2.5-Coder 32B Instruct at 0.9%.
Progress Over Time
Interactive timeline showing model performance evolution on MBPP
MBPP Leaderboard
| Context | Cost | License | ||||
|---|---|---|---|---|---|---|
| 1 | Sarvam AI | 30B | — | — | ||
| 2 | 50B | — | — | |||
| 3 | Alibaba Cloud / Qwen Team | 32B | — | — | ||
| 4 | OpenBMB | 9B | — | — | ||
| 5 | Alibaba Cloud / Qwen Team | 73B | — | — | ||
| 6 | 8B | — | — | |||
| 7 | Alibaba Cloud / Qwen Team | 34B | — | — | ||
| 7 | Alibaba Cloud / Qwen Team | 33B | — | — | ||
| 9 | Alibaba Cloud / Qwen Team | 7B | — | — | ||
| 10 | Alibaba Cloud / Qwen Team | 15B | — | — | ||
| 11 | Alibaba Cloud / Qwen Team | 235B | — | — | ||
| 12 | Microsoft | 60B | — | — | ||
| 13 | Alibaba Cloud / Qwen Team | 72B | — | — | ||
| 14 | Alibaba Cloud / Qwen Team | 8B | — | — | ||
| 15 | Mistral AI | 22B | — | — | ||
| 16 | Meta | 400B | — | — | ||
| 17 | Google | — | — | — | ||
| 18 | Mistral AI | 24B | — | — | ||
| 19 | Google | 27B | — | — | ||
| 20 | Alibaba Cloud / Qwen Team | 7B | — | — | ||
| 21 | Google | 12B | — | — | ||
| 22 | Mistral AI | 24B | — | — | ||
| 23 | Microsoft | 4B | — | — | ||
| 24 | Meta | 109B | — | — | ||
| 25 | Alibaba Cloud / Qwen Team | 8B | — | — | ||
| 26 | Google | 8B | — | — | ||
| 26 | 2B | — | — | |||
| 28 | Google | 4B | — | — | ||
| 29 | Google | 27B | — | — | ||
| 30 | Google | 8B | — | — | ||
| 30 | 2B | — | — | |||
| 32 | Google | 9B | — | — | ||
| 33 | Google | 1B | — | — |
FAQ
Common questions about MBPP.
More evaluations to explore
Related benchmarks in the same category
A challenging dataset of 448 multiple-choice questions written by domain experts in biology, physics, and chemistry. Questions are Google-proof and extremely difficult, with PhD experts reaching 65% accuracy.
A more robust and challenging multi-task language understanding benchmark that extends MMLU by expanding multiple-choice options from 4 to 10, eliminating trivial questions, and focusing on reasoning-intensive tasks. Features over 12,000 curated questions across 14 domains and causes a 16-33% accuracy drop compared to original MMLU.
All 30 problems from the 2025 American Invitational Mathematics Examination (AIME I and AIME II), testing olympiad-level mathematical reasoning with integer answers from 000-999. Used as an AI benchmark to evaluate large language models' ability to solve complex mathematical problems requiring multi-step logical deductions and structured symbolic reasoning.
Massive Multitask Language Understanding benchmark testing knowledge across 57 diverse subjects including STEM, humanities, social sciences, and professional domains
A verified subset of 500 software engineering problems from real GitHub issues, validated by human annotators for evaluating language models' ability to resolve real-world coding issues by generating patches for Python codebases.
Humanity's Last Exam (HLE) is a multi-modal academic benchmark with 2,500 questions across mathematics, humanities, and natural sciences, designed to test LLM capabilities at the frontier of human knowledge with unambiguous, verifiable solutions