Skip to content

Inference-Time Activation Decomposition (ITDA): A Scalable Method for Interpreting Large Language ModelsInference-Time Decomposition of Activations (ITDA): A Scalable Approach to Interpreting Large Language Models

arXiv· arXiv:2505.17769· Patrick Leask, Neel Nanda, Noura Al Moubayed·Indexed by this site · 2026-10-14· Originally publishedAlignment

Quick read

Interpretability

Based on the paper PDF (AI-generated); refer to the original

The authors propose ITDA to decompose LLM activations; GPT-2 medium layer matching accuracy is 0.89 (Table 1).

Questions
SAE decomposition of LLM activations is expensive, and latents across different models have no inherent correspondence. The authors want an activation decomposition that is cheaper to train and whose dictionaries can be compared across models.
Methods
Activations are greedily added and normalized according to a reconstruction-error threshold; at inference, Matching Pursuit encodes under an L0 constraint. Atoms are labeled by source prompt and token, and the Jaccard similarity of these labels is compared across models.
Experiments and results
The authors state that ITDA is worse than top-k SAE on Pythia and worse than SAE on Gemma 2 2B. Table 1 layer matching: GPT-2 small 0.88, medium 0.89. Same-architecture Jaccard 0.56–0.59, cross-architecture 0.46–0.47.
Limitations and future work
The authors state that the main limitations are that reconstruction and interpretability are worse than TopK and P-Annealing, and that model diffing was not performed. The main text gives no CE readings; 70B and 405B were not scored with SAEBench.
Experimental setupLlama 3.1 70B、Llama 3.1 405B et al. · Pile、SAEBench et al. · CE loss score、layer-matching accuracy et al.
Evaluated models
Llama 3.1 70BLlama 3.1 405BGemma 2 2BPythia-70mPythia-160mPythia-410mGPT-2 smallGPT-2 medium
Benchmarks
PileSAEBenchKornblith et al. (2019) layer-matching task
Metrics
CE loss scorelayer-matching accuracyJaccard similarityautomated interpretability scoresparse probing score
AI summaryThe researchers propose Inference-Time Activation Decomposition (ITDA), a scalable method for decomposing large language model activations at lower cost. ITDA greedily builds an activation dictionary on a prompt dataset, selecting activations that are worst approximated by matching pursuit on the existing dictionary, and uses about 1% of the training time and data of SAEs, thus enabling training on a single consumer GPU for Llama-3.1 70B and 405B. The paper claims ITDA achieves reconstruction performance close to SAEs on some target models, but still has performance loss overall; its dictionary supports cross-model comparison, and a simple Jaccard similarity index outperforms CKA, SVCCA, and relative representation similarity metrics. The authors consider ITDA a cheap alternative to SAEs when compute is limited or cross-model comparison is needed, and the code is publicly available on GitHub.

The researchers propose Inference-Time Activation Decomposition (ITDA), a scalable method for decomposing large language model activations at lower cost. ITDA greedily builds an activation dictionary on a prompt dataset, selecting activations that are worst approximated by matching pursuit on the existing dictionary, and uses about 1% of the training time and data of SAEs, thus enabling training on a single consumer GPU for Llama-3.1 70B and 405B. The paper claims ITDA achieves reconstruction performance close to SAEs on some target models, but still has performance loss overall; its dictionary supports cross-model comparison, and a simple Jaccard similarity index outperforms CKA, SVCCA, and relative representation similarity metrics. The authors consider ITDA a cheap alternative to SAEs when compute is limited or cross-model comparison is needed, and the code is publicly available on GitHub.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    SAE training is expensive and latents across models cannot be directly matched; the authors use matching pursuit to obtain a comparable decomposition.

    Sparse autoencoders are expensive to train, and latents from different models do not correspond directly; the authors use inference-time matching pursuit for a cross-model comparable activation decomposition.

    • Scenario: The authors state that mechanistic interpretability aims to break networks into interpretable algorithms. SAE decomposition of activations requires hundreds of millions or even billions of tokens, collection is expensive on large models, and SAE parameter counts can exceed the model itself.
    • Shortcomings: The authors state that open-source SAEs are limited to models up to 27B parameters. There is no inherent correspondence between latents across models; activations for the same input also differ, and SVCCA and CKA must handle rotation or affine symmetries.
    • Observation: The authors follow the relative representation hypothesis: angles between representations are invariant under transformations. Instead of random anchors, they use matching pursuit to decompose activations into a dictionary of training activations.
    • Approach: ITDA greedily samples a dictionary by reconstruction error threshold, and atoms are labeled with the source prompt and token. Labels are used both for interpretation and for comparing dictionaries across models with Jaccard similarity.
  2. What related research exists?

    Related work centers on SAEs, their use for mechanistic interpretation, and representation similarity; the reconstruction baseline is SAE, and the similarity baselines include CKA and SVCCA.

    The paper organizes related work by SAE, its mechanistic interpretability uses, and representation comparison, and positions ITDA as a low-training-cost, comparable dictionary approach.

    Sparse dictionary learning

    • SAE: Bricken et al. (2023) and Cunningham et al. (2023) use SAEs to reconstruct network representations, hoping latents are monosemantic and interpretable. The encoder, decoder, and reconstruction-plus-sparsity losses are given in Eqs. (1)–(3).
    • Inference-time coding: K-SVD, Matching Pursuit, and FISTA select dictionary elements under ℓ0 or ℓ1 constraints without learning an encoder. The authors state this paper is closer to these methods than to SAEs in the interpretability literature.
    • Related work: Nanda et al. (2024) perform inference-time optimization on a trained SAE decoder; the authors state this is otherwise very different from this paper. Sharkey et al. (2025) list SAE training cost as an open problem.

    SAEs in mechanistic interpretability

    • Uses: The paper describes using activation samples for manual or automatic interpretation, and for circuit analysis, GPT-2 attention heads, and indirect object identification (Marks et al., 2025; Kissane et al., 2024a; Makelov et al., 2025). Transcoder is used for GPT-2's greater-than circuit.
    • Variants: The appendix summarizes ReLU, Gated, P-Annealing, TopK, JumpReLU, and BatchTopK. The authors state that SAE usefulness is highly dependent on hyperparameters, citing Leask et al. (2025).
    • Scale: The introduction states that open-source SAEs are limited to models up to 27B parameters, citing Lieberum et al. (2024) and He et al. (2024). The authors also write that the largest SAE on Gemma 2 2B in Lieberum et al. is nearly 5 billion parameters, while the model has only 2 billion parameters.

    Representation comparison

    • Absolute metrics: SVCCA (Raghu et al., 2017) and CKA (Kornblith et al., 2019) compare representation subspaces. Lan et al. (2024) use SVCCA to compare SAE decoders, discussing feature spaces across LLMs.
    • Relative representations: Moschella et al. (2022) use anchor cosine similarity to avoid learning model-specific mappings. Lindsey et al. (2024) use Crosscoder to find features present in fine-tuned models but not in the base model.
    • Existing transfer examples: Kissane et al. (2024b) give examples of SAE transfer between base and chat versions of the same model. Bricken et al. (2023) observe similar SAE latents across different models.

    Baselines and data

    • Reconstruction baselines: ReLU SAE and top-k SAE; the appendix states that top-k or p-annealing SAEs also perform well. Data is a Pile subset (limited to 128 tokens), protocol is SAEBench.
    • Similarity baselines: Linear Regression, SVCCA, Linear CKA, Relative (Moschella et al., 2022). The task is layer matching from Kornblith et al. (2019), models are GPT-2 small and medium from the Mistral package.

    The authors treat ITDA as a decomposition that does not learn a model-specific encoder: the dictionary consists of prompt-token activations, and the comparison is on labels. The authors state its similarity is better than CKA, SVCCA, and a relative representation method, and state that ITDA dictionaries transfer across LLMs while SAE decoders do not; the main text also cites Kissane's SAE transfer example.

  3. How does the paper address this problem?

    ITDA greedily builds a dictionary by error threshold, sparsely encodes with Matching Pursuit, then compares models by label Jaccard.

    ITDA does not train an encoder: it builds a dictionary from activations by an error threshold, uses matching pursuit at inference to obtain sparse codes, and then uses prompt-token labels for interpretation and cross-model comparison.

    Absolute and relative representations

    • Absolute representations: embeddings map samples to vectors. The authors state that models with the same behavior can still differ by a rotation or affine transformation, so SAE decoders trained on absolute representations inherit these symmetries.
    • Relative representations: the authors adopt the assumption that angles are invariant. Cosine similarity is the dot product divided by the product of the two norms. Random anchors come from Moschella et al. (2022); ITDA instead uses a greedy dictionary plus sparse coding.

    Inference-time sparse coding

    For a dictionary D and activation x, the coefficients a must minimize reconstruction error with no more than a given L0 nonzero entries. The objective is

    mina∈ℝn|x−aD| subject to |a|0≤ L0

    That is, each activation uses a linear combination of at most L0 atoms.

    • Solving: Matching Pursuit runs L0 steps. Each step selects the atom with the largest correlation magnitude with the residual and subtracts the projection onto that atom from the residual. Correlation equals unnormalized cosine similarity.
    • Notation: encoding is a = MP(x, D, L0), decoding is x̂ = aD. The main text and Appendix Algorithm 2 write Matching Pursuit; Algorithm 1's pseudocode is written as OMP.

    Dictionary learning and labels

    • Addition rule: reconstruction uses mean squared error. If the error exceeds threshold τ, the normalized activation is added to the dictionary. The authors state that the lower τ, the larger the dictionary and the lower the reconstruction loss. Dictionary size is determined by τ, unlike SAEs where it is fixed in advance, but it can be pruned afterward.
    • The procedure description is not fully consistent: the introduction says initialization uses the most frequent activations, then adds the activations with the worst current reconstruction. Algorithm 1 says common activations or random initialization, and marks deduplication as optional; the main text says that after batch processing, duplicate activations are filtered.
    • Labels: atoms are labeled by source prompt and token, and these labels do not participate in the decomposition. The authors state that this gives one more layer of inherent interpretation than SAE latents; the example in Question 4 shows that reading labels directly may not match the strongly activated context.

    Cross-model similarity

    The comparison uses prompt-token labels in the dictionaries, not activation vectors. The similarity between two models' dictionaries is the intersection-over-union:

    S(M0,M1):=|D0∩ D1|/|D0∪ D1|

    This defines representation similarity as the Jaccard index of the label sets of the two ITDA dictionaries.

    • Two aggregations: for layer matching, dictionaries are built on the residual stream at each layer. For model-level comparison, the union of the dictionaries across layers is taken, and the same index is computed.
    • Reconstruction metric is separate: the cross-entropy loss score after replacing activations is defined in the experimental setup and does not enter this similarity.
  4. What experiments did the paper conduct?

    On layer matching accuracy, ITDA is 0.88 and 0.89 (Table 1); the main text does not give reconstruction readings.

    The full numbers come mainly from layer matching; the reconstruction comparison is the authors' qualitative reading of figures, and the main text gives no CE readings.

    Experimental setup

    • Models: Pythia-70m, Pythia-160m, Pythia-410m, Gemma 2 2B, Llama 3.1 70B, Llama 3.1 405B, GPT-2 small, GPT-2 medium. Section 4.1 only says two Pythia models; 70m and 160m appear in the appendix SAEBench figures, and 410m appears in training dynamics.
    • Data: Reconstruction uses a Pile subset limited to 128 tokens. The Llama case uses 1 million activations and collects coefficients on 10,000 prompts from Pile. Layer matching uses 5 randomly initialized instances of each architecture from the Mistral package.
    • Baselines: Reconstruction uses ReLU SAE and top-k SAE; the appendix also includes p-annealing SAE. Similarity baselines are Linear Regression, SVCCA, Linear CKA, and Relative.
    • Metrics: CE loss score is (H∗ − H0) / (Horig − H0). H∗ is the cross-entropy after replacing activations with reconstructions, Horig is the original loss, and H0 is zero ablation. Layer matching accuracy is Eq. (9); dictionary similarity is Eq. (8).
    • Review: Reconstruction and some interpretation metrics use SAEBench, written as 0.4.0 beta in the appendix. Automatic interpretability has a language model write feature descriptions from activation samples, then predict which sequences activate the latent. The paper does not state the model name or agreement with humans.
    • Unreported parameters: The paper does not report the number of repetitions for reconstruction experiments, the value of τ, or the target size when cropping ITDA dictionaries for comparison.

    Main results

    The table below is layer matching accuracy, numbers from the printed Table 1. Section 5.1 main text refers to this table as Table 2.

    MethodGPT-2 smallGPT-2 medium
    Linear Regression (baseline)0.160.07
    SVCCA0.500.44
    Linear CKA0.690.61
    Relative0.870.78
    ITDA0.880.89
    • Author interpretation: The authors state that ITDA's Jaccard similarity is better than the other methods in the table, including another relative representation method. In the table, ITDA is the maximum in both columns.
    • Training time: The authors report an average of 8 minutes per ITDA on GPT-2 small, compared to 2 to 8 hours for SAE (different dictionary sizes, comparable hardware). This 2 to 8 hours also appears in Leask et al. (2025) for GPT-2 small with dictionaries of 768 to 98,304.
    • Heatmap: The caption states dark blue is average low similarity and yellow is average high similarity, and states that higher contrast within a row and column better distinguishes layers. The figure is printed as Figure 2, written as Figure 5 in the main text; medium points to Figure A.4, and the appendix also has Figure 10. The main text gives no per-cell values.

    Reconstruction and SAEBench

    • What was measured: Residual streams of two Pythia models and Gemma 2 2B, Pile subset limited to 128 tokens, using SAEBench's CE loss score. ITDA is trained on 1.2 million tokens to what the authors call maximum performance, and dictionaries are cropped to a fixed size before comparison; SAE is trained on hundreds of millions of tokens.
    • Results: The main text gives no readings for Figure 7. The authors state that on Pythia, ITDA is generally better than ReLU SAE and worse than the newer top-k SAE; on Gemma 2 2B, where pretrained SAEs exist, ITDA is worse than SAE. The introduction summarizes: on Pythia the cross-entropy loss degradation is similar or slightly worse, and on Gemma-2 it is substantially worse.
    • Author interpretation: The authors state that SAEs can be better when compute and data are unlimited, but that is not the case for most applications. The authors also state that dictionary size affects the interpretability of both SAE and ITDA. The appendix recommends caution in interpreting SAEBench, because the metrics are designed for SAEs and their applicability to other methods is questionable.

    Llama 3.1 case

    • What was measured: The authors state they trained and released ITDA for Llama 3.1 70B and 405B on consumer GPUs with 1 million activations, with the release location blacked out in the main text. The detailed inspection is on layer 40 of the 70B, 17,939 latents, with coefficients from 10,000 prompts from Pile. The authors state that evaluating these large models with SAEBench is currently infeasible, due to the computational cost of collecting activations, not training or running ITDA.
    • Results: The authors select three latents. Latent 50 corresponds to the token "How"; 16990 to surprise, astonishment; 17002's strong activations relate to being helpful, especially helping students with homework, but its label is "a" in the prompt. The authors state that reading labels directly is misleading. Large negative activations account for 0.000743% of activations in their dataset. Figure 3 caption states Latent 50's peak is at 4.33, corresponding to prompts starting with "Q: How".
    • Author interpretation: The authors state these cases show ITDA finds interpretable, monosemantic features in these large models' activations. Small positive and negative activations are hard to interpret, and the authors state the same for small positive values in SAEs. Appendix A.3.2 gives decomposition examples at L0 of 40; the main text does not summarize coefficients.

    Model-level similarity and training dynamics

    • Model-level: Jaccard of the union of dictionaries across layers is 0.56 to 0.59 for same-architecture GPT-2 instances and 0.46 to 0.47 across architectures (Figure 11). The authors state dictionaries track architectural differences and consider model differencing with ITDA worth further study.
    • Training dynamics: For each non-final layer of Pythia 70m, 160m, and 410m, ITDA is trained every 10,000 steps, compared to the final checkpoint by Eq. (8) similarity (Appendix A.4.2). The first two layers converge to 1 in the last third of training; the authors state the remaining layers do not converge, and write that the penultimate similarity measure decreases with subsequent layers.
    • Claimed reproduction: The authors state this reproduces Raghu et al. (2017)'s earlier layers converging earlier, and Martinez et al. (2024)'s results on Pythia with CKA. The Discussion calls such experiments layer freezing experiments.

    Other ablations and analyses

    • Training tokens: ITDA uses 1.2 million, reaching what the authors call maximum performance; SAE uses hundreds of millions (Section 4.1). The introduction also states that ITDA with one million tokens can reach the same performance as SAE with hundreds of millions of tokens.
    • Time: The abstract states training time is 1% of SAE; the contributions list states 100x faster and about 1% of training tokens. The main text also gives 8 minutes versus 2 to 8 hours, without computing 100x from the table.
    • Threshold: The authors state lower τ corresponds to larger dictionaries and lower reconstruction loss; the paper gives no numbers for τ sweeps.
    • Negative activations: Large negative activations account for 0.000743% of activations in the authors' stated dataset (Section 4.2).
    • Fewer tokens: Appendix Figure 6 compares training on Pythia-70m with fewer tokens and without cropping dictionaries; the main text has no readings.
    • Probing: The appendix writes sparse probing k as 1, 2, 5, and infinity; the figure is in the appendix, and the main text has no readings. It also excludes Spurious Correlation Removal and Targeted Probe Perturbation.
  5. What are some points that can be further explored?

    The authors state that the main limitations are that reconstruction and interpretability are worse than newer SAEs, and that model diffing was not performed.

    The authors place the main limitations in reconstruction and interpretability being worse than newer SAEs, and leave model diffing for future work.

    Limitations and future directions noted by the authors

    • Reconstruction and interpretation: The authors state the main limitation is that on reconstruction and interpretability tasks, it is worse than newer SAEs such as TopK and P-Annealing, but often comparable to ReLU SAE (Section 6).
    • Not replacing existing uses: The authors currently do not recommend broadly replacing SAEs with ITDA in applications such as circuit discovery where public SAEs already exist (Section 6).
    • Desired use cases: The authors hope to use it where training SAEs is too expensive, such as very large models, or layer freezing experiments and training checkpoints that require many SAEs (Section 6).
    • Algorithm: The authors hope to continue improving the learning algorithm, and specifically mention that data order during autoregressive LLM training may matter (Section 6).
    • Model differences: The introduction states that model diffing is not done and is left for future work. Section 5.2 and Section 6 both list model differences, including base and fine-tuned models, as future directions.
    • Metrics: Appendix A.3.4 recommends strong caution in interpreting SAEBench results, because the automatic benchmark is new and its applicability to methods other than SAEs is questionable.

    Experimental coverage

    • Reconstruction: The objects are the residual streams of two Pythia models and Gemma 2 2B, with a Pile subset limited to 128 tokens, and the metric is SAEBench's CE loss score; ITDA dictionaries are cropped to a fixed size, and the paper does not report that size (Section 4.1).
    • Large models: Llama 3.1 70B and 405B are both trained with 1 million activations on consumer GPUs. The written latent inspection is on layer 40 of the 70B, 17,939 latents, and 10,000 prompts from Pile. The paper does not report the number of latents or CE for the 405B (Section 4.2).
    • Layer matching: GPT-2 small and medium, 5 instances each, accuracy is in the printed Table 1. The paper does not report τ, the number of repetitions for reconstruction experiments, or the name of the language model used for automatic interpretability.
    • Other similarity: Model-level comparison uses the union of dictionaries across layers, still on the above GPT-2 instances (Section 5.2, Figure 11). Training dynamics cover non-final layers of Pythia 70m, 160m, and 410m, once every 10,000 steps (Appendix A.4.2).
    • SAEBench: The appendix uses Pythia-70m, Pythia-160m, and Gemma 2 2B, including CE, automatic interpretability, and sparse probing. The authors state they exclude Spurious Correlation Removal and Targeted Probe Perturbation, because their assumptions about SAE decoders do not apply to ITDA.
  6. Summarize the main content of the paper

    ITDA decomposes activations with matching pursuit and compares dictionaries; GPT-2 medium layer matching accuracy is 0.89.

    ITDA is an activation decomposition that does not train an encoder, used to reduce SAE training cost and to make dictionaries from different models comparable by prompt-token labels.

    • Problem: SAEs must be trained on large amounts of tokens, latents are learned by gradients, and there is no inherent correspondence across models; the authors write that open-source SAEs are limited to models up to 27B parameters.
    • Method: Activations with error exceeding τ are greedily added and normalized; at inference, Matching Pursuit encodes under L0. Atoms carry the source prompt and token; the cross-model metric is the Jaccard similarity of these labels. The main text uses Matching Pursuit, while Algorithm 1 is written as OMP.
    • Reconstruction: The authors state that on Pythia, ITDA is generally better than ReLU SAE and worse than top-k; on Gemma 2 2B, it is worse than existing SAEs. The corresponding training amount is 1.2 million tokens for ITDA, and hundreds of millions of tokens for SAE. The introduction also states that on Pythia the cross-entropy degradation is similar or slightly worse, and on Gemma-2 it is substantially worse. The main text does not give readings for Figure 7.
    • Similarity: On layer matching accuracy, ITDA is 0.88 on GPT-2 small and 0.89 on medium (Table 1), higher than Linear Regression, SVCCA, Linear CKA, and Relative in the table. Dictionary Jaccard for same-architecture instances is 0.56 to 0.59, and across architectures 0.46 to 0.47. The authors state this layer matching result is state-of-the-art.
    • Large models and conclusions: The authors state they trained ITDA on Llama 3.1 70B and 405B with 1 million activations on consumer GPUs, and give interpretation examples of 17,939 latents at layer 40 of the 70B. The authors conclude that ITDA can find interpretable, monosemantic features, and dictionary differences can serve as representation similarity; the main limitations are that it is worse than newer SAEs, and this paper does not do model diffing.
Read originalarxiv.org