English

Influence Patterns for Explaining Information Flow in BERT

Computation and Language 2021-12-02 v3

Abstract

While attention is all you need may be proving true, we do not know why: attention-based transformer models such as BERT are superior but how information flows from input tokens to output predictions are unclear. We introduce influence patterns, abstractions of sets of paths through a transformer model. Patterns quantify and localize the flow of information to paths passing through a sequence of model nodes. Experimentally, we find that significant portion of information flow in BERT goes through skip connections instead of attention heads. We further show that consistency of patterns across instances is an indicator of BERT's performance. Finally, We demonstrate that patterns account for far more model performance than previous attention-based and layer-based methods.

Keywords

Cite

@article{arxiv.2011.00740,
  title  = {Influence Patterns for Explaining Information Flow in BERT},
  author = {Kaiji Lu and Zifan Wang and Piotr Mardziel and Anupam Datta},
  journal= {arXiv preprint arXiv:2011.00740},
  year   = {2021}
}

Comments

Neurips 2021

R2 v1 2026-06-23T19:50:04.422Z