paper-with-me

홈 › Papers

LangChoiceBench: Measuring and Explaining Programming-Language Choice in LLMs

2026-08-06 · Lukas Twist, Twm Stone, Helen Yannakoudakis, Jie M. Zhang 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.

📄 PDF Abstract BibTeX arXiv:2608.06041

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Explaining Explanations in Probabilistic Logic Programming

2024-01-30 · Germán Vidal

The emergence of tools based on artificial intelligence has also led to the need of producing explanations which are understandable by a human being. In most approaches, the system is considered a black box, making it di…

Evaluating and Explaining Large Language Models for Code Using Syntactic Structures

2023-08-07 · David N Palacio, Alejandro Velasco, Daniel Rodriguez-Cardenas, Kevin Moran 외

Large Language Models (LLMs) for code are a family of high-parameter, transformer-based neural networks pre-trained on massive datasets of both natural and programming languages. These models are rapidly being employed i…

JAM: The JavaScript Agent Machine for Distributed Computing and Simulation with reactive and mobile Multi-agent Systems -- A Technical Report

2022-07-22 · Stefan Bosse

Agent-based modelling (ABM), simulation (ABS), and distributed computation (ABC) are established methods. The Internet and Web-based technologies are suitable carriers. This paper is a technical report with some tutorial…

Distributed Computing

Deep Probabilistic Programming Languages: A Qualitative Study

2018-04-17 · Guillaume Baudart, Martin Hirzel, Louis Mandel

Deep probabilistic programming languages try to combine the advantages of deep learning with those of probabilistic programming languages. If successful, this would be a big step forward in machine learning and programmi…

BIG-bench Machine LearningProbabilistic Programming

Studying the Difference Between Natural and Programming Language Corpora

2018-06-06 · Casey Casalnuovo, Kenji Sagae, Prem Devanbu

Code corpora, as observed in large software systems, are now known to be far more repetitive and predictable than natural language corpora. But why? Does the difference simply arise from the syntactic limitations of prog…