sparse-autoencoder-training

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

11.5k|842|Updated Nov 3, 2025
One-click install
npx skills add https://github.com/Orchestra-Research/AI-Research-SKILLs --skill sparse-autoencoder-training-orchestra-research
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sparse-autoencoder-training
Source: https://github.com/Orchestra-Research/AI-Research-SKILLs/tree/main/04-mechanistic-interpretability/saelens
Command: npx skills add https://github.com/Orchestra-Research/AI-Research-SKILLs --skill sparse-autoencoder-training-orchestra-research

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sae-lens, transformer-lens, torch, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of understanding complex neural network activations by decomposing them into sparse, interpretable features using Sparse Autoencoders (SAEs).

Core Features & Use Cases

  • Feature Discovery: Uncover the underlying concepts learned by models.
  • Monosemanticity Analysis: Study how models represent information in a disentangled way.
  • Superposition Investigation: Analyze how models store multiple features within single neurons.
  • Use Case: When analyzing a language model's response to a specific prompt, use this Skill to identify which learned features (e.g., sentiment, topic, specific entities) are most active and how they contribute to the output.

Quick Start

Use the SAELens skill to load a pre-trained sparse autoencoder and encode model activations to discover interpretable features.

Frequently Asked Questions about sparse-autoencoder-training

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

FAQPage Schema
How do I discover interpretable features in neural network activations?

You can train and analyze Sparse Autoencoders (SAEs) to decompose neural network activations into interpretable features, uncovering underlying concepts and monosemantic representations learned by language models using SAELens and TransformerLens.

What is superposition in neural networks and how is it analyzed?

Superposition in neural networks is when models store multiple features within single neurons. You analyze it by training Sparse Autoencoders to decompose activations and study how disentangled, monosemantic representations form within language models.

Do I need PyTorch and TransformerLens to train Sparse Autoencoders?

Yes, you need PyTorch, TransformerLens, and SAELens installed. These dependencies provide the necessary environment for model interaction, activation extraction, and executing the feature decomposition required to train Sparse Autoencoders effectively.

How can I identify which learned features are active for a specific prompt?

You load a pre-trained Sparse Autoencoder to encode model activations for your specific prompt. This process reveals which interpretable features, such as sentiment or specific entities, are most active and how they contribute to the output.

Why use Sparse Autoencoders for mechanistic interpretability instead of analyzing neurons directly?

Sparse Autoencoders are used for mechanistic interpretability because neural networks often store multiple features in superposition. SAEs decompose these complex activations into disentangled, monosemantic representations, making distinct concepts identifiable and easier to study.