SASA for GPT-2
Pretrained sparse autoencoders from Subspace-Aware Sparse Autoencoders for Effective Mechanistic Interpretability
(Seyed Arshan Dalili and Mehrdad Mahdavi, NeurIPS 2026).
Paper
SASA represents each feature with a small group of directions that activate together. This allows a feature to capture structure that needs more than one dimension, such as the days of the week. This release includes the GPT-2 SASA models and the TopK, BatchTopK and Matryoshka baselines used in the paper.
Code and experiments · Browse checkpoints · Mistral-7B release
Model details
| Setting | Value |
|---|---|
| Language model | GPT-2 small |
| Activations | Residual stream before block 7 (blocks.7.hook_resid_pre) |
| Input size | 768 |
| Training data | OpenWebText, with sequences of 128 tokens |
| Training tokens | 300M per model; 150M for sasa_topk_r6_l060_w12288 |
Usage
Follow the setup instructions in the code repository, then run from
its root directory. Importing sasa registers the model with SAELens; the release uses SAELens 6.25.
Given GPT-2 activations h with shape [tokens, 768] from the location above:
import sasa # registers SASA with SAELens
from sae_lens import SAE
sae = SAE.from_pretrained("arshandalili/sasa-gpt2-layer7", "sasa_r6_l0120_w24576")
codes = sae.encode(h.to(device=sae.device, dtype=sae.dtype))
groups = codes.reshape(-1, sae.n_groups, sae.group_rank) # [tokens, 4096, 6]
reconstruction = sae.decode(codes)
This checkpoint has 4,096 groups of six directions and activates the 20 strongest groups for each token.
Use groups.norm(dim=-1) to measure each group's activation strength.
Choosing a checkpoint
Checkpoint names describe the model's size and sparsity. For sasa_r6_l0120_w24576:
r6: six directions per group.l0120: 120 active decoder directions per token, or 20 groups of six.w24576: 24,576 decoder directions in total.
The release covers 12,288, 24,576 and 49,152 total directions, with sparsity settings from 30 to 240. The
Files tab lists the available combinations.
Each checkpoint folder contains its configuration (cfg.json) and weights (sae_weights.safetensors).
Baseline names use the same size and sparsity convention, for example topk_l0120_w24576. For BatchTopK and
Matryoshka, the sparsity setting is a training target; the number of active directions can vary at inference.
The separate checkpoint sasa_topk_r6_l060_w12288 is the SASA used in the comparison with Bloom's (2024) pretrained SAE.
Citation
@inproceedings{dalili2026sasa,
title = {Subspace-Aware Sparse Autoencoders for Effective Mechanistic Interpretability},
author = {Dalili, Seyed Arshan and Mahdavi, Mehrdad},
booktitle = {Advances in Neural Information Processing Systems},
year = {2026}
}