SAELens Mechanistic Interpretability

•
4.0k
•

Decomposes neural network activations into interpretable, sparse features using SAELens for deep mechanistic interpretability research.

SAELens addresses the challenge of polysemanticity in large language models where individual neurons represent multiple unrelated concepts. This skill provides a comprehensive framework for training, loading, and analyzing Sparse Autoencoders (SAEs) to map dense activations into sparse, monosemantic features. By using these workflows, researchers can perform feature discovery, causal steering, and logit attribution, making it possible to understand exactly what a model has learned and how to surgically influence its behavior for safety or performance.

주요 기능

01Training custom SAEs with configurable architectures including Standard, Gated, and TopK variants
02Feature attribution tools to identify specific concepts driving model predictions and outputs
033,983 GitHub stars
04Loading and analyzing pre-trained SAEs for models like GPT-2 and Gemma via integrated repositories
05Activation steering capabilities to modify model behavior using discovered feature directions
06Automated metric tracking for L0 sparsity, cross-entropy recovery, and dead feature detection

사용 사례

01Discovering human-interpretable features to understand model internal representations and concepts
02Identifying and mitigating safety-relevant features such as deception, bias, or harmful content
03Performing surgical model interventions via feature-based steering and ablation studies