sparse-autoencoder-training

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

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/gagan114662/content_books --skill sparse-autoencoder-training-gagan114662
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sparse-autoencoder-training
Source: https://github.com/gagan114662/content_books/tree/main/AI-research-SKILLs/04-mechanistic-interpretability/saelens
Command: npx skills add https://github.com/gagan114662/content_books --skill sparse-autoencoder-training-gagan114662

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of polysemanticity in neural networks, where individual neurons represent multiple concepts, by decomposing activations into sparse, interpretable features using Sparse Autoencoders (SAEs).

Core Features & Use Cases

  • Feature Discovery: Uncover meaningful, human-understandable concepts learned by models.
  • Superposition Analysis: Study how models represent multiple features within single neurons.
  • Monosemantic Representation: Decompose complex activations into simpler, single-concept features.
  • Use Case: Analyze a language model to discover features that specifically activate for mentions of "Paris" or for legal jargon, aiding in understanding the model's internal knowledge.

Quick Start

Use the saelens skill to load a pre-trained sparse autoencoder for GPT-2 small 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 decompose language model activations into interpretable features?

You decompose language model activations into interpretable features by training Sparse Autoencoders to resolve polysemanticity. This Skill provides tools to uncover monosemantic representations, allowing you to analyze how models represent multiple concepts within single neurons.

What is the best way to analyze superposition in neural networks?

Analyzing superposition in neural networks involves using Sparse Autoencoders to separate overlapping concepts. This Skill facilitates superposition analysis by decomposing complex activations into sparse, human-understandable features, revealing how models encode multiple representations.

How do I train a custom sparse autoencoder with configurable hyperparameters?

You train a custom sparse autoencoder using the provided scripts to configure hyperparameters and evaluation metrics. This Skill supports training custom SAEs to discover monosemantic representations and analyze model concepts like specific entities or legal jargon.

Can I use sae-lens to load pre-trained sparse autoencoders for GPT-2 small?

Yes, you can use sae-lens to load pre-trained sparse autoencoders for GPT-2 small. The Skill integrates with TransformerLens, enabling you to encode model activations and discover interpretable features quickly without training from scratch.

Why does my neural network neuron represent multiple concepts instead of a single feature?

Neural network neurons represent multiple concepts due to polysemanticity, where models superimpose many features within a single neuron. You resolve this by training Sparse Autoencoders to decompose activations into sparse, monosemantic representations for mechanistic interpretability.

Does this sparse autoencoder training Skill integrate with TransformerLens?

Yes, this sparse autoencoder training Skill integrates with TransformerLens. It provides tools and guidance to train custom SAEs and encode model activations, allowing you to analyze superposition and discover interpretable features within language models.