Do Attention Heads in BERT Track Syntactic Dependencies?
원문 초록
We investigate the extent to which individual attention heads in pretrained transformer language models, such as BERT and RoBERTa, implicitly capture syntactic dependency relations. We employ two methods---taking the maximum attention weight and computing the maximum spanning tree---to extract implicit dependency relations from the attention weights of each layer/head, and compare them to the ground-truth Universal Dependency (UD) trees. We show that, for some UD relation types, there exist heads that can recover the dependency type significantly better than baselines on parsed English text, suggesting that some self-attention heads act as a proxy for syntactic structure. We also analyze BERT fine-tuned on two datasets---the syntax-oriented CoLA and the semantics-oriented MNLI---to investigate whether fine-tuning affects the patterns of their self-attention, but we do not observe substantial differences in the overall dependency relations extracted using our methods. Our results suggest that these models have some specialist attention heads that track individual dependency types, but no generalist head that performs holistic parsing significantly better than a trivial baseline, and that analyzing attention weights directly may not reveal much of the syntactic knowledge that BERT-style models are known to learn.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
CoLA: Collaborative Low-Rank Adaptation
Enhancing LLM Robustness to Perturbed Instructions: An Empirical Study
Controlling Large Language Model with Latent Actions
CoLA: Compute-Efficient Pre-Training of LLMs via Low-Rank Activation
DARE the Extreme: Revisiting Delta-Parameter Pruning For Fine-Tuned Models
Empowering Persian LLMs for Instruction Following: A Novel Dataset and Training Approach
토론
이 논문과 연결된 포럼 글이 아직 없습니다.