English

Graph-Regularized Sparse Autoencoders for LLM Safety Steering

Machine Learning 2026-05-18 v3 Artificial Intelligence

Abstract

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\Delta_s by 20.120.1 points on JailbreakBench and 16.816.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.

Keywords

Cite

@article{arxiv.2512.06655,
  title  = {Graph-Regularized Sparse Autoencoders for LLM Safety Steering},
  author = {Jehyeok Yeon and Federico Cinus and Yifan Wu and Luca Luceri},
  journal= {arXiv preprint arXiv:2512.06655},
  year   = {2026}
}
R2 v1 2026-07-01T08:13:22.893Z