SAE-SSV: Supervised Steering in Sparse Representation Spaces for Reliable Control of Language Models

Zirui He, Mingyu Jin, Bo Shen, Ali Payani, Yongfeng Zhang +1 more
5/22/2025
41 citations
cs.CL

Official code: Ineedanamehere/SAE-SSV (12 stars, Python, MIT, last commit 2026-06-07).

Abstract

Large language models (LLMs) have demonstrated impressive capabilities in natural language understanding and generation, but controlling their behavior reliably remains challenging, especially in open-ended generation settings. This paper introduces a novel supervised steering approach that operates in sparse, interpretable representation spaces.

Show full abstract

We employ sparse autoencoders (SAEs) to obtain sparse latent representations that aim to disentangle semantic attributes from model activations. Then we train linear classifiers to identify a small subspace of task-relevant dimensions in latent representations. Finally, we learn supervised steering vectors constrained to this subspace, optimized to align with target behaviors. Experiments across sentiment, truthfulness, and political polarity steering tasks with multiple LLMs demonstrate that our supervised steering vectors achieve higher success rates with minimal degradation in generation quality compared to existing methods. Further analysis reveals that a notably small subspace is sufficient for effective steering, enabling more targeted and interpretable interventions. Our implementation is publicly available at https://github.com/Ineedanamehere/SAE-SSV.

View on arXivView PDF

Code Implementations(1)

MIT
121Python, Jupyter NotebookSep 19, 20255 months agoMIT

Similar Papers

Cite this paper

@article{he2025saessv,
  title  = {SAE-SSV: Supervised Steering in Sparse Representation Spaces for Reliable Control of Language Models},
  author = {Zirui He and Mingyu Jin and Bo Shen and Ali Payani and Yongfeng Zhang and Mengnan Du},
  year   = {2025},
  eprint = {2505.16188},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.16188v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.16188.svg)](https://codeofpaper.com/paper/2505.16188)

Discussion