TL;DR
Sparse Autoencoders (SAEs) are popular for extracting interpretable features from LLM hidden states, but standard instance-level sparsity penalties cause many features to either stay permanently dead or fire ubiquitously ("dense" latents). The authors introduce the Binary Autoencoder (BAE), which quantizes latents to 1-bit activations and applies an information-theoretic entropy bottleneck across minibatches to guarantee global sparsity. This enables tractable entropy tracking of internal LLM representations and extracts a substantially larger pool of monosemantic, interpretable features.
What Problem Does This Paper Address?
Mechanistic interpretability aims to reverse-engineer Large Language Models (LLMs) by decomposing their dense hidden states into sparse, monosemantic "atomic features." Currently, the standard tool for this is the Sparse Autoencoder (SAE).
However, existing SAEs enforce sparsity sample-by-sample (via $L_1$ penalties or Top-$k$ activations). This local constraint ignores global activation distributions across the entire dataset, leading to two major pathologies:
- Dead features: Neurons that rarely or never fire, wasting model capacity.
- Dense features: Neurons that activate across unrelated contexts, entangling multiple concepts and ruining interpretability.
Calculating information-theoretic entropy over real-valued hidden states across batches could theoretically solve this, but computing differential entropy in high dimensions suffers from an exponential curse of dimensionality and numerical instability.
Methods
The authors tackle this with Binary Autoencoders (BAE):
- 1-Bit Quantization: BAE projects an LLM hidden vector $h_0 \in \mathbb{R}^d$ through an encoder matrix $W_{\text{in}}$ and discretizes the activations to binary values $h_1 \in \{0, 1\}^{d'}$ using a Heaviside step function. Gradients are propagated through the step function using a straight-through sigmoid gradient approximation.
- Minibatch Entropy Bottleneck: Because activations are binary, the marginal entropy over a minibatch reduces to computing the entropy of independent Bernoulli variables—requiring no numerical integration. The training loss combines:
- Standard $L_2$ reconstruction loss.
- Latent marginal entropy minimization (promoting sparsity).
- Latent off-diagonal covariance penalty (decorrelating features so marginal entropy approximates joint entropy).
- Burstiness Metric for Feature Magnitude: To evaluate which binary features are most salient for a given input, the authors define "burstiness" $\beta = \log_2 |h_1 - \bar{h}_1|$ relative to the dataset-wide prior $\bar{h}_1$.
- ComSem Evaluation Protocol: Standard automated feature evaluation asks an LLM to predict or interpret numerical activation floats—a task LLMs perform poorly. The authors introduce ComSem, an LLM-as-a-judge pipeline where an evaluator model summarizes common semantics from text snippets activating a feature, and then validates whether held-out activating snippets match that explanation via binary True/False judgments.
Hidden State (h0) ──> [Linear Win] ──> [Step Function] ──> Binary Latents h1 ∈ {0,1} ──> [Linear Wout] ──> Reconstructed (h0)
│
└──> [Entropy & Covariance Loss across Minibatch]
Datasets
- Synthetic Directional Benchmark: A synthetic dataset of known rank $r$ constructed by summing randomly sampled subsets of an orthonormal basis, used to ground-truth verify BAE entropy estimation.
- The Pile: Used to extract hidden representations across layers of Llama 3.2-1B and 3B for language modeling analysis and BAE/SAE training.
- SST-2 (Stanford Sentiment Treebank): Formatted into $k$-shot prompts via the StaICC framework to analyze In-Context Learning (ICL) dynamics.
- BookCorpus: Used as the unseen evaluation split for feature interpretability (ComSem) and hidden state compression.
Key Insights and Ideas
- LLM Layers Act as Bounded Channels: By measuring activation entropy across token positions, the authors show that per-layer entropy grows with prompt length and then saturates. Each Transformer layer has an implicit "bandwidth" or context capacity, potentially explaining phenomena like "lost-in-the-middle."
- In-Context Learning as Information Pruning: Counterintuitively, as the number of ICL demonstrations increases (which improves downstream accuracy), the latent entropy of the final query token decreases. Rather than acquiring new task knowledge during inference, the model appears to use demonstrations to prune away irrelevant information from the query.
- Continuous Features Split into Discrete Sub-features: BAE extracts significantly more active features in deeper layers than shallow ones. Because BAE latents are binary, continuous properties (like colors or scales) are decomposed into sets of discrete, atomic binary features.
Key Results
- Accurate Entropy Recovery: On synthetic benchmarks with ranks $r \in [1, 512]$, BAE’s calculated entropy closely matched the true underlying rank $r$, whereas unregularized baselines grossly overestimated it.
- Mitigating Dense and Dead Latents: On Llama 3.2-1B (Layer 14, $d=2048, d'=8192$), BAE activated 6,120 distinct features compared to 2,528 for ReLU SAE and 2,702 for Top-$k$ SAE. On Llama 3.2-3B (Layer 20), BAE activated 9,308 features compared to 3,234 for Top-$k$ SAE.
- Interpretable Feature Yield: While baseline SAEs achieve higher average scores by only activating a small, safe set of obvious features, BAE discovers far more total interpretable features (e.g., 3,971 features with non-zero ComSem score on Layer 14 vs. 2,004 for Top-$k$ SAE). When filtering out the lowest-scoring tails, BAE outperforms all baselines in both feature count and interpretability score (0.496 vs. 0.418).
- Extreme State Compression: By storing only channel indices where burstiness exceeds a threshold, BAE compresses hidden activation files from ~16.7 GB down to 140–270 MB (~1% original size) with low mean squared reconstruction error.
Limitations and Future Work
- Reconstruction Loss vs. Discretization: The strict step-function binarization results in higher $L_2$ reconstruction error than continuous SAEs, and lossy compression distorts radial geometry (cosine similarity).
- Token-Level Attribution Limits: ComSem evaluates features based on surface tokens. However, deep contextualized representations often encode abstract concepts that no longer map cleanly to single words or subwords (e.g., tokenizer artifacts or broad syntactic glue).
- Scale: Experiments were restricted to Llama 3.2-1B and 3B models; validating BAE scaling on frontier-scale models (70B+) remains open.
Summary updated