CodeIF: Benchmarking the Instruction-Following Capabilities of Large Language Models for Code Generation
Not on the map. Why?
Abstract (arXiv)
With the rapid advancement of Large Language Models (LLMs), the demand for robust instruction-following capabilities in code generation tasks has grown significantly. Code generation not only facilitates faster prototyping and automated testing, but also augments developer efficiency through improved maintainability and reusability of code. In this paper, we introduce CodeIF, the first benchmark specifically designed to assess the abilities of LLMs to adhere to task-oriented instructions within diverse code generation scenarios. CodeIF encompasses a broad range of tasks, including function synthesis, error debugging, algorithmic refactoring, and code explanation, thereby providing a comprehensive suite to evaluate model performance across varying complexity levels and programming domains. We conduct extensive experiments with LLMs, analyzing their strengths and limitations in meeting the demands of these tasks. The experimental results offer valuable insights into how well current models align with human instructions, as well as the extent to which they can generate consistent, maintainable, and contextually relevant code. Our findings not only underscore the critical role that instruction-following LLMs can play in modern software development, but also illuminate pathways for future research aimed at enhancing their adaptability, reliability, and overall effectiveness in automated code generation. CodeIF data and code are publicly available: https://github.com/lin-rany/codeIF
Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). Builds on 27 of its 32 references that are in the map. First posted on arXiv 26 Feb 2025.
Builds on
27 of 32 references.
References · 27
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2024Qwen2 Technical Reportcited by 2,076
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2022Competition-Level Code Generation with AlphaCodecited by 1,427
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
- 2023Instruction-Following Evaluation for Large Language Modelscited by 1,143
- 2023Large Language Models are not Fair Evaluatorscited by 1,050
- 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
- 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
- 2023StarCoder: may the source be with you!cited by 790
- 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
15 more
- 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
- 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
- 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
- 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
- 2023SantaCoder: don't reach for the stars!cited by 169
- 2024InFoBench: Evaluating Instruction Following Ability in Large Language Modelscited by 128
- 2023CodeGen2: Lessons for Training LLMs on Programming and Natural Languagescited by 124
- 2024CFBench: A Comprehensive Constraints-Following Benchmark for LLMscited by 65
- 2024FullStack Bench: Evaluating LLMs as Full Stack Coderscited by 56
- 2023CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translationcited by 55
- 2024McEval: Massively Multilingual Code Evaluationcited by 42
- 2018Deepcode: Feedback Codes via Deep Learningcited by 41
- 2024UniCoder: Scaling Code Large Language Model via Universal Codecited by 18
Built on by
Citing papers per year: 2025: 8; 2026: 10.
18 papers.
Sort:
By area:
- 2025AGENTIF: Benchmarking Instruction Following of Large Language Models in Agentic Scenarioscited by 44
- 2025Incentivizing Reasoning for Advanced Instruction-Following of Large Language Modelscited by 17
- 2026OctoBench: Benchmarking Scaffold-Aware Instruction Following in Repository-Grounded Agentic Codingcited by 15
- 2025CodeIF-Bench: Evaluating Instruction-Following Capabilities of Large Language Models in Interactive Code Generationcited by 14
- 2025Revisiting the Reliability of Language Models in Instruction-Followingcited by 6
- 2026Many-Tier Instruction Hierarchy in LLM Agentscited by 6
- 2026Human oversight of agentic systems in practice: Examining the oversight work, challenges, and heuristics of developers using software agentscited by 6
- 2025When Instructions Multiply: Measuring and Estimating LLM Capabilities of Multiple Instructions Followingcited by 4
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
- 2025STEPWISE-CODEX-Bench: Evaluating Complex Multi-Function Comprehension and Fine-Grained Execution Reasoningcited by 1
- 2026Evaluating and Achieving Controllable Code Completion in Code LLMcited by 1
- 2026Steerable Instruction Following Coding Data Synthesis with Actor-Parametric Schema Co-Evolutioncited by 1
6 more
- 2026Obey, Diverge, Collapse: Blind Obedience to Incorrect Instructions Drives Code LLMs to Irrecoverable Code Semantic Collapsecited by 1
- 2025PACIFIC: a framework for generating benchmarks to check Precise Automatically Checked Instruction Following In Codecited by 0
- 2026UniDial-EvalKit: A Unified Toolkit for Evaluating Multi-Faceted Conversational Abilitiescited by 0
- 2026SmellBench: Towards Fine-Grained Evaluation of Code Agents on Refactoring Taskscited by 0
- 2026Agents with Feelings? Personality and Emotion in Multi-Agent Software Teamscited by 0
- 2026MTAC-IFBench: Benchmarking Instruction-Following in Multi-Turn Agentic Codingcited by 0
- 2026MTAC-IFBench: Benchmarking Instruction-Following in Multi-Turn Agentic Coding14 Sep 2026
- 2026Agents with Feelings? Personality and Emotion in Multi-Agent Software Teams6 Jul 2026
- 2026Obey, Diverge, Collapse: Blind Obedience to Incorrect Instructions Drives Code LLMs to Irrecoverable Code Semantic Collapse5 Jul 2026
- 2026SmellBench: Towards Fine-Grained Evaluation of Code Agents on Refactoring Tasks4 Jun 2026
- 2026Human oversight of agentic systems in practice: Examining the oversight work, challenges, and heuristics of developers using software agents3 Jun 2026
- 2026Many-Tier Instruction Hierarchy in LLM Agents10 Apr 2026
- 2026UniDial-EvalKit: A Unified Toolkit for Evaluating Multi-Faceted Conversational Abilities24 Mar 2026
- 2026Steerable Instruction Following Coding Data Synthesis with Actor-Parametric Schema Co-Evolution27 Feb 2026
- 2026Evaluating and Achieving Controllable Code Completion in Code LLM22 Jan 2026
- 2026OctoBench: Benchmarking Scaffold-Aware Instruction Following in Repository-Grounded Agentic Coding15 Jan 2026
- 2025Revisiting the Reliability of Language Models in Instruction-Following15 Dec 2025
- 2025PACIFIC: a framework for generating benchmarks to check Precise Automatically Checked Instruction Following In Code11 Dec 2025
6 more
- 2025When Instructions Multiply: Measuring and Estimating LLM Capabilities of Multiple Instructions Following25 Sep 2025
- 2025STEPWISE-CODEX-Bench: Evaluating Complex Multi-Function Comprehension and Fine-Grained Execution Reasoning7 Aug 2025
- 2025Incentivizing Reasoning for Advanced Instruction-Following of Large Language Models2 Jun 2025
- 2025AGENTIF: Benchmarking Instruction Following of Large Language Models in Agentic Scenarios22 May 2025
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Quality7 Mar 2025
- 2025CodeIF-Bench: Evaluating Instruction-Following Capabilities of Large Language Models in Interactive Code Generation5 Mar 2025
- 2025AGENTIF: Benchmarking Instruction Following of Large Language Models in Agentic Scenarioscited by 44
- 2026OctoBench: Benchmarking Scaffold-Aware Instruction Following in Repository-Grounded Agentic Codingcited by 15
- 2026Many-Tier Instruction Hierarchy in LLM Agentscited by 6
- 2026Human oversight of agentic systems in practice: Examining the oversight work, challenges, and heuristics of developers using software agentscited by 6
- 2026SmellBench: Towards Fine-Grained Evaluation of Code Agents on Refactoring Taskscited by 0
- 2026Agents with Feelings? Personality and Emotion in Multi-Agent Software Teamscited by 0
- 2026MTAC-IFBench: Benchmarking Instruction-Following in Multi-Turn Agentic Codingcited by 0
- 2026MTAC-IFBench: Benchmarking Instruction-Following in Multi-Turn Agentic Coding14 Sep 2026
- 2026Agents with Feelings? Personality and Emotion in Multi-Agent Software Teams6 Jul 2026
- 2026SmellBench: Towards Fine-Grained Evaluation of Code Agents on Refactoring Tasks4 Jun 2026
- 2026Human oversight of agentic systems in practice: Examining the oversight work, challenges, and heuristics of developers using software agents3 Jun 2026
- 2026Many-Tier Instruction Hierarchy in LLM Agents10 Apr 2026
- 2026OctoBench: Benchmarking Scaffold-Aware Instruction Following in Repository-Grounded Agentic Coding15 Jan 2026
- 2025AGENTIF: Benchmarking Instruction Following of Large Language Models in Agentic Scenarios22 May 2025
- 2025CodeIF-Bench: Evaluating Instruction-Following Capabilities of Large Language Models in Interactive Code Generationcited by 14
- 2025Revisiting the Reliability of Language Models in Instruction-Followingcited by 6
- 2025When Instructions Multiply: Measuring and Estimating LLM Capabilities of Multiple Instructions Followingcited by 4
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
- 2026Evaluating and Achieving Controllable Code Completion in Code LLMcited by 1
- 2026Obey, Diverge, Collapse: Blind Obedience to Incorrect Instructions Drives Code LLMs to Irrecoverable Code Semantic Collapsecited by 1
- 2025PACIFIC: a framework for generating benchmarks to check Precise Automatically Checked Instruction Following In Codecited by 0
- 2026UniDial-EvalKit: A Unified Toolkit for Evaluating Multi-Faceted Conversational Abilitiescited by 0
- 2026Obey, Diverge, Collapse: Blind Obedience to Incorrect Instructions Drives Code LLMs to Irrecoverable Code Semantic Collapse5 Jul 2026
- 2026UniDial-EvalKit: A Unified Toolkit for Evaluating Multi-Faceted Conversational Abilities24 Mar 2026
- 2026Evaluating and Achieving Controllable Code Completion in Code LLM22 Jan 2026
- 2025Revisiting the Reliability of Language Models in Instruction-Following15 Dec 2025
- 2025PACIFIC: a framework for generating benchmarks to check Precise Automatically Checked Instruction Following In Code11 Dec 2025
- 2025When Instructions Multiply: Measuring and Estimating LLM Capabilities of Multiple Instructions Following25 Sep 2025
- 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Quality7 Mar 2025
- 2025CodeIF-Bench: Evaluating Instruction-Following Capabilities of Large Language Models in Interactive Code Generation5 Mar 2025