sparse-autoencoder-training

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

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

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 polysemanticity in neural networks by decomposing dense activations into sparse, interpretable features using Sparse Autoencoders (SAEs).

Core Features & Use Cases

  • Feature Discovery: Identify and analyze interpretable features within model activations.
  • Mechanistic Interpretability: Study superposition and understand learned concepts in language models.
  • SAE Training & Analysis: Provides workflows for training custom SAEs and analyzing pre-trained ones.
  • Use Case: When investigating why a language model exhibits specific behaviors (e.g., generating biased text), this Skill helps pinpoint the underlying features responsible by decomposing the model's internal representations.

Quick Start

Use the sparse-autoencoder-training skill to load and analyze pre-trained SAEs for GPT-2 small.

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 (SAEs). This Skill provides workflows to load pre-trained SAEs or train custom ones to resolve polysemanticity in language models.

Can I analyze pre-trained SAEs for GPT-2 small using transformer-lens?

Yes, you can analyze pre-trained SAEs for GPT-2 small. The Skill supports using transformer-lens and sae-lens to load pre-trained SAEs and perform feature attribution on the model's internal representations.

How do I train a custom sparse autoencoder for mechanistic interpretability research?

To train a custom sparse autoencoder for mechanistic interpretability, this Skill provides scripts and guidance for configuring hyperparameters. It facilitates feature discovery and helps understand learned concepts in large language models.

What's the best way to identify features responsible for biased text generation in language models?

The best way to identify features responsible for biased text generation is by decomposing the model's internal representations using Sparse Autoencoders. This approach pinpoints the underlying features driving specific behaviors in language models.

Does this sparse autoencoder training skill require PyTorch and sae-lens dependencies?

Yes, this skill requires PyTorch, sae-lens, and transformer-lens dependencies. These frameworks provide the foundational environment needed to train custom SAEs and perform feature steering on large language models.

Why does my language model exhibit polysemanticity in its dense activations?

Language models exhibit polysemanticity in dense activations because individual neurons represent multiple overlapping concepts. Using Sparse Autoencoders resolves this by decomposing the dense activations into sparse, interpretable features.