sparse-autoencoder-training

Train and analyze Sparse Autoencoders to decompose neural network activations into interpretable features.

539|39|Updated May 1, 2026
One-click install
npx skills add https://github.com/Tommy-yw/RunbookHermes --skill sparse-autoencoder-training-tommy-yw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sparse-autoencoder-training
Source: https://github.com/Tommy-yw/RunbookHermes/tree/main/optional-skills/mlops/saelens
Command: npx skills add https://github.com/Tommy-yw/RunbookHermes --skill sparse-autoencoder-training-tommy-yw

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sae-lens>=6.0.0, transformer-lens>=2.0.0, torch>=2.0.0, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the challenge of interpretability in neural networks by providing guidance on training and analyzing Sparse Autoencoders (SAEs). It helps in decomposing neural network activations into interpretable features, which is useful for understanding model behavior and identifying important features.

Core Features & Use Cases

  • Feature Discovery: Discover interpretable features in model activations.
  • Interpretability: Understand what concepts a model has learned.
  • Superposition Analysis: Study superposition and feature geometry.
  • Feature-based Steering: Perform feature-based steering or ablation.
  • Safety Analysis: Analyze safety-relevant features like deception, bias, or harmful content.
  • Use Case: Analyze the features that activate when a language model generates a particular text, providing insights into the model's internal representations.

Quick Start

Train a Sparse Autoencoder on GPT-2 activations using the 'sparse-autoencoder-training' skill.

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 to discover interpretable features in neural network activations?

To train a sparse autoencoder for feature discovery, you decompose neural network activations into interpretable features using libraries like SAELens and PyTorch. This process helps identify what concepts a model has learned by analyzing internal representations.

What is a sparse autoencoder used for in machine learning interpretability?

A sparse autoencoder is used in machine learning interpretability to decompose neural network activations into interpretable features. It enables feature discovery, superposition analysis, and safety assessment by identifying learned concepts within models.

Do I need PyTorch and TransformerLens to train sparse autoencoders on GPT-2 activations?

Yes, you need PyTorch, TransformerLens, and SAELens to train sparse autoencoders on GPT-2 activations. These machine learning libraries provide the necessary environment for extracting model activations and executing the training process.

Can I use sparse autoencoders for feature-based steering and safety analysis?

Yes, you can use sparse autoencoders for feature-based steering and safety analysis. By decomposing activations into interpretable features, you can perform ablations and analyze safety-relevant features like deception, bias, or harmful content.

What is the best way to analyze superposition and feature geometry in language models?

The best way to analyze superposition and feature geometry is by training sparse autoencoders to decompose neural network activations. This approach reveals the underlying interpretable features and concepts the language model has learned.