Downloads · 30 days
0
iarcuschin/gemma-scope-2-12b-it-res-l31-e2e
gemma-scope-2-12b-it-res-l31-e2e is a machine learning model from iarcuschin. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for sae-lens. The card lists the license as cc-by-4.0.
A GemmaScope JumpReLU sparse autoencoder made more causally faithful by a short KL+MSE ("end-to-end") fine-tune, following Karvonen 2025, Revisiting End-To-End Sparse Autoencoder Training: A Short Finetune Is All You…
Downloads · 30 days
0
Access
Public
Updated Jul 18, 2026
Repo size
1 GB
Likes
0
Public
Click a slice to open those files.
.npz503 MB · 50%
From the Hugging Face model README
A GemmaScope JumpReLU sparse autoencoder made more causally faithful by a short KL+MSE ("end-to-end") fine-tune, following Karvonen 2025, Revisiting End-To-End Sparse Autoencoder Training: A Short Finetune Is All You Need (arXiv:2503.17272). It is a drop-in replacement for the corresponding GemmaScope SAE, with a lower cross-entropy gap when spliced into the model.
gemma-scope-2-12b-it-res :: layer_31_width_16k_l0_medium (Lieberum et al. 2024, Gemma Scope (arXiv:2408.05147))google/gemma-3-12b-it, residual stream, layer 31d_in=3840, d_sae=16384 (~16k)W_enc, b_enc, W_dec, b_dec fine-tuned; the JumpReLU threshold was frozen.Per-step, the frozen LM is run once with the SAE off (target logits) and once with the
SAE spliced in; the loss is (KL * alpha + MSE) * 0.5 where alpha = (MSE / KL).detach()
rescales the KL term to the MSE's magnitude. Optimizer AdamW, lr 5e-05, linear
decay; decoder rows kept unit-norm.
lmsys/lmsys-chat-1m, ~25,000,000 tokens, ctx 1024Fidelity metric is delta CE: the increase in cross-entropy when the SAE reconstruction
is spliced into the model (lower is better), measured on held-out lmsys/lmsys-chat-1m.
| Metric | Baseline (GemmaScope) | Fine-tuned |
|---|---|---|
| delta CE | 0.1566 | -0.0406 |
| clean CE | 1.0752 | 1.0752 |
| spliced CE | 1.2318 | 1.0346 |
| mean L0 | 60.3040 | 56.3170 |
delta-CE: 0.1566 baseline, -0.0406 fine-tuned (125.9% reduction toward zero).
Caveat — evaluation scope. delta CE is measured on held-out samples from the training distribution (on-policy chat rollouts) at a single layer, so it can overstate fidelity relative to a broad-distribution or all-layer evaluation. L0 does not rise under this fine-tune (see table), so the gain is not sparsity drift; for a strict same-sparsity comparison, still compare against a GemmaScope SAE at the matched L0.
from huggingface_hub import snapshot_download
from sae_lens import SAE
path = snapshot_download(repo_id="iarcuschin/gemma-scope-2-12b-it-res-l31-e2e")
sae = SAE.load_from_disk(path, device="cuda")
# identical interface to the original GemmaScope SAE
The raw finetuned_sae.npz (keys: W_enc, b_enc, W_dec, b_dec, threshold) is also included for
GemmaScope-style loading.
f5e18356f67735898a30459761d99b563668eb06metrics.json / the run's provenance.jsonReleased under CC-BY-4.0, matching the GemmaScope weights it derives from; please attribute Google DeepMind (GemmaScope) and cite the Karvonen method. Use of the underlying Gemma model is additionally governed by the Gemma license.