Guarding the Meaning: Self-Supervised Training for Semantic Robustness in Guard Models
Cristina Pinneri, Christos Louizos
TL;DR
This paper exposes a vulnerability in guard models where shallow paraphrase variations cause unstable safety judgments, undermining semantic grounding. It introduces a self-supervised framework that uses meaning-preserving paraphrase sets to quantify semantic fragility and enforce consistency via a novel skew-aware target aggregation during training. Across six open-source guard-model families, the approach substantially reduces paraphrase-induced score variability and label flips (about a 58% reduction) while maintaining or improving benchmark accuracy (≈+2.5%), and it generalizes to unseen stylistic variations; calibration improves by up to 40%. A key finding is a bidirectional link between semantic consistency and calibration, suggesting that robustness training and calibration techniques can be combined for superior guard-model reliability in real-world safety pipelines.
Abstract
Guard models are a critical component of LLM safety, but their sensitivity to superficial linguistic variations remains a key vulnerability. We show that even meaning-preserving paraphrases can cause large fluctuations in safety scores, revealing a lack of semantic grounding. To address this, we introduce a practical, self-supervised framework for improving the semantic robustness of guard models. Our method leverages paraphrase sets to enforce prediction consistency using a novel, skew-aware aggregation strategy for robust target computation. Notably, we find that standard aggregation methods like mean and median can degrade safety, underscoring the need for skew-aware alternatives. We analyze six open-source guard models and show that our approach reduces semantic variability across paraphrases by ~58%, improves benchmark accuracy by ~2.5% on average, and generalizes to unseen stylistic variations. Intriguingly, we discover a bidirectional relationship between model calibration and consistency: our robustness training improves calibration by up to 40%, revealing a fundamental connection between these properties. These results highlight the value of treating semantic consistency as a first-class training objective and provide a scalable recipe for building more reliable guard models.
