Gemma Scope: Open Sparse Autoencoders Everywhere All At Once on Gemma 2
arXiv ↗PDF ↗Paper ↗Website ↗Code ↗
TL;DR. Google DeepMind releases Gemma Scope: more than 2,000 JumpReLU SAEs with over 30 million features in total. They cover:
- every layer and sublayer (residual stream, attention and MLP outputs) of Gemma 2 2B and 9B;
- select layers of 27B;
- some SAEs on the instruction-tuned 9B model.
The point is infrastructure. Academic labs get production-quality SAEs without spending the compute to train them.
Key idea
Section titled “Key idea”JumpReLU SAEs use , with a learned threshold per latent. Values above the threshold pass through unchanged, so there is no L1 shrinkage. Training minimises squared reconstruction error plus an L0 penalty on the number of active latents. Straight-through estimators train through the step function. The authors prefer JumpReLU because it is a slight Pareto improvement and lets the number of active latents vary across tokens, unlike TopK.
Key results
Section titled “Key results”The main contribution is the release itself, along with the evaluations: sparsity-fidelity curves, the effect of sequence position, and the transfer of base-model SAEs to the chat model. Because these SAEs exist, studies such as the GDM negative results on SAE probing could run on a capable open model.
Connections
Section titled “Connections”- Towards Monosemanticity: L1 shrinkage and TopK, the problems JumpReLU addresses differently.
- Scaling Monosemanticity: the closed-model counterpart.
- Negative results for SAEs: a downstream test using SAEs on Gemma 2 9B IT.
- Circuit Tracing: JumpReLU cross-layer transcoders for attribution graphs.
Questions to think through
These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.
- Derive / compute
The JumpReLU activation is z ⊙ H(z − θ) with a learned threshold θ per latent, trained with an L0 penalty. Show why the gradient of the loss with respect to θ is zero almost everywhere, and explain what a straight-through estimator does to make θ trainable.
What a strong answer covers
- H(z − θ) is a step function: its derivative in θ is zero except at z = θ, where it is undefined (a Dirac delta), and the L0 count of active latents has the same problem.
- So plain backpropagation gives θ no learning signal: the loss is piecewise constant in θ.
- A straight-through estimator replaces the delta with a smooth pseudo-derivative (for example a narrow kernel around z = θ) in the backward pass only, giving an estimate of how moving θ changes reconstruction and L0.
- The forward pass keeps the exact step, so the active set and L0 are exact.
- Mechanism
Compare how ReLU+L1, TopK and JumpReLU+L0 SAEs control sparsity, and explain the paper's reason for preferring JumpReLU over TopK.
What a strong answer covers
- ReLU+L1 penalises activation magnitude, which shrinks active latents; sparsity is indirect.
- TopK fixes exactly k active latents for every token, removing shrinkage but forcing the same count for easy and hard tokens.
- JumpReLU zeroes latents below a learned per-latent threshold and passes values above it unchanged (no shrinkage), and the L0 penalty sets average sparsity.
- The paper chose JumpReLU because it was a slight Pareto improvement and allows a variable number of active latents per token, unlike TopK.
- Design
You have Gemma Scope SAEs for every layer of Gemma 2 9B. Design a study of where in the network a RAG answer switches from the model's parametric knowledge to the retrieved passage, and say which properties of the release make this feasible.
What a strong answer covers
- Run paired prompts (with and without a conflicting passage) and encode residual streams at every layer with the matching SAEs.
- Track features for the parametric answer and the passage answer by layer, and find where their relative activation flips.
- Patch or ablate the candidate features at that layer and check the answer changes.
- Feasible because SAEs cover all layers and sublayers, come in several widths and sparsities, and are browsable in Neuronpedia; account for reconstruction loss rising with sequence position on long RAG contexts.