PGuard: Streaming Safety Guardrails via Intermediate Representation Gating
November 3, 2026
PGuard integrates safety monitoring directly into multimodal LLM backbones by using dynamic layer gating to aggregate residual-stream representations. This allows for token-level safety detection during both prefill and autoregressive decoding without modifying the original inference pathway.
HOW THIS AFFECTS YOU
●
builderYou can implement low-latency, streaming safety checks that don't require external model calls.
●
researcherThe method leverages internal layer representations rather than treating the model as a black box.