sparse-autoencoder-training

Train Sparse Autoencoders to decompose neural network activations into interpretable features.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires sae-lens>=6.0.0, transformer-lens>=2.0.0, torch>=2.0.0, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of interpretability in deep neural networks by utilizing Sparse Autoencoders (SAEs), enabling users to discover and analyze interpretable features from model activations.

Core Features & Use Cases

  • Sparse Autoencoder Training: Train SAEs to reconstruct model activations and discover interpretable features.
  • Feature Analysis: Analyze the sparsity and interpretability of features, including their contribution to model predictions.
  • Use Case: Utilize this Skill to understand the underlying concepts learned by a model, such as GPT-2, by analyzing the features activated during its processing of input text.

Quick Start

Train a Sparse Autoencoder on the activations of the GPT-2 model for the input text 'The capital of France is Paris'.

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 for neural network interpretability?

To train sparse autoencoders for neural network interpretability, use this Skill to decompose model activations into interpretable features. It trains SAEs to reconstruct activations and discover features in deep learning models.

What is feature discovery in deep learning using sparse autoencoders?

Feature discovery using sparse autoencoders involves decomposing neural network activations to identify interpretable features. This Skill analyzes sparsity and feature contributions to model predictions for deep learning interpretability.

Do I need transformer-lens to analyze GPT-2 model activations?

Yes, you need transformer-lens version 2.0.0 or higher and Python 3.10+ to analyze GPT-2 model activations. This Skill uses these dependencies to train sparse autoencoders on transformer model activations.

Can I analyze the features activated by GPT-2 for specific input text?

Yes, you can analyze the features activated by GPT-2 for specific input text. The Skill allows you to train sparse autoencoders on activations generated from processing input text like 'The capital of France is Paris'.

What's the best way to discover interpretable features from deep learning model activations?

The best way to discover interpretable features from deep learning model activations is training sparse autoencoders to reconstruct the activations. This approach decomposes representations into sparse, interpretable features for analysis.

Why use sparse autoencoders instead of other methods for neural network analysis?

Sparse autoencoders address interpretability challenges in deep neural networks by decomposing activations into interpretable features. Unlike direct analysis, this method reconstructs representations to uncover underlying concepts learned by the model.