[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-655961-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-655961-en":130,"doc-similar-655961":163},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","automating-data-flow-diagram-generation-from-user-stories-using-large-language-models-paper-3","Automating Data Flow Diagram Generation from User Stories Using Large Language Models - Paper 3","","Visual modeling, especially Data Flow Diagrams (DFDs), is crucial in software development for designing, understanding, and communicating system structures, including potential security and privacy threats. However, manual DFD creation is time-consuming and hard to automate because user requirements must be accurately interpreted and abstracted into correct, complete, and semantically faithful diagram elements. This study evaluates LLM-based automation using GPT-3.5, GPT-4, Llama2, and Mixtral, with human oversight and an open-source tool to keep diagrams editable. Results show GPT-4 generating the most complete DFDs, with progress in open-source models, enabling scalable visual modeling.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/research-report/","Research & Report",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/automating-data-flow-diagram-generation-from-user-stories-using-large-language-models-paper-3/655961/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/automating-data-flow-diagram-generation-from-user-stories-using-large-language-models-paper-3/655961.png","ImageObject",300,407,{"name":42,"@type":43},"Asher","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-26","2026-10-25",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",7,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"Why is automating DFD generation difficult from user stories?","Question",{"text":63,"@type":64},"It is challenging to accurately interpret user requirements and abstract them into correct, complete DFD elements while maintaining semantic accuracy and editability for human intervention.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"Which large language models are evaluated in the study?",{"text":68,"@type":64},"The study uses GPT-3.5, GPT-4, Llama2, and Mixtral to generate DFDs from user requirements.",{"name":70,"@type":61,"acceptedAnswer":71},"How does human oversight contribute to the proposed approach?",{"text":72,"@type":64},"Human oversight and an open-source diagramming tool are used to ensure generated diagrams are accurate, complete, and editable for subsequent human correction.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},655961,1793074171,{"code":4,"msg":82,"data":83},"success",[84,88,92,96,101,106,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":93,"show_sort_weight":94,"slug":95},"Exam",70,"exam",{"id":97,"doc_module":4,"doc_module_name":25,"category_name":98,"show_sort_weight":99,"slug":100},5,"Comic",60,"comic",{"id":102,"doc_module":4,"doc_module_name":25,"category_name":103,"show_sort_weight":104,"slug":105},6,"Technology",50,"technology",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},"Healthcare",40,"healthcare",{"id":111,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":112,"slug":113},8,30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":97,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":111,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":145,"preview_page_count":33,"preview_urls":146},687197207639,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","Automating Data Flow Diagram Generation from User Stories Using Large Language Models  \nGuntur Budi Herwanto1,2  \n1 Faculty of Computer Science, University of Vienna  \n2 Department of Computer Science and Electronics, Universitas Gadjah Mada  \nAbstract  \nVisual modeling, particularly Data Flow Diagrams (DFDs), plays an essential role in modern software development, aiding in the design, understanding, and communication of system structures and potential security and privacy threats. Despite their importance, the manual creation of visual models is timeconsuming highlighting the need for automation in the generation of DFDs from user requirements. Automating the generation of DFDs presents a significant challenge, especially in accurately interpreting user requirements and abstracting them into correct and complete diagram elements. The complexity of this task is compounded by the need for semantic accuracy and the ability to facilitate visual editing for human intervention. This study explores the use of Large Language Models (LLMs) to automate DFD generation, utilizing GPT-3.5, GPT-4, Llama2, and Mixtral models. This study emphasizes human oversight and employs an open-source diagramming tool to ensure that diagrams are accurate, complete, and editable. The findings reveal GPT-4’s superior capability in generating complete DFDs, with significant progress from open-source models like Mixtral, indicating a viable path toward automated visual modeling. This approach advances scalable automation in creating visual software models, with broader implications for automating other diagram types.  \nKeywords  \nVisual Modeling, Data Flow Diagrams, Software Development, Large Language Models  \n1. Introduction  \nVisual modeling is an essential part of modern software development. It facilitates the design and understanding of systems while improving communication and documentation [1, 2] . One application of visual modeling is identifying potential security [3, 4] and privacy threats [5, 6] in software systems. One of the prominent diagrams for this case is the Data Flow Diagram (DFD) . DFD illustrates data movement within processes, stakeholders, and the data store. DFDs also provide an understanding of system operations at multiple levels of granularity. They have proven effective in characterizing the system in privacy threat analysis [5] . In addition, the standard syntax of DFD has been extended [4] and adapted to explicitly model security [3] and privacy concerns [6] .  \nIn: D. Mendez, A. Moreira, J. Horkoff, T. Weyer, M. Daneva, M. Unterkalmsteiner, S. Bühne, J. Hehn, B. Penzenstadler, N. Condori-Fernández, O. Dieste, R. Guizzardi, K. M. Habibullah, A. Perini, A. Susi, S. Abualhaija, C. Arora, D. Dell’Anna, A. Ferrari, S. Ghanavati, F. Dalpiaz, J. Steghöfer, A. Rachmann, J. Gulden, A. Müller, M. Beck, D. Birkmeier, A. Herrmann, P. Mennig, K. Schneider. Joint Proceedings of REFSQ- 2024 Workshops, Doctoral Symposium, Posters & Tools Track, and Education and Training Track. Co-located with REFSQ 2024 . Winterthur, Switzerland, April 8, 2024 . [Envelope-Open](Envelope-Open gunturbudi@ugm.ac.id)[ gunturbudi@ugm.ac.id](Envelope-Open gunturbudi@ugm.ac.id) (G. B. Herwanto)  \n © 2024 Copyright © 2024 for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0) .  \nCEUR ~~  ~~[Workshop](Workshop ceur-ws.org)[ ceur-ws.org](Workshop ceur-ws.org)[ ](Workshop ceur-ws.org)[Proceedings](Proceedings ISSN 1613-0073)[ ISSN 1613-0073](Proceedings ISSN 1613-0073)   \nHowever, manually creating visual models such as DFD is a time-consuming process[7], which can be a challenge when conducting threat modeling[7] . To address this issue, attempts have been made to automate creating DFDs from user requirements[8] . However, accurately interpreting and abstracting user requirements into DFD elements remains challenging using standard NLP approaches such as POS tagging and dependency tree [9] . The emerg","cbCais6YhtNm9Gc9","https://ap.wps.com/l/cbCais6YhtNm9Gc9","pdf",814070,11,"English","# Introduction\n## Background on visual modeling and DFDs\n## Motivation for automation with LLMs\n# Study focus and research questions\n## Model comparison for syntactic correctness\n## Comparison of functionality representation","[{\"question\":\"Why is automating DFD generation difficult from user stories?\",\"answer\":\"It is challenging to accurately interpret user requirements and abstract them into correct, complete DFD elements while maintaining semantic accuracy and editability for human intervention.\"},{\"question\":\"Which large language models are evaluated in the study?\",\"answer\":\"The study uses GPT-3.5, GPT-4, Llama2, and Mixtral to generate DFDs from user requirements.\"},{\"question\":\"How does human oversight contribute to the proposed approach?\",\"answer\":\"Human oversight and an open-source diagramming tool are used to ensure generated diagrams are accurate, complete, and editable for subsequent human correction.\"}]","Automating Data Flow Diagram Generation from User Stories Using Large Language Models - Paper 3 | PDF",1792965144,28,[147,151,155,159],{"page_no":22,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/ff0dc040e3e685fb2c5a6ebf617dc783.webp",983,1390,{"page_no":26,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/1db0eaa2a844c42107a15cde9b05bf32.webp",982,1388,{"page_no":30,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/051a19f1786abe4570f6ac2de64a661e.webp",981,1387,{"page_no":33,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-18/c9efd8fc266698d356c95d2b0db2d2b2.webp",980,1385,{"list":164,"token":11},[165,171,177,183,189,196,202,208,214,220],{"doc_id":166,"doc_title":167,"file_type":137,"home_preview_img_url":168,"slug":169,"view_count":115,"category_name":29,"create_tm":170},657616,"3 - Struct Analys Fnctnal Design-of IIS - p2 - DFD - ii - Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975629795/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=JTaIe%2BOpAyh5erJe4FCkeJ6NVKY%3D","3-struct-analys-fnctnal-design-of-iis-p2-dfd-ii-diagrams",1792985205,{"doc_id":172,"doc_title":173,"file_type":137,"home_preview_img_url":174,"slug":175,"view_count":111,"category_name":29,"create_tm":176},655962,"FORMALIZATION OF THE DATA FLOW DIAGRAM RULES FOR CONSISTENCY CHECK","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975295176/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=2bCFHIFQf8qQCfQ063FdqXQhJKs%3D","formalization-of-the-data-flow-diagram-rules-for-consistency-check",1792965145,{"doc_id":178,"doc_title":179,"file_type":137,"home_preview_img_url":180,"slug":181,"view_count":111,"category_name":29,"create_tm":182},655965,"Checking Threat Modeling Data Flow Diagrams - Implementation Conformance and Security","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975295196/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=vrbUGtmD%2FblgqlmcnSfBy2WbM0U%3D","checking-threat-modeling-data-flow-diagrams-implementation-conformance-and-security",1792965152,{"doc_id":184,"doc_title":185,"file_type":137,"home_preview_img_url":186,"slug":187,"view_count":123,"category_name":29,"create_tm":188},656041,"Transforming Data Flow Diagrams for Privacy Compliance - Paper","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974782761/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=EPU0abOiSp0RGRroul5h6kWeDfo%3D","transforming-data-flow-diagrams-for-privacy-compliance-paper",1792965805,{"doc_id":190,"doc_title":191,"file_type":137,"home_preview_img_url":192,"slug":193,"view_count":194,"category_name":29,"create_tm":195},82773,"Advanced Topic Modeling Techniques for Categorizing Software Vulnerabilities","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808908702/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=8bj7wZSEbXc5nb2azfIQVAbbPgc%3D","advanced-topic-modeling-techniques-for-categorizing-software-vulnerabilities",26,1784182845,{"doc_id":197,"doc_title":198,"file_type":137,"home_preview_img_url":199,"slug":200,"view_count":55,"category_name":29,"create_tm":201},655974,"Structured Systems Analysis - Lecture 3 - Structured Analysis and Data Flow Diagrams","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975296005/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=zw%2BGuHX3Tn%2FieTazJ3poS5XgdwE%3D","structured-systems-analysis-lecture-3-structured-analysis-and-data-flow-diagrams",1792965252,{"doc_id":203,"doc_title":204,"file_type":137,"home_preview_img_url":205,"slug":206,"view_count":55,"category_name":29,"create_tm":207},655971,"Analyzing Cyclic Data Flow Diagrams Regarding Information Security","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974781371/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=ClMR5aU5QTGO6AAoy9w8o8QBPpk%3D","analyzing-cyclic-data-flow-diagrams-regarding-information-security",1792965248,{"doc_id":209,"doc_title":210,"file_type":137,"home_preview_img_url":211,"slug":212,"view_count":55,"category_name":29,"create_tm":213},655968,"Data Flow and Use Case Diagrams - CIS311 - System Analysis and Design","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974781121/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=r2kIFmigV544JLcixlVO1v5Sj1k%3D","data-flow-and-use-case-diagrams-cis311-system-analysis-and-design",1792965199,{"doc_id":215,"doc_title":216,"file_type":137,"home_preview_img_url":217,"slug":218,"view_count":117,"category_name":29,"create_tm":219},327801,"Probe, Don’t Prompt: A Hidden-State Probe for Metadata Filtering in Multi-Meta-RAG","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229909347617/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=MZY1C2g7a3SV9NFeakHrO5jREUc%3D","probe-dont-prompt-a-hidden-state-probe-for-metadata-filtering-in-multi-meta-rag",1789978074,{"doc_id":221,"doc_title":222,"file_type":137,"home_preview_img_url":223,"slug":224,"view_count":117,"category_name":29,"create_tm":225},122478,"Machine Learning and Deep Learning Models for Automated Protocoling of Emergency Brain MRI Using Text from Clinical Referrals","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229836771244/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796109059&Signature=1Bjx0g5Dy2aITygmaR3RPhRqVX8%3D","machine-learning-and-deep-learning-models-for-automated-protocoling-of-emergency-brain-mri-using-text-from-clinical-referrals",1785810862]