sparse-autoencoder-training

Train and analyze Sparse Autoencoders on neural activations with SAELens.

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

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 sparse, interpretable features.

Core Features & Use Cases

  • Train SAEs with configurable architectures (Standard, Gated, TopK, JumpReLU) and expansion factors.
  • Analyze activations to discover interpretable features and study monosemantic representations in language models.
  • End-to-end workflows for feature attribution, steering, and ablation using TransformerLens models.

Quick Start

Configure a LanguageModelSAERunnerConfig and run SAETrainingRunner to train your first SAE on a GPT-2 residual stream.

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

You can train a sparse autoencoder by configuring a LanguageModelSAERunnerConfig and executing SAETrainingRunner to decompose neural activations into sparse, interpretable features from your model's residual stream.

What sparse autoencoder architectures can I configure for mechanistic interpretability workflows?

Supported sparse autoencoder architectures include Standard, Gated, TopK, and JumpReLU. You can adjust parameters like d_in, d_sae, activation functions, and training hyperparameters to study monosemantic representations in language models.

Can I use TransformerLens models for feature attribution and steering with sparse autoencoders?

Yes, the skill provides end-to-end workflows for feature attribution, steering, and ablation using TransformerLens models to evaluate monosemantic representations and study superposition in language model activations.

How does a sparse autoencoder reveal monosemantic representations from neural activations?

A sparse autoencoder decomposes dense neural activations into a higher-dimensional sparse representation, forcing individual features to align with interpretable concepts and reducing superposition in language models.

What evaluation metrics are available after training a sparse autoencoder on GPT-2?

The skill provides evaluation metrics to assess the quality of trained sparse autoencoders, helping you measure monosemanticity and feature interpretability when analyzing GPT-2 residual stream activations.

Do I need to configure expansion factors when training sparse autoencoders for interpretable features?

Yes, configuring expansion factors is a core feature. You adjust d_in and d_sae dimensions alongside training hyperparameters to control the capacity of the sparse autoencoder for discovering interpretable features.