DivAlgo: A systematic evaluation of algorithmic diversity for code generation models
Not on the map. Why?
Abstract (arXiv)
Code generation models are actively being used in professional and educational settings. However, the competence of large language models (LLMs) to generate algorithmically diverse code remains largely unknown. We propose the DivAlgo benchmark, a large-scale dataset constituting algorithmically diverse solutions to programming problems. We also introduce a lightweight similarity metric to enable large-scale evaluation. Our experiments across 24 modern code generation models found that uncontrolled model-generated code is significantly less diverse than human solutions (capturing ~31% of human diversity), and even the best diverse code generation strategy could achieve only ~70% of human diversity. Moreover, while it was possible to steer the models to generate solutions based on human strategies, they were unable to reproduce the diversity of the human solutions. These findings indicate the limitations of code generation models in capturing the algorithmic diversity humans exhibit, and that overexposure to model-generated code can narrow programmers' algorithmic vocabulary.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 36 of its 43 references that are in the map. First posted on arXiv 13 Oct 2026.
Builds on
36 of 43 references.
References · 36
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
- 2025Qwen3 Technical Reportcited by 8,820
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Qwen Technical Reportcited by 3,344
- 2023Mistral 7Bcited by 3,164
- 2023Code Llama: Open Foundation Models for Codecited by 2,139
- 2022Competition-Level Code Generation with AlphaCodecited by 1,462
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
- 2024Phi-4 Technical Reportcited by 711
24 more
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
- 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 479
- 2022The Vendi Score: A Diversity Evaluation Metric for Machine Learningcited by 311
- 2026Gemma 4 Technical Reportcited by 259
- 2024CodeGemma: Open Code Models Based on Gemmacited by 150
- 2025Verbalized Sampling: How to Mitigate Mode Collapse and Unlock LLM Diversitycited by 105
- 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesiscited by 93
- 2024CoIR: A Comprehensive Benchmark for Code Information Retrieval Modelscited by 60
- 2025CodeContests+: High-Quality Test Case Generation for Competitive Programmingcited by 46
- 2024A Survey on Evaluating Large Language Models in Code Generation Taskscited by 44
- 2024Benchmarking Language Model Creativity: A Case Study on Code Generationcited by 40
- 2024CodeXEmbed: A Generalist Embedding Model Family for Multiligual and Multi-task Code Retrievalcited by 34
- 2024Towards More Trustworthy and Interpretable LLMs for Code through Syntax-Grounded Explanationscited by 11
- 2024Assessing the Creativity of LLMs in Proposing Novel Solutions to Mathematical Problemscited by 11
- 2025How Diversely Can Language Models Solve Problems? Exploring the Algorithmic Diversity of Model-Generated Codecited by 11
- 2026Code-A1: Adversarial Evolving of Code LLM and Test LLM via Reinforcement Learningcited by 8
- 2023Language Agnostic Code Embeddingscited by 4
- 2026Exploring Pass-Rate Reward in Reinforcement Learning for Code Generationcited by 4
- 2025Evolution of Programmers' Trust in Generative AI Programming Assistantscited by 3
- 2026Rethinking Code Similarity for Automated Algorithm Design with LLMscited by 3
- 2026Beyond pass@k: Redundancy-Aware RLVR for Multi-Sample Code Generationcited by 1
- 2026The Invisible Lottery: How Subtle Cues Steer Algorithm Choice in LLM Code Generationcited by 1
- 2026Effectiveness of LLM-based Software Diversity for Reliability Improvement -- an Empirical Studycited by 1
Built on by
Not cited yet.