Advanced
Open
Pro
Why the Inference Chain Is Ordered the Way It Is
Part of the AI Engineer Interview path →
Part of the ML System Design Interview path →
Part of the Generative Vision & Image AI System Design path →
A junior engineer proposes simplifying the inference pipeline: run harm detection once, right after prompt safety and before generation, by having the harm-detection classifier assess the (enhanced) prompt instead of the generated image — "if the prompt is safe, the output will be safe, and we save a pipeline stage."
- Explain why harm detection on the generated image is a distinct stage from prompt safety, not a redundant one.
- Where does the super-resolution cascade belong in the chain, and why does that placement matter for cost?
- This subject says the two safety stages defer their depth to
guardrails-and-prompt-injection-defense. What is this subject's own responsibility regarding those stages, if not re-deriving classifier design?
Share this question