sparse-autoencoder-training

Train and analyze sparse autoencoders with SAELens to decompose neural activations into interpretable features.

2|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/Clay-HHK/claude-config --skill sparse-autoencoder-training-clay-hhk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sparse-autoencoder-training
Source: https://github.com/Clay-HHK/claude-config/tree/main/skills/AI-research-SKILLs/04-mechanistic-interpretability/saelens
Command: npx skills add https://github.com/Clay-HHK/claude-config --skill sparse-autoencoder-training-clay-hhk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill provides structured guidance for training and analyzing Sparse Autoencoders (SAEs) with SAELens to decompose neural activations into sparse, interpretable features, enabling mechanistic interpretability research.

Core Features & Use Cases

  • Loading and analyzing pre-trained SAEs to inspect feature activations per token.
  • Training custom SAEs to optimize sparsity, reconstruction, and feature discovery.
  • Feature analysis, steering, and ablation to study model behavior and safety-relevant representations.
  • Integration with TransformerLens for end-to-end experimentation.

Quick Start

Load a model, attach a pre-trained SAE, and start analyzing sparse feature activations on a sample prompt.

Frequently Asked Questions about sparse-autoencoder-training

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I train sparse autoencoders to find interpretable features in transformer activations?

To train sparse autoencoders for feature discovery, you can use SAELens to optimize sparsity and reconstruction on transformer activations. This decomposes neural activations into interpretable feature representations for mechanistic interpretability research.

What is mechanistic interpretability and how do sparse autoencoders help analyze language models?

Mechanistic interpretability analyzes language model internals, and sparse autoencoders help by decomposing complex neural activations into sparse, monosemantic features. This reveals specific representations within transformer activations.

Can I load and inspect pre-trained sparse autoencoders using SAELens?

Yes, you can load pre-trained sparse autoencoders with SAELens to inspect feature activations per token. This allows immediate analysis of sparse feature representations on sample prompts without training from scratch.

Does SAELens work with TransformerLens for end-to-end language model analysis?

Yes, SAELens integrates with TransformerLens for end-to-end experimentation. You can load a model, attach a pre-trained sparse autoencoder, and analyze sparse feature activations directly within the TransformerLens workflow.

What environment and dependencies do I need to start analyzing sparse autoencoders?

You need SAELens, TransformerLens, and PyTorch installed, plus a compatible language model and dataset setup. This environment enables training, analysis, and evaluation of sparse autoencoders for feature discovery.

How do I steer or ablate activations to study model behavior and safety-relevant representations?

You can apply feature steering and ablation to study model behavior and safety-relevant representations using sparse autoencoders. SAELens enables targeted manipulation of identified interpretable features within transformer activations.