[논문 리뷰] Learning to Explain: Supervised Token Attribution from Transformer Attention Patterns
ExpNet은 사람의 근거를 이용한 감독 학습으로 트랜스포머 어텐션 패턴을 토큰 수준의 중요도에 매핑하는 경량 해설기이며, 교차 태스크 일반화를 달성하고 SST-2, CoLA, HateXplain에서 F1에서 기준 모델을 능가합니다.
Explainable AI (XAI) has become critical as transformer-based models are deployed in high-stakes applications including healthcare, legal systems, and financial services, where opacity hinders trust and accountability. Transformers self-attention mechanisms have proven valuable for model interpretability, with attention weights successfully used to understand model focus and behavior (Xu et al., 2015); (Wiegreffe and Pinter, 2019). However, existing attention-based explanation methods rely on manually defined aggregation strategies and fixed attribution rules (Abnar and Zuidema, 2020a); (Chefer et al., 2021), while model-agnostic approaches (LIME, SHAP) treat the model as a black box and incur significant computational costs through input perturbation. We introduce Explanation Network (ExpNet), a lightweight neural network that learns an explicit mapping from transformer attention patterns to token-level importance scores. Unlike prior methods, ExpNet discovers optimal attention feature combinations automatically rather than relying on predetermined rules. We evaluate ExpNet in a challenging cross-task setting and benchmark it against a broad spectrum of model-agnostic methods and attention-based techniques spanning four methodological families.
연구 동기 및 목표
- 트랜스포머 기반 NLP 모델에서 신뢰할 수 있고 인간과 정렬된 설명의 필요성을 제시한다.
- 고정된 휴리스틱이 아닌 어텐션 패턴으로부터 학습하는 감독 학습 해설기를 제안한다.
- 다양한 NLP 태스크에 걸친 설명의 교차 태스크 일반화를 보여준다.
- 광범위한 베이스라인과 비교 평가하고 구조적 기여를 분석한다.
제안 방법
- 각 토큰에 대해 BERT의 최종 레이어에서 양방향 어텐션 특성을 추출한다: 모든 헤드에 걸쳐 태스크-대-토큰(CLS에서 토큰으로) 및 토큰-대-태스크(토큰에서 CLS로).
- 각 토큰을 모든 헤드의 어텐션 값을 결합한 2H 차원 특징 벡터로 표현한다.
- 가벼운 MLP(ExpNet)를 학습시켜 토큰 특징을 시그모이드 출력의 이진 중요도 점수로 매핑한다.
- 토큰 예측에 맞춘 인간이 제공한 단어 수준의 근거를 사용해 ExpNet을 감독하고, 단어 레이블을 하위단어 토큰으로 투사한다.
- 초점 손실로 클래스 불균형을 다루고, 분류기가 정확한 인스턴스에서만 학습하도록 올바른 예측 필터링을 적용한다.
- 토큰 수준 F1 및 AUROC로 설명을 평가하고 SST-2, CoLA, HateXplain에서 한 태스크를 남겨두고 교차 태스크 프로토콜을 적용한다.

실험 결과
연구 질문
- RQ1어텐션 패턴에서 토큰 중요도로의 학습된 매핑이 NLP 태스크 전반에 걸쳐 일반화될 수 있는가?
- RQ2교차 태스크 설정에서 ExpNet이 모델 비의존적 baselines 및 어텐션 기반 베이스라인과 어떻게 비교되는가?
- RQ3도메인 간 설명 품질에 가장 크게 기여하는 ExpNet의 아키텍처 구성요소는 무엇인가?
주요 결과
- ExpNet은 교차 태스크 평가에서 세 가지 작업 모두에서 토큰 F1이 가장 높게 나타났다.
- CoLA에서 ExpNet은 F1 = 0.468 ± 0.079에 도달했고, 최고 베이스라인(GradCAM: 0.356)에 비해 상대적으로 31% 향상이다.
- HateXplain에서 ExpNet은 F1 = 0.473 ± 0.007에 도달했고, 가장 강력한 베 baseline(GradCAM: 0.396)에 비해 19% 향상이다.
- SST-2에서 ExpNet은 F1 = 0.398 ± 0.024로 최고 베Baseline(GAE/MGAE: 0.350)보다 14% 더 높다.
- ExpNet은 두 데이터셋으로 학습하고 남겨진 세 번째에서 평가할 때 태스크 튜닝 베이스라인을 능가함으로써 교차 태스크 일반화를 보여준다.
- ExpNet의 AUROC은 지속적으로 경쟁력이 있으며 종종 0.7 이상이고, SST-2에서 방법들 가운데 최고 AUROC를 보여준다.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.