Skip to main navigation Skip to search Skip to main content

BFGen: Basic Flow Generation for Refining Requirements via LLM and Relational Graph Attention Networks

  • Guangyu Wang
  • , Bangqi Li
  • , Ji Wu*
  • , Zhijun Shao
  • *Corresponding author for this work
  • Beihang University

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

Identifying interaction scenarios between a system and its actors from the high-level requirements and forming use case basic flows is crucial in requirement refinement. Traditional manual methods often yield incomplete or inaccurate flows due to engineers' limited domain expertise, while rulebased methods-relying on predefined parsing rules-suffer from linguistic ambiguities and domain-dependent limitations. Although large language model (LLM) approaches leverage rich domain knowledge and robust natural language processing, they are constrained by input length, generation instability, and the risk of out-of-system outputs, frequently resulting in context-unaware or irrelevant flows. To overcome these challenges, this paper proposes BFGen to generate contextcompliant basic flows strictly adhering to domain constraints and requirement boundaries. BFGen employs LLMs to accurately extract domain-specific terms and interactions, and integrates a Relational Graph Attention Network with attention preservation factors to model logical dependencies and domain constraints effectively. Empirical evaluations on 13 public and 7 industrial datasets show that BFGen outperforms leading baselines by 14% in Precision, 7-25% in Recall, 11- 30% in F1 Score, and 10-19% in AUC. Furthermore, our evaluations confirm the effectiveness of both the LLM module and the attention preservation factors, and assess the impact of requirement completeness on the performance of BFGen.

Original languageEnglish
Title of host publicationProceedings - 2025 25th International Conference on Software Quality, Reliability and Security, QRS 2025
PublisherInstitute of Electrical and Electronics Engineers
Pages120-131
Number of pages12
ISBN (Electronic)9781665477710
DOIs
StatePublished - 2025
Event25th International Conference on Software Quality, Reliability and Security, QRS 2025 - Hangzhou, China
Duration: 16 Jul 202520 Jul 2025

Publication series

NameIEEE International Conference on Software Quality, Reliability and Security, QRS
ISSN (Print)2693-9177

Conference

Conference25th International Conference on Software Quality, Reliability and Security, QRS 2025
Country/TerritoryChina
CityHangzhou
Period16/07/2520/07/25

Keywords

  • Basic Flow Generation
  • Graph Attention Networks
  • Large Language Models
  • Requirements Refinement

Fingerprint

Dive into the research topics of 'BFGen: Basic Flow Generation for Refining Requirements via LLM and Relational Graph Attention Networks'. Together they form a unique fingerprint.

Cite this