sparse-autoencoder-training

Train and analyze sparse autoencoders with SAELens to decompose neural activations into interpretable features.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Train and analyze Sparse Autoencoders (SAEs) using SAELens to decompose neural activations into interpretable features. Use when exploring mechanistic interpretability of language models, identifying monosemantic features, or studying model superposition.

Core Features & Use Cases

  • Load and apply pre-trained SAEs to model activations.
  • Train custom SAEs on transformer activations with configurable architecture and sparsity.
  • Analyze features, steering, ablation, and cross-prompt comparisons for interpretability.

Quick Start

Train a basic SAE on a GPT-2-style model and review its sparsity and reconstruction performance.

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 on GPT-2 model activations?

To train a sparse autoencoder on GPT-2 activations, use SAELens with configurable architecture and sparsity settings. This process decomposes transformer activations into interpretable features for mechanistic interpretability analysis.

What is mechanistic interpretability and how does superposition relate to it?

Mechanistic interpretability analyzes model internals by decomposing neural activations into interpretable features. Superposition allows models to represent more features than dimensions, which sparse autoencoders help untangle by identifying these overlapping monosemantic features.

Do I need Python 3.10 and transformer-lens to analyze sparse autoencoders?

Yes, analyzing sparse autoencoders requires Python 3.10+ along with the SAELens and transformer-lens libraries. These dependencies provide the necessary environment to load pre-trained SAEs and perform feature ablation end-to-end.

Can I load pre-trained SAEs for feature steering and ablation?

Yes, you can load and apply pre-trained SAEs to model activations for feature steering and ablation. This allows cross-prompt comparisons and interpretability analysis across GPT-2 or GEMMA-like models without training a new sparse autoencoder.

What's the best way to discover monosemantic features in language model activations?

The best way to discover monosemantic features is training sparse autoencoders with SAELens to decompose activations. This isolates interpretable features from superposition, enabling feature-based steering and ablation within transformer models.

When should I not use sparse autoencoders for model interpretability?

Avoid using sparse autoencoders when lacking Python 3.10+ or SAELens and transformer-lens dependencies. Without these environments, loading pre-trained SAEs or training custom SAEs on transformer activations cannot operate end-to-end.