# Graph-Regularized Sparse Autoencoders for LLM Safety Steering

*Jehyeok Yeon, Federico Cinus, Yifan Wu, Luca Luceri*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/152847) · [Open on the map](../papers.html#p152847)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [Multimodal Safety Steering](../pgroup/341.md) · Type: new method · Keywords: graph-regularized sparse autoencoders, LLM safety steering, activation directions, JailbreakBench, HarmBench, XSTest

Areas: [Safety & Security](../areas/safety.md) › Safe Alignment › Steering Safety Across Modalities

## Summary
Graph-Regularized Sparse Autoencoders (GSAE) learn safety-steering directions by smoothing decoder vectors over a neuron co-activation graph and using a two-gate runtime controller to improve selective refusal on harmful prompts.

## Explained to a 5-year-old
Some people make computer programs that can talk, like chatbots. They want these programs to say "no" when someone asks something bad. The programs use a method that finds special directions in their brain-like parts. This method uses a graph to connect parts that work together, like friends helping each other. The result is that the chatbot refuses bad requests more often while still being nice for good requests.

## Explained to a 5-year-old, longer
Computers can talk to us using something called a language model. Sometimes we want the computer to say "no" when we ask it something dangerous. To do this, researchers look at how the computer's brain-like parts light up when it thinks. They use something called a sparse autoencoder to find special patterns in those lights. The usual method treats each pattern as separate, like individual puzzle pieces. But safety behaviors often need many pieces to work together, like a team. So the researchers added a graph that connects pieces that often light up together. This graph helps the patterns smooth out and work as a group. They also added a two-gate controller that decides when to use these patterns. The controller can say "use this direction" or "don't use it" depending on the question. When they tested this new idea, the computer said "no" more often to bad questions. It still answered nicely to normal questions, so it didn't become too strict.

## For a technical reader
The paper introduces Graph-Regularized Sparse Autoencoders (GSAE) to steer large language models toward safer responses. GSAE learns activation directions by smoothing decoder vectors over a neuron co-activation graph, capturing the distributed structure of safety behaviors. A two-gate runtime controller selects and applies these directions at inference time, allowing selective refusal of harmful prompts while preserving normal functionality. Evaluations on JailbreakBench, HarmBench, and XSTest show improvements of about 20 points on JailbreakBench and 17 points on HarmBench over prior steering methods. The approach generalizes across multiple model families and remains effective under black-box and gray-box attack scenarios.

## Problem
Sparse autoencoders used for LLM safety steering treat latent features as independent, which may not capture the distributed structure underlying safety behaviors such as refusal and harmful compliance.

## Method
The approach learns a dictionary of activation directions by regularizing the SAE decoder vectors with a graph that reflects neuron co-activation patterns, and then applies the resulting direction bank through a two-gate runtime controller to steer model outputs.

## Results
The approach improves selective refusal on JailbreakBench by 20.1 points and on HarmBench by 16.8 points, while preserving benign-task performance and generalizing across multiple LLM families.

## Contributions
A graph-regularized SAE that captures distributed safety patterns, a two-gate steering controller, and empirical evidence of improved refusal across multiple models and attack settings.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/152847)
