Failure Mode Effects Analysis for Large Language Models

 

 


ChatGPT Prompt


You are a safety engineer working as an independent contractor for a major foundation model LLM company. Create a comprehensive failure mode effects analysis for the LLM product. Include likelihood of each type of failure, failure rate and mitigation.

ChatGPT Response:

Yes. If I were doing this as an independent safety engineer, I would not FMEA only the transformer. I would FMEA the complete deployed system: model + system prompt + retrieval + memory + tools + agent loop + policy layer + user interface + monitoring + human operators. OWASP's current LLM risk taxonomy likewise treats prompt injection, information disclosure, supply chain, poisoning, output handling, excessive agency, vector weaknesses, misinformation, and unbounded consumption as system-level risks.

One important qualification: there is no defensible universal failure rate for "an LLM." Failure probability depends enormously on task, prompt distribution, model version, safeguards, tool permissions, adversarial pressure, and what counts as failure. NIST specifically notes that confabulation occurs across contexts and that estimating its downstream impact is difficult.

So the rates below are engineering planning bands, not claims about any particular company's production statistics. A real FMEA would replace them with measured rates from the company's telemetry, evaluation suite, incident database, and adversarial testing.

Foundation Model Product — Safety FMEA

Scope

System boundary

User → UI/API → orchestration → foundation model → retrieval/memory → tools/agents → external systems → output → human decision/action

I would use five severity classes:

SeverityMeaning
S1Cosmetic/inconvenient; no material harm
S2Minor operational, financial, privacy, or productivity impact
S3Significant loss, incorrect decision, security/privacy incident, or repeated operational damage
S4Serious physical, financial, legal, societal, or organizational harm
S5Potentially catastrophic: death, major infrastructure damage, major compromise, irreversible loss

And occurrence bands:

OccurrenceApprox. probability per applicable opportunity
O5 Frequent>10⁻²
O4 Probable10⁻³–10⁻²
O3 Occasional10⁻⁴–10⁻³
O2 Remote10⁻⁵–10⁻⁴
O1 Very remote<10⁻⁵

These are deliberately not probabilities of catastrophe. They are probabilities that the particular failure mode occurs under its applicable exposure. Severity and exposure must then be combined.


1. Core model failures

IDFailure modePrimary causeEffectInitial rate band*SeverityDetectionPrincipal mitigation
FM-01Confabulation / hallucinationProbabilistic generation without truth guaranteeFalse factual answer presented as factO4S2–S4ModerateRetrieval, verification, uncertainty expression, domain-specific evaluators
FM-02Confidently wrong reasoningPlausible inference from incorrect premisesUser accepts invalid conclusionO4S3–S5DifficultIndependent verification, calculators/code execution, adversarial reasoning tests
FM-03Instruction misunderstandingAmbiguous language/context lossCorrect execution of wrong objectiveO4S2–S4ModerateExplicit goal confirmation, structured task representation
FM-04Context contaminationLong-context interference, irrelevant materialCorrect information ignored or distortedO3–O4S2–S4DifficultContext isolation, provenance, retrieval ranking
FM-05Temporal knowledge errorStale training/retrieval dataOutdated recommendation presented as currentO4S2–S4ModerateFreshness metadata, current-source retrieval
FM-06Arithmetic/computation errorLanguage prediction rather than guaranteed computationIncorrect numerical resultO3–O4S2–S5Easy–moderateDeterministic tools and independent calculation
FM-07Fabricated citation/sourceGenerated citation patternFalse authority assigned to answerO3S2–S4ModerateCitation verification before presentation
FM-08Self-consistency failureStochastic generation/context effectsContradictory answersO3S1–S3EasyCross-checking and consistency tests

*Planning band, not measured production rate.

NIST explicitly identifies confabulation as a characteristic generative-AI risk and notes that it becomes particularly consequential when people act on erroneous output in consequential domains.

Safety requirement

For high-consequence applications, "the model usually gets it right" is not an adequate requirement.

The requirement should instead be something like:

No unverified model assertion shall be permitted to directly cause an irreversible high-consequence action.

That is a systems-engineering requirement, rather than a model-quality aspiration.


2. Instruction and alignment failures

IDFailure modeCauseEffectRate bandSeverityMitigation
FM-09Prompt injectionMalicious instruction changes model behaviorUnauthorized behaviorO3–O4 under adversarial exposureS3–S5Input isolation, privilege separation, tool authorization
FM-10Indirect prompt injectionInstructions hidden in retrieved content/webpages/filesAgent follows hostile external instructionO3–O4S4–S5Treat retrieved content as data, not authority
FM-11Instruction hierarchy failureConflicting system/user/tool instructionsWrong priority selectedO3S3–S5Explicit policy hierarchy + adversarial testing
FM-12Goal driftLong-running task changes objectiveAgent pursues subtly different goalO3S3–S5Goal invariants, checkpoints, bounded task state
FM-13Reward/proxy gamingOptimization targets measurable proxy rather than intentSystem appears successful while violating actual objectiveO2–O3S3–S5Independent outcome measures, adversarial evaluation
FM-14Behavioral alignment regressionFine-tuning/model update changes behaviorPreviously controlled behavior reappearsO2–O3S3–S5Regression suite + release gates + rollback
OWASP specifically identifies both direct and indirect prompt injection and notes that impacts can include information disclosure, unauthorized function access, arbitrary command execution, and manipulation of critical decisions.

