LangChoiceBench: Measuring and Explaining Programming-Language Choice in LLMs
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) have been shown to exhibit strong Python preferences when generating project-level code, but there is currently no systematic way to measure this behaviour across new models. To bridge this gap, we introduce LangChoiceBench, a project-level code-generation benchmark for measuring Python preference, recommendation-implementation consistency, and language diversity. LangChoiceBench covers 28 projects across seven software areas where Python is often a poor default. We evaluate 25 diverse LLMs and find that Python remains heavily over-selected, recommendation-implementation consistency is low, and smaller open-weight models generally show stronger Python preference and lower language diversity. We further analyse 9,826 reasoning traces and find that most Python choices are automatic or driven primarily by ease, rather than explicit consideration of project requirements. In a smaller but important set of cases, models fabricate contextual support for choosing Python - a failure mode we call phantom evidence - or produce code that contradicts the language selected in their own reasoning.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 24 of its 55 references that are in the map. First posted on arXiv 6 Aug 2026.
Builds on
24 of 55 references.
References · 24
- 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,373
- 2024SWE-agent: Agent-Computer Interfaces Enable Automated Software Engineeringcited by 1,737
- 2023Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Promptingcited by 1,122
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2021Asleep at the Keyboard? Assessing the Security of GitHub Copilot's Code Contributionscited by 431
- 2025Reasoning Models Don't Always Say What They Thinkcited by 415
- 2022The Vendi Score: A Diversity Evaluation Metric for Machine Learningcited by 311
- 2023CodeGeeX: A Pre-Trained Model for Code Generation with Multilingual Benchmarking on HumanEval-Xcited by 300
- 2023An Empirical Study of the Non-determinism of ChatGPT in Code Generationcited by 137
- 2024EffiBench: Benchmarking the Efficiency of Automatically Generated Codecited by 64
- 2023Bias Testing and Mitigation in LLM-based Code Generationcited by 53
- 2023Security Weaknesses of Copilot-Generated Code in GitHub Projects: An Empirical Studycited by 38
12 more
- 2024CodeHalu: Investigating Code Hallucinations in LLMs via Execution-based Verificationcited by 34
- 2025Assistance or Disruption? Exploring and Evaluating the Design and Trade-offs of Proactive AI Programming Supportcited by 34
- 2025Vibe coding: programming through conversation with artificial intelligencecited by 29
- 2024An Empirical Study on Usage and Perceptions of LLMs in a Software Engineering Projectcited by 28
- 2025ProjectEval: A Benchmark for Programming Agents Automated Evaluation on Project-Level Code Generationcited by 26
- 2023Uncovering and Quantifying Social Biases in Code Generationcited by 25
- 2024Exploring Multi-Lingual Bias of Large Code Models in Code Generationcited by 17
- 2019On the Impact of Programming Languages on Code Qualitycited by 6
- 2021Performance vs Programming Effort between Rust and C on Multicore Architectures: Case Study in N-Bodycited by 2
- 2025Programming Language Confusion: When Code LLMs Can't Keep their Languages Straightcited by 2
- 2025Library Hallucinations in LLM-Generated Code: A Risk Analysis Grounded in Developer Queriescited by 1
- 2026Social Bias in LLM-Generated Code: Benchmark and Mitigationcited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025A Study of LLMs' Preferences for Libraries and Programming Languages
- 2026Subjective Code Preferences in Experts and Large Language Models ↗
- 2026Evaluating Language Models on Cross-Language Code Functional Equivalence
- 2026Multi-LCB: Extending LiveCodeBench to Multiple Programming Languages
- 2026When LLMs Lag Behind: Knowledge Conflicts from Evolving APIs in Code Generation
- 2026Narrowing the Complexity Gap in the Evaluation of Large Language Models ↗
- 2024Learning Code Preference via Synthetic Evolution
- 2025code_transformed: The Influence of Large Language Models on Code