Selective Steering: Norm-Preserving Control Through Discriminative Layer Selection

Quy-Anh Dang, Chris Ngo
1/27/2026
7 citations
cs.LGcs.AI

Official code: knoveleng/steering (12 stars, Jupyter Notebook, last commit 2026-09-13).

Abstract

Despite significant progress in alignment, large language models (LLMs) remain vulnerable to adversarial attacks that elicit harmful behaviors. Activation steering techniques offer a promising inference-time intervention approach, but existing methods suffer from critical limitations: activation addition requires careful coefficient tuning and is sensitive to layer-specific norm variations, while directional ablation provides only binary control.

Show full abstract

Recent work on Angular Steering introduces continuous control via rotation in a 2D subspace, but its practical implementation violates norm preservation, causing distribution shift and generation collapse, particularly in models below 7B parameters. We propose Selective Steering, which addresses these limitations through two key innovations: (1) a mathematically rigorous norm-preserving rotation formulation that maintains activation distribution integrity, and (2) discriminative layer selection that applies steering only where feature representations exhibit opposite-signed class alignment. Experiments across nine models demonstrate that Selective Steering achieves 5.5x higher attack success rates than prior methods while maintaining zero perplexity violations and approximately 100\% capability retention on standard benchmarks. Our approach provides a principled, efficient framework for controllable and stable LLM behavior modification. Code: https://github.com/knoveleng/steering

View on arXivView PDF

Code Implementations(1)

knoveleng/steeringOfficial100%

[ACL 2026] - Official repo for the paper: "Selective Steering: Norm-Preserving Control Through Discriminative Layer Selection"

121Jupyter Notebook, PythonJan 6, 20262 months ago
activation-steeringai-alignmentai-safetyllm

Similar Papers

Cite this paper

@article{dang2026selective,
  title  = {Selective Steering: Norm-Preserving Control Through Discriminative Layer Selection},
  author = {Quy-Anh Dang and Chris Ngo},
  year   = {2026},
  eprint = {2601.19375},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.19375v1}
}

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/2601.19375.svg)](https://codeofpaper.com/paper/2601.19375)

Discussion