SAELens: Mechanistic Interpretability

•
13
•

Decomposes neural network activations into sparse, interpretable features using Sparse Autoencoders to understand and steer model behavior.

SAELens is a specialized toolkit for researchers and engineers aiming to demystify the internal workings of language models through mechanistic interpretability. By utilizing Sparse Autoencoders (SAEs), this skill helps solve the problem of polysemanticity—where individual neurons represent multiple unrelated concepts—by decomposing dense activations into sparse, monosemantic features. It provides comprehensive workflows for training custom SAEs, loading pre-trained weights from repositories like Neuronpedia, and performing advanced feature steering to precisely control model outputs based on specific learned concepts.

Características Principales

01Automated training of Sparse Autoencoders (SAEs) for Transformer models
02Direct integration with TransformerLens and pre-trained SAE weights
0313 GitHub stars
04Feature-based steering and causal intervention for model control
05Decomposition of polysemantic activations into monosemantic interpretable features
06Comprehensive evaluation metrics for reconstruction quality and feature sparsity

Casos de Uso

01Performing precise activation engineering to steer model responses without fine-tuning
02Analyzing safety-critical features such as deception, bias, or harmful content
03Discovering hidden concepts and reasoning patterns inside neural networks