Natural2Code

Paper

Progress Over Time

Interactive timeline showing model performance evolution on Natural2Code

State-of-the-art frontier
Open
Proprietary

Natural2Code Leaderboard

8 models
ContextCostLicense
1
2
327B
412B
5
68B
74B
81B
Notice missing or incorrect data?
About this benchmark

What is Natural2Code?

NaturalCodeBench (NCB) is a challenging code benchmark designed to mirror the complexity and variety of real-world coding tasks. It comprises 402 high-quality problems in Python and Java, selected from natural user queries from online coding services, covering 6 different domains.

Natural2Code is a text benchmark evaluating models on reasoning and general tasks. LLM Stats tracks 8 models on this benchmark, scored on a 0–1 scale. The current average is 0.8, with the leader at 0.9.

Compare leaders on the best AI for reasoning and best AI for general leaderboards.

Current leaders

Gemini 2.0 Flash from Google currently leads the Natural2Code leaderboard with a score of 0.929 across 8 evaluated AI models.

1Gemini 2.0 FlashGoogle92.9%
2Gemini 1.5 ProGoogle85.4%
3Gemma 3 27BGoogle84.5%

Source paper

Title
NaturalCodeBench: Examining Coding Performance Mismatch on HumanEval and Natural User Prompts
Authors
Shudan Zhang, Hanlin Zhao, Xiao Liu, Qinkai Zheng, and 5 others
Published
Abstract

Large language models (LLMs) have manifested strong ability to generate codes for productive activities. However, current benchmarks for code synthesis, such as HumanEval, MBPP, and DS-1000, are predominantly oriented towards introductory tasks on algorithm and data science, insufficiently satisfying challenging requirements prevalent in real-world coding. To fill this gap, we propose NaturalCodeBench (NCB), a challenging code benchmark designed to mirror the complexity and variety of scenarios in real coding tasks. NCB comprises 402 high-quality problems in Python and Java, meticulously selected from natural user queries from online coding services, covering 6 different domains. Noting the extraordinary difficulty in creating testing cases for real-world queries, we also introduce a semi-automated pipeline to enhance the efficiency of test case construction. Comparing with manual solutions, it achieves an efficiency increase of more than 4 times. Our systematic experiments on 39 LLMs find that performance gaps on NCB between models with close HumanEval scores could still be significant, indicating a lack of focus on practical code synthesis scenarios or over-specified optimization on HumanEval. On the other hand, even the best-performing GPT-4 is still far from satisfying on NCB. The evaluation toolkit and development set are available at https://github.com/THUDM/NaturalCodeBench.

FAQ

Common questions about the Natural2Code benchmark and leaderboard.

What is the Natural2Code benchmark?

NaturalCodeBench (NCB) is a challenging code benchmark designed to mirror the complexity and variety of real-world coding tasks. It comprises 402 high-quality problems in Python and Java, selected from natural user queries from online coding services, covering 6 different domains.

What is the Natural2Code leaderboard?

The Natural2Code leaderboard ranks 8 AI models based on their performance on this benchmark. Currently, Gemini 2.0 Flash by Google leads with a score of 0.929. The average score across all models is 0.781.

What is the highest Natural2Code score?

The highest Natural2Code score is 0.929, achieved by Gemini 2.0 Flash from Google.

How many models are evaluated on Natural2Code?

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

Where can I find the Natural2Code paper?

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

What categories does Natural2Code cover?

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

What is the best open-source model on Natural2Code?

Gemma 3 27B by Google is the top-ranked open-source model on Natural2Code, with a score of 0.845 (rank #3).

How recent are the Natural2Code leaderboard results?

The Natural2Code leaderboard was last updated in August 2026 and currently includes 8 evaluated models.