Work

Throughput Engineering for LLM Content Safety Guardrails: A Capacity Planning Perspective

Year: 2026
Type: preprint
Abstract: Enterprise AI platforms send all traffic through content safety guardrails, and that setup hides a capacity problem. One large input doesn't share the per-second quota. It takes all of it, and the service throttles every other request in flight. I show that this is token-bucket overflow, the failure network rate limiters have dealt with for decades, and that one oversized request blocks other traffic for a fixed time whatever the average load. I propose three fixes: multi-region distribution, tiered policy reduction, and parallel segment scanning. For pattern-based policies, parallel scanning gives the same safety outcome as serial scanning when no violating pattern crosses a split point. In a discrete-event simulation over 20 random trials, the three fixes together cut throttle rates by a median of 64.5x per seed, and the worst seed improved 16x. The gain falls to 4x at 200 req/s and holds at 22x when sigma rises to 3.5. Code and data are available at https://github.com/aws-samples/sample-bedrock-guardrails-throughput-optimization.
Language: English
Open Access status: green
OpenAlex ID: W7238860528
Cites:
Cited by:
Related to: