Saved in:
Bibliographic Details
Main Authors: Shi, Wei, Li, Sihang, Liang, Tao, Wan, Mingyang, Ma, Guojun, Wang, Xiang, He, Xiangnan
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2503.08200
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915299700244480
author Shi, Wei
Li, Sihang
Liang, Tao
Wan, Mingyang
Ma, Guojun
Wang, Xiang
He, Xiangnan
author_facet Shi, Wei
Li, Sihang
Liang, Tao
Wan, Mingyang
Ma, Guojun
Wang, Xiang
He, Xiangnan
contents Mechanistic interpretability of large language models (LLMs) aims to uncover the internal processes of information propagation and reasoning. Sparse autoencoders (SAEs) have demonstrated promise in this domain by extracting interpretable and monosemantic features. However, prior works primarily focus on feature extraction from a single layer, failing to effectively capture activations that span multiple layers. In this paper, we introduce Route Sparse Autoencoder (RouteSAE), a new framework that integrates a routing mechanism with a shared SAE to efficiently extract features from multiple layers. It dynamically assigns weights to activations from different layers, incurring minimal parameter overhead while achieving high interpretability and flexibility for targeted feature manipulation. We evaluate RouteSAE through extensive experiments on Llama-3.2-1B-Instruct. Specifically, under the same sparsity constraint of 64, RouteSAE extracts 22.5% more features than baseline SAEs while achieving a 22.3% higher interpretability score. These results underscore the potential of RouteSAE as a scalable and effective method for LLM interpretability, with applications in feature discovery and model intervention. Our codes are available at https://github.com/swei2001/RouteSAEs.
format Preprint
id arxiv_https___arxiv_org_abs_2503_08200
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Route Sparse Autoencoder to Interpret Large Language Models
Shi, Wei
Li, Sihang
Liang, Tao
Wan, Mingyang
Ma, Guojun
Wang, Xiang
He, Xiangnan
Machine Learning
Mechanistic interpretability of large language models (LLMs) aims to uncover the internal processes of information propagation and reasoning. Sparse autoencoders (SAEs) have demonstrated promise in this domain by extracting interpretable and monosemantic features. However, prior works primarily focus on feature extraction from a single layer, failing to effectively capture activations that span multiple layers. In this paper, we introduce Route Sparse Autoencoder (RouteSAE), a new framework that integrates a routing mechanism with a shared SAE to efficiently extract features from multiple layers. It dynamically assigns weights to activations from different layers, incurring minimal parameter overhead while achieving high interpretability and flexibility for targeted feature manipulation. We evaluate RouteSAE through extensive experiments on Llama-3.2-1B-Instruct. Specifically, under the same sparsity constraint of 64, RouteSAE extracts 22.5% more features than baseline SAEs while achieving a 22.3% higher interpretability score. These results underscore the potential of RouteSAE as a scalable and effective method for LLM interpretability, with applications in feature discovery and model intervention. Our codes are available at https://github.com/swei2001/RouteSAEs.
title Route Sparse Autoencoder to Interpret Large Language Models
topic Machine Learning
url https://arxiv.org/abs/2503.08200