# Inference-Time Decomposition of Activations (ITDA): A Scalable Approach to Interpreting Large Language Models

추론 시점 활성값 분해(ITDA): 대규모 언어 모델 해석을 위한 확장 가능한 접근법

Leask, Patrick, Nanda, Neel, Moubayed, Noura Al · arXiv · 2025년 5월 23일

- **연구 문제** SAE는 LLM 활성값을 해석 가능한 잠재 변수로 분해하지만 학습 비용이 크고, 서로 다른 모델에서 학습한 SAE 잠재 변수를 직접 비교하기 어렵습니다.
- **연구 방법** ITDA는 활성값을 재구성 손실 임계값에 따라 사전에 탐욕적으로 추가하고, 추론 시 Matching Pursuit로 희소 코드를 구합니다.
- **주요 결과** ITDA는 학습 비용을 크게 줄이고, GPT-2 층 매칭에서 CKA와 SVCCA보다 높은 정확도를 보였습니다. 재구성 성능은 모델에 따라 SAE보다 낮을 수 있습니다.

## SAE 학습 비용과 모델 간 비교의 어려움

희소 오토인코더(SAE)는 LLM 활성값을 해석 가능한 잠재 변수로 분해하는 널리 쓰이는 방법입니다. 그러나 SAE를 학습하려면 수억에서 수십억 토큰의 활성값을 수집해야 하며, 대형 모델에서는 이 수집 비용이 매우 큽니다. 또한 SAE의 매개변수 수가 분해 대상 모델보다 커질 수 있다는 점이 원문에서 지적됩니다.

더 근본적인 문제는 서로 다른 모델에서 학습한 SAE의 잠재 변수가 직접 비교되지 않는다는 점입니다. SAE의 잠재 변수는 경사하강법으로 학습되므로 두 모델에서 얻은 잠재 변수 사이에는 본질적인 대응 관계가 없습니다. 이 논문은 이러한 학습 비용과 비교 불가능성을 함께 다룹니다.

## ITDA의 사전 구축과 희소 부호화

ITDA는 학습 가능한 인코더 대신 사전(dictionary) 기반 희소 부호화를 사용합니다. 사전은 활성값을 하나씩 검토하면서 현재 사전으로 재구성한 값의 평균제곱오차 l(x)가 목표 임계값 τ를 넘을 때만 그 활성값을 사전에 추가하는 방식으로 만들어집니다. 따라서 사전 크기는 고정된 값이 아니라 τ가 결정합니다. 낮은 τ일수록 사전이 커지고 재구성 손실이 낮아집니다. 원문은 빈도가 높은 활성값으로 초기화하고, 배치 처리에서 생긴 중복 원소를 나중에 제거한다고 설명합니다.

