InferenceGuard lifts LLM safety rates to 94–100% at inference time, without touching weights

hbouammar · x · 2026-11-27

Researchers introduce InferenceGuard, an inference-time alignment method that adds no weight updates. It drops the hand-tuned Lagrange penalty and instead carries a safety budget inside the decoding state: each token block spends budget, exhausted beams get an enormous cost so search never picks them, and a small critic reads hidden states to predict mid-generation whether a beam ends safe and high-quality. Formalized as a constrained MDP in latent space, it comes with almost-sure safety guarantees. Safety rates jump from 29%→94% (Alpaca-7B), 24%→98% (Llama-3.1-8B-Instruct), 48%→97% (Vicuna-7B), 76%→100% (Beaver-7B-v3), with reward above the base model and roughly beam-search-level cost.

Related event: InferenceGuard: Weight-Free LLM Safety Alignment with Provable Guarantees(2 posts)→

Original post →

More from Safety

Safety channel →