[Paper Review] Safety Analysis in the Era of Large Language Models: A Case Study of STPA using ChatGPT
The paper evaluates using ChatGPT to perform STPA safety analysis on Automatic Emergency Brake (AEB) and Electricity Demand Side Management (DSM) systems, studying collaboration schemes, input complexity, and prompt engineering, and comparing results to human experts.
Can safety analysis make use of Large Language Models (LLMs)? A case study explores Systems Theoretic Process Analysis (STPA) applied to Automatic Emergency Brake (AEB) and Electricity Demand Side Management (DSM) systems using ChatGPT. We investigate how collaboration schemes, input semantic complexity, and prompt guidelines influence STPA results. Comparative results show that using ChatGPT without human intervention may be inadequate due to reliability related issues, but with careful design, it may outperform human experts. No statistically significant differences are found when varying the input semantic complexity or using common prompt guidelines, which suggests the necessity for developing domain-specific prompt engineering. We also highlight future challenges, including concerns about LLM trustworthiness and the necessity for standardisation and regulation in this domain.
Motivation & Objective
- Assess whether ChatGPT can assist in STPA safety analysis for complex safety-critical systems.
- Compare different collaboration schemes between humans and ChatGPT in STPA workflows.
- Investigate the impact of input semantic complexity on STPA outputs.
- Evaluate the effect of domain-agnostic versus STPA-specific prompts on STPA results.
Proposed method
- Apply three collaboration schemes (one-off simplex, recurring simplex, recurring duplex) to integrate ChatGPT into STPA for AEB and DSM baselines.
- Use human expert STPA results as baselines for comparison.
- Vary input semantic complexity (low/medium/high) of control loop structures and prompt types (domain-agnostic vs STPA-specific) and measure UCA correctness.
- Perform Tukey-Kramer statistical tests to assess differences in comprehensiveness and pertinence of UCAs across conditions.
Experimental results
Research questions
- RQ1RQ1: How do different collaboration schemes of integrating ChatGPT into STPA affect effectiveness and usability?
- RQ2RQ2: To what extent do variations in semantic complexity of input questions to ChatGPT affect STPA results?
- RQ3RQ3: Does domain-agnostic versus STPA-specific prompt engineering affect the comprehensiveness and pertinence of STPA results?
Key findings
- ChatGPT without human intervention is unreliable for STPA results but can outperform humans with careful design.
- More human–ChatGPT interaction (recurring duplex) yields more comprehensive UCAs than other schemes, at the cost of higher effort.
- Input semantic complexity did not show statistically significant differences in results.
- STPA-specific prompts significantly improve pertinence but yield more conservative and less comprehensive outputs.
- Domain-agnostic prompts can yield more UCAs than STPA-specific prompts in some measures, suggesting prompt design effects on results.
- All experimental data are publicly accessible.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.