Share from 0:00
0:00
/

Efficient Dictionary Learning with Switch Sparse Autoencoders

Generated this podcast with Google's Illuminate.

Switch Scaling sparse autoencoders (SAEs) offer compute-efficient scaling for sparse autoencoders in LLM feature extraction.

πŸ“š https://arxiv.org/abs/2410.08201

Original Problem πŸ”:

Scaling sparse autoencoders (SAEs) for decomposing neural network activations into interpretable features is computationally expensive, limiting their application to frontier language models.

-----

Solution in this Paper πŸ› οΈ:

β€’ Introduces Switch Sparse Autoencoders (Switch SAEs)

β€’ Combines Switch layer with TopK SAE

β€’ Uses multiple expert SAEs and a routing network

β€’ Routes input activations to the most probable expert

β€’ Avoids dense matrix multiplication in encoder

β€’ Trains router and expert SAEs simultaneously

β€’ Balances reconstruction and expert utilization

-----

Key Insights from this Paper πŸ’‘:

β€’ Switch SAEs improve FLOPs vs. training loss over existing methods

β€’ Feature duplication across experts reduces SAE capacity

β€’ Encoder features cluster by expert, while decoder features are more diffuse

β€’ Switch SAEs show bias towards duplicate frequent features

-----

Results πŸ“Š:

β€’ Switch SAEs achieve better reconstruction than dense SAEs at fixed compute budget

β€’ FLOP-matched Switch SAEs Pareto-dominate TopK, Gated, and ReLU SAEs

β€’ Width-matched Switch SAEs perform slightly worse than TopK SAEs but outperform ReLU SAEs

β€’ Switch SAEs reduce FLOPs per activation by up to 128x while maintaining ReLU SAE performance

β€’ Feature interpretability remains similar to TopK SAEs

Discussion about this video

User's avatar

Ready for more?