Abstract
dc:description.abstractIn recent years, there has been a rapid growth in the adoption of Generative Artificial Intelligence models, particularly Large Language Models (LLMs), for a wide range of tasks. One of the most significant tasks is the generation of code based on natural language descriptions. The popularity of LLMs in this task arises from their ability to produce contextually relevant code, their support for multiple programming languages, and their potential to significantly reduce development time and costs. These models are widely used in domains such as software development, education, data science, and automated testing. They also play a pivotal role in advancing technologies like low-code platforms and AI-assisted programming tools. However, despite their success across many tasks, LLMs still face challenges in generating functional code, particularly for complex problems or less common programming languages. These limitations highlight the need for a robust and comprehensive benchmarking framework to effectively evaluate LLMs in text-to-code generation. Such a benchmark would provide deeper insight into the strengths and weaknesses of different models, helping practitioners select the most suitable model for their specific tasks and enabling researchers to better understand where their models excel or fall short. While several benchmarks have been proposed, they often rely on incomplete datasets with a small number of problems or problems with similar difficulty levels, cover only a limited range of programming languages (frequently just one), and evaluate performance using a narrow set of metrics, typically focusing solely on functional correctness. This overlooks important aspects such as how close the generated code is to a valid implementation, and its quality. Moreover, existing benchmarks do not follow a structured methodology, lacking aspects such as a clear evaluation procedure, which undermines trust in their results and makes it difficult to extend them to assess other critical aspects of code generation, such as reliability and security.In this dissertation, we explore the concepts of LLMs, code generation and evaluation, and benchmarking, with the goal of designing a systematic benchmarking framework for assessing LLMs in text-to-code generation tasks. The proposed framework includes a diverse set of problems with varying complexity, incorporates multiple evaluation metrics, and supports a wide range of experimental setups, enabling a structured comparison of LLMs and providing insights into their strengths, limitations, and applicability to real-world programming challenges. We instantiated the framework and used it to evaluate several open-source models, demonstrating its practical utility. The results show that, despite their potential, LLMs still struggle with complex tasks and exhibit recurring issues such as missing import statements and incorrect variable scoping, which limit their reliability in more demanding scenarios.
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Nogueira, Rodrigo Pato de Carvalho
- Advisor dc:contributor.advisor
-
- Campos, João Rodrigues de
Subjects
dc:subject × 6Rights
dc:rights- Statement dc:rights
-
- openAccess
- Language dc:language.iso
- eng
Identifiers
dc:identifier.*- Dc Identifier Tid
- 204038057