LayerNavigator: Finding Promising Intervention Layers for Efficient Activation Steering in Large Language Models

Hao Sun, Huailiang Peng, Qiong Dai, Xu Bai, Ya-Nan Cao
1/1/2025

No confident code implementation found for this paper.

Abstract

Activation steering is an efficient technique for aligning the behavior of large language models (LLMs) by injecting steering vectors directly into a model’s residual stream during inference. A pivotal challenge in this approach lies in choosing the right layers to intervene, as inappropriate selection can undermine behavioral alignment and even impair the model’s language fluency and other core capabilities.

Show full abstract

While single-layer steering allows straightforward evaluation on held-out data to identify the "best" layer, it offers only limited alignment improvements. Multi-layer steering promises stronger control but faces a combinatorial explosion of possible layer subsets, making exhaustive search impractical. To address these challenges, we propose LayerNavigator, which provides a principled and promising layer selection strategy. The core innovation of LayerNavigator lies in its novel, quantifiable criterion that evaluates each layer’s steerability by jointly considering two key aspects: discriminability and consistency. By reusing the activations computed during steering vector generation, LayerNavigator requires no extra data and adds negligible overhead. Comprehensive experiments show that LayerNavigator achieves not only superior alignment but also greater scalability and interpretability compared to existing strategies. Our code is available at https://github.com/Bryson-Arrot/LayerNavigator

DOISemantic Scholar

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{sun2025layernavigator,
  title  = {LayerNavigator: Finding Promising Intervention Layers for Efficient Activation Steering in Large Language Models},
  author = {Hao Sun and Huailiang Peng and Qiong Dai and Xu Bai and Ya-Nan Cao},
  year   = {2025},
  doi    = {10.52202/085713-3383},
  url    = {https://doi.org/10.52202/085713-3383},
  journal = {Neural Information Processing Systems}
}

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

Discussion