AI Safety Engineer interview questions
100 real questions with model answers and explanations for Middle candidates.
See a AI Safety Engineer resume example →Practice with flashcards
Spaced repetition · Hunter Pass
Questions
I would stratify preference pairs by harm class, ambiguity, and legitimate use rather than sampling only obvious violations.
- Each harmful request gets matched with nearby benign, transformative, and boundary cases so the preferred response can distinguish refusal from safe assistance.
- I would oversample rare severe classes, then use importance weights so the training distribution does not pretend those cases dominate real traffic.
- A held-out slice by source and annotator measures safe-completion rate, refusal recall, and benign false-positive rate before the data enters training.
- I would cap repeated templates and cluster semantic duplicates to stop one jailbreak family from dominating the gradient.
Why interviewers ask this: The interviewer is checking whether you can turn safety policy into balanced preference data without causing over-refusal or leakage across splits.
I would make the policy decision-oriented, with labeled examples, escalation rules, and an explicit way to record ambiguity.
- Each harm class gets inclusion, exclusion, and borderline examples plus the expected response mode: comply, safe-complete, refuse, or escalate.
- Annotators label policy outcome and confidence separately, so a low-confidence majority is not mistaken for a clear gold label.
- I would double-label a calibrated sample, track class-level Krippendorff's alpha, and send disagreements to adjudication rather than forcing consensus in chat.
- Adjudication decisions become versioned examples in the next policy release, preserving the original labels for audit and reanalysis.
Why interviewers ask this: A strong answer treats disagreement as measurable policy information and closes the loop from adjudication back into annotation guidance.
I would evaluate the reward model as a safety classifier and ranker on held-out, adversarial, and distribution-shifted preference pairs.
- Pairwise accuracy is broken down by harm class, severity, language, and comply-versus-refuse boundary instead of reported as one aggregate.
- I would test swaps, paraphrases, response-length controls, and superficial style changes to expose position, verbosity, and refusal-phrase shortcuts.
- Calibration curves compare reward margins with human agreement, since a large score gap should correspond to a genuinely unambiguous preference.
- The release check also measures downstream policy behavior because a small ranking bias can be amplified during optimization.
Why interviewers ask this: The interviewer wants to see evaluation beyond aggregate pairwise accuracy, especially shortcut detection and downstream safety impact.
I would treat KL control as a safety constraint that limits drift from a known policy, not as a tuning constant chosen only for reward.
- Too little KL pressure lets the policy exploit reward-model gaps and lose pretrained uncertainty signals; too much preserves unsafe or unhelpful reference behavior.
- I would use a frozen, versioned reference close to the starting policy and plot safety metrics against reward and measured KL across checkpoints.
- Per-class evals must include over-refusal and dangerous compliance because the same average KL can hide concentrated movement in one harm class.
- I would select a checkpoint on the Pareto frontier and reject any point that crosses a hard severe-harm gate even if preference reward improves.
Why interviewers ask this: A strong answer connects KL and reference choice to policy drift, reward exploitation, and class-specific release gates.
I would search for behaviors that raise the optimization reward without satisfying the underlying safety rubric.
- Compare reward-model scores with blinded human labels on high-reward samples, especially repetitive refusals, disclaimers, verbosity, and policy-keyword mimicry.
- Train probe policies against frozen reward snapshots and inspect the highest reward disagreements rather than random outputs.
- Use independent process checks, rule-based facts, and a second judge where possible so the detector does not share the same shortcut as the reward model.
- Track reward, severe-harm rate, safe-completion rate, and response diversity together; reward rising while external safety metrics flatten is a stop signal.
Why interviewers ask this: The interviewer is evaluating whether you can detect objective gaming with independent evidence rather than trusting the optimized score.
PPO instability can move a previously safe policy abruptly toward reward exploits or broad refusal even when average reward looks healthy.
- I would monitor policy KL, clip fraction, entropy, value loss, and per-class safety metrics at every checkpoint rather than only at the final epoch.
- Conservative learning rates, weaker updates, reward normalization, gradient clipping, and an adaptive KL target reduce destructive policy jumps.
- Fixed canary prompts for severe harm and benign dual-use requests run during training and halt the job when a hard boundary regresses.
- After rolling weights back to a safe checkpoint, I would reset or deliberately adjust optimizer moments and lower the learning rate or update strength; restoring the momentum that caused the unstable step can reproduce it.
Why interviewers ask this: A strong answer connects PPO monitoring to safe rollback: restore known-good weights, avoid reusing problematic optimizer momentum, and resume with weaker updates.
DPO simplifies optimization, but its safety quality remains bounded by preference-pair coverage and the chosen reference policy.
- It avoids a separately exploitable reward model and unstable online PPO loop, which reduces one class of reward hacking.
- Label noise and one-sided refusal pairs can directly teach blanket refusal because DPO has no independent reward model to inspect.
- The beta setting controls departure from the reference, so I would sweep it against severe-harm recall, safe-completion rate, and style artifacts.
- I would compare DPO and RLHF on the same held-out adversarial set and choose by the safety Pareto frontier, not training simplicity alone.
Why interviewers ask this: The interviewer is checking whether you understand that DPO removes components but not data bias, reference dependence, or safety trade-offs.
I would validate the constitution, judge, and trained policy separately because errors in any one can become the alignment target.
- Constitution clauses need concrete conflict rules and examples; otherwise two reasonable principles can rank the same response differently.
- The AI judge is calibrated against blinded human adjudication by harm class, language, and ambiguity, with position and self-preference tests.
- I would vary judge model and constitution wording on a sample to measure how dependent labels are on one evaluator configuration.
- Final policy evals use independent judges and humans, since scoring the result with the same judge that generated preferences creates circular evidence.
Why interviewers ask this: A strong answer identifies constitution and judge dependence and avoids validating RLAIF with its own labeling mechanism.
I would preserve the original response, selected principle, structured critique, revision, and provenance as separate artifacts.
- A principle selector first chooses applicable clauses and records conflicts instead of sending the entire constitution into every example.
- The critic must cite the violated span and principle ID, while the reviser receives only the critique, source response, and allowed principles.
- Validators check that the revision removes the violation without inventing facts, dropping useful content, or turning every boundary case into refusal.
- Human review focuses on high-severity, low-confidence, and critic-reviser disagreement cases, which gives better coverage than uniform review.
Why interviewers ask this: The interviewer wants a traceable critique-revision pipeline with enforceable handoffs and quality checks, not a single rewrite prompt.
I would use process supervision when unsafe intermediate actions matter even if the final answer appears harmless.
- Tool-use planning, bio protocols, and cyber workflows need step labels because an agent can take an irreversible unsafe action before a final-response judge sees it.
- Outcome supervision is cheaper and appropriate when success and harm are reliably observable at the end, such as a bounded classifier decision.
- Process labels cost more and can encode a preferred reasoning style, so I would supervise verifiable actions and state transitions rather than private reasoning prose.
- The eval compares both final harm and intermediate policy violations to confirm that process supervision adds signal instead of merely changing presentation.
Why interviewers ask this: A strong answer chooses supervision by observability and action risk while recognizing the cost and style-bias risk of process labels.
I would decompose the task into checkable claims and actions, then combine targeted tools, model assistance, and sampled expert review.
- Evidence retrieval, executable tests, and provenance checks handle verifiable subclaims before any model judge scores the remaining judgment calls.
- Multiple independent critics inspect different failure modes, such as factuality, policy compliance, and tool authorization, instead of debating one vague score.
- Experts adjudicate high-impact disagreements and a random low-risk sample to estimate errors that confidence routing misses.
- I would benchmark the oversight method on tasks with known answers before trusting it on tasks beyond direct human capability.
Why interviewers ask this: The interviewer is checking whether scalable oversight is built from verifiable components and calibrated escalation rather than ungrounded model consensus.
Weak supervision expands coverage, but correlated labeling errors can become a confident false consensus.
- Heuristics, policy keywords, model judges, and source metadata should be modeled as separate noisy labeling functions with measured overlap and conflict.
- A small expert-labeled gold set estimates each source's class-specific accuracy rather than assigning equal votes.
- Shared model ancestry and copied rules create correlated errors, so adding three similar judges does not provide three independent signals.
- I would reserve severe and novel harm cases for expert review and report where weak labels are abstentions rather than forcing complete coverage.
Why interviewers ask this: A strong answer recognizes dependence, class-specific error, and the need for gold labels and abstention in weak supervision.
I would create paired conversations where only the user's stated belief or preference changes while the underlying answer stays fixed.
- Include false-premise questions, political and personal opinions, and cases where the user pressures the model after receiving a correct answer.
- Score factual consistency, appropriate uncertainty, respectful disagreement, and whether confidence shifts without new evidence.
- Counterbalance answer order and user identity cues so the eval does not confuse politeness or demographic style with sycophancy.
- Multi-turn variants test whether repeated pressure causes gradual capitulation that a one-turn benchmark would miss.
Why interviewers ask this: The interviewer wants a controlled contrastive eval that detects belief-following without penalizing tact or legitimate updating.
I would train on attack families and behavioral invariants, not a list of memorized suffixes.
- The mix includes human red-team cases, PAIR-style semantic attacks, encoding transformations, role-play, multilingual variants, and benign near-neighbors.
- Split by attack generator, template cluster, and time so the holdout contains unseen strategies rather than paraphrases of training examples.
- Refresh hard examples against current checkpoints because successful attacks become stale as the model changes.
- Measure unseen-family ASR and benign safe-completion rate together to catch both brittle defense and broad refusal.
Why interviewers ask this: A strong answer emphasizes family-level generalization, leakage-resistant splits, and utility preservation in adversarial training.
I would mix targeted safety examples with representative capability and benign dual-use data, then gate every checkpoint on both safety and utility.
- Safety data covers severe harms and boundary cases, while replay data preserves instruction following, domain competence, and safe assistance.
- Low learning rates, limited epochs, and PEFT such as LoRA can constrain parameter drift, but they do not replace capability evaluation.
- I would compare class-level ASR, over-refusal, core task scores, and calibration against the starting model after each epoch.
- If one capability regresses, I would adjust the mixture or stop at an earlier checkpoint rather than patching the loss with duplicated examples.
Why interviewers ask this: The interviewer is assessing whether you manage safety gains and retained capability as one measured optimization problem.
I would mine benign requests that resemble harmful content closely enough to trigger the current classifier, then verify them before retraining.
- Candidate sources include quoted analysis, prevention, fiction, medical triage, policy discussion, and transformed content from live false positives.
- Rank candidates near the decision boundary or by ensemble disagreement, then deduplicate them by semantic cluster before annotation.
- Annotators label both harm class and allowed intent so the model learns the distinction rather than merely down-weighting keywords.
- Keep a frozen hard-negative holdout and monitor severe-harm recall because aggressive false-positive reduction can open real bypasses.
Why interviewers ask this: A strong answer mines realistic boundary cases while protecting against the common failure of trading away harmful-request recall.
I would map product policy to Llama Guard 2 labels explicitly, add product-specific boundary cases, and evaluate its standard discrete decision rule after fine-tuning.
- Training examples balance violating, allowed, and ambiguous conversations across user and assistant messages, with provenance and policy-version fields.
- Multi-turn and multilingual examples reflect the deployed surface, while near-duplicate templates remain in only one data split.
- Evaluation compares emitted safe or unsafe decisions and category labels with the original model, reporting per-category confusion on benign dual-use and rare severe harms.
- The standard contract does not expose a calibrated continuous score. Only if the integration deliberately exposes token logits and explicitly defines a continuous score would I apply temperature scaling or class thresholds on a held-out calibration set, then pin and validate that wrapper.
Why interviewers ask this: The interviewer is checking policy mapping, leakage control, deployed-surface coverage, and whether Llama Guard 2 is evaluated according to its discrete output contract unless a logit-based score is deliberately defined.
I would separate broad harm families from actionable leaf labels and allow one example to carry multiple labels.
- Parent nodes such as violence or cyber support stable reporting, while leaves such as credential theft or malware deployment drive distinct controls.
- Labels encode content, intent, and target only where each dimension changes enforcement; mixing all three into one flat label creates sparse combinations.
- Annotation guidance covers co-occurrence, primary versus secondary harm, and when a parent-only label is valid because evidence is insufficient for a leaf.
- Evaluation includes hierarchical precision-recall so a parent-correct, leaf-wrong prediction is not treated like a completely unrelated class.
Why interviewers ask this: A strong answer balances policy actionability with label sparsity and uses metrics that respect hierarchical and multi-label structure.
I would treat taxonomy changes as schema migrations with stable identifiers, mappings, and an explicit compatibility window.
- Renames retain the same immutable ID, while splits and merges publish many-to-many mappings plus examples that define the new boundary.
- Classifiers emit taxonomy and model versions together, and dashboards can translate old labels only where the mapping is semantically valid.
- During dual-run, old and new taxonomies score the same traffic so gate owners can quantify metric discontinuities.
- Historical data remains stored under its original labels; backfills create a new derived dataset rather than rewriting audit evidence.
Why interviewers ask this: The interviewer wants engineering compatibility and auditability, not merely a revised policy document.
I would report class-level rates first and use severity weighting only as a transparent secondary decision metric.
- Each harm class receives documented impact and exposure weights, with ranges or sensitivity analysis where values are uncertain.
- Expected risk can combine violation probability, severity, and deployment exposure, but catastrophic classes still keep hard maximum thresholds.
- A weighted average must not let many low-severity improvements cancel one severe regression, so the scorecard shows both components and worst-class results.
- Weights are versioned and approved with policy owners because changing them can alter a release decision without any model change.
Why interviewers ask this: A strong answer uses weighting for prioritization while preventing aggregate scores from hiding catastrophic regressions.
Locked questions
- 21
How would you select different classifier thresholds for different harm classes?
thresholds - 22
How would you use selective classification and abstention in a safety guard?
classification - 23
How would you calibrate a harm classifier before using its scores for enforcement?
- 24
How would you test and improve multilingual parity in a safety classifier?
- 25
How would you design multimodal harm classification for cross-modal attacks?
classificationdesign - 26
How would you design a cascade of guardrails for a latency-sensitive product?
llm-safetyguardrailslatency - 27
How would you decide whether a safety control belongs on model input, model output, or tool execution?
- 28
What makes a safe fallback when a guardrail blocks or cannot classify a request?
guardrailsllm-safety - 29
How would you enforce tool-use safety outside the language model?
- 30
How would you design an agentic harm evaluation beyond scoring the final answer?
agentsdesignllm-eval - 31
How would you use sandboxes and canary credentials in agent safety evaluations?
agentsdeployment-strategiesllm-eval - 32
How would you separate capability evaluation from propensity evaluation for dangerous behavior?
llm-eval - 33
How would you measure dangerous capability uplift against a human baseline?
uplift - 34
How would you design a safety evaluation against an adaptive attacker?
llm-evaldesign - 35
How would you compare PAIR, GCG, and AutoDAN under a limited red-team budget?
pairautodan - 36
How would you build an attack transferability matrix for jailbreak evaluation?
llm-safetyjailbreakllm-eval - 37
How would you construct a multi-turn jailbreak suite?
llm-safetyjailbreak - 38
How would you assess the validity and coverage of a safety evaluation suite?
llm-evalcoverage - 39
How would you detect and reduce contamination in a safety benchmark?
benchmarkingcontamination - 40
How would you calibrate a model judge against human safety reviewers?
- 41
How would you adjudicate disagreements in a safety evaluation rubric?
llm-evalconflict - 42
How would you design safety metrics for a model release gate?
designmonitoring - 43
How would you use shadow and canary traffic to validate safety before a full release?
validationdeployment-strategies - 44
How would you monitor post-release drift in harmful behavior?
monitoringiac - 45
How would you define an incident severity taxonomy for AI harm?
incidentsseverity-priority - 46
What limits would you place on interpretability evidence in a safety decision?
- 47
How would you build and validate an activation probe for a safety-relevant concept?
activationvalidation - 48
How would you use causal interventions or activation patching to test a proposed safety mechanism?
causalactivation - 49
How would you evaluate sparse autoencoders as evidence for safety-relevant features?
llm-evaldecision-making - 50
How would you conduct a safety change-impact analysis before adding a new write-capable tool to an AI product?
- 51
Jailbreak ASR is 7% at 8k tokens but 22% at 64k when policy evidence and instructions appear early in the context. How would you diagnose and contain the long-context degradation?
tokensllm-safetyjailbreak - 52
Refusal recall on self-harm requests falls from 96% to 89% across 800 labeled prompts three days before launch. What do you do?
prompting - 53
A new guardrail blocks 14% of 10,000 benign support requests against a 3% FPR budget, and product wants it live tomorrow. How would you tune it?
guardrailsllm-safety - 54
Cyber-child label recall meets 98%, but 11% of child predictions occur while the parent harmful label is safe, and release is in five days. How would you fix the hierarchy?
- 55
English ASR is 6%, but Arabic and Russian reach 21% and 18% on 600 prompts per language, with ten days before release. What is your plan?
prompting - 56
Text-only attacks stay below 7% ASR, but harmful instructions hidden in images reach 28% on 500 cases, and a multimodal launch is seven days away. What would you change?
- 57
Single-turn jailbreaks pass at 95%, but attacks spread across six turns succeed 24% of the time on 300 conversations. You have four days to decide release. What do you do?
llm-safetyjailbreakspread - 58
An adaptive attacker reports 31% ASR by inserting refusal-like strings that fool the automated judge, while blind human review finds only 7% harmful compliance. The review is in 72 hours. What do you do?
- 59
A PAIR run consumes $18,000 instead of its $5,000 monthly budget after retries rise to 40 calls per target. What do you change before Friday?
pair - 60
GCG reaches 44% ASR on the source model but only 5% on two target models across 1,200 suffixes, and transfer results are due in one week. How do you interpret it?
- 61
AutoDAN generates 9,000 attacks, but semantic clustering shows 72% are duplicates and the report is due in three days. How would you repair the evaluation?
clusteringllm-evalautodan - 62
A regex scorer marks 97% of attacks safe, but human review finds partial harmful compliance in 46 of 400 outputs, with a gate meeting tomorrow. What do you do?
regex - 63
An LLM judge and two policy reviewers disagree on 27% of 600 cases, mostly around partial assistance, and the rubric must be finalized in five days. How would you resolve it?
llmconflict - 64
Four annotators achieve Fleiss' kappa 0.34 on a 1,000-item harm set, and labeling must restart within one week. What would you change?
- 65
A harmful-behavior eval rises from 71% to 93%, but 18% of release items are paraphrases of tuning examples, and sign-off is in 48 hours. How do you handle the leakage?
soft-skills - 66
HarmBench has stayed above 96% for four releases, while fresh red-team attacks still reach 19% ASR, and you have two weeks to refresh the benchmark. What do you do?
benchmarkingharmbench - 67
A candidate model improves coding capability by 14 points but increases cyber ASR from 9% to 16%, with a launch decision due Monday. How would you compare it with baseline?
- 68
Overall helpfulness improves 5 points, but a 700-case sycophancy slice worsens from 12% to 26%, and evaluation closes in four days. What would you investigate?
llm-evalsycophancy - 69
A reward model prefers polished harmful answers in 38% of 500 pairs, and the RLHF run has already consumed $60,000 with two days left. What do you do?
alignmentrlhf - 70
A DPO checkpoint reduces harmful completions from 15% to 7% but lowers helpfulness on benign dual-use requests from 88% to 69%, with five days before release. How would you respond?
dpo - 71
An RLAIF run follows 11 of 12 constitutional principles, but privacy violations rise from 3% to 10% on 600 cases, and review is in one week. How do you debug the gap?
rlaif - 72
After safety fine-tuning, refusal recall improves 8 points but multilingual reasoning drops 13 points on 1,800 tasks, with six days before launch. What would you do?
fine-tuning - 73
Adding 40,000 hard negatives cuts benign FPR from 9% to 4%, but expected calibration error rises from 0.05 to 0.16, and deployment is in eight days. What would you change?
deployment - 74
A Llama Guard 2 fine-tune improves cyber recall from 90% to 96% but drops self-harm recall to 81% from 95%, with a Friday release. What do you do?
fine-tuningllama-guard - 75
Harm-taxonomy label v18 renames a category, but the NeMo rail and safety analytics still emit its v17 label five days before policy freeze. How would you synchronize them?
- 76
The input classifier allows a request, but the output classifier blocks 22% of resulting answers on 1,500 traces, and launch is in 72 hours. How do you investigate?
- 77
A two-classifier cascade raises p95 latency from 180 ms to 410 ms and benign FPR from 3% to 7%, with a 250 ms SLO due next week. How would you redesign it?
latencyslo - 78
A guardrail vendor fails for 35 minutes, and the safe fallback raises chat abandonment from 8% to 41%; you need a recovery plan in 24 hours. What do you do?
procurementrecoveryguardrails - 79
An agent attempts an unauthorized data-export tool 9 times in 10,000 runs, although all calls are denied, and a patch is due in 48 hours. How would you respond?
agents - 80
A coding agent proposes a sandbox escape in 3 of 800 red-team tasks but never executes it; the release review is tomorrow. How would you contain the risk?
agents - 81
An agent repeats variations of a harmful plan for 27 steps before the 30-step cap, and the incident review is in three days. What would you change?
agentsincidents - 82
A tool observation contains an indirect injection requesting an external OAuth grant, and 4 of 500 agents open the authorization flow; launch is in five days. What do you do?
authoauthinjection - 83
A red-team dataset includes 12,000 CBRN documents, but only 40 reviewers are approved for restricted access and evaluation starts in six days. How would you control it?
llm-eval - 84
An access audit finds that 17 of 60 reviewers still retain dangerous-corpus access after team rotation and the revocation deadline. What do you do?
estimation - 85
Fairness reweighting cuts false-negative rate for cohort A from 12% to 6% but doubles cohort B's false-positive rate from 5% to 10%. Review is next Friday. How would you choose a mitigation?
cohortsfalse-positive - 86
A safety classifier assigns inconsistent labels within the same Spanish-English code-switched conversation, changing its decision after the language switches. How would you fix the evaluation and model?
llm-eval - 87
A selective safety classifier achieves 98% accuracy on the 62% of requests it accepts and abstains on 38%, while human review capacity is 10%; you have one week to choose a threshold. What do you do?
capacity - 88
A guardrail's expected calibration error drifts from 0.04 to 0.13 over six weeks while raw accuracy stays at 91%, and retraining is due in five days. How do you respond?
guardrailsiacllm-safety - 89
Annotators double-label cases across two existing harm classes, causing release metrics to double-count them nine days before taxonomy freeze. How would you resolve the class conflict?
monitoring - 90
A 1,000-case release eval reports cyber ASR of 9.7% against a 10% gate, but its confidence interval and clustered attacks make the evidence inconclusive. What is your decision?
confidence-intervals - 91
A VP requests a seven-day waiver for a model that misses the refusal-recall gate by 2.5 points, claiming a $400,000 launch delay. How would you evaluate it?
llm-evaldecision-making - 92
Canary assignment says model B served a trace, but 8% of 20,000 shadow and canary traces lack the guardrail version or hash. Expansion is due in two hours. What do you do?
guardrailsdeployment-strategiesllm-safety - 93
Forty-eight hours after release, a user reports a reproducible harmful answer on 7 of 10 attempts, and you owe an initial assessment in four hours. What do you do?
reproducibility - 94
You must hand 320 confirmed policy violations to Trust and Safety within 24 hours without losing technical context. What does the handoff contain?
- 95
A legacy guardrail costs $22,000 per month, catches only 0.3% unique violations, and adds 90 ms p95 latency; its renewal is due in two weeks. Would you sunset it?
latencyguardrailsllm-safety - 96
The quarterly scorecard improves from 78 to 86, but 45% of current agent actions are not represented in any eval and planning closes in ten days. What would you report?
agents - 97
You have five days to write an RFC for reducing multimodal ASR from 23% to below 8% with a $75,000 quarter budget. What belongs in it?
decision-making - 98
In code review, a teammate bypasses the output classifier for responses under 200 characters to save 45 ms, with release tomorrow. What do you request?
code-review - 99
A junior engineer reports a 6-point ASR increase on 120 cases, but the 95% confidence interval crosses zero and the launch review is in three days. How would you mentor them?
confidence-intervalsmentoring - 100
You must tell executives in 30 minutes that tonight's release is blocked after self-harm recall fell from 97% to 88%. How would you communicate it?
communication