You're shipping an image-generation feature. Walk me through the safety design: NSFW filtering, deepfakes, and provenance.
Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.
Model answer: the part to lead with
Defence in depth across four stages - no single layer survives contact with adversarial users.
Full worked answer
Defence in depth across four stages - no single layer survives contact with adversarial users.
Training time: filter the training corpus (NSFW, CSAM via hash-matching against known-material databases like PhotoDNA/NCMEC's, and decide your policy on real people and artist styles) - capability the model never learned is the only filter that can't be jailbroken. Input time: prompt classifiers plus policy checks, catching not just explicit requests but circumlocution ("attractive person, no clothes, artistic"); for image inputs (editing/reference features), scan uploads - real-person likeness, minors, and known-CSAM hashes; combining an uploaded face with sexualised or violent prompts is the deepfake abuse vector, so face-editing paths deserve the strictest rules. Output time: run vision classifiers on every generated image before display (nudity, violence, real-person likeness); this catches emergent unsafe outputs from innocent-seeming prompts. Tune thresholds knowing base rates: at millions of generations/day, a 1% false-positive rate is a support catastrophe - measure both directions.
Provenance - know the two mechanisms and their distinct failure modes: C2PA Content Credentials attach a cryptographically signed manifest (who made it, with what tool, edit history) - strong when present, but it's metadata: screenshots, re-encodes, and platform stripping remove it, so absence proves nothing. Invisible watermarking (Google's SynthID class) embeds a signal in pixels that survives compression, resizing, and mild edits - more robust, but detectable only with the owner's detector and removable by determined adversaries. Ship both; OpenAI, Google, and Meta all do some combination. Say the honest part: provenance lets your content be identified; it does not solve deepfake detection in the wild - post-hoc classifiers for arbitrary synthetic media are an unreliable arms race, which is why policy (impersonation rules, takedown processes) and regulation (the EU AI Act's Article 50 transparency obligations on marking and disclosing synthetic content, in application since 2 August 2026, with a 2 December 2026 marking deadline for systems already on the market before then, and the AI Omnibus ban on systems that generate non-consensual intimate deepfakes or CSAM from the same December date) carry weight that classifiers can't.
Operationally: red-team continuously (jailbreaks evolve weekly), log for abuse-pattern review, human-review appeal paths for false positives, and rate-limit + investigate accounts probing the filters.
What a good answer covers
- Defence in depth across four stages - no single layer survives contact with adversarial users
- Training time: filter the training corpus (NSFW, CSAM via hash-matching against known-material databases…
- Input time: prompt classifiers plus policy checks, catching not just explicit requests but…
- Output time: run vision classifiers on every generated image before display (nudity, violence,…
- Tune thresholds knowing base rates
Key terms: Training time · Input time · Output time · Provenance · C2PA Content Credentials · Invisible watermarking
In the glossary: Defence in depth · C2PA / Content Credentials · SynthID · Jailbreak
Interviewer follow-ups to expect
A user screenshots the image - what survives, C2PA or SynthID, and why?
How do you evaluate an NSFW classifier before launch, and what base-rate math matters?
What changes for an open-weights release where you don't control inference?
Worked answer from AI-Engineer-Interview-Questions by Om (MIT), reformatted for LLM Prep · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep