To Örebro University

oru.seÖrebro University Publications
Change search
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf
Using Large Language Models and Few-Shot Learning to Classify Natural Language Requirements: An Experimental Study
Örebro University, Örebro University School of Business. (Department of Informatics, CERIS)ORCID iD: 0000-0002-0311-1502
Örebro University, Örebro University School of Business. (Department of Informatics, CERIS)ORCID iD: 0000-0002-3265-7627
Örebro University, Örebro University School of Business. (Department of Informatics, CERIS)ORCID iD: 0000-0001-8604-8862
Örebro University, Örebro University School of Business. (Department of Informatics, CERIS)ORCID iD: 0000-0002-3722-6797
2027 (English)In: Quality of Information and Communications Technology: 18th International Conference, QUATIC 2025, Lisbon, Portugal, September 3–5, 2025, Proceedings, Part I: Conference proceedings / [ed] Américo Rio; José Pereira dos Reis; Stamatia Bibi; Ricardo Machado, Springer, 2027, Vol. 16315, p. 166-180Conference paper, Published paper (Refereed)
Abstract [en]

Background: Classifying natural language requirements (NLRs) is challenging, especially with large volumes. Research shows that Large Language Models (LLMs) can assist by categorising NLRs into Functional Requirements (FR) and Non-Functional Requirements (NFR). However, concerns about their consistency have been raised.

Aim: In this work, we aim to investigate the consistency when Generative Pretrained Transformer (GPT) -like models, such as GPT-4.1 and LLAMA3.3-70B, classify NLRs into FRs and NFRs by using the Few-Shot Learning (FSL) approach. We explore how the number of examples used in the FSL approach and the temperature setting affect the consistency of NRL classification results.

Method: For this study, we use the PROMISE NFR dataset. Experimental design is employed to investigate the binary classification of FR versus NFR. To accomplish this goal, we use FSL with GPT-4.1 and LLAMA3.3-70B to classify the requirements.

Results: The results show that GPT-4.1 performs similarly with two and ten examples. However, the results somewhat differ for LLAMA3.3-70B, where FSL is slightly better using FSL with ten examples compared to two. Moreover, both LLM models seem to perform well in identifying FRs but have a more conservative classification behaviour when classifying NFRs. Finally, the temperature parameter does not seem to significantly impact the classification results.

Conclusions: When using FSL, using two versus ten examples slightly impacts the results. Moreover, we experimented with different temperatures (Temp = 0, Temp = 1, Temp = 2), and the temperature parameter does not seem to impact the classification results. Therefore, LLMs do not seem to become more creative even when the temperature increases.

Place, publisher, year, edition, pages
Springer, 2027. Vol. 16315, p. 166-180
Series
Lecture Notes in Computer Science (LNCS), ISSN 0302-9743, E-ISSN 1611-3349 ; 16315
National Category
Information Systems
Identifiers
URN: urn:nbn:se:oru:diva-131824DOI: 10.1007/978-3-032-20631-2_11ISBN: 9783032206305 (print)ISBN: 9783032206312 (electronic)OAI: oai:DiVA.org:oru-131824DiVA, id: diva2:2109126
Conference
18th International Conference on the Quality of Information and Communications Technology (QUATIC 2025), Lisbon, Portugal, September 3–5, 2025
Available from: 2026-10-08 Created: 2026-10-08 Last updated: 2026-10-09Bibliographically approved

Open Access in DiVA

No full text in DiVA

Other links

Publisher's full text

Authority records

Chatzipetrou, PanagiotaKarlsson, FredrikHavstorm, Tanja ElinaGao, Shang

Search in DiVA

By author/editor
Chatzipetrou, PanagiotaKarlsson, FredrikHavstorm, Tanja ElinaGao, Shang
By organisation
Örebro University School of Business
Information Systems

Search outside of DiVA

GoogleGoogle Scholar

doi
isbn
urn-nbn

Altmetric score

doi
isbn
urn-nbn
Total: 13 hits
CiteExportLink to record
Permanent link

Direct link
Cite
Citation style
  • apa
  • ieee
  • modern-language-association-8th-edition
  • vancouver
  • Other style
More styles
Language
  • de-DE
  • en-GB
  • en-US
  • fi-FI
  • nn-NO
  • nn-NB
  • sv-SE
  • Other locale
More languages
Output format
  • html
  • text
  • asciidoc
  • rtf