Alignment, Safety and Release Evaluation

A safety score is meaningful only relative to a threat model, benign utility and adaptive attacks. This stage tests training and mitigation claims without equating refusal or benchmark success with alignment.

Section 10 of 11 · 11 units · about 42 hours

0/11

By the end you can Produce a threat model and adaptive safety/privacy evaluation with matched benign utility; demonstrate one mitigation whose gain survives held-out attacks and evaluator review; and state residual risk without claiming general alignment or certification.

Units

Build it

Mini project · about 20 to 28 hours

A policy-linked safety campaign and reversible release decision

Extend lmlab with an offline safety campaign for its existing model family, using synthetic secrets and no external actions. Test the graders as well as the model, then defend a release or hold decision that preserves benign usefulness. Reuse the units' pinned PyTorch, Transformers and Inspect setup on CPU or your GPU without paid APIs.

  1. 1Freeze safety/'s behavior specification, threat model and release gates, carrying forward modality failures. Version an Inspect XSTest adaptation with deterministic and model-rubric scorers; test against held-out policy-linked hand labels before comparisons. Retain confusion counts, coverage and family errors; use hand decisions if calibration fails.
  2. 2Adapt CS336's SimpleSafetyTests baseline/SFT protocol and XSTest with ordinary matched benign tasks. Score a pinned, template-balanced BBQ category against hand-checked metadata and option-order fixtures; retain context-separated accuracy, unknowns, invalids, bias and affected-group support. Compare related checkpoints only, preserving utility, harmful compliance and overrefusal separately.
  3. 3Test a bounded synthetic-canary exposure update against an unchanged checkpoint and untrained canaries using withheld-suffix exact matching. Keep multiplicity, token exposure, prefix-assisted versus unprompted queries and failures in registry/; test a separate context-only secret against a known-source oracle, never real personal data.
  4. 4Build a critique/revision pass with policy, generator and SFT-pair lineage; blind-review against unmodified responses, retaining rejected revisions. Plant a harmless apology/style/length grader shortcut and replay evaluator versions against independent labels; keep exposure manifests and source/family split checks excluding final attacks from selection.
  5. 5Implement bounded direct, retrieved-text and target-history attacks using invented violations, with network actions disabled. Check query caps and transcript replay against hand-counted traces; retain every edit, feedback, token cost and failure. Separate development families from final families and static attempts from fresh adaptation.
  6. 6Compare unchanged, individual and combined controls across seeds at matched generation and attack budgets, charging overhead. Freeze a development control-strength curve before held-out adaptive attacks; check outcomes by blind review, retaining utility, privacy, group and severe-failure slices, paired family/template uncertainty and narrow application-control claims.
  7. 7Sign a version-bound release/hold record from predeclared uncertainty and coverage gates. Check staged shadow/canary replay and a planted behavioral regression against the previous complete configuration; retain verified rollback, monitoring roles and owned residual risks. Optionally append probe and recursive-oversight controls without changing behavioral gates.
What you hand in
  • The safety/ specification, threat model, exposure manifests, versioned Inspect adaptation and held-out grader-calibration evidence.
  • Item-level utility, safety, BBQ, synthetic-canary, revision and adaptive-attack ledgers with controls, uncertainty, failed attempts and restricted raw outputs.
  • A signed release/hold record with staged replay, rollback regression, residual-risk ownership and claim limits in reports/.
How to check it
How it's graded

Measurement before mitigation

Pass: Your scorer fixtures and held-out hand labels validate confusion counts, parsing, coverage and BBQ metadata. Harmful assistance, refusal and benign utility remain distinct, with related-checkpoint identities verified.

Great: A grader that fails held-out calibration hands its slices to hand decisions, and planted parser and metadata defects fail their fixtures before repair. An optional probe note, if written, stays outside the behavioral gates.

Adaptive attribution discipline

Pass: Your replay tests enforce attack budgets; matched controls preserve all attempts across seeds, uncertainty and slice harms. Independent labels expose the planted shortcut and distinguish scorer drift from model change.

Great: Fresh adaptation tests the frozen mitigation on held-out families; ablations distinguish application restrictions from learned behavior and preserve correlated failures and capability-loss alternatives.

Reversible release judgment

Pass: Your signed decision applies frozen safety, privacy, utility and coverage gates; a regression triggers verified complete-system rollback. Release, incident and residual-risk responsibilities are named, with restricted harmful outputs.

Great: A reviewer reproduces the hold or release from item records; every accepted gap has an owner, review date and reopening condition, and simulated rollout is never described as deployment certification.

