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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: He, Zirui, Zhao, Haiyan, Qiao, Yiran, Yang, Fan, Payani, Ali, Ma, Jing, Du, Mengnan
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910831150628864
author He, Zirui
Zhao, Haiyan
Qiao, Yiran
Yang, Fan
Payani, Ali
Ma, Jing
Du, Mengnan
author_facet He, Zirui
Zhao, Haiyan
Qiao, Yiran
Yang, Fan
Payani, Ali
Ma, Jing
Du, Mengnan
contents 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. 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.
format Preprint
id arxiv_https___arxiv_org_abs_2502_11356
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle SAIF: A Sparse Autoencoder Framework for Interpreting and Steering Instruction Following of Language Models
He, Zirui
Zhao, Haiyan
Qiao, Yiran
Yang, Fan
Payani, Ali
Ma, Jing
Du, Mengnan
Machine Learning
Artificial Intelligence
Computation and Language
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. 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.
title SAIF: A Sparse Autoencoder Framework for Interpreting and Steering Instruction Following of Language Models
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2502.11356