sparse-autoencoder-training

Train Sparse Autoencoders on neural activations with TransformerLens via SAELens APIs.

Updated Mar 16, 2026
One-click install
npx skills add https://github.com/arsity/scholar-tools --skill sparse-autoencoder-training-arsity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sparse-autoencoder-training
Source: https://github.com/arsity/scholar-tools/tree/main/vendor/ai-research-skills/04-mechanistic-interpretability/saelens
Command: npx skills add https://github.com/arsity/scholar-tools --skill sparse-autoencoder-training-arsity

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Sparse Autoencoders (SAEs) enable decomposition of dense neural activations into sparse, interpretable features, helping researchers understand polysemanticity and monosemantic representations in language models.

Core Features & Use Cases

  • Train and evaluate SAEs on model activations to extract sparse feature representations.
  • Compare architectures (standard, gated, top-k) and assess sparsity vs reconstruction quality.
  • Use cases include interpretation debugging, feature-based analysis, and steering experiments.

Quick Start

Load a pretrained model, configure an SAE with your preferred architecture, and run the training workflow to obtain a trained SAE plus evaluation metrics.

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 on transformer activations for mechanistic interpretability?

To train sparse autoencoders on transformer activations, load a pretrained model and configure an SAE with your preferred architecture. The workflow handles activation loading, sparsity control, and integration with TransformerLens via SAELens APIs to produce interpretable features.

What is the difference between standard, gated, and top-k sparse autoencoder architectures?

Standard, gated, and top-k are SAE architectures you can compare to assess the trade-off between sparsity and reconstruction quality. Evaluating these different architectures helps identify the most interpretable feature representations for mechanistic interpretability research.

Can I use TransformerLens and SAELens to extract interpretable features from neural networks?

Yes, you can use TransformerLens and SAELens to extract interpretable features. The Skill integrates directly with SAELens APIs to load model activations, train sparse autoencoders, and evaluate the resulting sparse, monosemantic feature sets.

How do I evaluate sparsity vs reconstruction quality when training SAEs?

You evaluate sparsity vs reconstruction quality by comparing different SAE architectures during the training workflow. The process calculates reconstruction metrics to ensure the sparse autoencoder accurately represents the original dense neural activations.

Why use sparse autoencoders to decompose dense neural activations in language models?

Sparse autoencoders decompose dense neural activations into sparse, interpretable features to address polysemanticity. This decomposition reveals monosemantic representations, enabling researchers to understand model behavior, debug internal mechanisms, and conduct safety studies.

What are the limitations of using sparse autoencoders for model debugging and safety studies?

Sparse autoencoders for model debugging require balancing sparsity against reconstruction quality. If reconstruction is poor, the extracted interpretable features may not accurately reflect the underlying transformer activations, limiting the reliability of steering experiments and safety studies.