Skip to main navigation Skip to search Skip to main content

Automated Non-Functional Requirements Generation in Software Engineering with Large Language Models: A Comparative Study

    Research output: Chapter in Book/Report/Conference proceedingConference contribution

    Abstract

    Neglecting non-functional requirements (NFRs) early in software development can lead to critical challenges. Despite their importance, NFRs are often overlooked or difficult to identify, impacting software quality. To support requirements engineers in eliciting NFRs, we developed a framework that leverages Large Language Models (LLMs) to derive qualitydriven NFRs from functional requirements (FRs). Using a custom prompting technique within a Deno-based pipeline, the system identifies relevant quality attributes for each functional requirement and generates corresponding NFRs, aiding systematic integration. A crucial aspect of this framework is evaluating the quality and suitability of these generated requirements. Can LLMs produce high-quality NFR suggestions? Using 34 functional require-ments - selected as a representative subset of 3,964 FRs - the LLMs inferred applicable attributes based on the ISO/IEC 25010:2023 standard, generating 1,593 NFRs. A horizontal evaluation covered three dimensions: NFR validity, applicability of quality attributes, and classification precision. Ten industry software quality evaluators, averaging 13 years of experience, assessed a subset for relevance and quality. The evaluation showed strong alignment between LLM-generated NFRs and expert assessments, with median validity and applicability scores of 5.0 (means: 4.63 and 4.59, respectively) on a 1-5 scale. In the classification task, 80.4% of LLM-assigned attributes matched expert choices, with 8.3% near misses and 11.3% mismatches. A comparative analysis of eight LLMs highlighted variations in performance, with gemini-1.5-pro exhibiting the highest attribute accuracy, while llama-3.3-70B achieved slightly higher validity and applicability scores. These findings provide insights into the feasibility of using LLMs for automated NFR generation and lay the foundation for further exploration of AIassisted requirements engineering.

    Original languageEnglish (US)
    Title of host publicationProceedings - 2025 IEEE International Conference on Collaborative Advances in Software and Computing, CASCON 2025
    EditorsHausi A. Muller, Ying Zou, Jeremy Bradbury, Eleni Stroulia
    PublisherInstitute of Electrical and Electronics Engineers Inc.
    Pages474-483
    Number of pages10
    ISBN (Electronic)9798331599485
    DOIs
    StatePublished - 2025
    Event35th IEEE International Conference on Collaborative Advances in Software and Computing, CASCON 2025 - Toronto, Canada
    Duration: Nov 10 2025Nov 13 2025

    Publication series

    NameProceedings - 2025 IEEE International Conference on Collaborative Advances in Software and Computing, CASCON 2025

    Conference

    Conference35th IEEE International Conference on Collaborative Advances in Software and Computing, CASCON 2025
    Country/TerritoryCanada
    CityToronto
    Period11/10/2511/13/25

    All Science Journal Classification (ASJC) codes

    • Computer Networks and Communications
    • Computer Science Applications
    • Software

    Fingerprint

    Dive into the research topics of 'Automated Non-Functional Requirements Generation in Software Engineering with Large Language Models: A Comparative Study'. Together they form a unique fingerprint.

    Cite this