sparse-autoencoder-training

Train and analyze Sparse Autoencoders to decompose dense neural activations into sparse features.

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

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 activate for multiple, unrelated concepts, making model behavior difficult to interpret.

Core Features & Use Cases

  • Feature Discovery: Decompose dense model activations into sparse, monosemantic features using Sparse Autoencoders (SAEs).
  • Mechanistic Interpretability: Analyze model internals to understand feature geometry, superposition, and safety-relevant concepts like bias or deception.
  • Use Case: Researchers can use this skill to identify which specific features in a language model's residual stream correspond to concepts like "legal language" or "sentiment," enabling targeted steering or ablation experiments.

Quick Start

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

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?

To decompose neural network activations into interpretable features, you train Sparse Autoencoders (SAEs) that map dense residual stream activations into sparse, monosemantic directions. This process isolates individual concepts like sentiment or legal language for targeted analysis.

Why do neurons activate for multiple unrelated concepts in transformer models?

Neurons activate for multiple unrelated concepts due to polysemanticity, a phenomenon where models superimpose many features within a single neuron. Sparse Autoencoders resolve this by decomposing dense activations into sparse, monosemantic features for mechanistic interpretability.

How do I identify top activating features in a language model using transformer-lens?

To identify top activating features using transformer-lens, you load a pre-trained Sparse Autoencoder and pass input text through the model. The SAE analyzes the residual stream activations to rank and extract the top features firing on that specific text.

Can I use sparse autoencoders for model steering and causal ablation experiments?

Yes, you can use sparse autoencoders for model steering and causal ablation experiments. By isolating specific monosemantic features in the residual stream, you can target and modify or remove individual concepts to observe causal effects on model behavior.

Do I need sae-lens and torch to perform mechanistic interpretability analysis?

Yes, you need sae-lens, transformer-lens, and torch to perform mechanistic interpretability analysis. These libraries provide the necessary functions to load models, train SAEs, and execute high-dimensional activation analysis and reconstruction workflows.

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

The best way to analyze feature geometry and superposition in neural networks is by training Sparse Autoencoders to decompose dense activations. This reveals the underlying sparse feature structure, allowing you to map safety-relevant concepts like bias or deception.