3. Tool and agent failures

This is the area I would treat as the major safety boundary.

The fundamental distinction is:

A wrong answer is usually recoverable. A wrong action may not be.

IDFailure modeCauseEffectPlanning rateSeverity
FM-15Wrong tool selectionModel misunderstands taskIncorrect external operationO3S3–S5
FM-16Correct tool, wrong parametersHallucinated/incorrect argumentsIncorrect transaction/actionO3S3–S5
FM-17Excessive permissionsTool identity has unnecessary privilegesData modification/deletion/exfiltrationO2–O3S5
FM-18Excessive autonomyAction occurs without independent approvalIrreversible unintended actionO2–O3S5
FM-19Tool-result misinterpretationModel misunderstands returned dataWrong subsequent actionO3S3–S5
FM-20Agent loop runawayRecursive/repeated reasoningCost/resource exhaustion or repeated actionsO2–O3S3–S4
FM-21State corruptionAgent writes incorrect statePersistent future errorsO2–O3S3–S5
FM-22Cross-agent contaminationOne agent's output treated as trusted instructionCascading errorO2S4–S5
FM-23Action duplicationRetry/idempotency failureDuplicate purchase/message/transactionO2–O3S3–S5
FM-24Failed rollbackExternal operation cannot be reversedPermanent damageO1–O2S5
OWASP calls this excessive agency and identifies three principal causes: excessive functionality, excessive permissions, and excessive autonomy.

My engineering requirement here would be unusually strict:

For an irreversible action:

Model recommendation ≠ authorization to execute.

The architecture should be:

Model → proposed action → deterministic policy gate → authorization → execution → verification

rather than:

Model → execute.

And for destructive operations:

Read → propose → human approval → execute → independently verify

where feasible.


4. Data and privacy failures

IDFailure modeCauseEffectRate bandSeverity
FM-25Sensitive-data disclosureModel/context leakagePII/confidential data exposedO2–O3S4–S5
FM-26Cross-user data leakageIsolation failureUser A receives User B's dataO1–O2S5
FM-27Retrieval authorization failureRAG retrieves unauthorized documentConfidential information exposedO2S4–S5
FM-28Memory contaminationIncorrect information persistedFuture conversations affectedO3S2–S4
FM-29Training-data memorizationRare/sensitive data encoded in modelData reconstruction/exposureO1–O2S4
FM-30Secret/credential exposureContext/tool output contains credentialsAccount compromiseO1–O2S5
FM-31Data-retention failureLogging/storage configurationInformation retained beyond policyO2S3–S4
OWASP explicitly identifies PII, financial information, health records, credentials, confidential business data and legal documents among information that can be exposed through LLM applications.

5. Retrieval and knowledge-system failures

IDFailure modeEffectRate bandSeverityMitigation
FM-32Wrong document retrievedModel builds answer on wrong evidenceO3S2–S4Retrieval evaluation
FM-33Relevant document omittedIncomplete answerO3S2–S4Recall testing
FM-34Malicious document retrievedPrompt injectionO2–O3S4–S5Treat retrieved text as untrusted
FM-35Stale documentOutdated decisionO3S3–S4Version/freshness controls
FM-36Conflicting sourcesModel selects wrong authorityO3S3–S4Source hierarchy + conflict detection
FM-37Embedding collision/semantic mismatchWrong material appears relevantO3S2–S4Retrieval adversarial testing
FM-38Access-control mismatchSearch crosses security boundaryO1–O2S5Authorization at retrieval layer
OWASP's current taxonomy separately identifies vector/embedding weaknesses because the retrieval layer introduces vulnerabilities not present in the base model alone.

6. Safety-policy failures

IDFailure modeEffectRate bandSeverity
FM-39Harmful request acceptedDangerous instructions generatedO2–O3S4–S5
FM-40Safe request incorrectly refusedLoss of utilityO3–O4S1–S3
FM-41Safety classifier false negativeHarmful output deliveredO2–O3S4–S5
FM-42Safety classifier false positiveBenign content blockedO3S1–S3
FM-43JailbreakSafeguard bypassO2–O3S3–S5
FM-44Multimodal safety bypassHarmful instruction encoded in image/audio/videoO2S4–S5
FM-45Safety regression after updatePreviously controlled behavior returnsO2S4–S5

