sparse-autoencoder-training
Agent skill fromOrchestra-Research/AI-Research-SKILLs
Provides guidance for training and analyzing Sparse Autoencoders (SAEs) using SAELens to decompose neural network activations into interpretable features. Use when discovering interpretable features, analyzing superposition, or studying monosemantic representations in language models.
How to install sparse-autoencoder-training
install sparse-autoencoder-training
# install the AI-Research-SKILLs pack with the skills CLI
npx skills add Orchestra-Research/AI-Research-SKILLs# or add only this skill to Claude Code: copy the folder
04-mechanistic-interpretability/saelens/
# into
~/.claude/skills/saelens/ (all projects)
.claude/skills/saelens/ (one project)
1# SAELens: Sparse Autoencoders for Mechanistic Interpretability23SAELens is the primary library for training and analyzing Sparse Autoencoders (SAEs) - a technique for decomposing polysemantic neural network activations into sparse, interpretable features. Based on Anthropic's groundbreaking research on monosemanticity.45**GitHub**: [jbloomAus/SAELens](https://github.com/jbloomAus/SAELens) (1,100+ stars)67## The Problem: Polysemanticity & Superposition89Individual neurons in neural networks are **polysemantic** - they activate in multiple, semantically distinct contexts. This happens because models use **superposition** to represent more features than they have neurons, making interpretability difficult.1011**SAEs solve this** by decomposing dense activations into sparse, monosemantic features - typically only a small number of features activate for any given input, and each feature corresponds to an interpretable concept.1213## When to Use SAELens1415**Use SAELens when you need to:**16- Discover interpretable features in model activations17- Understand what concepts a model has learned18- Study superposition and feature geometry19- Perform feature-based steering or ablation20- Analyze safety-relevant features (deception, bias, harmful content)2122**Consider alternatives when:**23- You need basic activation analysis → Use **TransformerLens** directly24- You want causal intervention experiments → Use **pyvene** or **TransformerLens**25…
Excerpt shown under the repository's MIT license.
