mlsanityData to 7 Oct 2026

CodeIF: Benchmarking the Instruction-Following Capabilities of Large Language Models for Code Generation

arXiv 2502.19166 ↗First posted 26 Feb 2025cs.SE cs.LGcited by 18

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

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  2. 2024Qwen2 Technical Reportcited by 2,076
  3. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  4. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  5. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  6. 2024DeepSeek-Coder: When the Large Language Model Meets Programming -- The Rise of Code Intelligencecited by 1,154
  7. 2023Instruction-Following Evaluation for Large Language Modelscited by 1,143
  8. 2023Large Language Models are not Fair Evaluatorscited by 1,050
  9. 2021CodeT5: Identifier-aware Unified Pre-trained Encoder-Decoder Models for Code Understanding and Generationcited by 890
  10. 2022CodeGen: An Open Large Language Model for Code with Multi-Turn Program Synthesiscited by 876
  11. 2023StarCoder: may the source be with you!cited by 790
  12. 2021CodeXGLUE: A Machine Learning Benchmark Dataset for Code Understanding and Generationcited by 732
15 more
  1. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
  2. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
  3. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
  4. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
  5. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
  6. 2023CodeT5+: Open Code Large Language Models for Code Understanding and Generationcited by 327
  7. 2023SantaCoder: don't reach for the stars!cited by 169
  8. 2024InFoBench: Evaluating Instruction Following Ability in Large Language Modelscited by 128
  9. 2023CodeGen2: Lessons for Training LLMs on Programming and Natural Languagescited by 124
  10. 2024CFBench: A Comprehensive Constraints-Following Benchmark for LLMscited by 65
  11. 2024FullStack Bench: Evaluating LLMs as Full Stack Coderscited by 56
  12. 2023CodeTransOcean: A Comprehensive Multilingual Benchmark for Code Translationcited by 55
  13. 2024McEval: Massively Multilingual Code Evaluationcited by 42
  14. 2018Deepcode: Feedback Codes via Deep Learningcited by 41
  15. 2024UniCoder: Scaling Code Large Language Model via Universal Codecited by 18

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 8; 2026: 10.

18 papers.

Sort:

By area:

  1. 2025AGENTIF: Benchmarking Instruction Following of Large Language Models in Agentic Scenarioscited by 44
  2. 2025Incentivizing Reasoning for Advanced Instruction-Following of Large Language Modelscited by 17
  3. 2026OctoBench: Benchmarking Scaffold-Aware Instruction Following in Repository-Grounded Agentic Codingcited by 15
  4. 2025CodeIF-Bench: Evaluating Instruction-Following Capabilities of Large Language Models in Interactive Code Generationcited by 14
  5. 2025Revisiting the Reliability of Language Models in Instruction-Followingcited by 6
  6. 2026Many-Tier Instruction Hierarchy in LLM Agentscited by 6
  7. 2026Human oversight of agentic systems in practice: Examining the oversight work, challenges, and heuristics of developers using software agentscited by 6
  8. 2025When Instructions Multiply: Measuring and Estimating LLM Capabilities of Multiple Instructions Followingcited by 4
  9. 2025Benchmarking AI Models in Software Engineering: A Review, Search Tool, and Unified Approach for Elevating Benchmark Qualitycited by 3
  10. 2025STEPWISE-CODEX-Bench: Evaluating Complex Multi-Function Comprehension and Fine-Grained Execution Reasoningcited by 1
  11. 2026Evaluating and Achieving Controllable Code Completion in Code LLMcited by 1
  12. 2026Steerable Instruction Following Coding Data Synthesis with Actor-Parametric Schema Co-Evolutioncited by 1
6 more
  1. 2026Obey, Diverge, Collapse: Blind Obedience to Incorrect Instructions Drives Code LLMs to Irrecoverable Code Semantic Collapsecited by 1
  2. 2025PACIFIC: a framework for generating benchmarks to check Precise Automatically Checked Instruction Following In Codecited by 0
  3. 2026UniDial-EvalKit: A Unified Toolkit for Evaluating Multi-Faceted Conversational Abilitiescited by 0
  4. 2026SmellBench: Towards Fine-Grained Evaluation of Code Agents on Refactoring Taskscited by 0
  5. 2026Agents with Feelings? Personality and Emotion in Multi-Agent Software Teamscited by 0
  6. 2026MTAC-IFBench: Benchmarking Instruction-Following in Multi-Turn Agentic Codingcited by 0