[논문 리뷰] Interpretability at Scale: Identifying Causal Mechanisms in Alpaca
본 논문은 Boundless Distributed Alignment Search (Boundless DAS)를 대형 LLM으로 확장하고 Alpaca(7B)가 숫자 추론 과제에 대해 간단한 두 불린 변수 인과 모델을 구현하며, 입력과 지시사항에 관계없이 정렬이 강건함을 보인다.
Obtaining human-interpretable explanations of large, general-purpose language models is an urgent goal for AI safety. However, it is just as important that our interpretability methods are faithful to the causal dynamics underlying model behavior and able to robustly generalize to unseen inputs. Distributed Alignment Search (DAS) is a powerful gradient descent method grounded in a theory of causal abstraction that has uncovered perfect alignments between interpretable symbolic algorithms and small deep learning models fine-tuned for specific tasks. In the present paper, we scale DAS significantly by replacing the remaining brute-force search steps with learned parameters -- an approach we call Boundless DAS. This enables us to efficiently search for interpretable causal structure in large language models while they follow instructions. We apply Boundless DAS to the Alpaca model (7B parameters), which, off the shelf, solves a simple numerical reasoning problem. With Boundless DAS, we discover that Alpaca does this by implementing a causal model with two interpretable boolean variables. Furthermore, we find that the alignment of neural representations with these variables is robust to changes in inputs and instructions. These findings mark a first step toward faithfully understanding the inner-workings of our ever-growing and most widely deployed language models. Our tool is extensible to larger LLMs and is released publicly at `https://github.com/stanfordnlp/pyvene`.
연구 동기 및 목표
- 안전성과 신뢰성을 위한 대형 언어 모델의 해석 가능하고 인과적으로 충실한 설명의 필요성을 제시합니다.
- 대규모 LLM에 대한 인과 추상화 기반 해석 가능성을 확장하기 위해 Boundless DAS를 제안합니다.
- Alpaca가 간단하고 해석 가능한 인과 모델을 통해 숫자 추론 과제를 해결함을 입증합니다.
- 다양한 지시사항, 입력, 맥락, 출력 형식에서 발견된 정렬의 강건성을 평가합니다.
제안 방법
- DAS(Distributed Alignment Search)를 경계 마스크와 회전을 학습하도록 확장하여 확장 가능한 정렬(Boundless DAS)을 가능하게 합니다.
- 각 고수준 변수 Z_j에 대해 Y_j의 차원 부분공간을 결정하는 학습 가능한 경계 지수 b_j를 도입하여 표현 차원 자동 결정이 가능하도록 합니다.
- SoftDII와 가중 중재를 사용하여 실제 인과 모델과의 교차 간섭 정확도(IIA)를 근거 있는 추정 및 최적화합니다.
- 신경 표현을 인과 변수와 정렬시키기 위해 교차 엔트로피 목표(Eq. 5)를 최적화하고 경계 마스크(beta)를 점진적으로 소거합니다.
- IIA로 정렬 품질을 평가하고 무작위 기준선 및 작업 성능과 비교합니다.
- 알파카-7B를 가격 태깅/자연어 처리 기반 숫자 추론 과제에 Boundless DAS를 적용하고 지시사항, 맥락, 출력 형식에 대한 일반화를 테스트합니다.
실험 결과
연구 질문
- RQ1Boundless DAS가 Alpaca(7B)와 같은 대형 LLM으로 인과 해석 가능성을 확장할 수 있을까?
- RQ2맥락과 지시사항에 걸쳐 해석 가능 변수와 내부 표현이 강건하고 일반화 가능한 방식으로 정렬되어 있는가?
- RQ3숫자 추론 과제를 해결하기 위해 Alpaca가 사용하는 인과 메커니즘의 본질은 무엇인가?
- RQ4학습된 정렬이 새로운 괄호, 삽입된 맥락, 수정된 출력으로 전달될 수 있는가?
주요 결과
- Boundless DAS는 Alpaca가 간단한 두 불린 변수 인과 모델(왼쪽 경계 확인 및 오른쪽 경계 확인)을 사용하여 과제를 해결함을 보여준다.
- 상위 두 개 가설 모델에 대한 II A가 작업 성능(0.85+ 이상)에 도달하거나 이를 상회하여 내부 인과 구조의 충실성을 시사한다.
- 정렬은 보지 못한 괄호, 삽입된 접두사, 서로 다른 출력 형식에서도 IIA 하락이 미미하게 나타나며 일반화와 강건함을 보여준다.
- 경계 학습은 성공적인 실행에서 각 정렬 변수가 표현 공간의 약 5–10%만을 사용함을 보인다.
- 출력에 잘못된 제어 및 대체 모델로의 비교는 IIA를 대폭 낮추며 발견된 정렬의 충실성을 뒷받침한다.
- 다양한 분석에서 새로운 괄호 구성에 대해 거의 100%의 작업 성능과 주요 결과와의 높은 상관관계를 달성한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.