HomeAI & Machine LearningAI Guardrail Pipeline 2D: Signal-Detection Simulator

AI Guardrail Pipeline 2D: Signal-Detection Simulator

Interactive 2D simulator of an LLM guardrail pipeline: drag the score-distribution thresholds or use the sliders to tune filter strictness and adversarial evasion, watch prompts flow through detection gates in a top-down lane view, and track blocked-incident, overblocking and latency tradeoffs live.

AI & Machine Learning2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-ai-topic-29 ↗ Open standalone

Production LLM systems don't rely on a single perfect filter — they chain independent checks: an input filter before the model, the model itself, an output filter after it, and a monitor that logs everything without blocking. This 2D simulator renders that pipeline as a top-down lane view of prompts streaming through detection gates, paired with a live histogram of the noisy risk scores each gate actually sees. Each prompt carries a hidden true risk score; each gate observes risk plus detector noise minus any evasion penalty, and blocks anything above its threshold — drag the histogram's own threshold handles, or the sliders, to move it. Push the input and output thresholds up and incidents (harmful prompts that slip through every gate) drop — but so does throughput, as more benign prompts get caught in the crossfire (overblocking). Raise the adversarial evasion slider or fire a red-team burst to see how a skilled attacker erodes a single gate's effectiveness, and why real guardrail stacks stack multiple independent layers instead of trusting one.

⚙ Under the hood

2D lane-view simulator of an LLM guardrail pipeline: drag the live score-distribution thresholds or use the sliders to tune filter strictness and adversarial evasion, watch prompts flow through detection gates, and track blocked-incident, overblocking and latency tradeoffs live.

AI safetyguardrailscontent moderationLLMsignal detectionred teaminghistogramthreshold tuning

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)