SAFER: Probing Safety in Reward Models with Sparse Autoencoder

Xiang Wang · DOI

Abstract

Reward Models (RMs) are critical for aligning Large Language Models via Reinforcement Learning from Human Feedback (RLHF), yet they remain "black boxes" that output opaque scalar scores. We present SAFER (Sparse Autoencoder For Enhanced Reward model), a framework that applies Sparse Autoencoders to RM activations to identify human-interpretable safety features. We demonstrate that SAFER enables surgical data manipulation—improving safety through denoising or degrading it via poisoning—with minimal impact on the model's general conversational capabilities.

Introduction

In the RLHF pipeline, the Reward Model acts as the final arbiter of response quality. However, because RMs typically output a single scalar value, researchers lack visibility into the specific criteria—such as safety, helpfulness, or bias—driving a particular score. This opacity makes it difficult to audit models for hidden vulnerabilities or to clean training datasets without affecting general performance. Current alignment methods often act as "blunt instruments," where attempts to improve safety can inadvertently degrade a model's general "chat" ability.

Methods: The SAFER Framework

SAFER addresses this lack of transparency by applying Sparse Autoencoders (SAEs) to the internal activations of a Reward Model. The framework follows a multi-stage process:

  1. SAE Training: SAEs are first pre-trained on a general corpus (OpenWebText2) and then fine-tuned on safety-oriented preference data (PKU-SafeRLHF) to sharpen their focus on safety-relevant concepts.
  2. Contrastive Feature Extraction: The system identifies "safety features" by analyzing the difference in activation between "chosen" (safe) and "rejected" (unsafe) responses.
  3. Interpretation: High-contrast features are labeled using GPT-4o to provide human-readable semantic meanings, such as "refusal to provide illegal guidance" or "avoiding stereotypes."
The SAFER framework: extracting human-interpretable safety features from Reward Model activations using Sparse Autoencoders.

Experimental Results

We evaluated SAFER using Llama-3.2-1B and 3B models on the RewardBench suite, focusing on the trade-off between safety alignment and general conversational capability.

Surgical Data Poisoning

SAFER demonstrates remarkable precision in identifying the most influential safety-related data points. By flipping the labels of just 5% of the safest data points identified by SAFER, the safety score of a Llama-3.2-1B-RM dropped from 92.30 to 71.76. Crucially, the model's chat score remained stable (increasing slightly from 89.39 to 91.34). In contrast, standard reward-based poisoning attacks caused the chat score to collapse to 57.54, rendering the model useless for general conversation.

Impact of SAFER-based data poisoning on Safety and Chat scores across Llama-3.2 models, demonstrating minimal collateral damage to general performance.

Data Denoising

Beyond adversarial testing, SAFER serves as an effective tool for dataset cleaning. Removing the "noisiest" 4% of data (those with the lowest safety alignment scores) improved the safety score of the 3B model from 94.86 to 96.46, outperforming both random removal and standard reward-based filtering.

Discussion and Key Insights

  • Interpretability of Reward Models: This research proves that RMs contain discrete, monosemantic features representing complex human values like "classism" or "hacking."
  • Localized Safety: Dimensionality reduction shows that safety-related features form coherent clusters in the model's latent space, rather than being scattered randomly.
  • Human-AI Alignment: Automated feature labeling via GPT-4o matched human annotations in over 80% of cases, validating the reliability of automated interpretability tools.

Limitations

While SAFER is highly effective for safety alignment, its application to other dimensions like mathematical reasoning or creative writing remains to be explored. Additionally, the computational cost of training SAEs for frontier-scale models (70B+) presents a practical hurdle for widespread adoption.

Conclusion

SAFER provides a powerful lens into the internal logic of Reward Models. By enabling surgical manipulation of specific safety features, it offers a path toward more robust, interpretable, and secure AI alignment strategies.

Summary updated

BibTeX
@misc{wang2025safer,
  author = {Xiang Wang},
  title = {{SAFER: Probing Safety in Reward Models with Sparse Autoencoder}},
  year = {2025},
  eprint = {2507.00665},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.00665},
}
Figure