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.

Paper
About this benchmark

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

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 AISarvam-30B leads with 0.9%, followed by NVIDIALlama-3.3 Nemotron Super 49B v1 at 0.9% and Alibaba Cloud / Qwen TeamQwen2.5-Coder 32B Instruct at 0.9%.

Progress Over Time

Interactive timeline showing model performance evolution on MBPP

State-of-the-art frontier
Open
Proprietary

MBPP Leaderboard

33 models
ContextCostLicense
1
Sarvam AI
Sarvam AI
30B
250B
3
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
32B
49B
5
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
73B
68B
7
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
34B
7
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
33B
9
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
7B
10
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
15B
11
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
235B
1260B
13
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
72B
14
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
8B
15
Mistral AI
Mistral AI
22B
16400B
17
1824B
1927B
20
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
7B
2112B
2224B
234B
24109B
25
Alibaba Cloud / Qwen Team
Alibaba Cloud / Qwen Team
8B
268B
262B
284B
2927B
308B
302B
329B
331B
Notice missing or incorrect data?

FAQ

Common questions about MBPP.

What is the MBPP benchmark?

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.

What is the MBPP leaderboard?

The MBPP leaderboard ranks 33 AI models based on their performance on this benchmark. Currently, Sarvam-30B by Sarvam AI leads with a score of 0.927. The average score across all models is 0.741.

What is the highest MBPP score?

The highest MBPP score is 0.927, achieved by Sarvam-30B from Sarvam AI.

How many models are evaluated on MBPP?

33 models have been evaluated on the MBPP benchmark, with 0 verified results and 33 self-reported results.

Where can I find the MBPP paper?

The MBPP paper is available at https://arxiv.org/abs/2108.07732. The paper details the methodology, dataset construction, and evaluation criteria.

What categories does MBPP cover?

MBPP is categorized under general and reasoning. The benchmark evaluates text models.

What is the best open-source model on MBPP?

Sarvam-30B by Sarvam AI is the top-ranked open-source model on MBPP, with a score of 0.927 (rank #1).

How recent are the MBPP leaderboard results?

The MBPP leaderboard was last updated in June 2026 and currently includes 33 evaluated models.

More evaluations to explore

Related benchmarks in the same category

View all general
GPQA

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.

general
216 models
MMLU-Pro

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.

general
120 models
AIME 2025

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.

reasoning
109 models
MMLU

Massive Multitask Language Understanding benchmark testing knowledge across 57 diverse subjects including STEM, humanities, social sciences, and professional domains

general
99 models
SWE-Bench Verified

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.

reasoning
92 models
Humanity's Last Exam

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

reasoningmultimodal
77 models