sparse-autoencoder-training

Train and analyze Sparse Autoencoders for interpretable feature discovery in neural networks.

Updated May 11, 2026
One-click install
npx skills add https://github.com/richardnguyen0715/keep-it-real --skill sparse-autoencoder-training-richardnguyen0715
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sparse-autoencoder-training
Source: https://github.com/richardnguyen0715/keep-it-real/tree/main/refer-projects/hermes-agent/optional-skills/mlops/saelens
Command: npx skills add https://github.com/richardnguyen0715/keep-it-real --skill sparse-autoencoder-training-richardnguyen0715

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 provides a comprehensive guide for training and analyzing Sparse Autoencoders (SAEs) to decompose neural network activations into interpretable features, aiding in feature discovery, superposition analysis, and monosemantic representation study.

Core Features & Use Cases

  • Feature Discovery: Identifies interpretable features in model activations.
  • Superposition Analysis: Studies superposition and feature geometry in neural networks.
  • Monosemantic Representation: Analyzes monosemantic representations in language models.
  • Use Case: Use this Skill to understand the concepts a language model has learned by analyzing its activations and discovering interpretable features.

Quick Start

Train a Sparse Autoencoder on the provided dataset and analyze the features it discovers.

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 interpretable feature discovery in language models?

To train a sparse autoencoder for interpretable feature discovery, you use this Skill to guide the training process on neural network activations, decomposing them into monosemantic representations. It requires Python 3.10+, sae-lens, transformer-lens, and torch.

What is superposition analysis and how does it relate to neural network interpretability?

Superposition analysis studies how neural networks represent more features than they have dimensions by analyzing feature geometry. This Skill trains sparse autoencoders to decompose these superposed activations into distinct, interpretable features for language models.

Do I need transformer-lens and sae-lens to analyze monosemantic representations?

Yes, analyzing monosemantic representations requires transformer-lens and sae-lens to extract and process model activations. You also need PyTorch version 2.0.0 or higher and Python 3.10 or above to run the training and analysis scripts.

Can I use this approach to identify concepts a language model has learned from its activations?

Yes, you can identify concepts a language model has learned by training a sparse autoencoder on its activations. This process decomposes the internal representations into interpretable features, revealing the specific concepts the model uses for reasoning.

What's the best way to study feature geometry in neural networks using sparse autoencoders?

The best way to study feature geometry is to train sparse autoencoders on model activations to separate superimposed features. This Skill provides scripts and assets to analyze the resulting monosemantic representations and geometric properties.

Why are my sparse autoencoder training scripts not working with my current Python environment?

Your sparse autoencoder training scripts may fail if your environment lacks the required dependencies or uses an incompatible Python version. Ensure you have Python 3.10+ installed alongside sae-lens>=6.0.0, transformer-lens>=2.0.0, and torch>=2.0.0.