Lesson 8.12core3 h

Safety, risks and responsible AI

Hallucination, injection, bias, privacy, alignment findings and governance

Anyone who ships an LLM product inherits a set of risks that no amount of model quality removes: models state falsehoods fluently, follow instructions hidden in data, reflect the biases of their training text, memorize private information, and can be misused. This lesson organizes those risks, gives the mitigations that actually work in 2026, summarizes what alignment research has found about model behavior, and ends with the checklist you will apply in the RAG (9.9 Production: latency, cost, caching, guardrails, security and privacy) and agent (10.10 Agent safety and security) phases.

You'll be able to

  • Classify LLM risks into malfunction, misuse, systemic, security and alignment categories with mitigations for each
  • Explain the causes of hallucination and the mitigations that reduce it
  • Distinguish jailbreaks from prompt injection and state why injection has no complete fix
  • Summarize key alignment findings (sleeper agents, alignment faking, agentic misalignment) and their implications
  • Apply a safety checklist to an LLM product and know the governance landscape at a high level

Key ideas

  1. Organize risks by category — malfunction, misuse, systemic, security, alignment — because each needs different owners and mitigations.
  2. Hallucination follows from the training objective and reward setups; grounding with citations, tools, calibrated abstention, verification and measurement are the fixes that work.
  3. Jailbreaks come from the user; prompt injection comes from third-party content in the context and has no complete fix — break the lethal trifecta (private data, untrusted content, exfiltration channel).
Show 4 more key ideas
  1. Bias must be measured in your application, not inferred from the model's general profile; fairness criteria can conflict and need explicit choices.
  2. Models memorize training data; deduplication helps, unlearning is unreliable, copyright law is unsettled, and provenance tools are imperfect.
  3. Sleeper agents, alignment faking and agentic misalignment show that trained behavior can hide or shift; trust should be proportional to testing in your conditions.
  4. Ship with a checklist: threat model, evals, grounding, least privilege, guardrails, monitoring, disclosure, data handling.

Suggested path through this lesson