[논문 리뷰] Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 small
논문은 GPT-2 small에서 간접 객체 식별(IOI)을 26개의 어텐션 헤드가 일곱 개의 헤드 클래스로 조직된 기계적 엔드-투-엔드 회로로 구현하는 방법을 제시하고, 인과적 개입과 세 가지 충실성 기반 기준으로 검증한다.
Research in mechanistic interpretability seeks to explain behaviors of machine learning models in terms of their internal components. However, most previous work either focuses on simple behaviors in small models, or describes complicated behaviors in larger models with broad strokes. In this work, we bridge this gap by presenting an explanation for how GPT-2 small performs a natural language task called indirect object identification (IOI). Our explanation encompasses 26 attention heads grouped into 7 main classes, which we discovered using a combination of interpretability approaches relying on causal interventions. To our knowledge, this investigation is the largest end-to-end attempt at reverse-engineering a natural behavior "in the wild" in a language model. We evaluate the reliability of our explanation using three quantitative criteria--faithfulness, completeness and minimality. Though these criteria support our explanation, they also point to remaining gaps in our understanding. Our work provides evidence that a mechanistic understanding of large ML models is feasible, opening opportunities to scale our understanding to both larger models and more complex tasks.
연구 동기 및 목표
- GPT-2 small에서 회로 수준에서 IOI를 수행하는 방법을 설명한다.
- GPT-2 small에서 IOI에 대해 인간이 해석 가능한 부분 그래프(회로)를 식별한다.
- 회로 설명을 검증하기 위한 인과적 개입 기법을 개발하고 적용한다.
- 제안된 회로의 충실성, 완전성, 최소성을 평가한다.
- 언어 모델에서의 확장 가능한 기계적 해석 가능성에 대한 도전과 통찰을 강조한다.
제안 방법
- GPT-2 small에서 IOI에 책임이 있는 서브그래프(회로)를 분리하기 위해 회로 분석을 사용한다.
- 경로 패칭(path patching)을 통해 로짓에 대한 어텐션 헤드의 직접적 대간접적 영향을 측정한다.
- IOI 알고리즘에서의 역할을 분류하고 일곱 가지 범주로 구성한다.
- 제로 어블레이션 대신 평균 어블레이션(mean ablations)과 재설계된 p_IOI 분포(p_ABC)를 KO(-knockouts)로 적용한다.
- 정의된 성능 지표 F(C)로 전체 모델과 회로의 동작을 대조하여 검증한다.
- 회로 설명의 충실성, 완전성, 최소성 기준을 도입하여 회로 설명을 평가한다.
실험 결과
연구 질문
- RQ1GPT-2 small의 IOI 작업을 계산하는 서브그래프는 무엇인가?
- RQ2IOI 알고리즘을 구현하는 어텐션 헤드는 무엇이며 이들이 어떻게 상호 작용하는가?
- RQ3인과적 개입(path patching 및 knockouts)이 회로가 모델의 IOI 동작에 대해 충실하고 거의 완전한지 보여줄 수 있는가?
- RQ4식별된 회로의 한계점과 잠재적 중복성은 무엇인가?
- RQ5제안된 검증 기준(충실성, 완전성, 최소성)이 이 엔드-투-엔드 기계적 설명에 어떻게 작동하는가?
주요 결과
- 26개의 어텐션 헤드로 구성된 회로가 GPT-2 small에서 IOI를 구현한다(헤드–토큰 쌍의 1.1%).
- 회로는 Name Mover Heads, S-Inhibition Heads, Duplicate Token Heads, Induction Heads, Previous Token Heads, Backup Name Mover Heads, Negative Name Mover Heads를 포함한 일곱 가지 헤드 클래스로 구성된다.
- 경로 패칭은 어떤 헤드가 로짓에 직접적으로 영향을 미치는지 보여주고 정보 흐름에서 직접적 및 간접적 영향을 모두 드러낸다.
- Name Mover Heads는 IO/S 토큰을 출력으로 복사하지만, knockout 조건에서 Backup Name Mover Heads에 의해 보완될 수 있어 중복성을 시사한다.
- S-Inhibition Heads는 토큰 및 위치 신호를 사용해 Name Mover Heads의 주의를 조절하여 IO보다 S1 쪽으로 주의를 편향시킨다.
- 회로는 전체 모델의 IOI 성능의 약 87%를 달성한다(F(C) ≈ F(M)와의 차이가 F(M) = 3.56 기준).
- 연구는 중복 구성 요소와 복잡한 상호 작용의 사례를 발견하여 단순한 해석에 도전하고 기계적 이해의 격차를 남겨두고 있음을 강조한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.