sparse-autoencoder-training

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill addresses the challenge of polysemanticity in neural networks, where individual neurons represent multiple, overlapping concepts, making model behavior difficult to interpret.

Core Features & Use Cases

  • Feature Discovery: Decompose dense model activations into sparse, monosemantic features that correspond to human-interpretable concepts.
  • Model Analysis: Study superposition and feature geometry to understand how models represent information.
  • Use Case: Researchers can use this to identify specific features responsible for bias or safety-relevant behaviors in language models, enabling targeted steering or ablation.

Quick Start

Use the sparse-autoencoder-training skill to load a pre-trained SAE for gpt2-small and identify the top-activating features for a given input prompt.

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 neural network activations into interpretable features?

You can decompose neural network activations into interpretable features by training sparse autoencoders. This process resolves polysemanticity by breaking dense model activations down into sparse, monosemantic features that correspond to human-interpretable concepts.

What is the best way to identify specific features responsible for bias in language models?

To identify features responsible for bias in language models, use sparse autoencoders for feature discovery. This allows researchers to isolate specific sparse, monosemantic features representing safety-relevant behaviors, enabling targeted steering or ablation experiments.

How do I analyze superposition and feature geometry in transformer models?

You can analyze superposition and feature geometry by using sparse autoencoders to decompose dense activations. This reveals how models represent overlapping information, helping you study the underlying geometry of feature representations within transformer models.

Can I use sae-lens and transformer-lens to load a pre-trained SAE for gpt2-small?

Yes, you can use sae-lens and transformer-lens to load a pre-trained sparse autoencoder for gpt2-small. This allows you to quickly identify top-activating features for a given input prompt without training a new model from scratch.

Why do individual neurons represent multiple overlapping concepts in neural networks?

Individual neurons represent multiple overlapping concepts due to polysemanticity, making model behavior difficult to interpret. Sparse autoencoders solve this by decomposing these dense, polysemantic activations into sparse, monosemantic, and human-interpretable features.

Do I need torch to perform high-dimensional activation decomposition and reconstruction?

Yes, you need torch along with sae-lens and transformer-lens to perform high-dimensional activation decomposition and reconstruction. These dependencies provide the necessary computational backend for training and analyzing sparse autoencoders.