프로필

설정

불러오는 중…

← 홈

도움말·문의

자주 묻는 질문

어떤 기능에 로그인이 필요한가요?

공개 논문의 해설과 논문 정보, 모델 구조, 관련 논문, 용어는 로그인 없이 볼 수 있습니다. 논문 올리기, 내 보관함, 읽기 기록, 논문 평가, 관심 분야 추천, 메일과 알림은 로그인해야 쓸 수 있습니다.

PDF 파일로도 올릴 수 있나요?

논문은 arXiv나 DOI 링크로 올리고, 해설은 모두에게 공개됩니다. 출처와 이용 조건이 확인되지 않아 해설을 공개할 수 없는 논문은 올릴 수 없습니다. PDF 파일 올리기와 나만 보기는 구독 회원만 쓸 수 있고, 파일로 올린 논문은 나만 보기로만 저장합니다. 제목으로 공식 정보를 찾는 검색은 버튼을 누를 때만 합니다.

그림과 AI 해설은 정확한가요?

그림은 논문 원본만 쓰고 이용 허락이 확인된 것만 보여 줍니다. 해설은 AI가 쓴 글이라 틀릴 수 있습니다. 중요한 주장과 수치, 그림의 맥락은 원문 근거로 확인해 주세요.

저작권 문제를 알리고 싶어요.

이용 조건과 원문 출처는 논문 정보 탭에 있습니다. 문제가 있으면 ‘문의하기’에서 ‘논문 내용·그림·저작권’을 골라 논문 링크와 문제가 되는 부분, 권리를 확인할 수 있는 근거를 보내 주세요. 접수만으로 권리가 확정되거나 바로 삭제되지는 않습니다. 검토 결과는 ‘내 문의’에서 볼 수 있습니다.

비밀번호를 잊었어요.

이메일로 가입했다면 로그인 창의 비밀번호 찾기에서 인증한 이메일로 다시 설정할 수 있습니다. Google, 네이버, 카카오로 가입했다면 그 서비스에서 비밀번호를 바꿔 주세요.

문의할 때 무엇을 적어야 하나요?

어느 화면에서 무엇을 하다 생긴 문제인지 논문 링크와 함께 적어 주세요. 비밀번호, API 키, 인증 코드, 전화번호 같은 개인정보는 적지 마세요. 문의와 답변은 Refivu에 저장되고 ‘내 문의’에서 볼 수 있습니다.

회원탈퇴는 어떻게 하나요?

설정의 내 계정에서 회원탈퇴를 누르세요. 지워지는 내용을 확인하고 본인 확인을 마치면 탈퇴됩니다. 다른 요청은 ‘문의하기’에서 ‘계정’을 골라 남겨 주세요.

논문 해설

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

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

  • 연구 문제 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…

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.

원문 · CC 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…

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).

원문 · CC 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

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

원문 · CC 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…

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.

원문 · CC 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,…

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.

원문 · CC 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

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

원문 · CC 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

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.

원문 · CC 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

Figure 9 . Top 5 sparse probing scores.

원문 · CC 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
제공 범위
논문 정보, 해설, 허용된 원문 그림

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}
}

관련 논문 보기다른 논문 둘러보기

논문 미리 보기
계정 보안

Google 계정 연결

Google 계정을 연결하면 그 계정으로도 로그인할 수 있습니다.

Refivu

회원탈퇴

Refivu
Refivu

회원가입