Relationally Guided Use Case Modeling with LLMs
Guangyu Wang, Bangqi Li, Ji Wu, Zhijun Shao
Key points
From the paper's conclusion- FlowGen uses LLM-based Semantic Information Processing (SIP) to extract semantic elements, constructs a Semantic Relational Graph (SRG) encoded by an enhanced R-GAT for basic flow generation (BFGen), and further supports branch point prediction through BPP and branch-conditioned alternative flow generation through AFGen.
- FlowGen effectively addresses the challenges of constructing use case flows by outperforming competitive baselines in all three core components.
Abstract
Use case flows are important elements of use case modeling because they support downstream software engineering activities, including requirements analysis, architectural and detailed design, and test case generation. However, constructing them manually is costly and expertise-intensive, while existing automated approaches still struggle to preserve semantic consistency, control-flow logic, data-flow logic, and the intended system boundary, especially when identifying branch points and generating alternative flows. To address this problem, we propose FlowGen for complete use case flow construction. FlowGen uses LLM-based Semantic Information Processing (SIP) to extract semantic elements, constructs a Semantic Relational Graph (SRG) encoded by an enhanced R-GAT for basic flow generation (BFGen), and further supports branch point prediction through BPP and branch-conditioned alternative flow generation through AFGen. Evaluations on 13 public and 7 industrial datasets show that FlowGen consistently outperforms competitive baselines in all three core components. In particular, BFGen improves over the best baseline by 14% in Precision, 7-25% in Recall, 11-30% in F1, and 10-19% in AUC; BPP improves Precision by 30-110%, Recall by 33-91%, and F1 by 32-117%; AFGen improves Precision by 8-23%, F1 by 5-18%, and AUC by 0.6-2.5%. Moreover, we validate the effectiveness of the LLM-based SIP module and the attention preservation factor in BFGen, analyze the impact of requirement completeness on BFGen, and examine how different scopes of branch-related context affect AFGen.
Read the paper
Discussion · 1
Science Skim's AI key points, plus readers' public thoughts
- FlowGen uses LLM-based Semantic Information Processing (SIP) to extract semantic elements, constructs a Semantic Relational Graph (SRG) encoded by an enhanced R-GAT for basic flow generation (BFGen), and further supports branch point prediction through BPP and branch-conditioned alternative flow generation through AFGen.
- FlowGen effectively addresses the challenges of constructing use case flows by outperforming competitive baselines in all three core components.
Readers' thoughts
No reader thoughts yet.
Related papers
- Leveraging Large Language Models to Model Use Case Behaviors Via Activity DiagramsSystems Engineering · 2026
- LLMs for Model-driven Engineering: A Systematic Literature ReviewACM Transactions on Software Engineering and Methodology · 2026
- Semi-formal modeling as foundation for hybrid model-driven and LLM-based code generationSoftware and Systems Modeling · 2026
- FLOWSTEP: A Framework for Learning to Predict GitHub Actions Workflow STEPsarXiv · 2026
- TraceDev: A Traceability-Driven Multi-agent Framework for Requirement-to-Code DevelopmentProceedings of the ACM on Software Engineering · 2026
- DRILS: Dependency-based Requirement Change Impact Analysis Using LLMsarXiv · 2026