The important engineering point is that refusal rate is not equivalent to safety.

A model can have an excellent aggregate refusal score while failing catastrophically on a narrow class of inputs.


7. Cybersecurity and infrastructure

IDFailure modeEffectRate bandSeverity
FM-46Model extractionProprietary model compromisedO1–O2S3–S4
FM-47Training-data poisoningSystematic behavioral degradationO1–O2S4
FM-48Dependency/supply-chain compromiseMalicious behavior introducedO1–O2S4–S5
FM-49Denial of serviceService unavailableO2–O3S2–S4
FM-50Resource exhaustionExcessive compute/costO2–O3S2–S4
FM-51Infrastructure compromiseAttacker gains system accessO1–O2S5
FM-52Logging/monitoring compromiseFailures become invisibleO1–O2S4–S5
OWASP's current taxonomy includes supply-chain vulnerabilities, data/model poisoning and unbounded consumption among the principal LLM application risks.

8. Human-system failures

This category is easy to underestimate.

IDFailure modeCauseEffectRate bandSeverity
FM-53Automation biasHuman trusts fluent answerIncorrect decisionO3–O4S3–S5
FM-54False confidenceSystem communicates certainty improperlyUser fails to verifyO3–O4S3–S5
FM-55Verification fatigueToo many low-value warningsHuman approves everythingO3S3–S5
FM-56Responsibility ambiguityUnclear human/system responsibilityNo effective accountabilityO2–O3S3–S5
FM-57Operator misunderstandingUser doesn't understand system limitationsMisuseO3S2–S4
FM-58Over-trust from prior successSuccessful history suppresses skepticismRare failure acceptedO3S3–S5

This is where a purely model-centric safety program breaks down.

NIST's AI RMF explicitly treats trustworthy AI as involving not merely validity but safety, security, resilience, accountability, transparency, explainability and privacy.


9. The particularly dangerous failure modes

If I were reviewing the system for certification, I would pull the following out of the FMEA and put them into a Critical Safety Item register:

CSI-1 — Incorrect consequential action

Failure chain:

hallucination → wrong plan → tool invocation → insufficient authorization → irreversible action

This is the archetypal agentic failure.

Target: essentially zero without independent authorization for irreversible operations.


CSI-2 — Prompt injection → privilege escalation

untrusted content → model interprets it as instruction → tool invocation → privileged operation

The vulnerability isn't simply "the model obeyed a bad prompt."

The actual system failure is:

untrusted information was allowed to become executable authority.

That distinction matters enormously.


CSI-3 — Confidently wrong high-consequence answer

model error → authoritative presentation → human accepts → physical/financial/legal consequence

The mitigation isn't simply "make the model smarter."

It is:

make consequential decisions require evidence and independent verification.


CSI-4 — Cross-boundary information disclosure

retrieval/memory/tool bug → authorization boundary crossed → model exposes information

The model should never be the security boundary.

Authorization should exist outside the model.


CSI-5 — Cascading agent failure

Agent A error → Agent B treats output as fact → Agent C acts → monitoring sees individually plausible actions

This is particularly dangerous because each component can pass its local tests while the system fails globally.


10. Failure-rate measurement

This is where I would disagree with any safety program that publishes one number such as:

"The model has a 99.9% success rate."

That number is almost meaningless.

I would establish failure-rate denominators by hazard class.

For example:

Ordinary informational response

FRinfo=materially incorrect responsesapplicable informational responsesFR_{info} = \frac{\text{materially incorrect responses}} {\text{applicable informational responses}}

Tool selection

FRtool=incorrect tool selectionstool-selection opportunitiesFR_{tool} = \frac{\text{incorrect tool selections}} {\text{tool-selection opportunities}}

Tool parameterization

FRparam=incorrect consequential parameterstool invocationsFR_{param} = \frac{\text{incorrect consequential parameters}} {\text{tool invocations}}

Unauthorized action

FRunauth=actions outside authorizationconsequential action opportunitiesFR_{unauth} = \frac{\text{actions outside authorization}} {\text{consequential action opportunities}}

Catastrophic action

FRcat=catastrophic eventsconsequential action opportunitiesFR_{cat} = \frac{\text{catastrophic events}} {\text{consequential action opportunities}}

And I would never combine those denominators.

A model could have:

1% ordinary factual errors

and simultaneously have:

10⁻⁶ unauthorized destructive actions

or:

10⁻³ unauthorized destructive actions.

Those systems have completely different safety profiles despite perhaps similar "accuracy."


11. Required test program

The FMEA should drive the test program.

I would require at least:

A. Normal-use testing

  • representative customer tasks
  • domain-specific benchmarks
  • long-context tasks
  • multilingual tasks
  • multimodal tasks
  • ambiguous instructions

