A Study of LLMs' Preferences for Libraries and Programming Languages
A new study reveals that large language models (LLMs) exhibit a strong preference for popular libraries and programming languages, often choosing them even when less common or more suitable options exist. The research found that LLMs frequently overuse libraries like NumPy, with deviations from optimal solutions occurring up to 45% of the time. Furthermore, Python remains the dominant language choice for LLMs, even in scenarios where other languages like Rust would be more appropriate for high-performance tasks. AI
IMPACT Highlights a need for LLMs to select optimal programming languages and libraries, rather than defaulting to popular choices.