sparse-autoencoder-training

Train and evaluate Sparse Autoencoders with SAELens to analyze neural activations.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides guidance for training and analyzing Sparse Autoencoders (SAEs) using SAELens to decompose neural network activations into interpretable features. Use when discovering interpretable features, analyzing superposition, or studying monosemantic representations in language models.

Core Features & Use Cases

  • Load pre-trained SAEs for quick analysis
  • Train custom SAEs tailored to your model and task
  • Analyze activations, perform feature attribution, steering, and ablation
  • Compare features across prompts and integrate with Neuronpedia

Quick Start

Load a GPT-2 small model, attach a pre-trained SAE, encode model activations, and identify the top activating features for a given 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 train a Sparse Autoencoder to find interpretable features in a transformer model?

To train a Sparse Autoencoder, you use SAELens to specify model hooks, expansion factors, and sparsity penalties. This decomposes neural activations into interpretable, monosemantic features for your transformer model.

What is the best way to analyze superposition in language model activations?

Analyzing superposition involves training Sparse Autoencoders with SAELens to dissect neural activations. This process reveals interpretable features and monosemantic representations hidden within the language model's superposition.

How do I perform feature attribution and steering on a pre-trained SAE?

Feature attribution and steering are performed by loading a pre-trained SAE with SAELens onto a model like GPT-2 small. You encode activations and identify top activating features to steer model behavior across prompts.

Can I compare SAE features across different prompts and integrate with Neuronpedia?

Yes, you can compare features across different prompts and integrate with Neuronpedia. SAELens supports cross-prompt comparisons and Neuronpedia integration to evaluate and visualize discovered interpretable features.

What evaluation metrics and configurations are needed for Sparse Autoencoder training?

Sparse Autoencoder training requires specifying training tokens, sparsity penalties, and expansion factors. You also define evaluation metrics to properly assess the quality of interpretable features extracted from the model hooks.

How do I run ablation experiments on specific features using SAELens?

Ablation experiments are run by loading a pre-trained or custom SAE with SAELens and targeting specific neural activations. This allows you to measure the causal impact of identified interpretable features on model outputs.