Graph-Regularized Sparse Autoencoders for LLM Safety Steering

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Yeon, Jehyeok, Cinus, Federico, Wu, Yifan, Luceri, Luca
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866918502328172544
author Yeon, Jehyeok
Cinus, Federico
Wu, Yifan
Luceri, Luca
author_facet Yeon, Jehyeok
Cinus, Federico
Wu, Yifan
Luceri, Luca
contents Sparse autoencoders (SAEs) are increasingly used to extract activation directions for inference-time steering, but their standard sparsity objective treats latent features as independent. This prior can be poorly matched to high-level safety behaviors, where refusal and harmful compliance appear to depend on distributed structure in activation space. We introduce Graph-Regularized Sparse Autoencoders (GSAE), a dictionary-learning method that learns safety-steering directions by smoothing SAE decoder vectors over a neuron co-activation graph and applying the resulting direction bank through a two-gate runtime controller. Empirically, GSAE improves selective refusal across JailbreakBench, HarmBench, and XSTest, increasing harmful-request refusal while keeping benign-prompt refusals low. On Llama-3-8B, replacing the standard SAE with GSAE in an otherwise identical pipeline improves $Δ_s$ by $20.1$ points on JailbreakBench and $16.8$ points on HarmBench. GSAE outperforms activation-steering baselines and black-box guardrails, preserves benign-task performance, generalizes across Llama-3, Mistral, Qwen 2.5, and Phi-4, and remains strong under black-box and gray-box jailbreak attacks.
format Preprint
id arxiv_https___arxiv_org_abs_2512_06655
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Graph-Regularized Sparse Autoencoders for LLM Safety Steering
Yeon, Jehyeok
Cinus, Federico
Wu, Yifan
Luceri, Luca
Machine Learning
Artificial Intelligence
Sparse autoencoders (SAEs) are increasingly used to extract activation directions for inference-time steering, but their standard sparsity objective treats latent features as independent. This prior can be poorly matched to high-level safety behaviors, where refusal and harmful compliance appear to depend on distributed structure in activation space. We introduce Graph-Regularized Sparse Autoencoders (GSAE), a dictionary-learning method that learns safety-steering directions by smoothing SAE decoder vectors over a neuron co-activation graph and applying the resulting direction bank through a two-gate runtime controller. Empirically, GSAE improves selective refusal across JailbreakBench, HarmBench, and XSTest, increasing harmful-request refusal while keeping benign-prompt refusals low. On Llama-3-8B, replacing the standard SAE with GSAE in an otherwise identical pipeline improves $Δ_s$ by $20.1$ points on JailbreakBench and $16.8$ points on HarmBench. GSAE outperforms activation-steering baselines and black-box guardrails, preserves benign-task performance, generalizes across Llama-3, Mistral, Qwen 2.5, and Phi-4, and remains strong under black-box and gray-box jailbreak attacks.
title Graph-Regularized Sparse Autoencoders for LLM Safety Steering
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2512.06655