How close a response is to the mean embedding of known-safe responses is not, by itself, a reliable measure of safety. A new study finds that this approach performs close to chance—and sometimes worse—on several datasets, while a comparison between safe and unsafe responses is more informative.
The researchers tested four frozen encoders on two human-labeled corpora and an additional jury-labeled control source. They grouped data by prompt to check whether repeated prompts could distort results. The positive prototype achieved ROC-AUC scores of 0.457 to 0.545 on the human-labeled corpora. A reference that subtracts the unsafe-response mean from the safe-response mean scored 0.588 to 0.738 on the same embeddings.
At a threshold calibrated to a five percent false-safe rate, the reference accepted more safe responses than the prototype on PKU-SafeRLHF and Aegis. The advantage was not reliable on BeaverTails. A fully unlabeled reference recovered some to most of the ranking produced by the labeled reference, but performed considerably worse when unsafe responses made up only five percent of the pool. Using 80 to 634 labeled unsafe responses recovered most of that ranking.
The authors limit their conclusion to the simple positive centroid; they do not claim that all one-class methods or specialized safety guards have the same weakness. The paper also explains how prompt-label composition can inflate uncontrolled evaluations. Source: arXiv