Analyzing the Structure of Attention in a Transformer Language Model
Open accessThe DOI matches its Crossref record; 29 of the 29 references it cites were found in a registry or an index.
Abstract
The Transformer is a fully attention-based alternative to recurrent networks that has achieved state-of-the-art results across a range of NLP tasks.In this paper, we analyze the structure of attention in a Transformer language model, the GPT-2 small pretrained model.We visualize attention for individual instances and analyze the interaction between attention and syntax over a large corpus.We find that attention targets different parts of speech at different layer depths within the model, and that attention aligns with dependency relations most strongly in the middle layers.We also find that the deepest layers of the model capture the most distant relationships.Finally, we extract exemplar sentences that reveal highly specific patterns targeted by particular attention heads.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Claims other papers make about this one
Each is checked against this paper’s own text: does it say what the citing paper says it does?
The source backs part of the claim, not all of it — or backs it for a different population, condition or comparison.
In the citing paper
“Prior work has shown how to use attention weights to visually depict which words in an input sequence, plus which words in previously-generated output, were responsible for a given token's output [95,96].”
From Investigating Explainability of Generative AI for Code through Scenario-based Design (2022) · cites this paper as [96]
Experimental — accuracy not yet measuredThe source backs part of the claim, not all of it — or backs it for a different population, condition or comparison.
In the citing paper
“Attention distribution is a popular approach to explain an individual prediction made by a neural networks model, by the relative importance of parts of input to determine the output [95,96].”
From Investigating Explainability of Generative AI for Code through Scenario-based Design (2022) · cites this paper as [96]
Experimental — accuracy not yet measuredThe source backs part of the claim, not all of it — or backs it for a different population, condition or comparison.
In the citing paper
“Previous research (Vig & Belinkov, 2019;Jo & Myaeng, 2020;Geva et al., 2021;Wan et al., 2022), which has shown that deep layers encode semantic information and distal relationships within sentences.”
From From Imitation to Introspection: Probing Self-Consciousness in Language Models (2025) · cites this paper as Vig & Belinkov, 2019
Experimental — accuracy not yet measuredThe cited source says what the claim attributes to it.
In the citing paper
“Attention visualization [17] shows what tokens the model attends to, but attention doesn't always reflect importance.”
From AgentSHAP: Interpreting LLM Agent Tool Importance with Monte Carlo Shapley Value Estimation (2025) · cites this paper as [17]
The check wasn’t confident either way, so it gives no verdict — never disputed.
In the citing paper
“No existing XAI methods address tool-level explanations.”
From AgentSHAP: Interpreting LLM Agent Tool Importance with Monte Carlo Shapley Value Estimation (2025) · cites this paper as [17]
Experimental — accuracy not yet measured
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., & Polosukhin, I. (2017) · arXiv · doi:10.48550/arxiv.1706.03762 · Cited by 120,404 · cited 4×
“, 2018), which are based on the Transformer (Vaswani et al., 2017).”
BackgroundMethodInfluentialBERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2018) · arXiv · doi:10.48550/arxiv.1810.04805 · Cited by 73,173 · cited 7×
“We also adapt the original encoder-decoder implementation to the decoder-only GPT-2 model, as well as the encoder-only BERT model.”
BackgroundMethodInfluentialBERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
Devlin, J., Chang, M.-W., Lee, K., & Toutanova, K. (2019) · Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers) · doi:10.18653/v1/n19-1423 · Cited by 54,325 · cited 7×
“We also adapt the original encoder-decoder implementation to the decoder-only GPT-2 model, as well as the encoder-only BERT model.”
BackgroundMethodInfluentialNeural Machine Translation by Jointly Learning to Align and Translate
Bahdanau, D., Cho, K., & Bengio, Y. (2014) · arXiv · doi:10.48550/arxiv.1409.0473 · Cited by 16,213
Deep Contextualized Word Representations
Peters, M., Neumann, M., Iyyer, M., Gardner, M., Clark, C., Lee, K., & Zettlemoyer, L. (2018) · Proceedings of the 2018 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long Papers) · doi:10.18653/v1/n18-1202 · Cited by 11,983 · cited 3×
“Contextual word representations have recently been used to achieve state-of-the-art performance across a range of language understanding tasks (Peters et al., 2018; Radford et al., 2018; Devlin et al., 2018).”
BackgroundMethodTransformer-XL: Attentive language models beyond a fixed-length context
Dai, Z., Yang, Z., Yang, Y., Carbonell, J., Le, Q., & Salakhutdinov, R. (2019) · Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/p19-1285 · Cited by 3,169 · cited 1×
“We would also like to analyze attention patterns in text much longer than a single sentence, especially for new Trans-former variants such as the Transformer-XL (Dai et al., 2019) and Sparse Transformer (Child et al., 2019), which can handle very long contexts.”
MethodKemp, C. D., & Tufte, E. R. (1992) · Biometrics · doi:10.2307/2532323 · Cited by 2,713
A Neural Attention Model for Abstractive Sentence Summarization
Rush, A. M., Chopra, S., & Weston, J. (2015) · Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing · doi:10.18653/v1/d15-1044 · Cited by 2,656 · cited 2×
“Various tools have been developed to visualize attention in NLP models, ranging from attention matrix heatmaps (Bahdanau et al., 2015; Rush et al., 2015; Rocktäschel et al., 2016) to bipartite graph representations (Liu et al.”
MethodJain, S., & Wallace, B. (2019) · Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (NAACL-HLT) · doi:10.18653/v1/n19-1357 · Cited by 2,023 · cited 1×
“Analyzing attention is a simpler process that also produces human-interpretable descriptions of model behavior, though recent work casts doubt on its role in explaining individual predictions (Jain and Wallace, 2019).”
BackgroundBERT Rediscovers the Classical NLP Pipeline
Tenney, I., Das, D., & Pavlick, E. (2019) · Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics · doi:10.18653/v1/p19-1452 · Cited by 1,307 · cited 2×
“In a Transformer model, the middle layers were most predictive of dependencies (Liu et al., 2019; Tenney et al., 2019).”
MethodResult
Cited by
Items 101–200 of 310
Does BERT Pay Attention to Cyberbullying?
Elsafoury, F., Katsigiannis, S., Wilson, S. R., & Ramzan, N. (2021) · International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR) · doi:10.1145/3404835.3463029 · Cited by 26
“With regards to attention-based models, like Transformers and BERT, [37, 38] built visualisation tools to show the attention weights in different layers between tokens in the same sentence or in two different sentences, as well as to understand the role attention weights play in pretrained BERT [7] by analysing the be…”
MethodInfluentialInterrogating the Explanatory Power of Attention in Neural Machine Translation
Moradi, P., Kambhatla, N., & Sarkar, A. (2019) · Workshop on Neural Generation and Translation (WNGT) · doi:10.18653/v1/d19-5624 · Cited by 22
“Analyzing and interpreting the attention mechanism in NLP (Koehn and Knowles, 2017; Ghader and Monz, 2017; Tang and Nivre, 2018; Clark et al., 2019; Vig and Belinkov, 2019) is another direction that has drawn major interest.”
BackgroundInfluentialDemonstrations of the Potential of AI-based Political Issue Polling
Sanders, N. E., Ulinich, A., & Schneier, B. (2023) · Harvard Data Science Review · doi:10.1162/99608f92.1d3cf75d · Cited by 58
Structured Self-Attention Weights Encode Semantics in Sentiment Analysis
Wu, Z., Nguyen, T.-S., & Ong, D. C. (2020) · BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP (BlackboxNLP) · doi:10.18653/v1/2020.blackboxnlp-1.24 · Cited by 29
Toward Compact Transformers for End-to-End Object Detection With Decomposed Chain Tensor Structure
Zhen, P., Yan, X., Wang, W., Hou, T., Wei, H., & Chen, H. (2022) · IEEE Transactions on Circuits and Systems for Video Technology · doi:10.1109/tcsvt.2022.3208062 · Cited by 20
“However, not all the heads contribute equally for making predictions [46].”
BackgroundSibilano, E., Buongiorno, D., Lassi, M., Grippo, A., Bessi, V., Sorbi, S., Mazzoni, A., Bevilacqua, V., & Brunetti, A. (2024) · IEEE Journal of Biomedical and Health Informatics · doi:10.1109/jbhi.2024.3390606 · Cited by 20
Xiao, W., Huber, P., & Carenini, G. (2020) · Workshop on Computational Approaches to Discourse (CODI) · doi:10.18653/v1/2020.codi-1.13 · Cited by 29
“, the learned attention weights) generally align well with syntactic and semantic relations within sentences (Vig and Belinkov, 2019; Kovaleva et al., 2019).”
On the Distribution, Sparsity, and Inference-time Quantization of Attention Values in Transformers
Ji, T., Jain, S., Ferdman, M., Milder, P. A., Schwartz, H. A., & Balasubramanian, N. (2021) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2021.findings-acl.363 · Cited by 32
Understanding Multi-Head Attention in Abstractive SummarizationPreprint
Baan, J., ter Hoeve, M., van der Wees, M., Schuth, A., & de Rijke, M. (2019) · arXiv (Cornell University) · doi:10.48550/arxiv.1911.03898 · Cited by 36
“Some of this work argues it can (e.g., Vig and Belinkov, 2019; Clark et al., 2019; Correia et al., 2019), whereas other work argues it cannot, or one should at least be cautious (e.g., Jain and Wallace, 2019; Serrano and Smith, 2019).”
Moon, T., Kim, D., Kwon, S., Ahn, T. I., & Son, J. E. (2022) · Sensors · doi:10.3390/s22207728 · Cited by 19
The Taxonomy of Writing Systems: How to Measure How Logographic a System Is
Sproat, R., & Gutkin, A. (2021) · Computational Linguistics · doi:10.1162/coli_a_00409 · Cited by 26
“The rest of the model parameter details, such as normalization and optimization strategy, are as per Vaswani et al. (2017).”
BackgroundMethodInfluentialGeva, M., Caciularu, A., Dar, G., Roit, P., Sadde, S., Shlain, M., Tamir, B., & Goldberg, Y. (2022) · Conference on Empirical Methods in Natural Language Processing: System Demonstrations (EMNLP) · doi:10.18653/v1/2022.emnlp-demos.2 · Cited by 65
PromptAid: Visual Prompt Exploration, Perturbation, Testing and Iteration for Large Language Models
Mishra, A., Danzy, B., Soni, U., Arunkumar, A., Huang, J., Kwon, B. C., & Bryan, C. (2025) · IEEE Transactions on Visualization and Computer Graphics · doi:10.1109/tvcg.2025.3535332 · Cited by 107
“…tools can broadly be categorized as supporting two types of tasks: (1) greying black boxed NLP models [28], [29], [30], [31], [32], [33], [34], [35], primarily for model developers and experts, and (2) understanding post hoc model behavior based on input variances [36], [37], One relevant tool…”
On Explaining Your Explanations of BERT: An Empirical Study with Sequence ClassificationPreprint
Wu, Z., & Ong, D. C. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2101.00196 · Cited by 37
“…suggested that local attention weights within heads encode syntactic information (Tenney et al., 2019) such as anaphora (Voita et al., 2018; Goldberg, 2019), Parts-of-Speech (Vig and Belinkov, 2019) and dependencies (Raganato and Tiedemann, 2018; He-witt and Manning, 2019; Clark et al., 2019).”
Incorporating Distributions of Discourse Structure for Long Document Abstractive Summarization
Pu, D., Wang, Y., & Demberg, V. (2023) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2023.acl-long.306 · Cited by 39
On the Blind Spots of Model-Based Evaluation Metrics for Text Generation
He, T., Zhang, J., Wang, T., Kumar, S., Cho, K., Glass, J. R., & Tsvetkov, Y. (2023) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2023.acl-long.674 · Cited by 85
EBBE-Text: Explaining Neural Networks by Exploring Text Classification Decision Boundaries
Delaforge, A., Azé, J., Bringay, S., Mollévi, C., Sallaberry, A., & Servajean, M. (2022) · IEEE Transactions on Visualization and Computer Graphics · doi:10.1109/tvcg.2022.3184247 · Cited by 17
“or with bump charts or tables of bump charts [17], [18], [19], [20], among others [21], [22].”
BackgroundBansal, H., Gopalakrishnan, K., Dingliwal, S., Bodapati, S., Kirchhoff, K., & Roth, D. (2023) · Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2023.acl-long.660 · Cited by 13
Measuring and Improving Faithfulness of Attention in Neural Machine Translation
Moradi, P., Kambhatla, N., & Sarkar, A. (2021) · Conference of the European Chapter of the Association for Computational Linguistics · doi:10.18653/v1/2021.eacl-main.243 · Cited by 22
“…(Lipton, 2018; Jacovi and Goldberg, 2020b), (b) interpretation of the neural model components (Belinkov et al., 2017; Dalvi et al., 2017; Vig and Belinkov, 2019), (c) explaining the decisions made by neural models to humans (using explanations, highlights, rationales, etc.) (Ribeiro et…”
BackgroundOn the Interplay Between Fine-tuning and Composition in Transformers
Yu, L., & Ettinger, A. (2021) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2021.findings-acl.201 · Cited by 14
Tenney, I., Wexler, J., Bastings, J., Bolukbasi, T., Coenen, A., Gehrmann, S., Jiang, E., Pushkarna, M., Radebaugh, C., Reif, E., et al. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2008.05122 · Cited by 13
Gehrmann, S., Strobelt, H., Rush, A. M., et al. (2019) · doi:10.18653/v1/p19-3 · Cited by 14
Choi, H., Park, J., Kim, S., Kim, J., Lee, D., Bae, S., Shin, H., & Lee, D. (2024) · bioRxiv (Cold Spring Harbor Laboratory) · doi:10.1101/2024.05.08.593094 · Cited by 13
Are Prompt-based Models Clueless?
Kavumba, P., Ryo, T., & Oda, Y. (2022) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2022.acl-long.166 · Cited by 32
Increasing alignment of large language models with language processing in the human brain
Gao, C., Ma, Z., Chen, J., Li, P., Huang, S., & Li, J. (2025) · Nature Computational Science · doi:10.1038/s43588-025-00863-0 · Cited by 52
“Past studies have highlighted certain trivial patterns in the attention matrices within a given context, such as a tendency to focus on the first word of a sentence, the immediately preceding word 37 , or the word itself 38 .”
Deeply Tensor Compressed Transformers for End-to-End Object Detection
Zhen, P., Gao, Z., Hou, T., Cheng, Y. G., & Chen, H. (2022) · Proceedings of the AAAI Conference on Artificial Intelligence · doi:10.1609/aaai.v36i4.20397 · Cited by 17
“However, not all the heads contribute equally for making predictions (Vig and Belinkov 2019).”
BackgroundMy Body is a Cage: the Role of Morphology in Graph-Based Incompatible ControlPreprint
Kurin, V., Igl, M., Rocktäschel, T., Böhmer, W., & Whiteson, S. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2010.01856 · Cited by 54
“Similarly, in Natural Language Processing, transformers were shown to perform better without an explicit structural bias and even learn such structures from data (Vig & Belinkov, 2019; Goldberg, 2019; Tenney et al., 2019; Peters et al., 2018).”
How BPE Affects Memorization in TransformersPreprint
Kharitonov, E., Baroni, M., & Hupkes, D. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2110.02782 · Cited by 39
“…et al., 2019; Korrel et al., 2019; Mul and Zuidema, 2019; Raunak et al., 2019; Saxton et al., 2019; Kim and Linzen, 2020; Dankers et al., 2021; Vig and Belinkov, 2019; Dubois et al., 2020; Hupkes et al., 2020; Kharitonov and Chaabouni, 2020) comparatively little is known about what factors…”
Valcamonico, D., Baraldi, P., Francesco Amigoni, A., & Zio, E. (2022) · Proceedings of the Institution of Mechanical Engineers Part O Journal of Risk and Reliability · doi:10.1177/1748006x221140196 · Cited by 23
ProtRNA: A protein-derived RNA language model by cross-modality transfer learning
Zhang, R., Ma, B., Xu, G., & Ma, J. (2025) · Cell Systems · doi:10.1016/j.cels.2025.101371 · Cited by 14
Updated Headline Generation: Creating Updated Summaries for Evolving News Stories
Panthaplackel, S., Benton, A., & Dredze, M. H. (2022) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2022.acl-long.446 · Cited by 19
“Here we follow the method proposed in Vig and Belinkov (2019) and aggregate attention across classes of context token types to reduce the number of attention distributions.”
MethodSparse Attentive Memory Network for Click-through Rate Prediction with Long Sequences
Lin, Q., Zhou, W.-J., Wang, Y., Da, Q., Chen, Q.-G., & Wang, B. (2022) · ACM International Conference on Information and Knowledge Management (CIKM) · doi:10.1145/3511808.3557095 · Cited by 15
“In order to visualize the degree of the attention dispersion, we calculate the entropy of the attention distribution [13, 39]:”
MethodAttention uncovers task-relevant semantics in emotional narrative understanding
Nguyen, T.-S., Wu, Z., & Ong, D. C. (2021) · Knowledge-Based Systems · doi:10.1016/j.knosys.2021.107162 · Cited by 12
“These self-attention distributions have been shown to encode or align with syntatic information such as part-of-speech, dependency relations and coreference [64, 60, 13].”
BackgroundTINet: Multi-dimensional Traffic Data Imputation via Transformer Network
Song, X., Ye, Y., & Yu, J. J. Q. (2021) · Lecture notes in computer science · doi:10.1007/978-3-030-86362-3_25 · Cited by 11
End-to-End Simultaneous Speech Translation with Differentiable Segmentation
Zhang, S., & Feng, Y. (2023) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2023.findings-acl.485 · Cited by 33
“, which affects the modeling capability of the attention mechanism (Vig and Belinkov, 2019; Ding et al., 2019; Valentini-Botinhao and King, 2021).”
BackgroundHow Accurate are GPT-3’s Hypotheses About Social Science Phenomena?
Rosenbusch, H., Stevenson, C. E., & van der Maas, H. L. J. (2023) · Digital Society · doi:10.1007/s44206-023-00054-2 · Cited by 23
“…input words into numerical vectors, recombine and transform these vectors (as done with predictor variables in logistic regression), and adjust the numerical weights to maximize word prediction accuracy for texts within the training data (for details, see Vig & Belinkov, 2019; Wolf et al., 2020).”
Unveiling and Mitigating Memorization in Text-to-Image Diffusion Models Through Cross Attention
Ren, J., Li, Y., Zeng, S., Xu, H., Lyu, L., Xing, Y., & Tang, J. (2024) · Lecture notes in computer science · doi:10.1007/978-3-031-72980-5_20 · Cited by 70
Valcamonico, D., Baraldi, P., Macêdo, J. B., Moura, M. D. C., Brown, J., Gauthier, S., & Zio, E. (2025) · Reliability Engineering & System Safety · doi:10.1016/j.ress.2025.110834 · Cited by 13
FedNLP: An Interpretable NLP System to Decode Federal Reserve Communications
Lee, J., Youn, H. L., Stevens, N., Poon, J., & Han, S. C. (2021) · International ACM SIGIR Conference on Research and Development in Information Retrieval (SIGIR) · doi:10.1145/3404835.3462785 · Cited by 17
“In linguistic tasks, visualisation has shown to be useful tool for understanding deep neural networks such as LSTMVis [21], Seq2Seq-Vis [20], BertViz [24], ExBERT [9], or LIT [22].”
MethodModeling Uncertainty in Personalized Emotion Prediction with Normalizing Flows
Miłkowski, P., Karanowski, K., Wielopolski, P., Kocoń, J., Kazienko, P., & Zięba, M. (2023) · IEEE ... International Conference on Data Mining workshops · doi:10.1109/icdmw60847.2023.00103 · Cited by 13
“It is possible to fine-tune the language model using the loss function of the final model.”
MethodTowards Human-Centered Summarization: A Case Study on Financial News
Passali, T., Gidiotis, A., Chatzikyriakidis, E., & Tsoumakas, G. (2021) · Cited by 26
On-the-Fly Attention Modulation for Neural Generation
Dong, Y., Bhagavatula, C., Lu, X., Hwang, J. D., Bosselut, A., Cheung, J. C. K., & Choi, Y. (2021) · Findings of the Association for Computational Linguistics: ACL-IJCNLP 2021 · doi:10.18653/v1/2021.findings-acl.107 · Cited by 10
“, 2019) for our experiments, which has achieved state-of-the-art performance on a variety of generation tasks (Vig and Belinkov, 2019).”
BackgroundDeep Learning Approach to Impact Classification in Sensorized Panels Using Self-Attention
Karmakov, S., & Aliabadi, M. H. (2022) · Sensors · doi:10.3390/s22124370 · Cited by 13
“Deeper analysis into Self and Multi-Headed Attention can be found in [37,38].”
MethodMulti-Task Learning Using BERT With Soft Parameter Sharing Between Layers
Pahari, N., & Shimada, K. (2022) · Joint International Conference on Soft Computing and Intelligent Systems and International Symposium on Advanced Intelligent Systems (SCIS&ISIS) · doi:10.1109/scisisis55246.2022.10001943 · Cited by 17
“VigandBelinkar [18] studied the layers of the transformer language model and found that initial layers generally encode positional relations, middle layers mostly capture dependency relations, and later layers capture the unique patterns and structures.”
BackgroundMethodResultInfluentialFMMformer: Efficient and Flexible Transformer via Decomposed Near-field and Far-field AttentionPreprint
Nguyen, T. M., Suliafu, V., Osher, S., Chen, L., & Bao, W. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2108.02347 · Cited by 11
Shen, Z., Liu, W. N., & Xu, S. (2024) · IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing · doi:10.1109/jstars.2024.3496725 · Cited by 11
“3 [37].”
Kallergis, G., Asgari, E., Empting, M., Hirsch, A. K. H., Klawonn, F., & McHardy, A. C. (2025) · Communications Chemistry · doi:10.1038/s42004-025-01484-4 · Cited by 11
“Wealsocomparedusingthe fi rsttokenversus all tokens, as the fi rst token encapsulates sequence information and receives the most attention 25,33 .”
An, T., Park, S., Yoon, S. M., Lee, Y., Ra, H. W., Lee, S., & Seo, M. W. (2025) · Journal of environmental chemical engineering · doi:10.1016/j.jece.2025.117526 · Cited by 14
Centering-based Neural Coherence Modeling with Hierarchical Discourse Segments
Jeon, S., & Strube, M. (2020) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.604 · Cited by 20
“Recent work shows that multi-head attention of a pretrained language model represents important linguistic notions of the input sequence (Clark et al., 2019; Vig and Belinkov, 2019; Sen et al., 2020).”
BackgroundAttention weights accurately predict language representations in the brain
Lamarre, M., Chen, C., & Deniz, F. (2022) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2022.findings-emnlp.330 · Cited by 26
Pair the Dots: Jointly Examining Training History and Test Stimuli for Model InterpretabilityPreprint
Meng, Y., Fan, C. C., Sun, Z., Hovy, E. H., Wu, F., & Li, J. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2010.06943 · Cited by 13
“rrano and Smith,2019; Wiegreffe and Pinter,2019;Vashishth et al.,2019). For example,Ghaeini et al.(2018) applied the attention mechanism to interpret models for the task of natural language inference;Vig and Belinkov (2019);Tenney et al.(2019);Clark et al.(2019) analyzed the attention structures inside self-attentions…”
MethodLazyFormer: Self Attention with Lazy UpdatePreprint
Ying, C., Ke, G., He, D., & Liu, T. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2102.12702 · Cited by 30
“Vig and Yonatan (2019); Vig (2019) show the attention matrices are similar in different layers, especially in the adjacent layers.”
BackgroundAdvancing data-driven turbulence modeling with transformer neural networks: A comprehensive review
Nawaz, M., Ali, B., & Karim, T. (2025) · Next research. · doi:10.1016/j.nexres.2025.100618 · Cited by 8
Wu, D., Ahmad, W. U., & Chang, K.-W. (2023) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2023.emnlp-main.410 · Cited by 8
UAT: Universal Attention Transformer for Video Captioning
Im, H., & Choi, Y. S. (2022) · Sensors · doi:10.3390/s22134817 · Cited by 12
“In [13], the authors analyzed that each encoder layer output has slightly different information about the relationship between features.”
BackgroundIlinykh, N., & Dobnik, S. (2022) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2022.findings-acl.320 · Cited by 15
“It has also been shown that attention on highly complex phenomena (named entities) would happen in deeper layers of the model, while low-level constructs (determiners) are attended much earlier in the layers of both unimodal (Vig and Belinkov, 2019), and multi-modal (Ilinykh and Dobnik, 2021) architectures.”
BackgroundExplaining Classes through Stable Word Attributions
Rönnqvist, S., Kyröläinen, A.-J., Myntti, A., Ginter, F., & Laippala, V. (2022) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2022.findings-acl.85 · Cited by 17
Attention as a Guide for Simultaneous Speech Translation
Papi, S., Negri, M., & Turchi, M. (2023) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2023.acl-long.745 · Cited by 53
Effective Attention Sheds Light On Interpretability
Sun, K., & Marasović, A. (2021) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2021.findings-acl.361 · Cited by 23
Park, J., Kim, S., Kim, J., Lee, D., Bae, S., Shin, H., Lee, D., & Choi, H. (2025) · Advanced Science · doi:10.1002/advs.202513210 · Cited by 27
“These models benefit from long-term memory capabilities inherent in neural networks and can handle variable token lengths 29 .”
Attention Analysis and Calibration for Transformer in Natural Language Generation
Lu, Y., Zhang, J., Zeng, J., Wu, S., & Zong, C. (2022) · IEEE/ACM Transactions on Audio Speech and Language Processing · doi:10.1109/taslp.2022.3180678 · Cited by 14
“about the relationship between inputs and outputs, such as syntactic information [46], [47].”
BackgroundBio-Inspired Mamba for Antibody–Antigen Interaction Prediction
Liu, X., Fu, H., Yang, Y., & Zhang, J. (2025) · Biomolecules · doi:10.3390/biom15060764 · Cited by 10
“Following [40], we assign the attention score of each token ( α j ) by summing attention coefficients it receives from all others in the last SSM layer, as shown in Equation (7).”
Li, C., Wang, S., Zhang, Y., Zhang, J., & Zong, C. (2023) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2023.emnlp-main.1026 · Cited by 20
MAT: Morphological Adaptive Transformer for Universal Morphology Policy Learning
Li, B., Li, H., Zhu, Y., & Zhao, D. (2024) · IEEE Transactions on Cognitive and Developmental Systems · doi:10.1109/tcds.2024.3383158 · Cited by 18
“They consider that the self-attention mechanism [22], [23] of the transformer is equivalent to the information transmission mechanism of the GNN. Studies show that the more effectively the trans-former networks make use of morphological information [24], the better the universal control policies…”
BackgroundKunz, J. (2024) · Linköping studies in science and technology. Dissertations · doi:10.3384/9789180754712 · Cited by 8
Morph Call: Probing Morphosyntactic Content of Multilingual Transformers
Mikhailov, V., Serikov, O., & Artemova, E. (2021) · doi:10.18653/v1/2021.sigtyp-1.10 · Cited by 13
Do Multilingual Neural Machine Translation Models Contain Language Pair Specific Attention Heads?
Kim, Z. M., Besacier, L., Nikoulina, V., & Schwab, D. (2021) · Findings of the Association for Computational Linguistics: ACL (Findings of ACL) · doi:10.18653/v1/2021.findings-acl.250 · Cited by 16
Multi-resolution Annotations for Emoji Prediction
Ma, W., Liu, R., Wang, L., & Vosoughi, S. (2020) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2020.emnlp-main.542 · Cited by 10
“…Transformer model encode mainly task-specific features for predictions (Kovaleva et al., 2019), while shallower layers extract fundamental and low-level linguistic features (e.g., the middle Transformer layers attend mostly to syntactic features (Vig and Belinkov, 2019; Hewitt and Man-ning, 2019)).”
BackgroundMemory for prediction: A Transformer-based theory of sentence processing
Ryu, S. H., & Lewis, R. L. (2025) · Journal of Memory and Language · doi:10.1016/j.jml.2025.104670 · Cited by 16
Kurasawa, H., Waki, K., Seki, T., Chiba, A., Fujino, A., Hayashi, K., Nakahara, E., Haga, T., Noguchi, T., & Ohe, K. (2024) · JMIR AI · doi:10.2196/56700 · Cited by 7
Transforming decoder-only models into encoder-only models with improved understanding capabilities
Huang, Z., Huang, X., Wu, A., Wang, X., & Cheng, G. (2024) · Knowledge-Based Systems · doi:10.1016/j.knosys.2024.112907 · Cited by 15
On Applicability of Neural Language Models for Readability Assessment in Filipino
Ibanez, M. A., Reyes, L. L. A., Sapinit, R., Hussien, M. A., & Imperial, J. M. (2022) · Lecture notes in computer science · doi:10.1007/978-3-031-11647-6_118 · Cited by 5
Chen, N., Sun, Q., Zhu, R., Li, X., Lu, X., & Gao, M. (2022) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2022.findings-emnlp.295 · Cited by 14
You Are My Type! Type Embeddings for Pre-trained Language Models
Saeed, M., & Papotti, P. (2022) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2022.findings-emnlp.336 · Cited by 10
“PLMs have been largely studied in the last years, with most analysis focusing on the attention mechanism (Voita et al., 2019; Vig and Belinkov, 2019) and on the role of embeddings (Rogers et al., 2020; Li et al., 2021; Clark et al., 2019).”
BackgroundFollow-Up Attention: An Empirical Study of Developer and Neural Model Code Exploration
Paltenghi, M., Pandita, R., Henley, A. Z., & Ziegler, A. (2024) · IEEE Transactions on Software Engineering · doi:10.1109/tse.2024.3445338 · Cited by 15
“Additionally, existing work [9], [10], [11], [12] also suggests that the attention mechanism reflects or encodes objective properties of the source code processed by the model.”
BackgroundAnalyzing European Migrant-related Twitter Deliberations
Khatua, A., & Nejdl, W. (2021) · International World Wide Web Conference (WWW) · doi:10.1145/3442442.3453459 · Cited by 12
“BertViz tool can also generate the overall model view, which helps us to see the ‘attention across all of the model’s layers and heads for a particular input’ tweet [26, 27].”
MethodAttention-based Contrastive Learning for Winograd Schemas
Klein, T., & Nabi, M. (2021) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2021.findings-emnlp.208 · Cited by 5
What Do Language Models Hear? Probing for Auditory Representations in Language Models
Ngo, J., & Kim, Y. (2024) · Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · doi:10.18653/v1/2024.acl-long.297 · Cited by 5
How Context Affects Language Models' Factual Predictions
Fabio Petroni, P. L. (2020) · Automated Knowledge Base Construction (AKBC) · doi:10.24432/c5201w · Cited by 4
“…of “probes” have been developed to analyse the syntactic structures, such as syntax trees [Marvin and Linzen, 2018, Hewitt and Manning, 2019, Vig and Belinkov, 2019], negative polarity items [Warstadt and Bowman, 2019, Warstadt et al., 2019], semantic fragments [Richardson et al., 2019],…”
BackgroundFrom Imitation to Introspection: Probing Self-Consciousness in Language Models
Chen, S., Yu, S., Zhao, S., & Lu, C. (2025) · Findings of the Association for Computational Linguistics: ACL 2025 · doi:10.18653/v1/2025.findings-acl.392 · Cited by 29
Unsupervised Quality Estimation for Neural Machine Translation
Fomicheva, M., Sun, S., Yankovskaya, L., Blain, F., Guzmán, F., Fishel, M., Aletras, N., Chaudhary, V., & Specia, L. (2020) · Transactions of the Association for Computational Linguistics · doi:10.1162/tacl_a_00330 · Cited by 10
“Recent work on attention inter-pretability showed that attention weights in Trans-former networks might not be readily interpretable (Vashishth et al., 2019; Vig and Belinkov, 2019).”
BackgroundYang, T., Yang, F., & Li, Y. (2025) · JMIR Medical Education · doi:10.2196/72660 · Cited by 5
“This study uses Bert and dynamic topic modeling (DTM) and other text mining methods to conduct topic mining [3,4], identification, and analysis of TCM education policy texts to study the development direction and evolutionary path of TCM education policies, providing guidance and references for…”
Mapping the neuronal building blocks of human language with language models
Cai, J., Kfir, Y., Jamali, M., Huang, H., Kim, Y. J., Cash, S. S., & Williams, Z. M. (2026) · Nature · doi:10.1038/s41586-026-10691-5 · Cited by 11
“…the specific sentences being construction, with contextual model predic-tivities increasing up to a second or more before utterance—revealing long contextual integration windows 55 that are largely consistent with those predicted by prior behavioural 56,57 and neurophysiological 22,23 studies.”
Power Quality Disturbance Classification Using Transformer Network
Chiam, D. H., & Lim, K. H. (2022) · Communications in computer and information science · doi:10.1007/978-3-031-15784-4_21 · Cited by 4
Layer Configurations of BERT for Multitask Learning and Data Augmentation
Pahari, N., & Shimada, K. (2024) · Journal of Advanced Computational Intelligence and Intelligent Informatics · doi:10.20965/jaciii.2024.p0029 · Cited by 4
DP-FFN: Block-Based Dynamic Pooling for Accelerating Feed-Forward Layers in Transformers
Tang, J., Wang, S., Chen, S., & Kang, Y. (2024) · IEEE International Symposium on Circuits and Systems proceedings · doi:10.1109/iscas58744.2024.10558119 · Cited by 4
“Although researchers have analyzed the function of self-attention layers extensively [3]–[5], it is important to note that they only account for one-third of the parameters in a typical Transformer ( 4 d 2 per layer, where d is the model’s hidden dimension).”
BackgroundFocus on the Present: A Regularization Method for the ASR Source-Target Attention Layer
Chen, N., Żelasko, P., Villalba, J., & Dehak, N. (2021) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp39728.2021.9414648 · Cited by 4
GradTS: A Gradient-Based Automatic Auxiliary Task Selection Method Based on Transformer Networks
Ma, W., Lou, R., Zhang, K., Wang, L., & Vosoughi, S. (2021) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2021.emnlp-main.455 · Cited by 10
“Prior research reveals that in a Transformer-based model, each attention head attends on specialized linguistic features (Clark et al., 2019; Voita et al., 2019; Mareček and Rosa, 2019; Lin et al., 2019; Vig and Belinkov, 2019; Kovaleva et al., 2019).”
MethodLi, R., Wen, X., Xing, L., Wang, L., Murray, G., & Carenini, G. (2022) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2022.emnlp-main.694 · Cited by 18
“For examples, Vig and Belinkov (2019) visually explore attention patterns in BERT and GPT-2, analyzing their alignment with syntax.”
Using Interpretation Methods for Model Enhancement
Chen, Z., Jiang, C., & Tu, K. (2023) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2023.emnlp-main.28 · Cited by 4
“Jain and Wallace (2019) alters attention weights and finds no significant impact on predictions, while Vig and Belinkov (2019) finds that attention aligns most strongly with dependency relations in the middle layers of GPT-2 and thus is interpretable.”
BackgroundInfluence Patterns for Explaining Information Flow in BERT
Lu, K., Wang, Z., Mardziel, P., & Datta, A. (2021) · neural information processing systems · doi:10.48550/arxiv.2011.00740 · Cited by 4
“A line of related works analyze self-attention weights of BERT[5, 45, 24, 12], where attention heads are found to have direct correspondences with specific dependency relations.”
BackgroundInterpretable long-term gait trajectory prediction based on Interpretable-Concatenation former
Yin, J., Chen, M., Zhang, C., Xue, T., Zhang, M., & Zhang, T. (2023) · Robotica · doi:10.1017/s0263574723001492 · Cited by 4
“Research on the interpretation of neural networks proves that the value of the attention of the Transformer structure is indeed positively correlated with the importance of variables [25, 26, 27].”
BackgroundFLAT: Fusing layer representations for more efficient transfer learning in NLP
Zhu, W., Li, Y., Liu, C., & Zhao, Y. (2024) · Neural Networks · doi:10.1016/j.neunet.2024.106631 · Cited by 4
MO-Transformer: Extract High-Level Relationship Between Words for Neural Machine Translation
Duan, S., & Zhao, H. (2024) · IEEE/ACM Transactions on Audio Speech and Language Processing · doi:10.1109/taslp.2024.3507556 · Cited by 3
Liu, Z., & Chen, N. F. (2022) · Findings of the Association for Computational Linguistics: NAACL · doi:10.18653/v1/2022.findings-naacl.201 · Cited by 4
The Architectural Bottleneck Principle
Pimentel, T., Valvoda, J., Stoehr, N., & Cotterell, R. (2022) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2022.emnlp-main.788 · Cited by 11
Arabic News Summarization based on T5 Transformer Approach
Ismail, Q., Alissa, K., & Duwairi, R. (2023) · International Conference on Information and Communication Systems (ICICS) · doi:10.1109/icics60529.2023.10330509 · Cited by 7
“Recently, the use of NLP systems in decision-making and automation tasks is increased in different domains [27].”
BackgroundZhang, Z., Xu, P., Zhang, G., & Hsu, L. (2023) · IEEE International Conference on Intelligent Transportation Systems (ITSC) · doi:10.1109/itsc57777.2023.10422660 · Cited by 3
“Researchers tried to interpret which kinds of words are essential in natural language processing by exploring the attention matrix [38].”
BackgroundRobustifying Point Cloud Networks by Refocusing
Levi, M. Y., & Gilboa, G. (2025) · International Conference on 3D Vision (3DV) · doi:10.1109/3dv66043.2025.00110 · Cited by 6
Metadata
- Authors
- Vig, J., & Belinkov, Y.
- Affiliations
- Palo Alto Research Center (US)
- Harvard University (US)
- Venue
- Proceedings of the 2019 ACL Workshop BlackboxNLP: Analyzing and Interpreting Neural Networks for NLP
- Published
- 2019
- Pages
- 63-76
- OpenAlex
- W2949603537
- Cited by
- 301
- References
- 26
- Citations by year
- 2026: 23 · 2025: 36 · 2024: 41 · 2023: 43 · 2022: 48 · 2021: 51 · 2020: 49 · 2019: 10
- FWCI
- 15.12
- Type
- conference paper
- Language
- en
- Open access
- hybrid
- doi.org
- Licence
- cc-by
- Locations
- BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP (BlackboxNLP) (publishedVersion, cc-by)
- arXiv (Cornell University) (submittedVersion)
- arXiv (Cornell University)
- Topics
- Physical Sciences › Computer Science › Artificial Intelligence › Topic Modeling
- Physical Sciences › Computer Science › Artificial Intelligence › Natural Language Processing Techniques
- Physical Sciences › Computer Science › Artificial Intelligence › Explainable Artificial Intelligence (XAI)
- Keywords
- attention mechanism, transformer models, GPT-2, attention visualization, syntax, dependency relations, parts of speech, layer depth, attention heads, pre-trained language models
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.