sparse-autoencoder-training

Train and analyze sparse autoencoders with SAELens for language model feature discovery.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Sparse Autoencoders (SAEs) enable decomposition of dense model activations into sparse, interpretable features, improving mechanistic interpretability and enabling targeted analysis of language model representations.

Core Features & Use Cases

  • Step-by-step workflows for loading pre-trained SAEs, encoding activations to sparse features, training new SAEs, evaluating reconstruction quality, and performing feature analysis and steering.
  • Use cases include discovering interpretable features, studying monosemantic representations, and enabling feature-based steering or ablation in research pipelines.

Quick Start

Train and analyze sparse autoencoders using SAELens to reveal monosemantic features in language models.

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 for language model interpretability?

To train a sparse autoencoder, you can use the SAELens integration provided here to configure pipelines via LanguageModelSAERunnerConfig and SAETrainingRunner. This workflow enables interpretable feature discovery by encoding dense model activations into sparse, monosemantic representations.

What is the best way to evaluate sparse autoencoder reconstruction quality?

Evaluating sparse autoencoder reconstruction involves tracking metrics like L0 sparsity and cross-entropy (CE) recovery. The provided workflow documents these metrics to help you assess how well the SAE decomposes dense activations without losing essential language model representations.

Can I load pre-trained SAEs and perform feature steering on existing models?

Yes, you can load pre-trained SAEs using the SAELens workflow to encode activations and perform feature analysis. This allows you to identify interpretable features and apply targeted feature steering or ablation directly within your mechanistic interpretability research pipelines.

Does SAELens support reproducible SAE training pipelines for mechanistic interpretability?

SAELens supports reproducible SAE training pipelines through configurable classes like LanguageModelSAERunnerConfig. This ensures consistent training and evaluation of sparse autoencoders, allowing researchers to reliably document L0 and CE recovery metrics during feature discovery.

Why use sparse autoencoders for feature discovery in machine learning models?

Sparse autoencoders decompose dense model activations into sparse, interpretable features. This process improves mechanistic interpretability by isolating monosemantic representations, enabling researchers to study specific features and perform targeted analysis of language model behaviors.