HumanEval Pro and MBPP Pro: Evaluating Large Language Models on Self-invoking Code Generation
Not on the map. Why?
Abstract (arXiv)
We introduce self-invoking code generation, a new task designed to evaluate the progressive reasoning and problem-solving capabilities of LLMs. In this task, models are presented with a base problem and a related, more complex problem. They must solve the base problem and then utilize its solution to address the more complex one. This work features three key contributions. First, we propose a general recipe for generating more challenging versions of existing benchmarks, resulting in three new benchmarks: HumanEval Pro, MBPP Pro, and BigCodeBench-Lite Pro, specifically designed to assess LLMs on self-invoking code generation. Second, from the analysis of experimental results over twenty LLMs on our benchmarks, we have two important observations: (i) Most LLMs excel in traditional code generation benchmarks like HumanEval and MBPP, but their performance declines on self-invoking tasks. For example, o1-mini achieves 96.2% pass@1 on HumanEval but only 76.2% on HumanEval Pro. (ii) On self-invoking code generation task, the instruction-tuned models demonstrate only marginal improvements compared to the base models. Third, we disclose the types of failure modes that exist in our evaluation results. All these results underscore the need for further advancements in self-invoking code generation tasks and provide a new direction for future research on enhancing LLMs' code reasoning capabilities.
Key facts. Cited by 39 papers in the map (data through 14 Oct 2026). Builds on 29 of its 36 references that are in the map. First posted on arXiv 30 Dec 2024.
Builds on
29 of 36 references.
References · 29
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 2,004
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,181
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2023StarCoder: may the source be with you!cited by 799
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 733
17 more
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 353
- 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 331
- 2024CRUXEval: A Benchmark for Code Reasoning, Understanding and Executioncited by 300
- 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 256
- 2024OpenCodeInterpreter: Integrating Code Generation with Execution and Refinementcited by 247
- 2022Multi-lingual Evaluation of Code Generation Modelscited by 159
- 2023InferFix: End-to-End Program Repair with LLMscited by 114
- 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
- 2023Impact of Code Language Models on Automated Program Repaircited by 85
- 2017A parallel corpus of Python functions and documentation strings for automated code documentation and code generationcited by 57
- 2022XLCoST: A Benchmark Dataset for Cross-lingual Code Intelligencecited by 56
- 2023WaveCoder: Widespread And Versatile Enhancement For Code Large Language Models By Instruction Tuningcited by 42
- 2024Top Leaderboard Ranking = Top Coding Proficiency, Always? EvoEval: Evolving Coding Benchmarks via LLMcited by 40
- 2024EvoCodeBench: An Evolving Code Generation Benchmark with Domain-Specific Evaluationscited by 34
- 2021CoDesc: A Large Code-Description Parallel Datasetcited by 23
- 2024ReflectionCoder: Learning from Reflection Sequence for Enhanced One-off Code Generationcited by 14
Built on by
Citing papers per year: 2025: 23; 2026: 16.
39 papers.
Sort:
By area:
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 384
- 2025GitTaskBench: A Benchmark for Code Agents Solving Real-World Tasks Through Code Repository Leveragingcited by 25
- 2025Unified Software Engineering Agent as AI Software Engineercited by 19
- 2025HiBayES: A Hierarchical Bayesian Modeling Framework for AI Evaluation Statisticscited by 18
- 2025Text2Grad: Reinforcement Learning from Natural Language Feedbackcited by 18
- 2025CodeFlowBench: A Multi-turn, Iterative Benchmark for Complex Code Generationcited by 17
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2025MaintainCoder: Maintainable Code Generation Under Dynamic Requirementscited by 14
- 2025Activation-Guided Consensus Merging for Large Language Modelscited by 12
- 2025Can LLMs Generate High-Quality Test Cases for Algorithm Problems? TestCase-Eval: A Systematic Evaluation of Fault Coverage and Exposurecited by 10
- 2025Beyond Synthetic Benchmarks: Evaluating LLM Performance on Real-World Class-Level Code Generationcited by 8
- 2026SWE Atlas: Benchmarking Coding Agents Beyond Issue Resolutioncited by 6
27 more
- 2025FunReason: Enhancing Large Language Models' Function Calling via Self-Refinement Multiscale Loss and Automated Data Refinementcited by 5
- 2025Where Do LLMs Still Struggle? An In-Depth Analysis of Code Generation Benchmarkscited by 5
- 2025Nexus: Execution-Grounded Multi-Agent Test Oracle Synthesiscited by 4
- 2025Reasoning as a Resource: Optimizing Fast and Slow Thinking in Code Generation Modelscited by 3
- 2026Exposing Weaknesses of Large Reasoning Models through Graph Algorithm Problemscited by 3
- 2025A Hierarchical Imprecise Probability Approach to Reliability Assessment of Large Language Modelscited by 2
- 2026Learning to Generate Secure Code via Token-Level Rewardscited by 2
- 2026ManiBench: A Benchmark for Testing Visual-Logic Drift and Syntactic Hallucinations in Manim Code Generationcited by 2
- 2026Don't Claim Benchmark-Oriented Optimization Improves General Coding Capability -- Diverse Evaluation Is Requiredcited by 2
- 2025Large Language Models for IT Automation Tasks: Are We There Yet?cited by 1
- 2025MateInfoUB: A Real-World Benchmark for Testing LLMs in Competitive, Multilingual, and Multimodal Educational Taskscited by 1
- 2025LLM Assisted Coding with Metamorphic Specification Mutation Agentcited by 1
- 2025Exploring the Security Threats of Retriever Backdoors in Retrieval-Augmented Code Generationcited by 1
- 2026Evaluating Large Language Models for Security Bug Report Predictioncited by 1
- 2026Q-Bridge: Code Translation for Quantum Machine Learning via LLMscited by 1
- 2026IndustryCode: A Benchmark for Industry Code Generationcited by 1
- 2026Intent2Tx: Benchmarking LLMs for Translating Natural Language Intents into Ethereum Transactionscited by 1
- 2026A-ProS: Towards Reliable Autonomous Programming Through Multi-Model Feedbackcited by 1
- 2026An Evaluation of Role-Based Multi-Agent Code Generation on Repository-Scale Problemscited by 1
- 2025AutoGEEval: A Multimodal and Automated Framework for Geospatial Code Generation on GEE with Large Language Modelscited by 0
- 2025NeuroDeX: Unlocking Diverse Support in Decompiling Deep Neural Network Executablescited by 0
- 2025TGPR: Tree-Guided Policy Refinement for Robust Self-Debugging of LLMscited by 0
- 2026Benchmarking Agents in Insurance Underwriting Environmentscited by 0
- 2026EvoCodeBench: A Human-Performance Benchmark for Self-Evolving LLM-Driven Coding Systemscited by 0
- 2026Agentic Frameworks for Reasoning Tasks: An Empirical Studycited by 0
- 2026CodeGolf Bench: A Multi-Language Benchmark for Evaluating Concise Code Generation Capabilities of Large Language Modelscited by 0
- 2026ACPO: Asymmetric Credit Policy Optimization via Mode-Local Entropy Surrogatecited by 0
- 2026An Evaluation of Role-Based Multi-Agent Code Generation on Repository-Scale Problems5 Jul 2026
- 2026ACPO: Asymmetric Credit Policy Optimization via Mode-Local Entropy Surrogate3 Jul 2026
- 2026Don't Claim Benchmark-Oriented Optimization Improves General Coding Capability -- Diverse Evaluation Is Required26 Jun 2026
- 2026CodeGolf Bench: A Multi-Language Benchmark for Evaluating Concise Code Generation Capabilities of Large Language Models28 May 2026
- 2026A-ProS: Towards Reliable Autonomous Programming Through Multi-Model Feedback18 May 2026
- 2026SWE Atlas: Benchmarking Coding Agents Beyond Issue Resolution8 May 2026
- 2026Intent2Tx: Benchmarking LLMs for Translating Natural Language Intents into Ethereum Transactions30 Apr 2026
- 2026Agentic Frameworks for Reasoning Tasks: An Empirical Study17 Apr 2026
- 2026IndustryCode: A Benchmark for Industry Code Generation3 Apr 2026
- 2026Q-Bridge: Code Translation for Quantum Machine Learning via LLMs29 Mar 2026
- 2026Learning to Generate Secure Code via Token-Level Rewards26 Feb 2026
- 2026ManiBench: A Benchmark for Testing Visual-Logic Drift and Syntactic Hallucinations in Manim Code Generation24 Feb 2026
27 more
- 2026EvoCodeBench: A Human-Performance Benchmark for Self-Evolving LLM-Driven Coding Systems10 Feb 2026
- 2026Exposing Weaknesses of Large Reasoning Models through Graph Algorithm Problems6 Feb 2026
- 2026Benchmarking Agents in Insurance Underwriting Environments31 Jan 2026
- 2026Evaluating Large Language Models for Security Bug Report Prediction30 Jan 2026
- 2025Exploring the Security Threats of Retriever Backdoors in Retrieval-Augmented Code Generation25 Dec 2025
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025LLM Assisted Coding with Metamorphic Specification Mutation Agent23 Nov 2025
- 2025Where Do LLMs Still Struggle? An In-Depth Analysis of Code Generation Benchmarks6 Nov 2025
- 2025A Hierarchical Imprecise Probability Approach to Reliability Assessment of Large Language Models1 Nov 2025
- 2025Nexus: Execution-Grounded Multi-Agent Test Oracle Synthesis30 Oct 2025
- 2025Beyond Synthetic Benchmarks: Evaluating LLM Performance on Real-World Class-Level Code Generation30 Oct 2025
- 2025TGPR: Tree-Guided Policy Refinement for Robust Self-Debugging of LLMs8 Oct 2025
- 2025NeuroDeX: Unlocking Diverse Support in Decompiling Deep Neural Network Executables8 Sep 2025
- 2025GitTaskBench: A Benchmark for Code Agents Solving Real-World Tasks Through Code Repository Leveraging26 Aug 2025
- 2025MateInfoUB: A Real-World Benchmark for Testing LLMs in Competitive, Multilingual, and Multimodal Educational Tasks3 Jul 2025
- 2025Unified Software Engineering Agent as AI Software Engineer17 Jun 2025
- 2025Can LLMs Generate High-Quality Test Cases for Algorithm Problems? TestCase-Eval: A Systematic Evaluation of Fault Coverage and Exposure13 Jun 2025
- 2025Reasoning as a Resource: Optimizing Fast and Slow Thinking in Code Generation Models11 Jun 2025
- 2025Text2Grad: Reinforcement Learning from Natural Language Feedback28 May 2025
- 2025Large Language Models for IT Automation Tasks: Are We There Yet?26 May 2025
- 2025FunReason: Enhancing Large Language Models' Function Calling via Self-Refinement Multiscale Loss and Automated Data Refinement26 May 2025
- 2025Activation-Guided Consensus Merging for Large Language Models20 May 2025
- 2025AutoGEEval: A Multimodal and Automated Framework for Geospatial Code Generation on GEE with Large Language Models19 May 2025
- 2025HiBayES: A Hierarchical Bayesian Modeling Framework for AI Evaluation Statistics8 May 2025
- 2025CodeFlowBench: A Multi-turn, Iterative Benchmark for Complex Code Generation30 Apr 2025
- 2025MaintainCoder: Maintainable Code Generation Under Dynamic Requirements31 Mar 2025
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Models12 Mar 2025
- 2025GitTaskBench: A Benchmark for Code Agents Solving Real-World Tasks Through Code Repository Leveragingcited by 25
- 2025Unified Software Engineering Agent as AI Software Engineercited by 19
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligencecited by 15
- 2026SWE Atlas: Benchmarking Coding Agents Beyond Issue Resolutioncited by 6
- 2025Nexus: Execution-Grounded Multi-Agent Test Oracle Synthesiscited by 4
- 2025LLM Assisted Coding with Metamorphic Specification Mutation Agentcited by 1
- 2026An Evaluation of Role-Based Multi-Agent Code Generation on Repository-Scale Problemscited by 1
- 2026Agentic Frameworks for Reasoning Tasks: An Empirical Studycited by 0
- 2026An Evaluation of Role-Based Multi-Agent Code Generation on Repository-Scale Problems5 Jul 2026
- 2026SWE Atlas: Benchmarking Coding Agents Beyond Issue Resolution8 May 2026
- 2026Agentic Frameworks for Reasoning Tasks: An Empirical Study17 Apr 2026
- 2025From Code Foundation Models to Agents and Applications: A Comprehensive Survey and Practical Guide to Code Intelligence23 Nov 2025
- 2025LLM Assisted Coding with Metamorphic Specification Mutation Agent23 Nov 2025
- 2025Nexus: Execution-Grounded Multi-Agent Test Oracle Synthesis30 Oct 2025
- 2025GitTaskBench: A Benchmark for Code Agents Solving Real-World Tasks Through Code Repository Leveraging26 Aug 2025
- 2025Unified Software Engineering Agent as AI Software Engineer17 Jun 2025
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Modelscited by 384
- 2025Activation-Guided Consensus Merging for Large Language Modelscited by 12
- 2025FunReason: Enhancing Large Language Models' Function Calling via Self-Refinement Multiscale Loss and Automated Data Refinementcited by 5
- 2025Reasoning as a Resource: Optimizing Fast and Slow Thinking in Code Generation Modelscited by 3
- 2026Exposing Weaknesses of Large Reasoning Models through Graph Algorithm Problemscited by 3
- 2025TGPR: Tree-Guided Policy Refinement for Robust Self-Debugging of LLMscited by 0
- 2026ACPO: Asymmetric Credit Policy Optimization via Mode-Local Entropy Surrogatecited by 0
- 2026ACPO: Asymmetric Credit Policy Optimization via Mode-Local Entropy Surrogate3 Jul 2026
- 2026Exposing Weaknesses of Large Reasoning Models through Graph Algorithm Problems6 Feb 2026
- 2025TGPR: Tree-Guided Policy Refinement for Robust Self-Debugging of LLMs8 Oct 2025
- 2025Reasoning as a Resource: Optimizing Fast and Slow Thinking in Code Generation Models11 Jun 2025
- 2025FunReason: Enhancing Large Language Models' Function Calling via Self-Refinement Multiscale Loss and Automated Data Refinement26 May 2025
- 2025Activation-Guided Consensus Merging for Large Language Models20 May 2025
- 2025Towards Reasoning Era: A Survey of Long Chain-of-Thought for Reasoning Large Language Models12 Mar 2025
- 2025HiBayES: A Hierarchical Bayesian Modeling Framework for AI Evaluation Statisticscited by 18
- 2025CodeFlowBench: A Multi-turn, Iterative Benchmark for Complex Code Generationcited by 17
- 2025MaintainCoder: Maintainable Code Generation Under Dynamic Requirementscited by 14
- 2025Can LLMs Generate High-Quality Test Cases for Algorithm Problems? TestCase-Eval: A Systematic Evaluation of Fault Coverage and Exposurecited by 10
- 2025Beyond Synthetic Benchmarks: Evaluating LLM Performance on Real-World Class-Level Code Generationcited by 8
- 2025Where Do LLMs Still Struggle? An In-Depth Analysis of Code Generation Benchmarkscited by 5
- 2025A Hierarchical Imprecise Probability Approach to Reliability Assessment of Large Language Modelscited by 2
- 2026Learning to Generate Secure Code via Token-Level Rewardscited by 2
- 2026ManiBench: A Benchmark for Testing Visual-Logic Drift and Syntactic Hallucinations in Manim Code Generationcited by 2
- 2026Don't Claim Benchmark-Oriented Optimization Improves General Coding Capability -- Diverse Evaluation Is Requiredcited by 2
- 2025Large Language Models for IT Automation Tasks: Are We There Yet?cited by 1
- 2025MateInfoUB: A Real-World Benchmark for Testing LLMs in Competitive, Multilingual, and Multimodal Educational Taskscited by 1
12 most cited of 21 All 21 (JSON)
- 2026Don't Claim Benchmark-Oriented Optimization Improves General Coding Capability -- Diverse Evaluation Is Required26 Jun 2026
- 2026CodeGolf Bench: A Multi-Language Benchmark for Evaluating Concise Code Generation Capabilities of Large Language Models28 May 2026
- 2026A-ProS: Towards Reliable Autonomous Programming Through Multi-Model Feedback18 May 2026
- 2026Intent2Tx: Benchmarking LLMs for Translating Natural Language Intents into Ethereum Transactions30 Apr 2026
- 2026IndustryCode: A Benchmark for Industry Code Generation3 Apr 2026
- 2026Q-Bridge: Code Translation for Quantum Machine Learning via LLMs29 Mar 2026
- 2026Learning to Generate Secure Code via Token-Level Rewards26 Feb 2026
- 2026ManiBench: A Benchmark for Testing Visual-Logic Drift and Syntactic Hallucinations in Manim Code Generation24 Feb 2026
- 2026Benchmarking Agents in Insurance Underwriting Environments31 Jan 2026
- 2026Evaluating Large Language Models for Security Bug Report Prediction30 Jan 2026
- 2025Where Do LLMs Still Struggle? An In-Depth Analysis of Code Generation Benchmarks6 Nov 2025
- 2025A Hierarchical Imprecise Probability Approach to Reliability Assessment of Large Language Models1 Nov 2025
12 newest of 21 All 21 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2024MHPP: Exploring the Capabilities and Limitations of Language Models Beyond Basic Code Generation
- 2026Pseudo2CodeQA: A Benchmark for LLM-Based Structured Algorithmic Reasoning in Code Generation
- 2023SelfEvolve: A Code Evolution Framework via Large Language Models
- 2025Learning to Solve and Verify: A Self-Play Framework for Code and Test Generation
- 2023Self-planning Code Generation with Large Language Models
- 2026CodeEval: A pedagogical approach for targeted evaluation of code-trained Large Language Models
- 2023L2CEval: Evaluating Language-to-Code Generation Capabilities of Large Language Models
- 2026CoRE: A Fine-Grained Code Reasoning Benchmark Beyond Output Prediction