sparse-autoencoder-training

Train and analyze sparse autoencoders on transformer activations with SAELens.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you turn opaque neural network activations into sparse, human-interpretable features so you can understand what a model has learned and why it behaves the way it does.

Core Features & Use Cases

  • Pretrained SAE Analysis: Load existing sparse autoencoders and inspect which features activate on specific prompts or tokens.
  • Custom SAE Training: Configure and train sparse autoencoders on transformer activations with sparsity controls, checkpointing, and evaluation metrics.
  • Feature Steering and Ablation: Attribute model outputs to specific SAE features, steer generations with feature directions, and test causal importance by zeroing selected features.
  • Use Case: A researcher can analyze a language model layer, identify interpretable concepts such as syntax or named entities, and measure how those features affect downstream predictions.

Quick Start

Ask me to analyze a transformer prompt with a pretrained sparse autoencoder and summarize the top activating features, reconstruction quality, and likely concept labels.

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 sparse autoencoders to find interpretable features in transformer activations?

Use this Skill to train sparse autoencoders on transformer activations with sparsity controls and checkpointing. It decomposes neural network activations into interpretable features while tracking reconstruction metrics and sparsity regularization throughout the training process.

How does feature steering with sparse autoencoders work for mechanistic interpretability?

Feature steering with sparse autoencoders attributes model outputs to specific SAE features and steers generation along feature directions. You can test causal importance by zeroing selected features to observe how specific interpretable concepts affect downstream predictions.

Can I load and evaluate pretrained SAEs on specific prompts using SAELens?

Yes, you can load existing pretrained sparse autoencoders and inspect which features activate on specific prompts or tokens. The Skill evaluates pretrained or custom SAEs through SAELens, summarizing top activating features and reconstruction quality for transformer models.

How do I analyze superposition in language models using sparse autoencoders?

Analyze superposition by training sparse autoencoders to decompose transformer activations into sparse, interpretable features. This reveals how models represent overlapping concepts within neural network layers, allowing you to identify syntax or named entities and measure their downstream effects.

Do I need TransformerLens to extract hook activations for sparse autoencoder training?

Yes, TransformerLens is required for precise handling of hook activations during sparse autoencoder training and analysis. The Skill relies on TransformerLens to extract transformer model activations that are then decomposed into interpretable features via SAELens.

What are the limitations of using sparse autoencoders for feature discovery in neural networks?

Limitations of sparse autoencoders for feature discovery include reliance on sparsity regularization quality and reconstruction metrics. Interpretable features require careful configuration of sparsity controls, and causal claims about feature importance depend on ablation results rather than activation patterns alone.