Metraipolis › archive › dc_0615004c10c2

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

Source
arXiv (en)
Original
https://arxiv.org/abs/2610.19157
License (as archived)
CC0-1.0
Archived
2026-10-15T20:36:07.294Z
SHA-256 of the archived text
d10d1617b8a562edc4cd70409a7b328a196cae06d333a234ebb1a7865586de15
Stable URL of this page
https://metraipolis.com/documento/dc_0615004c10c2

How to cite

DivAlgo: A systematic evaluation of algorithmic diversity for code generation models — arXiv:2610.19157 — arXiv (en), https://arxiv.org/abs/2610.19157 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_0615004c10c2 (Metraipolis archive dc_0615004c10c2, sha256 d10d1617b8a562edc4cd70409a7b328a196cae06d333a234ebb1a7865586de15)
BibTeX
@misc{dc0615004c10c2,
  title = {DivAlgo: A systematic evaluation of algorithmic diversity for code generation models — arXiv:2610.19157},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2610.19157},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_0615004c10c2; sha256 d10d1617b8a562edc4cd70409a7b328a196cae06d333a234ebb1a7865586de15},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.19157. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

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.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.CL, nuovi lavori del giorno).
Categorie arXiv: Software Engineering (cs.SE) ; Computation and Language (cs.CL).
Pagina del lavoro: https://arxiv.org/abs/2610.19157 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-15T19:36:18.283Z dalla pagina https://arxiv.org/list/cs.CL/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).