Binary sparse coding for interpretabilityBinary Sparse Coding for Interpretability
The authors claim binarization improves unweighted interpretability; on 135M, the continuous version is often better after frequency weighting.
- SAE features are often only interpretable at high activation strengths; continuous activation values may hide uninterpretable information. The authors want to remove this channel with 0/1 activations and see whether polysemanticity disappears.
- After TopK, activations are binarized to 0 or 1, with backpropagation through a sigmoid straight-through estimator at temperature 2. The main model is the skip-transcoder; the Gumbel variant instead uses GroupMax. It is compared against continuous TopK on SmolLM2, with automatic interpretation using Llama 3.1.
- The authors state that on 135M, binarization improves unweighted interpretability, but is often lower after frequency weighting, has larger attachment loss, and introduces uninterpretable features that activate on more than half of tokens. On 1.7B single seed, k=32, binary unweighted fuzzing F1 is 0.880, continuous is 0.779.
- The authors state that training only on the SmolLM2 corpus, dead neurons, and larger widths could change the results, and they suggest mixing binary and continuous features. Experiments cover SmolLM2-135M and 1.7B; Table 2 is a single seed. The paper does not report the dictionary width for 135M.
- Evaluated models
- SmolLM2-135MSmolLM2-1.7B
- Benchmarks
- SmolLM2 training corpusSAEBench sparse probing
- Metrics
- F1relative next-token cross-entropy loss increaseFVUsparse probing
The paper proposes binary sparse autoencoders (BAE) and binary transcoders (BTC), constraining neural network activations to 0 or 1 to improve the interpretability of features extracted by sparse autoencoders (SAE). The authors state that binarization significantly improves the interpretability and monosemanticity of discovered features, while increasing reconstruction error; because continuous variation in activation strength is eliminated, uninterpretable information can no longer sneak in through activation magnitude. However, the authors also find that binarization increases the number of uninterpretable ultra-high-frequency features, and after frequency-adjusted interpretability scores, continuous sparse encoders score slightly better than binary versions. The authors therefore argue that polysemanticity may be an unavoidable property of neural network activations.
Paper analysis
What problem does this paper attempt to solve?
The authors use 0/1 activation constraints, attempting to remove uninterpretable information that sparse features leak in through activation strength.
Many SAE features are only readable at high activations; continuous activation strength may mix in uninterpretable information.
- Scenario: Interpretability aims to explain language model internal representations to support safety and reliability. The authors state that most neurons are polysemantic, responding to semantically unrelated inputs.
- Existing limitation: Sparse autoencoders (SAEs) decompose activations into sparse, overcomplete features, which the authors state are usually more readable than neurons. But many features are uninterpretable at low activation strengths, and evaluations often only look at high activations; the authors worry that uninterpretable information is hidden in the exact activation strength of each active feature.
- Hypothesis and approach: Constrain activations to {0, 1}, removing the distinction between high and low activation, so information can no longer be mixed in through continuous variation. The authors propose binary sparse autoencoders (BAE) and binary transcoders (BTC), using a sigmoid-based straight-through estimator (STE) through the discontinuous binarization.
- Concurrent cost: The authors state that binarization increases uninterpretable ultra-high-frequency features; after adjusting for firing frequency, continuous sparse encoders score slightly better than binary encoders. The authors believe polysemanticity may be an irreducible property of neural activations.
What related research exists?
The paper distinguishes binarization during training from codebooks, post-training quantization, and threshold binarization at inference.
Related discussion focuses on sparse decomposition, transcoders, and existing discrete or binary bottlenecks.
Neurons and Sparse Autoencoders
- Polysemantic neurons: Olah et al. (2020), Gurnee et al. (2023, 2024) write natural language descriptions for individual neurons. Arora et al. (2018), Elhage et al. (2022) discuss polysemanticity and superposition. The paper treats these as background for the emergence of SAEs, without comparing them one by one.
- SAE: Bricken et al. (2023), Templeton et al. (2024), Gao et al. (2024) use single-hidden-layer networks to reconstruct activations, with sparsity coming from penalties, explicit constraints, or information bottlenecks. This paper adopts Gao et al.'s TopK: activations not in the top k are set to zero. The introduction also mentions Rajamanoharan et al. (2024)'s JumpReLU and Bussmann et al. (2024)'s BatchTopK, without experimental comparison.
Transcoder
- Dunefsky et al. (2024): Same architecture as SAE, but given the input of an MLP or attention block, predicts that component's output.
- Paulo et al. (2025): Adds a linear skip connection. The authors claim this improves reconstruction without reducing interpretability scores, and claim that transcoders and skip-transcoders have higher average interpretability scores than SAEs. This paper therefore focuses on skip-transcoders.
- Ameisen et al. (2025): Adds decoder weights between residual streams at different layers. The paper only mentions this in the preliminaries.
Binary and Discrete Bottlenecks
- Tamkin et al. (2023) codebook: Fine-tunes network layers, adding a sparse binary bottleneck with structure similar to an SAE. The authors claim features are highly interpretable and can be used to steer the model. The paper notes differences: the codebook is a component of the base model, selects top k using cosine similarity with the input rather than dot product, ties encoder and decoder weights, and has no bias.
- Ayonrinde et al. (2024): After training, quantizes SAE activations into discrete bins; this is 8-bit quantization rather than binarization, aimed at encoding data.
- Gallifant et al. (2025): Binarizes SAE features in a classification pipeline at inference: per token, sets non-top-n activations to zero, sums feature vectors, then binarizes each component with a fixed threshold of 1.
Baselines and Evaluation
- Baselines: Continuous TopK SAE and continuous TopK skip-transcoder, labeled TopK in figures. There are also variants with Gumbel-Softmax plus GroupMax, and versions fine-tuned with a KL divergence loss.
- Evaluation: Paulo et al. (2024)'s automatic interpretability, including detection and fuzzing; sparse probing in Karvonen et al.'s SAEBench. Training data comes from the base model's pretraining corpus.
The authors position this paper as constraining sparse coding activations to 0 or 1 during training, thereby removing activation strength as a possible channel of information; this differs from the codebook's structural differences, post-training 8-bit quantization, and inference-time threshold binarization.
How does the paper address this problem?
After TopK, compress activations to 0 or 1, and use sigmoid STE to backpropagate gradients.
After TopK, add Binarise, so latent variables can only take 0 or 1; gradients pass through this discontinuous operation via a sigmoid straight-through estimator. The authors collectively call SAE, transcoder, and skip-transcoder sparse coders, and the experiments focus on the skip-transcoder.
Continuous baseline
- TopK SAE: The encoder maps activations to a higher-dimensional latent space, and the decoder reconstructs the original activations. The form is x̂=WdecTopK(Wencx+benc)+bdec. Activations not in the top k are set to zero. Parameters jointly minimize the squared reconstruction error.
- Initialization: W_dec and W_enc are initialized as transposes of each other, and the rows of W_dec are constrained to unit norm. b_dec is set to the empirical mean or geometric median of MLP outputs, so that the initially explained variance ratio is clearly above 0.
- Skip-transcoder: The objective changes to predicting the output of a feedforward component such as the MLP. The form is ŷ=WdecTopK(Wencx+benc)+Wskipx+bdec. W_skip is zero-initialized, so at the start it behaves like a constant function like a regular transcoder.
- Difference from SAE: The transcoder does not constrain W_dec rows to unit norm, and W_dec is zero-initialized; b_enc is initialized as −W_enc E[x], centering the pre-activations at initialization. The authors cite prior work stating that skip connections improve reconstruction without lowering interpretability scores, so they emphasize the skip-transcoder.
Binarization
- Operation: The binary SAE applies Binarise after TopK. Binarise replaces each element with 1 if it is positive, otherwise 0. The binary skip-transcoder is the same change; the paper does not write a separate formula.
- Gradient: The sigmoid is treated as a continuously differentiable relaxation of Binarise, and backpropagation uses a sigmoid-based STE. The authors state that training is more stable at temperature 2. The paper does not mention other temperatures.
- Rationale given by the authors: Removing the distinction between high and low activation strength prevents uninterpretable information from leaking in through continuous variation in activations.
GroupMax and Gumbel-Softmax
- Gumbel-Softmax: Through a relaxation of Gumbel-Max, it performs differentiable approximate categorical sampling over pre-activations. The authors state this can further improve reconstruction accuracy.
- Replacing TopK: The authors found that backpropagating through top-k causes training instability, so the Gumbel variant instead uses GroupMax.
- GroupMax: The vector is divided into k contiguous, equal-sized groups, and only the maximum element in each group is kept, with the rest set to zero; then Binarise is applied. The authors state this enables stable training with Gumbel-Softmax.
Training
- Budget: Unless otherwise stated, training runs on 10 billion tokens with batch size 220, and data comes from the base model's original corpus. SmolLM2-1.7B uses the final-stage mixture of its pretraining curriculum. Figure 1 states that each model is trained on 20 billion tokens.
- Comparisons: On both base models, skip-transcoder, binary skip-transcoder, and Gumbel GroupMax skip-transcoder are trained with k=32. On 135M, skip-transcoder, binary skip-transcoder, SAE, and BAE are also trained at various k values. Each uses 3 seeds, with means reported and error bars at ±1 standard error.
- Optimizer: On 135M, most use Adam with a linear learning rate, peak 3×10^−3 for transcoders and 5×10^−3 for SAE, 1000 warmup steps, β1=0.9, β2=0.999, and no weight decay. On 1.7B and for binary SAE, schedule-free Signum is used with a constant learning rate of 3×10^−3 and momentum 0.95. The authors state that binary SAE with Adam exhibits near-complete index collapse. This momentum term is equivalent to the weight EMA of Gao et al.
- KL fine-tuning: Following Karvonen's approach, fine-tuning uses a KL divergence loss. The authors state this improves performance when plugged back into the base model. For sparse probing, the fine-tuned models are the k=32 Gumbel, binary, and continuous skip-transcoders, each with 3 seeds.
Evaluation definitions
- Plugging back: The main metric is the increase in next-token cross-entropy after plugging the sparse coder back into the base model. The appendix additionally gives training trajectories of the fraction of unexplained variance (FVU).
- Automatic interpretation: Following Paulo et al.'s pipeline, activations are collected on 10 million tokens of the training set, with sentence-initial tokens removed. 100 features are sampled from each of four layers, totaling 400. Using 40 activation sequences of length 256 tokens sampled by decile, an LLM is prompted to generate explanations.
- Scoring: The same LLM then judges sequences as active or inactive according to the explanation. Each feature uses 50 decile-sampled activation sequences plus 50 random inactive sequences. Both explanation and classification use Llama 3.1. Because inactive features vastly outnumber active ones, the authors report F1, the harmonic mean of precision and recall, rather than average accuracy.
- Two tasks: detection judges whether a sequence contains an activation of that feature; fuzzing judges whether a marked token is related to that feature's activation. Frequency-adjusted F1 is also given. Sparse probing instead trains a sparse classifier on samples containing a specific concept.
What experiments did the paper conduct?
The authors state that binarization improves unweighted interpretability but increases attachment loss and introduces more ultra-high-frequency features.
Experimental Setup
- Base models: SmolLM2-135M and SmolLM2-1.7B. Encoders are attached back to these models.
- Variants: Continuous and binary skip-transcoders, SAE and BAE, Gumbel GroupMax with k=32, and KL-finetuned continuous and binary skip-transcoders. 135M has 3 seeds per variant; the 1.7B comparison in Table 2 is a single seed.
- Data and k: Default 10 billion tokens, batch size 220, from the base model's pretraining corpus; 1.7B uses the final-stage curriculum mix. Figure 1 uses 20 billion tokens. Appendix FVU and dead neuron curves correspond to k=16, 32, 64, 128. Axis labels in Figures 1–3 show k ticks at 50 and 100; the paper does not state whether these ticks equal the k values in the appendix.
- Automated interpretation: Llama 3.1 generates explanations and performs binary classification. 400 features per encoder, activation statistics from 10 million tokens; explanations use 40 sequences of 256 tokens, classification uses 50 activations plus 50 random non-activations.
- Metrics: Unweighted and frequency-weighted fuzzing / detection F1; relative increase in next-token cross-entropy after attachment; FVU; sparse probing scores in Table 1. 135M error bars are ±1 standard error. The paper does not report the number of concepts in sparse probing, nor human agreement with Llama 3.1.
- Ablation scale: Figure 8 bins all features of the 135M layer 9 binary transcoder by fuzzing F1, with roughly equal total firing counts per bin, then zero-ablates; sequences are 1024 tokens, N=1024.
Main Results
According to Table 2: SmolLM2-1.7B skip-transcoder, expansion factor 64, k=32, averaged over four layers, single seed.
Metric Binary Continuous Unweighted fuzzing F1 0.880 0.779 Unweighted detection F1 0.8387 0.670 Frequency-weighted fuzzing F1 0.801 0.658 Frequency-weighted detection F1 0.702 0.670 - Authors on Table 2: In this single-seed run, BTC is higher than the continuous skip-transcoder on all four F1 scores.
- Difference from 135M figures: In Figure 2, the authors state that the 135M binary skip-transcoder matches or exceeds the continuous version in unweighted fuzzing across all plotted layers and k values. In Figure 3, the authors state that after frequency weighting, the binary version is often lower. The abstract says the continuous version is slightly better after frequency adjustment, consistent with Figure 3, but opposite in direction to the weighted scores in Table 2. There are no endpoint numbers to copy from the figures.
- Attachment loss: The authors state that binarization increases cross-entropy after attachment (Figure 1, 20 billion tokens). The y-axis is labeled up to 0.06; the text does not give values for each point. In the discussion, the authors state that binary encoders explain less variance and have larger attachment loss increases, so they cannot recommend them for most uses.
Firing Frequency
- Setup: Figure 7 compares firing rates of 135M layer 9 binary and continuous skip-transcoders, computed from 10 million tokens, with log firing rate on the x-axis.
- Results: The authors state that the binary version has more ultra-high-frequency features, with the most frequent activating on more than half of tokens; no continuous feature activates on more than 10% of the dataset. The example in Figure 6 is described by the authors as activating on more than half of tokens and being uninterpretable.
- Authors' interpretation: The authors hypothesize that information usually placed in low-activation deciles is pushed into high-frequency, uninterpretable features. If true, the authors believe polysemanticity is to some extent irreducible.
Sparse Probing
- Column names: Table 1 is for 135M, 3 seeds. Columns are SST, BSST, GSST, FSST, BFSST. The table note lists continuous, binary, Gumbel binary skip-transcoders, and binary and continuous finetuned variants. By abbreviation, FSST is the finetuned continuous version, BFSST is the finetuned binary version. The methods section says Gumbel is also KL-finetuned, but does not state whether GSST is the finetuned result. The table title does not mention k; the methods section trains these variants at k=32.
- Numbers: Layer 27: SST 74.7±0.6, BSST 76.4±0.8, GSST 76.8±0.2, FSST 74.5±0.5, BFSST 77.3±0.4. Layer 0: SST 69.4±1.7, BSST 64.5±1.7, GSST 69.5±1.0, FSST 69.1±2.1, BFSST 64.0±0.5. On layer 9, BFSST 67.8±1.5 is higher than FSST 60.4±0.7; on layer 18, BFSST 68.9±0.9 is higher than FSST 66.4±0.5.
- Inconsistency with text: The authors state that before finetuning, binary models are worse than continuous, and after finetuning, binary and Gumbel variants are higher than finetuned continuous. Based on the table: un-finetuned BSST is only lower than SST at layer 0, and higher at layers 9, 18, 27; BFSST is still lower than FSST at layer 0, and higher at layers 9, 18, 27. GSST point estimates are not lower than SST at any of the four layers.
Interpretability and Causal Impact
- Setup: All features of the 135M layer 9 binary transcoder are binned by fuzzing F1, with roughly equal total firing counts per bin, then zero-ablated (Figure 8, 1024-token sequences, N=1024).
- Results: The authors state that almost all bins have similar impact on loss, except for two bins with very high interpretability. The y-axis is labeled up to 0.02; the text does not give values for each bin.
- Authors' interpretation: At extremely high interpretability, there is a positive relationship with causal impact; most bins show no such relationship.
Case Studies
- Low-activation polysemy: The TopK feature in Figure 4 appears to fall in Python docstrings in the highest seven deciles, but can fall on several different tokens; lower deciles appear in broader non-code contexts. The authors hope to remove polysemy in low deciles.
- Full scores still have counterexamples: Figure 5 starts from a binary feature with perfect fuzzing and detection scores, and not cherry-picked. It activates on search-related words, but there are non-activating instances of these words nearby, and Example 111 has a non-activating 'Search' midway. The authors state that scores overestimate interpretability, partly because negative examples are randomly sampled rather than adversarially selected for semantic similarity.
- Ultra-high frequency: The binary feature in Figure 6 activates on more than half of tokens, which the authors state is uninterpretable.
Other Ablations and Analyses
- Appendix Figures 13–17 give FVU curves for 1.7B and 135M, k=16/32/64/128, transcoder and SAE; the text does not give endpoint values. The discussion states that binary encoders explain less variance.
- Dead neuron plots in Appendix Figures 18–22 have y-axis 0%–100%. Limitations state that some encoders have many dead neurons (Figure 19), without specific percentages.
- The authors state that binary SAEs exhibit near-complete index collapse with Adam, so they switched to schedule-free Signum. The paper does not report the proportion of surviving features.
- The authors state that KL finetuning improves attachment performance; Table 1 shows finetuned sparse probing scores, not attachment loss.
What are some points that can be further explored?
The authors note that a single dataset, dead neurons, and larger widths could change results, and suggest mixing binary and continuous features.
Limitations and Future Directions Noted by the Authors
- Single dataset: All sparse encoders are trained on a sample of the SmolLM2 training corpus. The authors state this is high-quality data, but changing the dataset could change results (Limitations).
- Dead neurons: Some encoders have many dead neurons (Figure 19). The authors state that if this issue were resolved, results might also change (Limitations).
- Width: The authors state that results might change at larger widths. FVU follows scaling laws; more features increase explained variance; as width approaches infinity, it degenerates into one feature per input–output pair. Binarization reduces expressiveness, and the optimal width might be too large to train with reasonable compute (Limitations).
- Mixed architectures: The authors suggest trying a mix of binary and continuous features. The proportion could be fixed as a hyperparameter at the start of training, or determined dynamically from data. The authors believe this might mitigate the observed FVU increase and high-frequency feature issues (Discussion and future work).
- High-frequency penalty: The authors mention that Smith et al. use an auxiliary loss to suppress high-frequency features, but those authors ultimately do not consider that direction particularly promising (Discussion and future work).
- Sparse probing: The authors state that the performance of binary sparse encoders on sparse probing deserves further study (Discussion and future work).
Experimental Coverage
- Base models are SmolLM2-135M and SmolLM2-1.7B. Encoders include skip-transcoder, binary skip-transcoder, SAE, BAE, and Gumbel GroupMax with k=32. Table 2 specifies expansion factor 64 for 1.7B.
- For 135M, automated interpretation and sparse probing are means of 3 seeds ±1 standard error. Table 2 is single seed, averaged over four layers. Appendix gives FVU and dead neuron curves for k=16, 32, 64, 128.
- The evaluation model is Llama 3.1. Each encoder samples 400 features from four layers, with activations computed on 10 million tokens. The methods section does not name these four layers; Figures 2–3 plot layers 9, 18, 27, and Table 1 and the appendix also include layer 0.
- Sparse probing numbers come from Table 1 for L0, L9, L18, L27. Causal ablation is on layer 9 binary transcoder, 1024-token sequences, N=1024.
- The paper does not report the expansion factor or dictionary width for 135M, does not report the number of concepts in sparse probing, does not report human evaluation or agreement with Llama 3.1, and does not give endpoint numbers in the text for Figures 1–3 and FVU curves.
Summarize the main content of the paper
After binary sparse coding removes polysemy in activation strength, the authors believe it reappears in the form of ultra-high-frequency features.
The authors test whether changing sparse coding activations to 0 or 1 can remove polysemanticity hidden in activation strength.
- Problem: SAE features are often only readable at high activations. The authors worry that continuous activation values mix uninterpretable information into features.
- Method: After TopK, apply Binarise, setting positive values to 1 and otherwise 0, with a sigmoid STE at temperature 2 for backpropagation. The main architecture is a skip-transcoder. The Gumbel variant had unstable top-k backpropagation, so they switched to GroupMax. Default training is on 10 billion tokens, attached back to SmolLM2-135M and SmolLM2-1.7B, with interpretation and classification using Llama 3.1.
- Interpretability: The authors state that on 135M, in unweighted fuzzing, the binary version matches or exceeds the continuous version (Figure 2), but is often lower after frequency weighting (Figure 3). On 1.7B, single seed, k=32, expansion factor 64, averaged over four layers, binary unweighted fuzzing F1 is 0.880 vs. continuous 0.779; frequency-weighted fuzzing is 0.801 vs. 0.658 (Table 2). The authors state that in this run, BTC is higher on all four metrics.
- Cost: The authors state that binarization increases the next-token cross-entropy after attachment and explains less variance. On layer 9, the most frequent binary feature activates on more than half of tokens, while no continuous feature exceeds 10% of the dataset (Figure 7). The authors hypothesize that information in low activations is pushed into these uninterpretable high-frequency features.
- Probing: In Table 1, layer 0 BFSST is 64.0±0.5, lower than FSST's 69.1±2.1; layer 27 is 77.3±0.4 vs. 74.5±0.5. The authors state that in bins with extremely high interpretability, ablation affects loss differently than other bins, but most bins show no such relationship (Figure 8).
- Authors' conclusion: The authors state the main result is negative and cannot recommend binary sparse encoders for most uses. They suspect, but cannot prove, that polysemanticity is irreducible; if it is indeed irreducible, fully decomposing neural activations into interpretable features would be a misguided direction. The authors suggest future work mixing binary and continuous features.