![Table 2: Comparison of SAE types with respect to fixed L0 and fixed dictionary size. When constructed by the method described in Section 3, ITDAs have a variab…](https://refivu.com/papers/09a43597-957b-4a9d-9f9a-2d0e0dbc4063/figures/figure-7acdd92c7756201481db7f9030cd4dbb.png?thumb=512)

**Table 2** . Comparison of SAE types with respect to fixed L0 and fixed dictionary size. When constructed by the method described in Section 3, ITDAs have a variable dictionary size, however they can be cropped to a desired size.

[원문](https://arxiv.org/abs/2505.17769v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Leask, Patrick, Nanda, Neel, Moubayed, Noura Al · Inference-Time Decomposition of Activations (ITDA): A Scalable Approach to Interpreting Large Language Models · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.

추론 시점에는 Matching Pursuit로 입력 x의 희소 코드 a를 구합니다. 각 반복에서 잔차와 상관이 가장 큰 사전 원소를 고르고, 그 사영을 잔차에서 뺍니다. L0 단계를 반복하면 재구성 aD를 얻습니다. 사전의 각 원소는 활성값을 얻은 프롬프트와 토큰 레이블을 가지므로 희소 코드의 원소를 직접 해석할 수 있습니다.

![Figure 1: Stylized system-level diagram of inference-time decomposition of activations. To decompose a target token in a prompt (1), we compute its activation…](https://refivu.com/papers/09a43597-957b-4a9d-9f9a-2d0e0dbc4063/figures/figure-df7fc08c2851507cd815c7ef843c3376.png?thumb=512)

**Figure 1** . Stylized system-level diagram of inference-time decomposition of activations. To decompose a target token in a prompt (1), we compute its activation at a certain point in the LLM (2), for example after layer 8 in GPT-2. We use matching pursuit to decompose the activation into a sparse code of other activations collected from the same point in the LLM (3). Our dictionary atoms are labeled with the prompt and token for which the activation was collected, which allows direct interpretation of the sparse code (4).

[원문](https://arxiv.org/abs/2505.17769v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Leask, Patrick, Nanda, Neel, Moubayed, Noura Al · Inference-Time Decomposition of Activations (ITDA): A Scalable Approach to Interpreting Large Language Models · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

![Table 6: Atom activations and corresponding text snippets for sequence 7006, token 30](https://refivu.com/papers/09a43597-957b-4a9d-9f9a-2d0e0dbc4063/figures/figure-d1101321c2f380efd0bd4e044a792af7.png?thumb=512)

**Table 6** . Atom activations and corresponding text snippets for sequence 7006, token 30.

[원문](https://arxiv.org/abs/2505.17769v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Leask, Patrick, Nanda, Neel, Moubayed, Noura Al · Inference-Time Decomposition of Activations (ITDA): A Scalable Approach to Interpreting Large Language Models · 원문 그림 인용 · 원본 PDF 19쪽에서 그림 영역을 추출했습니다.

## 재구성 성능과 학습 비용 비교

재구성 성능은 Pythia 두 모델과 Gemma 2 2B의 잔차 스트림 활성값에서 평가되었습니다. 평가 지표는 CE loss score이며, 원래 손실과 영점 절제 손실 사이에서 재구성으로 대체한 손실이 차지하는 비율로 정의됩니다. 원문은 이 계산에 Pile 데이터셋을 사용하고, 평가는 SAEBench 도구로 수행했다고 밝힙니다.

결과는 모델에 따라 다릅니다. Pythia 모델에서 ITDA는 일반적으로 ReLU SAE보다 나은 재구성 성능을 보이지만, top-k SAE보다는 낮습니다. Gemma 2 2B에서는 사전 학습된 SAE가 있는 경우에 한정하여 ITDA의 재구성 성능이 상당히 낮다고 보고합니다. 다만 SAE가 수억 토큰으로 학습된 반면 ITDA는 최대 성능에 도달하는 약 1.2 million 토큰으로 학습되었다는 조건이 함께 제시됩니다. 원문은 학습 비용 측면에서 ITDA가 SAE보다 100배 빠르다고 보고합니다.

![Figure 6: Performance of Pythia-70m SAEs and ITDAs when trained on limited numbers of tokens. Here, we do not crop the size of the dictionary, as on smaller nu…](https://refivu.com/papers/09a43597-957b-4a9d-9f9a-2d0e0dbc4063/figures/figure-d95d4f8c0d34b8d17373b86cbd3e0042.png?thumb=512)

**Figure 6** . Performance of Pythia-70m SAEs and ITDAs when trained on limited numbers of tokens. Here, we do not crop the size of the dictionary, as on smaller numbers of training tokens the dictionary does not achieve the minimum size.

[원문](https://arxiv.org/abs/2505.17769v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Leask, Patrick, Nanda, Neel, Moubayed, Noura Al · Inference-Time Decomposition of Activations (ITDA): A Scalable Approach to Interpreting Large Language Models · 원문 그림 인용 · 원본 PDF 23쪽에서 그림 영역을 추출했습니다.

## 사전 Jaccard 유사도와 층 매칭

표현 유사도 측정에서는 두 모델의 ITDA 사전 D0와 D1을 만들고, 교집합 크기를 합집합 크기로 나눈 Jaccard 유사도를 계산합니다. 이 방법은 두 모델의 활성 공간 사이에 선형 사상을 학습하지 않는다는 점에서 상대 표현 방법의 한 형태입니다.

층 매칭 실험에서는 같은 구조의 GPT-2 small과 medium 인스턴스 다섯 쌍을 사용하여 같은 층끼리 가장 유사하게 맞추는 정확도를 측정했습니다. GPT-2 small에서 ITDA는 0.88, GPT-2 medium에서 0.89의 정확도를 보였고, 같은 표에서 Linear CKA는 각각 0.69와 0.61, SVCCA는 0.50과 0.44였습니다. 같은 표의 상대 표현 기준선은 0.87과 0.78입니다. 모델 수준 실험에서는 같은 아키텍처 인스턴스 사이의 Jaccard 유사도가 0.56에서 0.59이고, 서로 다른 아키텍처 사이에서는 0.46에서 0.47로 나타났습니다.

![Table 1: Accuracy of Linear CKA, SVCCA, and ITDA on the layer matching task for GPT-2 small and medium. ITDA Jaccard similarity outperforms all other methods,…](https://refivu.com/papers/09a43597-957b-4a9d-9f9a-2d0e0dbc4063/figures/figure-760b9e403431cb4e11d2105ff7ac6b4c.png?thumb=512)

**Table 1** . Accuracy of Linear CKA, SVCCA, and ITDA on the layer matching task for GPT-2 small and medium. ITDA Jaccard similarity outperforms all other methods, including the other relative representation approach.

[원문](https://arxiv.org/abs/2505.17769v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Leask, Patrick, Nanda, Neel, Moubayed, Noura Al · Inference-Time Decomposition of Activations (ITDA): A Scalable Approach to Interpreting Large Language Models · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

![Figure 11: Model similarity between ITDAs trained on instances of GPT-2 small and medium. Note the higher similarity within model architectures](https://refivu.com/papers/09a43597-957b-4a9d-9f9a-2d0e0dbc4063/figures/figure-c31f9876b5bea7c139f204f0e4f0032e.png?thumb=512)

**Figure 11** . Model similarity between ITDAs trained on instances of GPT-2 small and medium. Note the higher similarity within model architectures.

[원문](https://arxiv.org/abs/2505.17769v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Leask, Patrick, Nanda, Neel, Moubayed, Noura Al · Inference-Time Decomposition of Activations (ITDA): A Scalable Approach to Interpreting Large Language Models · 원문 그림 인용 · 원본 PDF 27쪽에서 그림 영역을 추출했습니다.

## Llama 3.1 70B 사례 연구와 해석의 한계

대형 모델 적용 가능성을 보이기 위해 Llama 3.1 70B의 40층에서 17939개의 latent를 가진 ITDA를 학습했습니다. 활성값 수집에는 Pile 데이터셋의 10,000개 프롬프트 샘플이 사용되었습니다. 원문은 이 사례에서 몇 개의 latent를 골라 해석했으며, 이는 사례 연구로 제시된 것이고 체계적인 평가가 아닙니다.

해석 과정에서 원문은 라벨의 직접 해석이 오해를 낳을 수 있다고 지적합니다. 예를 들어 한 latent는 프롬프트의 'a'에 대응하지만 상위 활성 입력은 숙제 도움이라는 문맥과 관련되어 있습니다. 또한 큰 양의 활성값은 단일 의미에 가까운 특징을 보이지만, 작은 양수와 음수 활성값은 해석하기 어렵다고 설명합니다.

![Figure 3: Activation distribution for latent 50. The peak at 4.33 corresponds to prompts starting with “Q: How”. Activations of 0 are omitted for legibility](https://refivu.com/papers/09a43597-957b-4a9d-9f9a-2d0e0dbc4063/figures/figure-d538c1720b39fa45b071a2e50f2efa41.png?thumb=512)

**Figure 3** . Activation distribution for latent 50. The peak at 4.33 corresponds to prompts starting with “Q: How”. Activations of 0 are omitted for legibility.

[원문](https://arxiv.org/abs/2505.17769v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Leask, Patrick, Nanda, Neel, Moubayed, Noura Al · Inference-Time Decomposition of Activations (ITDA): A Scalable Approach to Interpreting Large Language Models · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.

## 해석 지표 적용의 한계와 남은 과제

원문은 ITDA의 주요 한계로 재구성과 해석 가능성 과제에서 TopK 및 P-Annealing SAE보다 성능이 낮다는 점을 밝힙니다. 다만 ReLU SAE와는 대체로 비슷한 수준이라고 설명합니다.

해석 지표에 대해서도 원문은 신중한 해석을 요구합니다. SAEBench의 Spurious Correlation Removal과 Targeted Probe Perturbation은 SAE의 디코더 가정에 기대므로 ITDA에는 적용하지 않았습니다. 희소 탐침 결과에서도 ITDA 잠재 활성값에 top-k를 적용하는 것은 SAE와 직접 비교할 수 없다고 밝힙니다. 따라서 이 해석 지표의 결과는 참고로 읽어야 하며, 표현 유사도 결과가 이 논문에서 가장 뒷받침되는 근거로 제시됩니다.

![Figure 9: Top 5 sparse probing scores](https://refivu.com/papers/09a43597-957b-4a9d-9f9a-2d0e0dbc4063/figures/figure-ba87cd8239c6b2f9481b4ba7a7511c8e.png?thumb=512)

**Figure 9** . Top 5 sparse probing scores.

[원문](https://arxiv.org/abs/2505.17769v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Leask, Patrick, Nanda, Neel, Moubayed, Noura Al · Inference-Time Decomposition of Activations (ITDA): A Scalable Approach to Interpreting Large Language Models · 원문 그림 인용 · 원본 PDF 25쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Leask, Patrick, Nanda, Neel, Moubayed, Noura Al
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2025년 5월 23일
- **등록일**: 2026년 10월 29일
- **수정일**: 2025년 6월 12일
- **버전**: v2
- **arXiv**: 2505.17769
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2505.17769v2) · [원문 PDF ↗](https://arxiv.org/pdf/2505.17769v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Sparse autoencoders (SAEs) are a popular method for decomposing Large Langage Models (LLM) activations into interpretable latents. However, due to their substantial training cost, most academic research uses open-source SAEs which are only available for a restricted set of models of up to 27B parameters. SAE latents are also learned from a dataset of activations, which means they do not transfer between models. Motivated by relative representation similarity measures, we introduce Inference-Time Decomposition of Activations (ITDA) models, an alternative method for decomposing language model activations. To train an ITDA, we greedily construct a dictionary of language model activations on a dataset of prompts, selecting those activations which were worst approximated by matching pursuit on the existing dictionary. ITDAs can be trained in just 1% of the time required for SAEs, using 1% of the data. This allowed us to train ITDAs on Llama-3.1 70B and 405B on a single consumer GPU. ITDAs can achieve similar reconstruction performance to SAEs on some target LLMs, but generally incur a performance penalty. However, ITDA dictionaries enable cross-model comparisons, and a simple Jaccard similarity index on ITDA dictionaries outperforms existing methods like CKA, SVCCA, and relative representation similarity metrics. ITDAs provide a cheap alternative to SAEs where computational resources are limited, or when cross model comparisons are necessary. Code available at https://github.com/pleask/itda.

## 원문 인용

Leask, Patrick, Nanda, Neel, Moubayed, Noura Al (2025). Inference-Time Decomposition of Activations (ITDA): A Scalable Approach to Interpreting Large Language Models. arXiv:2505.17769v2. https://arxiv.org/abs/2505.17769v2

**BibTeX**

```
@misc{patrick2025inference,
  title = {{Inference-Time Decomposition of Activations (ITDA): A Scalable Approach to Interpreting Large Language Models}},
  author = {Leask, Patrick and Nanda, Neel and Moubayed, Noura Al},
  year = {2025},
  eprint = {2505.17769},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.17769v2}
}
```

## 이 논문의 용어

- [GPT-2](https://refivu.com/terms/3c130f2029b4-gpt-2)
- [Jaccard index](https://refivu.com/terms/c2a7049ebc65-jaccard-index)
- [reconstruction loss](https://refivu.com/terms/58c946085188-reconstruction-loss)
- [residual stream](https://refivu.com/terms/5934a1927640-residual-stream)
- [CKA](https://refivu.com/terms/988a4c1ebf47-cka)
- [Pythia](https://refivu.com/terms/b66f02e437b6-pythia)
- [Orthogonal Matching Pursuit](https://refivu.com/terms/84af99f6c5a5-orthogonal-matching-pursuit)
- [SVCCA](https://refivu.com/terms/44c5fb303300-svcca)
- [anchor points](https://refivu.com/terms/6ceac6b1eede-anchor-points)
- [Gemma 2](https://refivu.com/terms/6179daefa45c-gemma-2)
- [L0](https://refivu.com/terms/5e0521333754-l0)
- [SAEBench](https://refivu.com/terms/a4eac9965616-saebench)
- [sparse probing](https://refivu.com/terms/787f1c57b9a9-sparse-probing)
- [automated interpretability](https://refivu.com/terms/74971446f1de-automated-interpretability)
- [Llama 3.1](https://refivu.com/terms/11cc49fa85bf-llama-3-1)
- [Matching Pursuit](https://refivu.com/terms/6a5cfd145cac-matching-pursuit)

## 다른 논문 해설

- [Multi-Turn Code Generation Through Single-Step Rewards](https://refivu.com/papers/3a44621c-ecca-42d4-9e3c-2a7f14a7cf58-multi-turn-code-generation-through-single-step-rewards.md)
- [Hardware and Software Platform Inference](https://refivu.com/papers/6781f817-b239-4485-abd3-92cc8cd29db4-hardware-and-software-platform-inference.md)
- [any4: Learned 4-bit Numeric Representation for LLMs](https://refivu.com/papers/7f8c7c0f-5cbf-497b-af22-9a5935d53aea-any4-learned-4-bit-numeric-representation-for-llms.md)
- [LaCache: Ladder-Shaped KV Caching for Efficient Long-Context Modeling of Large Language Models](https://refivu.com/papers/ab877a62-577c-4a9d-a2f5-5b6f0f04d0cb-lacache-ladder-shaped-kv-caching-for-efficient-long.md)
- [Selective Prompt Anchoring for Code Generation](https://refivu.com/papers/be59e15d-0126-4b8d-bbec-7db69f8d7ea5-selective-prompt-anchoring-for-code-generation.md)
- [Automatically Interpreting Millions of Features in Large Language Models](https://refivu.com/papers/6b0e4959-2567-4ba6-b0f9-04422e4af10b-automatically-interpreting-millions-of-features-in-large.md)
- [Pretraining Generative Flow Networks with Inexpensive Rewards for Molecular Graph Generation](https://refivu.com/papers/4786573c-5464-44b3-8cf8-f543f3486470-pretraining-generative-flow-networks-with-inexpensive.md)
- [Upweighting Easy Samples in Fine-Tuning Mitigates Forgetting](https://refivu.com/papers/fa13d84c-e623-4cce-866e-62488d1e9523-upweighting-easy-samples-in-fine-tuning-mitigates-forgetting.md)
- [Dynamic Sparse Training of Diagonally Sparse Networks](https://refivu.com/papers/2b87988d-a129-482c-9c7b-0942ddbcacc0-dynamic-sparse-training-of-diagonally-sparse-networks.md)
- [TGDPO: Harnessing Token-Level Reward Guidance for Enhancing Direct Preference Optimization](https://refivu.com/papers/5a2c4ee5-6c2f-4e4d-b8ec-2d708650adb3-tgdpo-harnessing-token-level-reward-guidance-for-enhancing.md)
- [Pixel-level Certified Explanations via Randomized Smoothing](https://refivu.com/papers/69d71e3a-bf93-472d-82de-cbff9dba6c17-pixel-level-certified-explanations-via-randomized-smoothing.md)
- [Info-Coevolution: An Efficient Framework for Data Model Coevolution](https://refivu.com/papers/ca2da8f5-50c2-4679-8a70-bf933cc739b1-info-coevolution-an-efficient-framework-for-data-model.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/09a43597-957b-4a9d-9f9a-2d0e0dbc4063-inference-time-decomposition-of-activations-itda-a-scalable)
