sparse-autoencoder-training

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

31|3|Updated May 7, 2026
One-click install
npx skills add https://github.com/markwang2658/hermes-windows-native --skill sparse-autoencoder-training-markwang2658
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sparse-autoencoder-training
Source: https://github.com/markwang2658/hermes-windows-native/tree/main/hermes-agent/optional-skills/mlops/saelens
Command: npx skills add https://github.com/markwang2658/hermes-windows-native --skill sparse-autoencoder-training-markwang2658

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides guidance for training and analyzing Sparse Autoencoders (SAEs) using SAELens to decompose neural activations into interpretable features. Use when discovering interpretable features, analyzing superposition, or studying monosemantic representations in language models.

Core Features & Use Cases

  • Training SAEs with configurable architectures (Standard, Gated, TopK) and expansion factors.
  • Analyzing SAEs to discover interpretable features, study superposition, and assess monosemantic representations.
  • Integrations with SAELens to load pretrained SAEs, train custom models, and perform feature attribution.

Quick Start

Load a pretrained SAE and examine feature activations on a sample GPT-2 layer to begin interpreting sparse representations.

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 decompose transformer activations into interpretable features?

Train sparse autoencoders using SAELens to decompose neural activations into sparse, interpretable features. Configure SAE architectures like Standard, Gated, or TopK with specific expansion factors to study monosemantic representations in language models.

What is feature discovery in mechanistic interpretability and when do I need sparse autoencoders?

Feature discovery in mechanistic interpretability identifies interpretable features within neural networks. You need sparse autoencoders when analyzing superposition or studying monosemantic representations across transformer activations to understand internal model representations.

Can I load pretrained sparse autoencoders to analyze feature activations on GPT-2 layers?

Yes, you can load pretrained SAEs via SAELens to examine feature activations on sample GPT-2 layers. This allows you to begin interpreting sparse representations and perform feature attribution without training from scratch.

What sparse autoencoder architectures are supported for studying superposition in language models?

Supported sparse autoencoder architectures include Standard, Gated, and TopK models with configurable expansion factors. These architectures help analyze superposition and assess monosemantic representations in transformer language models.

How do I perform feature attribution and feature steering using trained SAEs?

Apply trained SAEs to decompose transformer activations into sparse features, enabling feature attribution and feature steering. The workflow includes training, analysis, and steering phases with documented references for understanding model representations.

Why use sparse autoencoders instead of direct analysis for understanding transformer model representations?

Sparse autoencoders resolve superposition by decomposing dense transformer activations into interpretable, monosemantic features. Direct analysis struggles with polysemantic neurons, whereas SAEs provide a structured approach to feature discovery and mechanistic interpretability.