LLM-based Iterative Refinement of Finite-State Machines with STPA Controller Constraints and Generation of IEC 61499 Code

dc.contributorAalto-yliopistofi
dc.contributorAalto Universityen
dc.contributor.authorKing, Akira
dc.contributor.authorVyatkin, Valeriy
dc.contributor.departmentDepartment of Electrical Engineering and Automationen
dc.contributor.editorAlmeida, Luis
dc.contributor.editorIndria, Marina
dc.contributor.editorde Sousa, Mario
dc.contributor.editorVisioli, Antonio
dc.contributor.editorAshjaei, Mohammad
dc.contributor.editorSantos, Pedro
dc.contributor.groupauthorInformation Technologies in Industrial Automationen
dc.contributor.organizationDepartment of Electrical Engineering and Automation
dc.date.accessioned2025-12-29T18:51:47Z
dc.date.available2025-12-29T18:51:47Z
dc.date.issued2025
dc.description.abstractLarge Language Models (LLMs) are increasingly being used in software development and in applications like code generation. While LLMs can provide significant value in the form of time savings in common programming languages like Python, their usability in generating automation software has yet to be studied extensively. In the context of generating control software in the form of IEC 61131-3 compliant code, initial studies suggest LLMs provide a promising avenue for increasing control engineer productivity. However, similar code generation for IEC 61499-based control applications is still scarce. While tools are being developed for this purpose, their capabilities are not yet fully understood, and they often require significant human input to generate the intended outcomes. This paper explores LLM-based code generation for IEC 61499-based applications through iterative prompting. The prompts for the experiments are derived from requirements generated by System-Theoretic Process Analysis (STPA), which provides a systematic approach to creating prompts that also connect to the larger systems engineering workflow. The results indicate that while the approach may be successful in some instances, more work is required to mitigate the issues arising from its application.en
dc.description.versionPeer revieweden
dc.format.extent8
dc.format.mimetypeapplication/pdf
dc.identifier.citationKing, A & Vyatkin, V 2025, LLM-based Iterative Refinement of Finite-State Machines with STPA Controller Constraints and Generation of IEC 61499 Code. in L Almeida, M Indria, M de Sousa, A Visioli, M Ashjaei & P Santos (eds), 2025 IEEE 30th International Conference on Emerging Technologies and Factory Automation (ETFA). Proceedings IEEE International Conference on Emerging Technologies and Factory Automation, IEEE, IEEE International Conference on Emerging Technologies and Factory Automation, Porto, Portugal, 09/09/2025. https://doi.org/10.1109/ETFA65518.2025.11205687en
dc.identifier.doi10.1109/ETFA65518.2025.11205687
dc.identifier.isbn979-8-3315-5383-8
dc.identifier.issn1946-0759
dc.identifier.otherPURE UUID: a5d441e5-15d5-41ed-a536-07c8ad80250d
dc.identifier.otherPURE ITEMURL: https://research.aalto.fi/en/publications/a5d441e5-15d5-41ed-a536-07c8ad80250d
dc.identifier.otherPURE FILEURL: https://research.aalto.fi/files/202973848/LLM-based_Iterative_Refinementof_Finite-State_Machines.pdf
dc.identifier.urihttps://aaltodoc.aalto.fi/handle/123456789/141539
dc.identifier.urnURN:NBN:fi:aalto-202512299647
dc.language.isoenen
dc.relation.ispartofIEEE International Conference on Emerging Technologies and Factory Automationen
dc.relation.ispartofseries2025 IEEE 30th International Conference on Emerging Technologies and Factory Automation (ETFA)en
dc.relation.ispartofseriesProceedings IEEE International Conference on Emerging Technologies and Factory Automationen
dc.rightsopenAccessen
dc.subject.keywordfinite-state machine
dc.subject.keywordSTPA
dc.subject.keyworditerative prompting
dc.subject.keywordIEC61499
dc.subject.keywordLLM
dc.titleLLM-based Iterative Refinement of Finite-State Machines with STPA Controller Constraints and Generation of IEC 61499 Codeen
dc.typeA4 Artikkeli konferenssijulkaisussafi
dc.type.versionacceptedVersion

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
LLM-based_Iterative_Refinementof_Finite-State_Machines.pdf
Size:
2.27 MB
Format:
Adobe Portable Document Format