mlsanityData to 14 Oct 2026

DivAlgo: A systematic evaluation of algorithmic diversity for code generation models

arXiv 2610.19157 ↗First posted 13 Oct 2026cs.SE cs.CLcited by 0

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

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 9,379
  3. 2025Qwen3 Technical Reportcited by 8,820
  4. 2021Evaluating Large Language Models Trained on Codecited by 8,320
  5. 2023Qwen Technical Reportcited by 3,344
  6. 2023Mistral 7Bcited by 3,164
  7. 2023Code Llama: Open Foundation Models for Codecited by 2,139
  8. 2022Competition-Level Code Generation with AlphaCodecited by 1,462
  9. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  10. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
  11. 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
  12. 2024Phi-4 Technical Reportcited by 711
24 more
  1. 2024A Survey on Large Language Models for Code Generationcited by 658
  2. 2024StarCoder 2 and The Stack v2: The Next Generationcited by 502
  3. 2020CodeBLEU: a Method for Automatic Evaluation of Code Synthesiscited by 479
  4. 2022The Vendi Score: A Diversity Evaluation Metric for Machine Learningcited by 311
  5. 2026Gemma 4 Technical Reportcited by 259
  6. 2024CodeGemma: Open Code Models Based on Gemmacited by 150
  7. 2025Verbalized Sampling: How to Mitigate Mode Collapse and Unlock LLM Diversitycited by 105
  8. 2025ACECODER: Acing Coder RL via Automated Test-Case Synthesiscited by 93
  9. 2024CoIR: A Comprehensive Benchmark for Code Information Retrieval Modelscited by 60
  10. 2025CodeContests+: High-Quality Test Case Generation for Competitive Programmingcited by 46
  11. 2024A Survey on Evaluating Large Language Models in Code Generation Taskscited by 44
  12. 2024Benchmarking Language Model Creativity: A Case Study on Code Generationcited by 40
  13. 2024CodeXEmbed: A Generalist Embedding Model Family for Multiligual and Multi-task Code Retrievalcited by 34
  14. 2024Towards More Trustworthy and Interpretable LLMs for Code through Syntax-Grounded Explanationscited by 11
  15. 2024Assessing the Creativity of LLMs in Proposing Novel Solutions to Mathematical Problemscited by 11
  16. 2025How Diversely Can Language Models Solve Problems? Exploring the Algorithmic Diversity of Model-Generated Codecited by 11
  17. 2026Code-A1: Adversarial Evolving of Code LLM and Test LLM via Reinforcement Learningcited by 8
  18. 2023Language Agnostic Code Embeddingscited by 4
  19. 2026Exploring Pass-Rate Reward in Reinforcement Learning for Code Generationcited by 4
  20. 2025Evolution of Programmers' Trust in Generative AI Programming Assistantscited by 3
  21. 2026Rethinking Code Similarity for Automated Algorithm Design with LLMscited by 3
  22. 2026Beyond pass@k: Redundancy-Aware RLVR for Multi-Sample Code Generationcited by 1
  23. 2026The Invisible Lottery: How Subtle Cues Steer Algorithm Choice in LLM Code Generationcited by 1
  24. 2026Effectiveness of LLM-based Software Diversity for Reliability Improvement -- an Empirical Studycited by 1

Built on by

Not cited yet.