Paper Overview
Field: Machine Learning Authors: Nikita Kezins, Urbas Ekka, Pascal Berrang Published: 2025-05-09 arXiv: 2505.07229
Abstract
Guardrail classifiers defend production language models against harmful behavior, but although results seem promising in testing, they provide no formal guarantees. Providing formal guarantees for such models is hard because 'harmful behavior' has no natural specification in a discrete input space, and the standard epsilon-ball properties used in other domains do not carry semantic meaning.
The authors close this gap by shifting verification from the discrete input space to the classifier's pre-activation layer, enabling formal guarantees for LLM guardrail classifiers beyond empirical red-teaming.
Key Points
- Guardrail classifiers are widely used to protect production LLMs from harmful outputs, yet rely only on empirical testing rather than formal verification.
- 'Harmful behavior' has no natural specification in discrete input space; epsilon-ball properties from traditional verification do not map to semantic safety properties.
- The proposed approach moves verification to the classifier's pre-activations, enabling formal guarantees over semantic properties.