sparse-autoencoder-training

Train and analyze Sparse Autoencoders with SAELens to decompose neural activations.

Updated Apr 19, 2026
One-click install
npx skills add https://github.com/gqf2008/hermez-ai --skill sparse-autoencoder-training-gqf2008
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sparse-autoencoder-training
Source: https://github.com/gqf2008/hermez-ai/tree/main/skills/mlops/saelens
Command: npx skills add https://github.com/gqf2008/hermez-ai --skill sparse-autoencoder-training-gqf2008

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

SAE-based analysis guides researchers in training and evaluating Sparse Autoencoders (SAEs) to decompose dense neural activations into sparse, interpretable features using SAELens, enabling clearer mechanistic insights.

Core Features & Use Cases

  • Workflow guidance for loading pre-trained SAEs and running activation encoding/decoding.
  • Support for training custom SAEs with architectures such as Standard, Gated, TopK, and JumpReLU.
  • Analysis workflows for feature attribution, steering, and ablation to study model behavior.

Quick Start

Load a pretrained SAE and run a quick feature analysis on a GPT-2 small activation example.

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 a Sparse Autoencoder for mechanistic interpretability?

You can train custom Sparse Autoencoders using SAELens to decompose dense neural activations into sparse, interpretable features. The Skill guides researchers through training architectures like Standard, Gated, TopK, and JumpReLU for mechanistic interpretability tasks.

What is superposition analysis and how do SAEs help study it?

Superposition analysis examines how neural networks represent more features than dimensions by entangling them. Sparse Autoencoders help study this by decomposing dense neural activations into sparse, interpretable, monosemantic representations for clearer mechanistic insights.

Can I use SAELens with TransformerLens to analyze GPT-2 activations?

Yes, SAELens works with TransformerLens to load pre-trained SAEs and run feature analysis on GPT-2 activations. This requires PyTorch-ready tooling to perform encoding, decoding, and analysis workflows on the extracted neural activations.

What SAE architectures can I train for feature discovery?

You can train custom Sparse Autoencoders using Standard, Gated, TopK, and JumpReLU architectures for feature discovery. These architectures decompose dense neural activations into sparse, interpretable features for mechanistic interpretability analysis.

Do I need PyTorch to run encoding and decoding workflows on pre-trained SAEs?

Yes, PyTorch-ready tooling is required to load pre-trained SAEs and perform encoding, decoding, and analysis workflows. The Skill guides researchers through using SAELens and TransformerLens for these neural activation tasks.

What analysis workflows are available for studying model behavior with SAEs?

The available analysis workflows for studying model behavior with SAEs include feature attribution, steering, and ablation. These methods help researchers study how sparse, interpretable features decompose dense neural activations and influence model behavior.