# What if we approach AI safety like a technical engineering safety problem

*This post has been written for the second *[*Refine*](https://www.alignmentforum.org/posts/5uiQkyKdejX3aEHLM/how-to-diversify-conceptual-alignment-the-model-behind) *blog post day, at the end of the first week of iterating on ideas and concretely aiming at the alignment problem. Thanks to Adam Shimi, Paul Bricman, and Daniel Clothiaux for helpful discussion and comments.*

Introduction
============

This post aims to provide a general introduction to technical safety used in engineering related industries, describe some commonly used tools, and attempt to draw parallels between technical safety and AI safety. I am uncertain about the value of thinking in this framework towards building safe AI, but I expect this post to at least be useful as a [productive mistake](https://www.alignmentforum.org/posts/ADMWDDKGgivgghxWf/productive-mistakes-not-perfect-answers). 

To prevent confusion:

*   I use the term ‘technical safety’ to refer loosely to dealing with safety issues in engineering domains (I am only slightly familiar with technical safety in the upstream oil and gas sector).
*   I use the term ‘AI safety’ to mean ensuring AI deployment does not lead to catastrophic consequences, similar to Steve Byrnes’ [definition](https://www.alignmentforum.org/posts/BeQcPCTAikQihhiaK/intro-to-brain-like-agi-safety-11-safety-alignment-but-they#11_1_Post_summary___Table_of_contents).

For the purpose of this post, I will assume a slow takeoff scenario where AI capabilities scales relatively slowly while never being fully aligned. At some point, a relatively powerful AI is created - powerful enough to do a lot of things but not powerful enough to instantly wipe us all out. Perhaps it has goals that do not generalize well, and starts optimizing for goals that are misaligned to our true goals. This leads to bad outcomes, perhaps events that unfortunately cause some fatalities. There continues to be a series of tragic accidents that increase in severity as the AIs get more and more capable over time, but we still have time to learn from these incidents and make safety improvements towards future systems. 

The concepts in this post may not be directly applicable to an AI FOOM scenario, where the first AGI recursively improves itself and suddenly becomes extremely powerful and wipes out humanity, leaving us no opportunity to course-correct.

Technical safety in a nutshell
==============================

The principle of technical safety is built upon [Heinrich’s Law](https://en.wikipedia.org/wiki/Herbert_William_Heinrich#Heinrich's_law), which states “in a workplace, for every accident that causes a major injury, there are 29 accidents that cause minor injuries and 300 accidents that cause no injuries.” The numbers are unimportant, but the idea is that minimizing the near-misses (accidents that cause no injuries) leads to a reduction in minor accidents, and subsequently a reduction in major accidents. This can be illustrated with the [safety pyramid](https://www.safeopedia.com/definition/5053/safety-pyramid), also known as the safety triangle, below. 

[![](https://lh4.googleusercontent.com/6TV7zqddR4QIn82s3pQgcvoU7xiC2fAQVLqEFN2gy_ymbv4kkbXy_4e8yk0G09bYKoXvFxVuMJhTXmu00WN5HoybYwCOVx4YQ7IFUbDNqRPuseu-rsK_Qn5v7v5nyws9A0f6BWYWRRopQA_ZoSRmJh0)](https://commons.wikimedia.org/wiki/File:Pyramide_des_risques.svg)

The bottom-most layer of the pyramid may be better represented by ‘hazards’ instead of ‘unsafe acts’ to also include potential dangers from non-behavioral causes. The top-most layer of the pyramid may also be better represented by ‘severe accidents’ instead of ‘death’ to also include extremely undesirable consequences other than loss of lives.

> [Hazard](https://www.safeopedia.com/definition/152/hazard) \- A hazard is any agent (object, situation, or behavior - not in an ‘agentic’ sense) that has the potential to cause harm (injury, ill health, or damage to property or the environment), e.g. loose cables running on the floor that may lead to someone tripping over them is a trip hazard. 

> [Risk](https://www.safeopedia.com/definition/475/risk-management-health-and-safety) \- A risk describes the likelihood of potential harms from a known and identified source of hazard, e.g. there is a high risk of dangerous gas release from a corroded gas pipe.

Technical safety can roughly be summed up as effective risk management, which is about minimizing hazards by identifying and eliminating them, as well as reducing the probability that any hazards lead to undesirable consequences. While the complete elimination of every potential accident cannot be guaranteed, meaningful efforts can be expended to reduce dangerous risks to a reasonably low level. 

Useful tools in technical safety
================================

To the best of my knowledge there is no one-size-fit-all technical safety framework used in all areas of engineering, but there exists a variety of tools that serve different purposes. As each tool may have its own weakness, other tools may be used to complement them.

HazID
-----

A [hazard identification (HazID)](https://www.safeopedia.com/definition/682/hazard-identification-study-hazid) study is a procedure used to uncover and identify hazards, as well as ensure appropriate mitigations are in place. HazIDs are commonly conducted prior to the execution of activities, from minor modification to a system (e.g. replacing old pipes) to the construction of a large facility (e.g. building a large plant). 

> [Mitigation](https://www.safeopedia.com/definition/2768/mitigation) \- A mitigation (also known as recovery measure) describes any type of action that is used to reduce the severity of a negative consequence of some kind, e.g. a fire extinguisher that reduces the impact of a fire.

HazIDs typically involve the following steps. 

1.  Identification of hazards according to categories, with the aid of guide words (e.g. severe weather, terrorist activity)
2.  Identification of all possible causes and threats of the hazards
3.  Determination of all potential credible undesirable consequences
4.  Ranking of the hazards according to the [Risk Matrix](https://www.lesswrong.com/posts/zNYmbFwgrxiNtayMm/what-if-we-approach-ai-safety-like-a-technical-engineering#Risk_Matrix)
5.  Identification of mitigations in place
6.  Recommendation of new mitigations to further reduce risks
7.  Nominate action parties to each action

Risk Matrix
-----------

A [Risk Matrix](https://en.wikipedia.org/wiki/Risk_matrix) (also known as a Risk Assessment Matrix) is a method for evaluating both the probability and severity of a risk. The likelihood (probability of occurrence) and severity of a risk are orthogonal to each other. Different Risk Matrices employ different levels of likelihood and severity. An example of a 3x4 Risk Matrix is shown below.

[![](https://lh6.googleusercontent.com/3leOFtm0Nu8iZ_NyTUPWc9M21ehFscn-0ikyONKfWRqSTgDwYLB8qD14yhaJBvp--zeSOd1SxrI3mQU8gkoydZ5zTG6cHB1RG7oYN0g3Ja_QYR21tMK8qe6ni4_pfj5VMik_ZYRfa_9raUxwKFMlxHE)](https://commons.wikimedia.org/wiki/File:IC-Risk-Assessment-Matrix-Template.jpg)

Risks identified are ranked according to the Risk Matrix, such that more focus can be given to mitigate against higher risks (higher likelihood and severity) compared to lower risks (lower likelihood and severity).

Bow-tie analysis
----------------

A [bow-tie diagram](https://en.wikipedia.org/wiki/Bow-tie_diagram) is a diagram used to visualize risk management and preparedness. An example is shown below.

[![](https://lh3.googleusercontent.com/-EJW-i3qRY0BPIv8k0ehb1OxJP-C5H7dpZSGQXoUYnDRuWLg4fSzb92zroOFPa9Daf4NntqOadkoKIFDArEsIbSvu2UwUThQCrEyOWgM89TyA0qmY4-T6ZVUuHCs1Aro5TdMNN381YIZnRu-Z4w_8v4)](https://ispe.org/pharmaceutical-engineering/january-february-2018/bowtie-analysis-and-barrier-based-risk-management)

The center of the bow-tie diagram is the event (also known as top event), which is an occurrence that happens when a hazard is released. The left of the bow-tie lists the threats i.e. the possible causes of the hazard being released, while the right of the bow-tie lists the consequences i.e. the possible effects of the hazard being released. Preventive measures can be put in place to the left of the bow-tie to minimize the likelihood that the threats lead to the event, while mitigations can be put in place to the right of the bow-tie to minimize the severity of the consequences (both preventive measures and mitigations are also known as ‘barriers’). 

Swiss cheese model
------------------

The [Swiss cheese model](https://en.wikipedia.org/wiki/Swiss_cheese_model) of accident causation is a model that illustrates that, although many barriers lie between hazards and accidents, there are flaws in each layer that, if aligned, can allow an accident to occur. An example of the model in the context of pandemic defense is shown below. 

[![](https://lh6.googleusercontent.com/2eAFwawEM1O9HfO5ZYx1dvEO1lnQr9WCeycU8hEdUyK5XQtlr7piNai8_p3cidhDdhLm0LQqWDt2Vnxz46Fo6VjeXmat1wGSgu4cktHgz0MjYGVwlkRhF8NbLR-pWxA155bcu9NdL7AaPATYWlaXO5w)](https://commons.wikimedia.org/wiki/File:SwissCheese_Respiratory_Virus_Interventions-ver3.0.png)

On the bright side, this model illustrates that with every additional barrier comes additional protection, and with sufficient numbers of highly effective barriers (layers with very few and small holes) the probability of a catastrophe can be reduced to very close to zero.  

Change Management
-----------------

[Change Management](https://en.wikipedia.org/wiki/Change_management_(engineering)) (also known as Management of Change (MoC) or Change Request Management Process) is a the process of requesting, determining attainability, planning, implementing, and evaluating of changes to an existing system. The purpose is to ensure that as many possible viewpoints are used to minimize the chances of missing a hazard through a thorough review performed by a multidisciplinary team, as any change to a complex system may introduce new hazards that are not immediately obvious. 

For example, an additional equipment to a facility may lead to a change in the operating conditions of the plant, add additional weight, or be in a way of an evacuation route. The Change Management process either aims to ensure that the new operating conditions are within the design limits of the facility, stay within the weight constraints, and do not disrupt the evacuation routes; or ensures that additional changes to the system are made to safely accommodate the changes caused by the introduction of the additional equipment. The changes are reviewed, documented, and communicated to all relevant parties. 

Hierarchy of Controls
---------------------

The Hierarchy of Controls (also known as the [Hierarchy of Hazard Controls](https://www.safeopedia.com/2/1120/prevention-and-control-of-hazards/hazards/the-hierarchy-of-hazard-control)) is a simple ranking for the methods used to control hazards - from the most effective to those that are measures of last resort, as shown below. 

[![](https://lh6.googleusercontent.com/GdVdbzUQ3tcqnqecc_w42SaxvzBJZDM8gC5sS9Gf1wvmTfkWlPRmnjeyn7Uuu7lHf15zyJLkpsu7hKWo7ZY_rSrBCX8_I5z1GjpZRix82b8FctX4Ka50J2K78FhxOMVxjAqAfNg4kSzAiHeIWRSHpJs)](https://commons.wikimedia.org/wiki/File:NIOSH%E2%80%99s_%E2%80%9CHierarchy_of_Controls_infographic%E2%80%9D_as_SVG.svg)

The five hierarchies can be roughly described as follows:

1.  Elimination: Wherever possible, eliminate the hazard such that it no longer exists
2.  Substitution: If elimination is not feasible, replace a risker hazard with a less risky one, e.g.  purchasing chemicals in pellet form rather than in powder form to prevent exposure through inhalation.
3.  Engineering controls: If all of the above are insufficient, implement engineering controls that involve changes to the design of an equipment or process, e.g. using air ventilation to reduce airborne hazards.
4.  Administrative controls: If all of the above are insufficient, implement administrative measures to reduce risks, e.g. implementing regular maintenance programs to minimize risks associated with worn out equipment.
5.  Personal protective equipment (PPE): This is the last line of defense against adverse events, and only serves to prevent or minimize human injury in the event of an incident. 

Are they useful for AI safety?
==============================

The tools described above are used for concrete bounded engineering problems and may not be directly useful for [unbounded](https://www.alignmentforum.org/posts/uhxpJyGYQ5FQRvdjY/abstracting-the-hardness-of-alignment-unbounded-atomic#Unboundedness__phase_transition_in_optimization) problems like AI safety, and its relevance may be limited to fairly predictable tool AIs instead of powerful agentic AIs. It may potentially even hinder us from actually thinking about the (widely contested) hard part of the problem. Nevertheless, I’ll attempt to explore aspects where these approaches may help - even if applying them to AI safety may seem forced.

HazID has a workflow similar to [training stories](https://www.alignmentforum.org/posts/FDJnZt8Ks2djouQTZ/how-do-we-become-confident-in-the-safety-of-a-machine#What_s_a_training_story_), where one describes the ‘training goal’ (a mechanistic description of the algorithms used in the development of the model) and the ‘training rationale’ (how the techniques employed will produce the desired goal). It aims to address several questions. How is this model built? What do we know and not know about the model? What will it have access to the real world, and what are its capabilities and limitations? What are the possible failure modes, how serious would they be, and how likely are they?

The bow-tie diagram raises questions on the undesirable consequences from hazards in a model. When an ML model starts behaving dangerously upon deployment, is there an off-switch button? What is the probability that it will work? Are there any merits to AI boxing? 

The Swiss cheese model, used as the cover image for Dan Hendrycks’ [post](https://www.alignmentforum.org/s/FaEBwhhe3otzYKGQt) on Pragmatic AI Safety, helps to visualize preventive measures that can be used to prevent catastrophes. While it is recognized that all current proposals for AI safety are not fool-proof against a potential AI catastrophe, each proposal may serve as an additional imperfect barrier between the dangers of AI and the catastrophe. These barriers could be anything ranigng from [interpretability](https://www.lesswrong.com/tag/transparency-interpretability-ml-and-ai) tools to peer into the inner workings of the model, to the use of [quantilizers](https://www.lesswrong.com/tag/quantilization) to prevent hard optimization that exerbates Goodharting, to even training language models to not say things that [involves describing someone getting injured](https://www.lesswrong.com/posts/k7oxdbNaGATZbtEg3/redwood-research-s-current-project). 

Assuming an existing ML model is mostly safe, the Change Management workflow could help raise questions about how changes to the model could cause it to behave in unexpected ways. Will the model be trained on more parameters, and what does that do to its behavior? Is there a possibility of [inverse scaling](https://www.lesswrong.com/posts/eqxqgFxymP8hXDTt5/announcing-the-inverse-scaling-prize-usd250k-prize-pool#What_is_Inverse_Scaling_)? Is additional data used to train the model? If so, do they contain hazards that were not previously present?

AI safety is difficult because capabilities are often a tradeoff with safety. Hierarchy of Controls illustrates that while we would eliminate all hazards in an ideal world, this may sometimes not be feasible. It may be because there is no known solution to eliminate them, or drastic measures incur a high cost of alignment tax, in which case one may resort to less ideal alternatives. For example, if we cannot eliminate dishonesty from a model, are there techniques we can employ to [elicit its latent knowledge](https://www.lesswrong.com/tag/eliciting-latent-knowledge-elk) instead? 

While thinking about AI safety in a technical safety mindset may raise more questions than provide answers, with the questions raised being mostly just common-sense questions, it may be worth devising a tool or a workflow that reliably addresses these safety concerns. Good tools help create processes that are safe, and safe processes help safeguard systems against human negligence.