polito.it
Politecnico di Torino (logo)

Enhancing Requirements Engineering with Large Language Models: From Elicitation and Classification to Traceability, Ambiguity Management and API Recommendation

Vittoria Ocleppo

Enhancing Requirements Engineering with Large Language Models: From Elicitation and Classification to Traceability, Ambiguity Management and API Recommendation.

Rel. Riccardo Coppola. Politecnico di Torino, Corso di laurea magistrale in Ingegneria Informatica (Computer Engineering), 2025

[img]
Preview
PDF (Tesi_di_laurea) - Tesi
Licenza: Creative Commons Attribution Non-commercial No Derivatives.

Download (11MB) | Preview
Abstract:

This thesis investigates the integration of Large Language Models (LLMs) into Requirements Engineering to enhance the overall management of software requirements. The research develops an extensive literature review that begins with the evolution of sequence modeling—from RNNs to the attention mechanism and encoder-decoder frameworks—and proceeds by examining a large number of the most recent approaches that apply Pre-Trained and Large Language Models to the key requirements engineering tasks—from elicitation and classification to ambiguity management, traceability and finally API recommendation. Along with this, a practical experiment on API tracing is conducted. The experiment employs a multi-step approach based on Goal-Oriented Requirements Engineering (GORE) to map low-level software goals—generated based on natural language project documentation—to specific API endpoints detailed in Swagger files. The experiment simulates the distinct tasks of LLM-based agents through iterative conversational interactions with GPT-4. The results highlight that while the model can effectively generate and map user-centric goals to API endpoints, performance is variable, with occasionally inconsistent mappings and omissions, which underscores the need for further interventions aimed at improving results, including enhanced prompt engineering, quality and clarity of software description and, ultimately, a structured approach leveraging an agentic architecture. Overall, this work contributes with an extensive overview of the recent LLM-based approaches to the core tasks of requirements engineering, while also offering practical insights through the experiment with the GPT-4 model in eliciting software goals and mapping them to API endpoints, showing challenges and benefits of applying LLMs to requirements engineering.

Relatori: Riccardo Coppola
Anno accademico: 2024/25
Tipo di pubblicazione: Elettronica
Numero di pagine: 138
Soggetti:
Corso di laurea: Corso di laurea magistrale in Ingegneria Informatica (Computer Engineering)
Classe di laurea: Nuovo ordinamento > Laurea magistrale > LM-32 - INGEGNERIA INFORMATICA
Aziende collaboratrici: NON SPECIFICATO
URI: http://webthesis.biblio.polito.it/id/eprint/35398
Modifica (riservato agli operatori) Modifica (riservato agli operatori)