---
title: Design a model to detect policy-violating images and videos at scale. Begin with how you would evaluate it.
url: https://gurkanozkan.ai/learn/questions/research-evaluation-first-ml-design-079/
markdown: https://gurkanozkan.ai/learn/questions/research-evaluation-first-ml-design-079.md
kind: question
role: Research
stage: System design
difficulty: Hard
json: https://gurkanozkan.ai/api/learn/questions/research-evaluation-first-ml-design-079.json
robots: noindex
---

# Design a model to detect policy-violating images and videos at scale. Begin with how you would evaluate it.

Research · System design · Hard

Theme reported publicly: [Google DeepMind](https://www.algomindset.com/blog/google-deepmind-research-engineer-interview-guide)

## Answer

*Model answer, written in a candidate's voice*

### In short

- Define policy classes and asymmetric error costs before choosing metrics.
- Sample eval set from real traffic, stratified, with expert labels and adjudication.
- Choose operating point by expected loss; report precision there and recall on severe classes.
- Use expert labelling with consensus, disagreement tracking, and active learning.
- Use a multimodal encoder in a cost cascade with per-stage latency budgets.
- Monitor drift and adversarial adaptation; red-team; human-review loop feeds back into labels and thresholds.

### In full

I would start by defining the policy classes and the cost of each error: a missed severe violation is far costlier than a false alarm on benign content, while false positives still erode trust and can wrongly remove lawful speech, so I would set thresholds by expected loss rather than accuracy. I would build the eval set from real sampled traffic, stratified by class, source, device, language, and time, with expert labels and adjudication, and I would report precision at the chosen operating point plus recall on the most severe classes rather than aggregate F1 alone. The labelling pipeline would use expert review with consensus and disagreement tracking, then active learning to send uncertain, high-volume, or newly drifting samples to experts while keeping a fixed audit sample. At inference I would use a multimodal encoder in a cost cascade: a cheap frame, thumbnail, and text triage, a heavier vision-audio-text model for flagged or ambiguous items, and human review for borderline cases, with latency budgets per stage and a hard cap before escalation. I would monitor drift in inputs, labels, and policy wording, red-team for adversarial adaptation such as obfuscation, re-encoding, novel formats, and text injection, and retrain or re-threshold when distributions move. The human-review loop would feed confirmed outcomes back into labels and thresholds, with every decision auditable and a clear path from model flag to reviewer to policy action.

*Checked against sources by an independent AI reviewer.*

## What a strong answer covers

- Policy classes and the cost of each error type.
- An eval set sampled from real traffic with expert labels.
- Precision at the chosen operating point; recall on the most severe classes.
- Labelling pipeline and active learning.
- A multimodal encoder in a cost cascade.
- Drift and adversarial adaptation; a human-review loop; latency budgets.

## Common mistakes

- Jumping straight to an architecture.
- Ignoring adversarial drift.

## Topic guides

- [Evaluation: metrics, evals for LLM systems and statistical rigour](https://gurkanozkan.ai/learn/topics/evaluation.md)
- [ML and LLM system design](https://gurkanozkan.ai/learn/topics/system-design.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
