mlsanityData to 7 Oct 2026

Top General Performance = Top Domain Performance? DomainCodeBench: A Multi-domain Code Generation Benchmark

arXiv 2412.18573 ↗First posted 24 Dec 2024cs.SE cs.AI cs.CLcited by 13

Not on the map. Why?

Abstract (arXiv)

With the rapid advancement of large language models (LLMs), extensive research has been conducted to investigate the code generation capabilities of LLMs. However, existing efforts primarily focus on general-domain tasks, leaving LLMs' code generation performance in real-world application domains underexplored. This raises a critical question: can a model's general-domain coding ability reliably represent its ability in specialized domains? In this paper, we introduce DomainCodeBench, a multi-domain code generation benchmark designed to systematically evaluate LLMs across 12 software application domains and 15 programming languages. DomainCodeBench contains 2,400 manually verified tasks with ground truth, human-annotated docstrings, and fine-grained dependency information to ensure more coverage of domain-specific challenges. Specifically, we first identify the most popular application domains by topic mining. Then, we curate coding tasks based on commonly used frameworks and platforms in each domain. We obtain several findings through extensive experiments on DomainCodeBench with ten mainstream LLMs. (1) Performance decoupling: experiments reveal that top general-domain models do not consistently excel in specific application domains; (2) Domain-specific weaknesses: LLMs often fail due to domain knowledge gaps and third-party library misusage; (3) Contextual enhancement: we show that augmenting prompts with domain-specific knowledge improves performance by around 38.17%, providing actionable insights for performance optimization. Our replication package, including the benchmark, source code, and experimental results, is available at https://github.com/DeepSoftwareAnalytics/DomainCodeBench.

Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 51 of its 87 references that are in the map. First posted on arXiv 24 Dec 2024.

Builds on

51 of 87 references.

References · 51

  1. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  2. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  3. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
  4. 2021Program Synthesis with Large Language Modelscited by 3,509
  5. 2023Qwen Technical Reportcited by 3,273
  6. 2023Code Llama: Open Foundation Models for Codecited by 2,105
  7. 2023MetaGPT: Meta Programming for A Multi-Agent Collaborative Frameworkcited by 1,761
  8. 2022Competition-Level Code Generation with AlphaCodecited by 1,427
  9. 2023WizardCoder: Empowering Code Large Language Models with Evol-Instructcited by 728
  10. 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 527
  11. 2022InCoder: A Generative Model for Code Infilling and Synthesiscited by 492
  12. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 484
38 more
  1. 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 468
  2. 2022DS-1000: A Natural and Reliable Benchmark for Data Science Code Generationcited by 442
  3. 2021Unified Pre-training for Program Understanding and Generationcited by 361
  4. 2022A Systematic Evaluation of Large Language Models of Codecited by 360
  5. 2023RepoCoder: Repository-Level Code Completion Through Iterative Retrieval and Generationcited by 357
  6. 2023RepoBench: Benchmarking Repository-Level Code Auto-Completion Systemscited by 346
  7. 2022CodeRL: Mastering Code Generation through Pretrained Models and Deep Reinforcement Learningcited by 342
  8. 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 294
  9. 2023Self-collaboration Code Generation via ChatGPTcited by 255
  10. 2023Magicoder: Empowering Code Generation with OSS-Instructcited by 251
  11. 2023CrossCodeEval: A Diverse and Multilingual Benchmark for Cross-File Code Completioncited by 181
  12. 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
  13. 2022Multi-lingual Evaluation of Code Generation Modelscited by 158
  14. 2024MAGIS: LLM-Based Multi-Agent Framework for GitHub Issue Resolutioncited by 132
  15. 2022Repository-Level Prompt Generation for Large Language Models of Codecited by 106
  16. 2018Mapping Language to Code in Programmatic Contextcited by 104
  17. 2024LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigationcited by 92
  18. 2017Latent Dirichlet Allocation (LDA) and Topic modeling: models, applications, a surveycited by 90
  19. 2022CERT: Continual Pre-Training on Sketches for Library-Oriented Code Generationcited by 87
  20. 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
  21. 2023Towards an Understanding of Large Language Models in Software Engineering Taskscited by 67
  22. 2022CoCoMIC: Code Completion By Jointly Modeling In-file and Cross-file Contextcited by 64
  23. 2022When Language Model Meets Private Librarycited by 54
  24. 2024Top Leaderboard Ranking = Top Coding Proficiency, Always? EvoEval: Evolving Coding Benchmarks via LLMcited by 38
  25. 2024EvoCodeBench: An Evolving Code Generation Benchmark with Domain-Specific Evaluationscited by 33
  26. 2024RMCBench: Benchmarking Large Language Models' Resistance to Malicious Codecited by 27
  27. 2024HumanEvo: An Evolution-aware Benchmark for More Realistic Evaluation of Repository-level Code Generationcited by 26
  28. 2023BioCoder: A Benchmark for Bioinformatics Code Generation with Large Language Modelscited by 24
  29. 2022AixBench: A Code Generation Benchmark Datasetcited by 22
  30. 2024DOMAINEVAL: An Auto-Constructed Benchmark for Multi-Domain Code Generationcited by 21
  31. 2024NaturalCodeBench: Examining Coding Performance Mismatch on HumanEval and Natural User Promptscited by 19
  32. 2024Exploring the Capabilities of LLMs for Code Change Related Taskscited by 18
  33. 2024ComplexCodeEval: A Benchmark for Evaluating Large Code Models on More Complex Codecited by 18
  34. 2024Enhancing LLM-Based Coding Tools through Native Integration of IDE-Derived Static Contextcited by 10
  35. 2024Identifying Smart Contract Security Issues in Code Snippets from Stack Overflowcited by 8
  36. 2024AI2Apps: A Visual IDE for Building LLM-based AI Agent Applicationscited by 5
  37. 2022To Type or Not to Type? A Systematic Comparison of the Software Quality of JavaScript and TypeScript Applications on GitHubcited by 4
  38. 2024Evaluating the Performance of LLMs on Technical Language Processing taskscited by 2

50 most cited of 51 All 51 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

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

13 papers.

Sort:

By area: