Skip to main content
QUICK REVIEW

[논문 리뷰] Towards Principled Evaluations of Sparse Autoencoders for Interpretability and Control

Aleksandar Makelov, George Lange|arXiv (Cornell University)|2024. 05. 14.
Speech Recognition and SynthesisComputer Science인용 수 3
한 줄 요약

이 논문은 언어 모델에서 스퍼스 자동에코더(SAE)가 학습한 특징 사전을 평가하기 위한 원칙적인 프레임워크를 제안한다. 이 프레임워크는 지도 학습 기반 특징 사전을 기준으로 삼는다. 세 가지 축—재구성의 충분성/필요성, 특징 편집에 의한 제어 가능성, 해석 가능성—을 통해 비지도 SAE를 평가하여, IOI 작업에서 SAE가 해석 가능한 특징을 학습하지만 제어력과 완전성 측면에서 지도 학습 특징보다 뒤처지고, 특징 가림 및 과다 분할과 같은 현상이 나타남을 발견한다.

ABSTRACT

Disentangling model activations into meaningful features is a central problem in interpretability. However, the absence of ground-truth for these features in realistic scenarios makes validating recent approaches, such as sparse dictionary learning, elusive. To address this challenge, we propose a framework for evaluating feature dictionaries in the context of specific tasks, by comparing them against \emph{supervised} feature dictionaries. First, we demonstrate that supervised dictionaries achieve excellent approximation, control, and interpretability of model computations on the task. Second, we use the supervised dictionaries to develop and contextualize evaluations of unsupervised dictionaries along the same three axes. We apply this framework to the indirect object identification (IOI) task using GPT-2 Small, with sparse autoencoders (SAEs) trained on either the IOI or OpenWebText datasets. We find that these SAEs capture interpretable features for the IOI task, but they are less successful than supervised features in controlling the model. Finally, we observe two qualitative phenomena in SAE training: feature occlusion (where a causally relevant concept is robustly overshadowed by even slightly higher-magnitude ones in the learned features), and feature over-splitting (where binary features split into many smaller, less interpretable features). We hope that our framework will provide a useful step towards more objective and grounded evaluations of sparse dictionary learning methods.

연구 동기 및 목표

  • 해석 가능성 연구에서 지표가 되는 특징의 부재, 특히 대규모 언어 모델(LLM) 내 스퍼스 자동에코더(SAE)에 대해 해결하고자 한다.
  • 비지도 SAE를 지도 학습 기반 특징 사전과 비교할 수 있는 원칙적이고 작업 특화된 평가 프레임워크를 개발하고자 한다.
  • 활성화 재구성의 충분성과 필요성, 특징 편집에 의한 제어 가능성, 인과적 역할에 부합하는 해석 가능성이라는 세 가지 축을 통해 SAE를 평가하고자 한다.
  • 특징 가림 및 과다 분할과 같은 체계적인 실패 유형을 실모델과 토이 모델을 통해 식별하고 분석하고자 한다.
  • 향후 SAE 연구의 해석 가능성과 제어력 향상에 있어 더 객관적이고 기반화된, 재현 가능한 평가 기준을 제공하고자 한다.

제안 방법

  • 모델 입력(예: 프롬프트)과 레이블링된 속성(예: 간접 목적어 이름)을 사용해 지도 학습 기반 특징 사전을 학습함으로써 특징 탐색을 유도한다.
  • 지도 학습 기반 사전을 골드 표준으로 삼아, 세 가지 평가 축—재구성 정확도, 특징 편집에 의한 제어 가능성, F1 스코어 일치를 통한 해석 가능성—을 통해 비지도 SAE를 평가한다.
  • 충분성을 측정하기 위해 F1 스코어가 높은 특징을 제거하고 로짓 차이 복구 정도를 관찰한다; 필요성을 측정하기 위해 가장 높은 스코어를 가진 특징 외 전부를 패치한다.
  • IOI 작업에서 GPT-2 Small에 대해 IOI 전용 또는 전체 분포(OpenWebText) 데이터로 학습된 SAE를 사용하여 프레임워크를 적용한다.
  • 주의 점수 분해와 로짓 차이 분석을 통해 특징의 역할이 모델 행동에 미치는 영향을 검증한다.
  • 간단한 토이 모델을 통해 특징 가림 및 과다 분할 현상을 재현하고 일반화 가능성 여부를 평가한다.