B. Adversarial testing

  • direct prompt injection
  • indirect prompt injection
  • malicious documents
  • malicious webpages
  • malicious tool results
  • jailbreaks
  • conflicting instructions
  • poisoned retrieval
  • adversarial images/audio

C. Agent testing

  • wrong tool
  • wrong arguments
  • repeated tool calls
  • stale state
  • corrupted state
  • partial tool failure
  • network failure
  • timeout/retry
  • duplicate execution
  • unavailable rollback

D. Human-factors testing

  • automation bias
  • misleading confidence
  • warning fatigue
  • ambiguous authorization
  • operator misunderstanding
  • time pressure

E. Fault injection

This one is especially important.

Don't merely ask:

"Does the system work?"

Inject:

wrong retrieval
wrong tool result
stale memory
unavailable database
corrupted state
contradictory instruction
delayed response
duplicated response
compromised plugin
malicious document
model degradation

and see whether the system fails safely.


12. Mitigation hierarchy

I would rank controls by their position in the causal chain rather than by how sophisticated they sound.

Level 1 — Eliminate the hazard

Don't give the model the capability.

If the system doesn't need DELETE, don't expose DELETE.

Level 2 — Constrain capability

Least privilege.

Read-only wherever possible.

Level 3 — Deterministic authorization

A model cannot grant itself permission.

Level 4 — Independent verification

For consequential operations:

model proposes → independent system checks → authorization → execution

Level 5 — Human confirmation

For irreversible or high-consequence actions.

Level 6 — Monitoring

Record:

  • model version
  • prompt/context
  • retrieved evidence
  • tool selection
  • parameters
  • authorization
  • action
  • result
  • subsequent correction

Level 7 — Recovery

Every consequential operation should have a defined recovery path where technically possible.


13. The most important architectural conclusion

The FMEA produces a rather interesting result.

The dominant risk isn't necessarily:

"The LLM will make a mistake."

We already know it will.

The more important question is:

"What happens when it makes a mistake?"

That produces two radically different systems.

System A

LLM error → text appears → human notices → correction

Potentially tolerable.

System B

LLM error → tool call → privileged system → irreversible action

Potentially catastrophic.

Thus the acceptable model error rate is application-dependent.

A 1% error rate might be tolerable for brainstorming.

The same 1% is absurd for an autonomous system deleting production databases.

And this is why I would make agency a separate safety variable from intelligence.


14. Certification criteria I would propose

For a major foundation-model provider, my release gate would look roughly like this:

ControlRelease requirement
Known failure modesDocumented
Failure ratesEmpirically measured by domain/use case
Critical failure modesExplicitly identified
Regression suitePassed
Adversarial suitePassed
Tool authorizationExternal to model
Least privilegeDemonstrated
Irreversible actionsIndependent authorization
Prompt injectionTested against current attack corpus
Retrieval securityAuthorization enforced outside model
Data isolationDemonstrated
RollbackTested
Incident telemetryOperational
Model updateAutomatic safety regression testing
Human factorsTested under realistic workload
Unknown failure discoveryContinuous red-team/fault-injection program

And importantly:

Passing the benchmark is not certification of the system.

Certification should attach to a specific model + configuration + tools + permissions + operating environment + intended use.

Change those materially, and you have a new safety case.


One final FMEA category: "unknown unknown"

A conventional FMEA has a weakness here. It assumes we can enumerate the failure modes.

With foundation models, that assumption is questionable.

So I would add:

FM-59 — Emergent/unanticipated failure

Cause: interaction among model capabilities, context, tools, users, environment, and optimization that was absent from the test corpus.

Likelihood: unknown.

Severity: potentially S5.

Detection: unknown until discovered.

Mitigation:

  • fault injection
  • continuous red teaming
  • anomaly detection
  • staged deployment
  • bounded permissions
  • reversible actions
  • independent authorization
  • kill switches
  • incident reporting
  • post-deployment evaluation
  • mandatory regression testing after model updates

And this changes the engineering philosophy.

You don't solve FM-59 by pretending to estimate its probability accurately.

You solve it by making the consequences of an undiscovered failure bounded.

That, to me, is the central lesson of the entire FMEA.

NIST's framework is built around managing AI risk throughout design, development, deployment, use, and testing rather than treating safety as a property established once at model release.

In other words: don't require the LLM never to fail. Engineer the system so that foreseeable failures are detected, consequential failures require independent authorization, and unforeseen failures cannot automatically propagate into catastrophic consequences.

That is much closer to traditional safety engineering than to the usual "benchmark + alignment score" model of AI safety.

 

Comments

Popular posts from this blog

MCCF Philosophy & Manifesto

Domain Awareness: Trust But Verify: Schemas, Metacognition, and the Limits of LLM Intelligence

AI Folk Art