Efficient Dictionary Learning with Switch Sparse Autoencoders

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Mudide, Anish, Engels, Joshua, Michaud, Eric J., Tegmark, Max, de Witt, Christian Schroeder
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866908390014320640
author Mudide, Anish
Engels, Joshua
Michaud, Eric J.
Tegmark, Max
de Witt, Christian Schroeder
author_facet Mudide, Anish
Engels, Joshua
Michaud, Eric J.
Tegmark, Max
de Witt, Christian Schroeder
contents Sparse autoencoders (SAEs) are a recent technique for decomposing neural network activations into human-interpretable features. However, in order for SAEs to identify all features represented in frontier models, it will be necessary to scale them up to very high width, posing a computational challenge. In this work, we introduce Switch Sparse Autoencoders, a novel SAE architecture aimed at reducing the compute cost of training SAEs. Inspired by sparse mixture of experts models, Switch SAEs route activation vectors between smaller "expert" SAEs, enabling SAEs to efficiently scale to many more features. We present experiments comparing Switch SAEs with other SAE architectures, and find that Switch SAEs deliver a substantial Pareto improvement in the reconstruction vs. sparsity frontier for a given fixed training compute budget. We also study the geometry of features across experts, analyze features duplicated across experts, and verify that Switch SAE features are as interpretable as features found by other SAE architectures.
format Preprint
id arxiv_https___arxiv_org_abs_2410_08201
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Efficient Dictionary Learning with Switch Sparse Autoencoders
Mudide, Anish
Engels, Joshua
Michaud, Eric J.
Tegmark, Max
de Witt, Christian Schroeder
Machine Learning
Sparse autoencoders (SAEs) are a recent technique for decomposing neural network activations into human-interpretable features. However, in order for SAEs to identify all features represented in frontier models, it will be necessary to scale them up to very high width, posing a computational challenge. In this work, we introduce Switch Sparse Autoencoders, a novel SAE architecture aimed at reducing the compute cost of training SAEs. Inspired by sparse mixture of experts models, Switch SAEs route activation vectors between smaller "expert" SAEs, enabling SAEs to efficiently scale to many more features. We present experiments comparing Switch SAEs with other SAE architectures, and find that Switch SAEs deliver a substantial Pareto improvement in the reconstruction vs. sparsity frontier for a given fixed training compute budget. We also study the geometry of features across experts, analyze features duplicated across experts, and verify that Switch SAE features are as interpretable as features found by other SAE architectures.
title Efficient Dictionary Learning with Switch Sparse Autoencoders
topic Machine Learning
url https://arxiv.org/abs/2410.08201