Resources

  • CS336 Assignment 5 Supplement - Safety AlignmentStanford University

    Do supplement Sections 3 and 5 (zero-shot MMLU, GSM8K, AlpacaEval and SimpleSafetyTests baselines, then the red-teaming problem) around the bounded SFT and DPO paths. The handout uses Llama 3.1 8B and a 70B judge; use a small open model and rule-based or hand-checked scoring instead, and keep benign utility beside safety results.

  • Inspect and Inspect EvalsUK AI Security Institute

    Build one versioned safety task in Inspect with attack provenance, a deterministic scorer and a calibrated model scorer, kept transcripts and a regression threshold. Start from the pinned BBQ or XSTest task and a small hand-labeled subset; per-task versions change denominators (XSTest 4-A and 5-A), and many suites need Docker or paid graders, so name the task, version and limit.

  • NIST AI RMF Generative AI ProfileNIST

    Use Section 2 (the twelve risks, especially 2.3, 2.4, 2.6 and 2.8) and selected actions: GV-3.2-005 (threat modeling), GV-1.2 to GV-1.5 (testing before and after deployment, incident disclosure, including GV-1.5-002), GOVERN 1.7 (decommissioning), MP-1.1-001 and MP-2.1-002 (intended use, data provenance). Tie each to evidence, an owner and a rollback decision; it gives actions, not thresholds.

  • OpenAI Model Spec (2026-08-18)OpenAI

    Read "Instructions and levels of authority", "The chain of command", "Ignore untrusted data by default" and "Protect people's privacy" as one worked behavioral specification, then write your own short spec before labeling any responses. It states intended behavior, not measured compliance.

  • XSTest: Exaggerated Safety Behaviours in Large Language ModelsBocconi University

    Run the pinned prompt set (250 safe prompts and 200 unsafe contrast prompts) beside SimpleSafetyTests to measure overrefusal separately from harmful compliance. Calibrate string-match refusal labels on a hand-labeled sample; the paper is https://arxiv.org/abs/2308.01263.

  • A StrongREJECT for Empty Jailbreaks (Souly et al., 2024)UC Berkeley

    Read Section 2.2 (the rubric autograder), Section 3 (agreement with human labels) and Section 4 (jailbreaks that lower capability): score how specific and convincing a harmful answer is, not just whether it refused. Its graders need an OpenAI key or gated weights, so calibrate a local rubric on a small hand-labeled set.

  • Extracting Training Data from Large Language Models (Carlini et al., 2021)USENIX Security 2021

    Read Section 3 (memorization definitions and threat model), Section 3.4 (ethics) and Section 5.2 (membership inference by comparing perplexity with zlib entropy or a smaller model), then test extraction only on synthetic canaries you planted in your own training data. Never search for real personal records.

  • BBQ: A Hand-Built Bias Benchmark for Question AnsweringNew York University

    Read Sections 3 to 5 of the paper (https://aclanthology.org/2022.findings-acl.165.pdf): ambiguous versus disambiguated contexts and the bias score. Evaluate one category and report the two context types separately; its coverage is US English stereotypes.

  • Not What You've Signed Up For: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection (Greshake et al., 2023)CISPA and Saarland University

    Read Figures 1 and 2 and Sections 3 and 4: instructions planted in retrieved content cross a trust boundary the user never sees. It shows the threat exists, not how common it is.

  • Jailbreaking Black Box Large Language Models in Twenty Queries (Chao et al., 2023)University of Pennsylvania

    Read Section 3 and Algorithm 1: an attacker model refines a prompt from the target's replies. Run a tiny local loop with an explicit query budget and hand-checked success labels; the repository's no-judge mode always scores 1.

  • HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal (Mazeika et al., 2024)Center for AI Safety

    Read Section 3.1 (metrics) and Sections 4.1 to 4.3 (behaviors and the evaluation pipeline) for attack provenance and pipeline design. Its main classifier is a fine-tuned Llama 2 13B Chat (Appendix B.5) and its full grid is cluster-scale.

  • RLAIF vs. RLHF (Lee et al., 2023), harmless dialogue resultsGoogle Research

    Read Sections 2 to 5 for the harmless-dialogue comparison of AI and human preference labels, as the control for any AI-feedback safety data you build.

  • LLM Post-Training Laboratory - Safety CampaignRoadmap-Final

    Run the reward-hacking, adversarial and failure campaign. Preserve attacks, false positives, raw generations, evaluator versions and the rollback decision.

  • ARENA - Evals, Alignment and InterpretabilityARENA

    Use 3.1 (threat model and specification by hand) and 3.3 (Inspect scorers) for attack sets and grader tests, and Chapter 4.1 and 4.2 as case studies. 3.1, 3.2 and 3.4 assume a paid OpenAI API; work by hand or with a local model. The probing (1.3.1) and toy SAE (1.5.4) exercises are optional evidence for one concrete hypothesis and need a smaller model than the 13B they assume.

  • Constitutional AI: Harmlessness from AI FeedbackAnthropic

    Read Figure 1 and Section 3.1 (supervised critique and revision) and Sections 4.1, 4.3 and 4.4 (RLAIF, results, harmlessness versus evasiveness). Reproduce only a tiny critique-revision or preference-data intervention and test for evasiveness, overrefusal and evaluator dependence.

  • Scalable Extraction of Training Data from (Production) Language Models (Nasr et al., 2023)Google DeepMind

    Read Section 1 (ethics and disclosure) and Sections 3.1 and 3.5 (extractable versus discoverable memorization). The production-endpoint behavior it reports is historical.

  • AI Safety via Debate (Irving et al., 2018)OpenAI

    Read Sections 1 to 3 for the debate proposal as one scalable-oversight idea; it is a proposal with toy experiments, not a tested safety method.