MBPP
243 papers · 455 extracted observations · code generation · code · Markdown · CSV · JSON API
Also indexed as: MBPP+, Mostly Basic Python Problems
Comparable Cohort Timeline (proposed/measured methods; excludes quoted baselines)
Proposed/measured results on test (including prose scores where split is implicit).
Click any point on the timeline to inspect method, protocol, and paper.
| # | Method | Score ↑ | Year | Protocol / Settings | Paper & Evidence |
|---|---|---|---|---|---|
| 1 | DeepSeek-Coder-Base 33B SOTA frontier | 66% | 2024-01-01 | params=33B · decoding=greedy · Table 3; greedy decoding; 500-problem few-shot benchmark. | DeepSeek-Coder: When the Large Language Model Meets Programming - The Rise of Code IntelligenceSource quote66.0% |
| 2 | CoCoS (Qwen2.5-1.5B) | 54.2% | 2025-01-01 | turn=2 · params=1.5B · backbone=Qwen2.5-1.5B · Qwen2.5-1.5B; second turn of the two-turn correction setting; correctness requires pa… | Self-Correcting Code Generation Using Small Language ModelsSource quoteCoCoS │ 45.0% │ 54.2% │ 11.0% │ 1.8% │ 9.2% |
| 3 | CodeShell-7B | 38.7% | 2024-03-01 | epochs=5 · params=500B · training-tokens=500B · Few-shot on 500 Python challenges; CodeShell trained on 500B tokens (5 epochs). | CodeShell Technical ReportSource quoteCodeShell-7B │ 34.3 │ 38.7 |
| 4 | 137B model (few-shot) SOTA frontier | 28.8% | 2021-08-01 | params=137B · decoding=greedy (T=0.0) · prompt-examples=2 · Greedy decoding (T=0.0); code+examples prompt with two examples; tested on one held-o… | Program Synthesis with Large Language ModelsSource quotecode+examples │ 28.8% │ 27.4% │ 11.6% │ 12.0% |
Showing 38 of 38 matching observations.
| Year | Method | Metric | Score | Protocol / Facets | Paper & Evidence |
|---|---|---|---|---|---|
| 2026 | McDiffuSE proposed | Accuracy | 72.43% | 0-shot · seeds=3 · decoding=greedy · MCTS simulations=30 | Can I Have Your Order? Monte-Carlo Tree Search for Slot Filling Ordering in Diffusion Language ModelsSource quoteL576: MBPP │ 44.0 │ 368.2 │ -88.05% │ 72.43 │ 64.04 │ +8.39 |
| 2026 | CodeCircuit (Python) proposed | AUROC | 62.15 | split: test · 0-shot · params=2B · eval-language=Java · train-language=Python · attribution-model=Gemma-2-2B-IT | CodeCircuit: Toward Inferring LLM-Generated Code Correctness via Attribution GraphsSource quoteL208: CodeCircuit{} (Python) │ 62.15 │ 48.33 │ 88.45 |
| 2026 | CodeCircuit (Java) proposed | AUROC | 59.33 | split: test · 0-shot · params=2B · eval-language=C++ · train-language=Java · attribution-model=Gemma-2-2B-IT | CodeCircuit: Toward Inferring LLM-Generated Code Correctness via Attribution GraphsSource quoteL214: CodeCircuit{} (Java) │ 59.33 │ 36.80 │ 88.24 |
| 2026 | Qwen2.5-Coder-1.5B-Instruct (Q-1.5B), base baseline | pass@1 | 56.60% | 0-shot · model=Qwen2.5-Coder-1.5B-Instruct · params=1.5B · decoding=greedy | Interpreting Code Correctness in Language Models through Activation SteeringSource quoteL297: 56.60 |
| 2026 | Qwen2.5-Coder-7B-Instruct (Q-7B), base baseline | pass@1 | 51.40% | 0-shot · model=Qwen2.5-Coder-7B-Instruct · params=7B · decoding=greedy | Interpreting Code Correctness in Language Models through Activation SteeringSource quoteL311: 51.40 |
| 2026 | ReFusion baseline | Accuracy | 58.81% | 0-shot · seeds=3 · decoding=greedy | Can I Have Your Order? Monte-Carlo Tree Search for Slot Filling Ordering in Diffusion Language ModelsSource quoteL923: \cref{fig:mcts_comparison} demonstrates a comparative analysis of sequential slot selection behaviour and its relationship to accuracy on the MBPP code generation benchmark for both ReFusion (baseline) and McDiffuSE{}. The baseline ReFusion method (left panel, 58.81% accuracy) shows a weak positive correlation between sequential ordering and task success. In contrast, McDiffuSE{} (right panel, 72.43% accuracy) demonstrates a more strategic approach while achieving substantially higher accuracy. The trend lines reveal that both methods benefit from sequential structure to some degree, consistent with code generation's inherent ordering dependencies (e.g., variable declarations preceding usage); however, MCTS's selective deviation from strict left-to-right generation (8.2% non-sequential exploration) enables it to avoid error propagation and handle complex logical dependencies more effectively. This strategic flexibility, rather than rigid adherence to sequential ordering, accounts for the performance gain, validating the hypothesis that optimal slot planning must adaptively balance sequential structure with non-sequential exploration. |
| 2026 | Baseline (MaxProb) baseline | AUROC | 56.29 | split: test · 0-shot · method=MaxProb · language=Java | CodeCircuit: Toward Inferring LLM-Generated Code Correctness via Attribution GraphsSource quoteL207: Baseline (MaxProb) │ 56.29 │ 46.00 │ 91.20 |
| 2025 | CDS (+ Global & Fine-grained) proposed | P@1 | 35.40 | 0-shot | CDS: Data Synthesis Method Guided by Cognitive Diagnosis TheorySource quoteL521: 35.40 |
| 2025 | MoP (Mosaic Pruning) proposed | Zero-shot performance | 10.89 | 0-shot · backbone=Mixtral · experts-retained=4 | Mosaic Pruning: A Hierarchical Framework for Generalizable Pruning of Mixture-of-Experts ModelsSource quoteL285: 4 │ 71.34 │ 10.89 |
| 2025 | LLaDOU (LLaDA 8B + DCoLT) proposed | pass@1 | 51.6% | 0-shot · params=8B · backbone=LLaDA-8B · training-data=48.9K filtered KodCode samples | Reinforcing the Diffusion Chain of Lateral Thought with Diffusion Language ModelsSource quoteL34: We conduct experiments on both Math and code generation tasks to demonstrate the efficacy of DCoLT. After training the DCoLT on the SEDD 400M model, it achieves 96.2% and 57.0% in accuracy on Sudoku 4×4 and GSM8K-Aug \cite{deng2023implicit} tasks. On the LLaDA 8B model, DCoLT achieves the state-of-the-art performance among existing DLMs trained with SFT or RL or even both. Using only public data and 16 H800 GPUs, the DCoLT-reinforced LLaDA model achieves 88.1% on GSM8K \cite{cobbe2021training}, 44.6% on MATH \cite{hendrycks2021measuring}, 51.6% on MBPP \cite{austin2021program} and 59.1% on HumanEval \cite{chen2021evaluating} in the challenging zero-shot setting. Even compared with auto-regressive models that are trained with significantly more proprietary data and fully annotated CoT reasoning processes, it still demonstrates competitive performances. |
| 2025 | PRISM fine-tuned LLaDA-8B-Instruct proposed | Zero-shot performance | 21.8 | 0-shot · model=LLaDA-8B-Instruct · params=8B · decoding=semi-autoregressive · nucleus-p=0 · inference-steps=256 | Fine-Tuning Masked Diffusion for Provable Self-CorrectionSource quoteL281: PRISM │ 28.0 │ 39.0 │ 42.7 │ 21.8 │ 29.1 │ 32.3 |
| 2025 | RFG (Dream 7B Instruct policy) proposed | pass@1 accuracy | 70.4 | split: test · 0-shot · params=7B · policy=Dream 7B Instruct · reference=Dream-Base | RFG: Test-Time Scaling for Diffusion Large Language Model Reasoning with Reward-Free GuidanceSource quoteL188: 64.6 │ 69.6 │ \bm{70.4} │ {\color{PineGreen}\bm{+5.8}} |
| 2025 | Prompt (vanilla) baseline | P@1 | 32.00 | 0-shot | CDS: Data Synthesis Method Guided by Cognitive Diagnosis TheorySource quoteL496: 32.00 |
| 2025 | Enu (Enumeration Pruning) baseline | Zero-shot performance | 1.55 | 0-shot · backbone=Mixtral · experts-retained=4 | Mosaic Pruning: A Hierarchical Framework for Generalizable Pruning of Mixture-of-Experts ModelsSource quoteL282: 4 │ 1.22 │ 1.55 |
| 2025 | ReMDM-conf (LLaDA-8B-Instruct) baseline | Zero-shot performance | 20.1 | 0-shot · model=LLaDA-8B-Instruct · params=8B · inference-steps=256 | Fine-Tuning Masked Diffusion for Provable Self-CorrectionSource quoteL283: ReMDM-conf │ 25.6 │ 34.1 │ 36.6 │ 20.1 │ 29.0 │ 32.5 |
| 2025 | Original Dream 7B Instruct baseline | pass@1 accuracy | 64.6 | split: test · 0-shot · model=Dream 7B Instruct · params=7B | RFG: Test-Time Scaling for Diffusion Large Language Model Reasoning with Reward-Free GuidanceSource quoteL188: 64.6 │ 69.6 │ \bm{70.4} │ {\color{PineGreen}\bm{+5.8}} |
| 2024 | Zero-shot code rewriting + similarity detector (Ours, m=2) proposed | AUROC | 74.54 | 0-shot · m=2 · aggregation=average across four code generators · detector-backbone=CodeLlama · generation-prompting=chain-of-thought | Uncovering LLM-Generated Code: A Zero-Shot Synthetic Code Detector via Code RewritingSource quoteL189: Ours m=2 │ 80.78 │ 72.91 │ 73.12 │ 68.19 │ 73.75 │ 77.90 │ 68.88 │ 76.36 │ 75.02 │ 74.54 |
| 2024 | StepCoder (Ours), 6.7B proposed | pass@1 | 67.0 | split: test · 0-shot · params=6.7B · training-data=APPS+ | StepCoder: Improve Code Generation with Reinforcement Learning from Compiler FeedbackSource quoteL283: StepCoder (Ours) │ 78.7 │ 67.0 |
| 2024 | SPA + DeepSeek-Coder (6.7B) proposed | Pass@1 | 71.0% | 0-shot · params=6.7B · backbone=DeepSeek-Coder 6.7B · quantization=8-bit | Selective Prompt Anchoring for Code GenerationSource quoteL880: + {\tool} │ 88.5 \textcolor{mygreen}{(+12.9)} │ 86.4 \textcolor{mygreen}{(+2.4)} │ 79.9 \textcolor{mygreen}{(+9.7)} │ 82.8 \textcolor{mygreen}{(+4.9)} │ 71.0 \textcolor{mygreen}{(+4.0)} │ 87.7 \textcolor{mygreen}{(+7.9)} │ 60.7 \textcolor{mygreen}{(+2.2)} │ 73.9 \textcolor{mygreen}{(+3.7)} |
| 2024 | Q* (PRM+QVM) proposed | Accuracy | 77.0% | 0-shot · params=7b · backbone=CodeQwen1.5-7b-Chat · code-action-length=24 tokens · trajectories-per-question=6 | Q*: Improving Multi-step Reasoning for LLMs with Deliberative PlanningSource quoteL258: CodeQwen1.5-7b-Chat (0-shot) │ Unknown │ PPO (QVM) \cite{ouyang2022training} │ Q* (PRM+QVM) \cite{lightman2023let} │ 77.0% |
| 2024 | StepCoder (Ours), 6.7B proposed | pass@1 | 67.0 | 0-shot · params=6.7B | StepCoder: Improving Code Generation with Reinforcement Learning from Compiler FeedbackSource quoteL320: 67.0 |
| 2024 | RLTF, 6.7B | pass@1 | 65.2 | 0-shot · params=6.7B | StepCoder: Improving Code Generation with Reinforcement Learning from Compiler FeedbackSource quoteL317: 65.2 |
| 2024 | LogRank baseline | AUROC | 61.57 | 0-shot · aggregation=average across four code generators · detector-backbone=CodeLlama · generation-prompting=chain-of-thought | Uncovering LLM-Generated Code: A Zero-Shot Synthetic Code Detector via Code RewritingSource quoteL182: LogRank │ 69.79 │ 61.54 │ 67.31 │ 62.89 │ 65.38 │ 60.76 │ 58.56 │ 68.05 │ 58.91 │ 61.57 |
| 2024 | RLTF, 6.7B baseline | pass@1 | 65.2 | split: test · 0-shot · params=6.7B · training-data=APPS+ | StepCoder: Improve Code Generation with Reinforcement Learning from Compiler FeedbackSource quoteL282: RLTF │ 76.8 │ 65.2 |
| 2024 | DeepSeek-Coder (6.7B), base baseline | Pass@1 | 67.0% | 0-shot · params=6.7B · backbone=DeepSeek-Coder 6.7B · quantization=8-bit | Selective Prompt Anchoring for Code GenerationSource quoteL879: \text{DeepSeek-Coder} │ \smallerfootnote{(6.7B)} │ 75.6 │ 84.0 │ 70.2 │ 77.9 │ 67.0 │ 79.8 │ 58.5 │ 70.2 |
| 2024 | Best-of-N (QVM) baseline | Accuracy | 75.0% | 0-shot · params=7b · backbone=CodeQwen1.5-7b-Chat · code-action-length=24 tokens · trajectories-per-question=6 | Q*: Improving Multi-step Reasoning for LLMs with Deliberative PlanningSource quoteL257: CodeQwen1.5-7b-Chat (0-shot) │ Unknown │ PPO (QVM) \cite{ouyang2022training} │ Best-of-N (QVM) \cite{lightman2023let} │ 75.0% |
| 2024 | Oracle router baseline non-standard slice | Perf↑ | 0.899 | 0-shot · router=oracle · evaluation=GPT-4 answer evaluation · oracle-knowledge=perfect response scores | RouterBench: A Benchmark for Multi-LLM Routing SystemSource quoteL344: \hc Oracle │ 0.957 │ 0.297 │ 0.996 │ 0.052 │ 0.899 │ 0.041 │ 0.994 │ 0.860 │ 1.0 │ 0.042 │ 0.748 │ 1.282 │ 0.977 │ 0.091 |
| 2023 | CodeT5 + RLTF (770M) proposed | pass@80 | 71.3 | 0-shot · params=770M · backbone=CodeT5 770M · training-data=APPS | RLTF: Reinforcement Learning from Unit Test FeedbackSource quoteL405: CodeT5 + RLTF │ 770M │ zero-shot │ 71.3 |
| 2023 | CODET (code-davinci-002) proposed | pass@1 | 67.7% | 0-shot · samples=100 · backbone=code-davinci-002 · temperature=0.8 | CodeT: Code Generation with Generated TestsSource quoteL39: APPS (Hendrycks et al., 2021), and CodeContests (Li et al., 2022b). The experimental results show that our method can effectively select the correct solution from multiple candidates, improving the pass@1 score significantly on all benchmarks in the zero-shot setting. For instance, CODET achieves improvements using code-davinci-002: HumanEval (47.0% →65.8%), MBPP (58.1% →67.7%), |
| 2023 | CodeT5 + PPOCoder (770M) baseline | pass@80 | 68.2 | 0-shot · params=770M · backbone=CodeT5 770M | RLTF: Reinforcement Learning from Unit Test FeedbackSource quoteL403: CodeT5 + PPOCoder │ 770M │ zero-shot │ 68.2 |
| 2023 | Baseline (code-davinci-002) baseline | pass@1 | 58.1% | 0-shot · samples=100 · backbone=code-davinci-002 · temperature=0.8 | CodeT: Code Generation with Generated TestsSource quoteL39: APPS (Hendrycks et al., 2021), and CodeContests (Li et al., 2022b). The experimental results show that our method can effectively select the correct solution from multiple candidates, improving the pass@1 score significantly on all benchmarks in the zero-shot setting. For instance, CODET achieves improvements using code-davinci-002: HumanEval (47.0% →65.8%), MBPP (58.1% →67.7%), |
| 2022 | PanGu-Coder proposed | pass@1 | 16.20% | split: test · 0-shot | PanGu-Coder: Program Synthesis with Function-Level Language ModelingSource quoteL538: PanGu-Coder │ 16.20 │ 34.39 │ 53.74 │ 17.07 │ 24.05 │ 34.55 |
| 2022 | CodeT5† + CodeRL (770M, +GCPY, +NTP) proposed | pass@80 | 63.0% | 0-shot · params=770M | CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement LearningSource quoteL1135: +CodeRL │ 770M │ +GCPY │ +NTP │ 63.0 │ 81.8 |
| 2022 | CodeT5† + CodeRL (770M, +GCPY, +NTP) proposed | pass@1000 | 81.8% | 0-shot · params=770M | CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement LearningSource quoteL1135: +CodeRL │ 770M │ +GCPY │ +NTP │ 63.0 │ 81.8 |
| 2022 | CodeGen-350M | BLEU | 1.55 | 0-shot · params=350M | CODEP: Grammatical Seq2Seq Model for General-Purpose Code GenerationSource quoteL338: CodeGen-350M │ 1.55 │ 3.21 │ False |
| 2022 | CodeGen-350M + PDA | BLEU | 14.44 | 0-shot · params=350M | CODEP: Grammatical Seq2Seq Model for General-Purpose Code GenerationSource quoteL340: +PDA │ 14.44 │ 21.54 │ True |
| 2022 | CodeGen-350M | CodeBLEU | 3.21 | 0-shot · params=350M | CODEP: Grammatical Seq2Seq Model for General-Purpose Code GenerationSource quoteL338: CodeGen-350M │ 1.55 │ 3.21 │ False |
| 2022 | CodeGen-350M + PDA | CodeBLEU | 21.54 | 0-shot · params=350M | CODEP: Grammatical Seq2Seq Model for General-Purpose Code GenerationSource quoteL340: +PDA │ 14.44 │ 21.54 │ True |