SAIF: A Sparse Autoencoder Framework for Interpreting and Steering Instruction Following of Language Models

Zirui He, Haiyan Zhao, Yiran Qiao, Fan Yang, Ali Payani +2 more
2/17/2025
cs.LGcs.AIcs.CL

No confident code implementation found for this paper.

Abstract

The ability of large language models (LLMs) to follow instructions is crucial for their practical applications, yet the underlying mechanisms remain poorly understood. This paper presents a novel framework that leverages sparse autoencoders (SAE) to interpret how instruction following works in these models.

Show full abstract

We demonstrate how the features we identify can effectively steer model outputs to align with given instructions. Through analysis of SAE latent activations, we identify specific latents responsible for instruction following behavior. Our findings reveal that instruction following capabilities are encoded by a distinct set of instruction-relevant SAE latents. These latents both show semantic proximity to relevant instructions and demonstrate causal effects on model behavior. Our research highlights several crucial factors for achieving effective steering performance: precise feature identification, the role of final layer, and optimal instruction positioning. Additionally, we demonstrate that our methodology scales effectively across SAEs and LLMs of varying sizes.

View on arXivView PDF

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{he2025saif,
  title  = {SAIF: A Sparse Autoencoder Framework for Interpreting and Steering Instruction Following of Language Models},
  author = {Zirui He and Haiyan Zhao and Yiran Qiao and Fan Yang and Ali Payani and Jing Ma and Mengnan Du},
  year   = {2025},
  eprint = {2502.11356},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.11356v1}
}

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

Discussion