COPELABS - Artigos de Revistas Internacionais com Arbitragem Científica
URI permanente para esta coleção:
Navegar
Percorrer COPELABS - Artigos de Revistas Internacionais com Arbitragem Científica por autor "Fernandes, Carlos M."
A mostrar 1 - 1 de 1
Resultados por página
Opções de ordenação
Item GPT-4.1 Sets the Standard in Automated Experiment Design Using Novel Python Libraries(Multidisciplinary Digital Publishing Institute (MDPI), 2025) Fachada, Nuno; Fernandes, Daniel; Fernandes, Carlos M.; Ferreira-Saraiva, Bruno D.; Matos-Carvalho, João P.; COPELABS - Cognitive and People-centric Computing; CICANT - Centre for Research in Applied Communication, Culture, and New Technologies; ECATI - School of Communication, Architecture, Arts and Information TechnologiesLarge Language Models (LLMs) have advanced rapidly as tools for automating code generation in scientific research, yet their ability to interpret and use unfamiliar Python APIs for complex computational experiments remains poorly characterized. This study systematically benchmarks a selection of state-of-the-art LLMs in generating functional Python code for two increasingly challenging scenarios: conversational data analysis with the \textit{ParShift} library, and synthetic data generation and clustering using \textit{pyclugen} and \textit{scikit-learn}. Both experiments use structured, zero-shot prompts specifying detailed requirements but omitting in-context examples. Model outputs are evaluated quantitatively for functional correctness and prompt compliance over multiple runs, and qualitatively by analyzing the errors produced when code execution fails. Results show that only a small subset of models consistently generate correct, executable code, with GPT-4.1 standing out as the only model to always succeed in both tasks. In addition to benchmarking LLM performance, this approach helps identify shortcomings in third-party libraries, such as unclear documentation or obscure implementation bugs. Overall, these findings highlight current limitations of LLMs for end-to-end scientific automation and emphasize the need for careful prompt design, comprehensive library documentation, and continued advances in language model capabilities.