Figure 1: Overview of our evaluation pipeline. We begin by selecting a specific model capability and then disentangling model activations into capability-relevant features using supervision. Then, we evaluate a given feature dictionary w.r.t. this capability, using the supervised features as a bench
Figure 1: Overview of our evaluation pipeline. We begin by selecting a specific model capability and then disentangling model activations into capability-relevant features using supervision. Then, we evaluate a given feature dictionary w.r.t. this capability, using the supervised features as a bench

실험 결과

연구 질문

  • RQ1지도 학습 기반 특징 사전가 비지도 SAE 평가의 신뢰할 수 있는 기준이 될 수 있는가? 재구성 정확도, 제어 가능성, 해석 가능성 측면에서 평가 가능할까?
  • RQ2IOI 전용(과제 특화) 데이터와 전체 분포(OpenWebText) 데이터로 학습된 SAE는 IOI 과제에서 모델 행동을 복구하고 제어하는 데 어떤 정도의 능력을 보이는가?
  • RQ3SAL이 학습한 특징들이 로짓 차이 복구에서의 해석 가능성과 필요성 측면에서 모델 활성화의 진정된 인과적 구조를 어느 정도 반영하는가?
  • RQ4특징 가림 및 과다 분할과 같은 체계적인 실패 유형은 SAE 학습 과정에서 어떤 식으로 나타나며, 이를 단순화된 환경에서 재현할 수 있는가?
  • RQ5제안된 평가 프레임워크는 SAE 학습 목표 및 하이퍼파라미터를 객관적으로 비교하고 향상시키는 데 사용될 수 있는가?

주요 결과

  • 지도 학습 기반 특징 사전은 IOI 과제에서 높은 재구성 정확도, 제어 가능성, 해석 가능성을 달성하여 SAE 평가의 강력한 기준이 된다.
  • IOI 과제에 대해 SAE가 학습한 특징은 해석 가능하지만 지도 학습 특징보다는 효과가 떨어진다: 과제 특화 SAE는 모델 행동 제어에 더 적은 편집을 요구하지만, 양쪽 모두 지도 학습 기준보다 뒤처진다.
  • F1 스코어 기준 0.8 이상일 경우 SAE 특징은 로짓 차이 복구에 필수적이고 충분하며, 고수준 기준에서 높은 충실도와 완전성을 보여준다.
  • 특징 가림 현상은, 조건이 약간 다를 뿐이지만, 인과적으로 중요한 특징보다 크기가 큰 특징을 우선시하는 경향을 보이며, 이는 크기 기반 우선순위가 인과적 관련성보다 더 강한 편향을 유도함을 시사한다.
  • 과다 분할 현상이 관찰되었으며, 이는 이진 개념(예: 이름 식별성)이 다수의 저수준 특징으로 분할되어 해석 가능성은 떨어지고 중복성은 증가한다.
  • 특징 가림 및 과다 분할 현상은 단순한 토이 모델에서도 재현 가능하여, 이는 SAE 학습에서 일반적인 현상이며 IOI 과제의 특수성 때문이 아니라, 일반적인 문제일 가능성이 높음을 시사한다.
Figure 2: Sufficiency (left) and necessity (right) evaluations of reconstructions of cross-sections of the IOI circuit computed using supervised feature dictionaries, task- and full-distribution SAEs. Left : average logit difference when replacing activations in cross-sections of the IOI circuit wit
Figure 2: Sufficiency (left) and necessity (right) evaluations of reconstructions of cross-sections of the IOI circuit computed using supervised feature dictionaries, task- and full-distribution SAEs. Left : average logit difference when replacing activations in cross-sections of the IOI circuit wit

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.