1. Steering Language Model Refusal with Sparse Autoencoders
- Author
-
O'Brien, Kyle, Majercak, David, Fernandes, Xavier, Edgar, Richard, Chen, Jingya, Nori, Harsha, Carignan, Dean, Horvitz, Eric, and Poursabzi-Sangde, Forough
- Subjects
Computer Science - Machine Learning - Abstract
Responsible practices for deploying language models include guiding models to recognize and refuse answering prompts that are considered unsafe, while complying with safe prompts. Achieving such behavior typically requires updating model weights, which is costly and inflexible. We explore opportunities to steering model activations at inference time, which does not require updating weights. Using sparse autoencoders, we identify and steer features in Phi-3 Mini that mediate refusal behavior. We find that feature steering can improve Phi-3 Minis robustness to jailbreak attempts across various harms, including challenging multi-turn attacks. However, we discover that feature steering can adversely affect overall performance on benchmarks. These results suggest that identifying steerable mechanisms for refusal via sparse autoencoders is a promising approach for enhancing language model safety, but that more research is needed to mitigate feature steerings adverse effects on performance.
- Published
- 2024