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 201–300 of 310
Ma, C., Tamura, A., Utiyama, M., Zhao, T., & Sumita, E. (2020) · Journal of Natural Language Processing · doi:10.5715/jnlp.27.531 · Cited by 3
“In conclusion, there is no significant difference among different heads for learning word alignments, although there is some difference in other tasks (Mareček and Rosa 2019; Clark, Khandelwal, Levy, and Manning 2019; Vig and Belinkov 2019).”
BackgroundDesot, T., Clercq, O. D., & Hoste, V. (2021) · International conference Recent advances in natural language processing · doi:10.26615/978-954-452-072-4_040 · Cited by 4
Syntax Representation in Word Embeddings and Neural Networks -- A SurveyPreprint
Limisiewicz, T., & Mareček, D. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2010.01063 · Cited by 13
“It can be evaluated using Dependency Alignment [34] which sums the attention weights at the positions corresponding to the pairs of tokens forming a dependency edge in the tree.”
InfluentialRecent Progress in Understanding Transformer and Developing Its Surpasser: A Survey
Liu, M., Yang, D., Beyette, F. R., Wang, S., & Zhao, L. (2024) · IEEE Signal Processing in Medicine and Biology Symposium · doi:10.1109/spmb62441.2024.10842272 · Cited by 2
“Various methods have been developed to visualize and understand attention patterns, analyze hidden representations, and decode the decision-making processes within these models [18][19][16].”
Beyond KV caching: Shared attention for efficient LLMs
Liao, B., & Vargas, D. V. (2025) · Neurocomputing · doi:10.1016/j.neucom.2025.130587 · Cited by 19
Sanger, T. D. (2025) · Neural Computation · doi:10.1162/neco.a.29 · Cited by 4
Transformer with Syntactic Position Encoding for Machine Translation
Xie, Y., Wang, W., Du, M., & He, Q. (2021) · International conference Recent advances in natural language processing · doi:10.26615/978-954-452-072-4_172 · Cited by 5
Fault Report Generation for ICT Systems by Jointly Learning Time-series and Text Data
Fukuda, N., Wu, C., Horiuchi, S., & Tayama, K. (2022) · IEEE/IFIP Network Operations and Management Symposium (NOMS) · doi:10.1109/noms54207.2022.9789784 · Cited by 8
“It illustrates the names of the extracted metrics and the attention weights [26]–[28] of the metadata encoder of the proposed method when the stress-cpu is injected into cartservice .”
BackgroundAn Overview of Part-of-Speech Tagging Methods and Datasets for Malay Language
Chua, C. L., Lim, T. M., & See, K. T. (2023) · International Conference on Software Engineering and Computer Systems · doi:10.1109/icsecs58457.2023.10256423 · Cited by 2
REFER: An End-to-end Rationale Extraction Framework for Explanation Regularization
Madani, M. R. G., & Minervini, P. (2023) · Conference on Computational Natural Language Learning · doi:10.18653/v1/2023.conll-1.40 · Cited by 11
Towards a Mechanistic Interpretation of Multi-Step Reasoning Capabilities of Language Models
Hou, Y., Li, J., Fei, Y., Stolfo, A., Zhou, W., Zeng, G., Bosselut, A., & Sachan, M. (2023) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2023.emnlp-main.299 · Cited by 93
How Does a Transformer Learn Compression? An Attention Study on Huffman and LZ4
Seo, B., & No, A. (2023) · IEEE Access · doi:10.1109/access.2023.3341512 · Cited by 3
“Numerous efforts aim to demystify its workings in various NLP tasks [7], [8] or to re-engineer attention for better clarity [9], [10], [11].”
BackgroundDeep Learning Techniques for Text Generation to Support Augmentative and Alternative Communication
Prete, A. L., Landi, D., Andreini, P., & Bianchini, M. (2023) · IEEE International Conference on Metrology for eXtended Reality, Artificial Intelligence and Neural Engineering (MetroXRAINE) · doi:10.1109/metroxraine58569.2023.10405778 · Cited by 2
“Natural language models are becoming increasingly sophisticated, with the newest ones being able to generate highly consistent and contextually relevant responses [5].”
BackgroundA Domain-Invariant Transfer Learning by Bert for Cross-Domain Sentiment Analysis
Mahmud, A., & Shimada, K. (2024) · International Journal of Computer Science and Information Technology · doi:10.5121/ijcsit.2024.16303 · Cited by 2
“Studies [27, 28] suggested that BERT’s final encoder layers are highly specialized for specific tasks, whereas the initial layers mainly encode positional information, and the middle layers focus on dependency relations.”
BackgroundMethodA smart virtual keyboard to improve communication of locked-in patients
Prete, A. L., Andreini, P., Bonechi, S., & Bianchini, M. (2025) · Computer Standards & Interfaces · doi:10.1016/j.csi.2024.103963 · Cited by 3
Zhang, Z., Xu, P., & Zhang, G. (2025) · Applied Soft Computing · doi:10.1016/j.asoc.2025.113773 · Cited by 6
Language Model Using Neural Turing Machine Based on Localized Content-Based Addressing
Lee, D., Park, J., Koo, M., & Kim, J. (2020) · Applied Sciences · doi:10.3390/app10207181 · Cited by 2
“The Transformer has been used in LMs, and has been reported to significantly outperform LSTM RNN-based LMs [9].”
MethodDesot, T., Clercq, O. D., & Hoste, V. (2022) · Workshop on Challenges and Applications of Automated Extraction of Socio-political Events from Text (CASE) · doi:10.18653/v1/2022.case-1.4 · Cited by 4
“We first apply our automatic threshold selection technique per self-attention transformer cell by calculating the attention values per isolated head per layer (Vig and Belinkov, 2019), for each of the 12 x 12 transformer cells (144 times) on the test data (Section 5).”
BackgroundMethodIrEne-viz: Visualizing Energy Consumption of Transformer Models
Lal, Y. K., Singh, R., Trivedi, H. K., Cao, Q., Balasubramanian, A., & Balasubramanian, N. (2021) · Conference on Empirical Methods in Natural Language Processing: System Demonstrations (EMNLP) · doi:10.18653/v1/2021.emnlp-demo.29 · Cited by 2
“For NLP, a number of tools exist for investigating specific model classes, such as RNNs (Strobelt et al., 2018), Transformers (Hoover et al., 2020; Vig and Belinkov, 2019), or text generation (Strobelt et al., 2018).”
MethodEvery Layer Counts: Multi-Layer Multi-Head Attention for Neural Machine Translation
Ampomah, I. K. E., McClean, S. I., Zhiwei, L., & Hawe, G. I. (2020) · The Prague Bulletin of Mathematical Linguistics · doi:10.14712/00326585.005 · Cited by 2
“As noted by Raganato et al. (2018) and Vig and Belinkov (2019), while some self-attention heads focus on long-distance relationships, other heads capture the shorter distance relationships between the input tokens.”
BackgroundMethodResultInfluentialMask-Align: Self-Supervised Neural Word AlignmentPreprint
Chen, C., Sun, M., & Liu, Y. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2012.07162 · Cited by 2
“Note that leaky attention is different from adding a special token in the source sequence, which will share the same high attention weights with the existing collector instead of calibrating it (Vig and Belinkov, 2019).”
BackgroundUnderstood in Translation, Transformers for Domain UnderstandingPreprint
Christofidellis, D., Manica, M., Georgopoulos, L., & Vandierendonck, H. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2012.10271 · Cited by 2
“Recent efforts are focusing on the analysis of such attention mechanisms to explain and interpret the predictions and the quality of the models (Vig and Belinkov 2019; Hoover, Strobelt, and Gehrmann 2019).”
BackgroundMulti-Stream TransformersPreprint
Burtsev, M., & Rumshisky, A. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2107.10342 · Cited by 3
“…produce a better representation for ”low-level” NLP tasks such as POS-tagging, while the representations computed at middle layers are better suited for recovering syntactic information (Ten-ney et al., 2019; Hewitt and Manning, 2019; Goldberg, 2019; Jawahar et al., 2019; Vig and Belinkov, 2019).”
BackgroundExploiting a Zoo of Checkpoints for Unseen Tasks
Huang, J., Qiu, Q., & Church, K. (2021) · neural information processing systems · doi:10.48550/arxiv.2111.03628 · Cited by 3
“Since layers capture different levels of information [37], the best layer is often task dependent.”
Gao, C., Ma, Z., Chen, J., Li, P., Huang, S., & Li, J. (2024) · bioRxiv (Cold Spring Harbor Laboratory) · doi:10.1101/2024.08.15.608196 · Cited by 2
“Prior studies have highlighted certain patterns in LLMs’ attention matrices, such as a tendency to focus on the first word of a sentence, the immediately preceding word (Vig and Belinkov, 2019), or on the word itself (Clark et al., 2019).”
Confidence Regulation Neurons in Language Models
Stolfo, A., Wu, B., Gurnee, W., Belinkov, Y., Song, X., Sachan, M., & Nanda, N. (2024) · Advances in Neural Information Processing Systems 37 · doi:10.52202/079017-3970 · Cited by 2
Self-citationMulti-Source Probing for Open-Domain Conversational Understanding
Li, Y., Zhou, H., Zhou, J., & Huang, M. (2023) · Conference on Empirical Methods in Natural Language Processing (EMNLP) · doi:10.18653/v1/2023.emnlp-main.769 · Cited by 1
“Previous studies (Vig, 2019; Vig and Belinkov, 2019) have shown that the attention mechanism is sensitive to local features, while global features of conversations should also be considered to produce a comprehensive representation.”
BackgroundAdvancing Natural Language Processing: Beyond Embeddings
Iskandarova, S., Kuziyev, U., Ashurov, D. A., & Rakhmatullayeva, D. (2024) · International Conference on IoT, Communication and Automation Technology (ICICAT) · doi:10.1109/icicat62666.2024.10923033 · Cited by 4
Seismic Intensity Prediction with a Low-Computational-Cost Transformer-Based Tracking Method
Wang, H., Bai, Z., Bai, R., Zhao, L., Ma, L., & Han, Y. (2025) · Sensors · doi:10.3390/s25206269 · Cited by 2
“Inspired by [26,27], we observe that self-attention in adjacent layers of state-of-the-art language models exhibits very high similarity.”
Lin, H., & Liu, W. (2025) · Symmetry · doi:10.3390/sym17122058 · Cited by 43
Kumar, A., Gupta, S., Yadav, R., Yadav, U. S., Saroj, S., & Kumar, V. (2026) · European Journal of Sustainable Development Research · doi:10.29333/ejosdr/18328 · Cited by 1
DeepAlloWeb: a web server for interactive allosteric pockets prediction using protein language model
Khokhar, M., Keskin, O., & Gürsoy, A. (2026) · Journal of Molecular Biology · doi:10.1016/j.jmb.2026.169863 · Cited by 1
Liu, Y., Deng, K., Ye, Y., Wang, Z., Zhan, J., Chen, S., Hu, X., Chang, A., Shen, H., Li, Z., et al. (2026) · ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD) · doi:10.1145/3770855.3819004 · Cited by 1
“This approach is motivated by evidence that the final layer captures the most globally contextualized sequence information [35] and serves as the primary interface for downstream biological tasks [23].”
Improving word mover’s distance by leveraging self-attention matrix
Yamagiwa, H., Yokoi, S., & Shimodaira, H. (2023) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2023.findings-emnlp.746 · Cited by 3
Exploring connections between auditory hallucinations and language model structures and functions
Allen, J. D., Xia, L., Hong, L. E., & Choa, F. (2024) · Smart Biomedical and Physiological Sensor Technology · doi:10.1117/12.3013964 · Cited by 1
Momen, O., Arps, D., & Kallmeyer, L. (2023) · Proceedings of the BabyLM Challenge at the 27th Conference on Computational Natural Language Learning · doi:10.18653/v1/2023.conll-babylm.29 · Cited by 1
“This decision is based on insights from previous experiments, which indicate that syntactic information tends to be better represented in the middle layers of the transformer (Liu et al., 2019a; Vig and Belinkov, 2019; Arps et al., 2022).”
BackgroundShi, Y. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2107.00653 · Cited by 2
Training dynamics of neural language models
Saphra, N. (2021) · ERA · doi:10.7488/era/1421 · Cited by 9
Transformer with a Mixture of Gaussian Keys.Preprint
Nguyen, T., Nguyen, T. M., Le, D. D., Nguyen, K. C. D., Tran, A. N., Baraniuk, R. G., Ho, N., & Osher, S. (2021) · arXiv (Cornell University) · Cited by 1
Yadav, S., & Subbian, V. (2024) · SSRN Electronic Journal · doi:10.2139/ssrn.5023458 · Cited by 1
AgentSHAP: Interpreting LLM Agent Tool Importance with Monte Carlo Shapley Value Estimation
Horovicz, M. (2025) · arXiv · doi:10.48550/arxiv.2512.12597
“They focus on input tokens [3], attention patterns [17], or feature importance for tabular data [6].”
Language models need inductive biases to count inductively
Chang, Y., & Bisk, Y. (2024) · arXiv · doi:10.48550/arxiv.2405.20131
“We believe that injecting positional information only through a single dimension limits an SPE Transformer’s ability to build richer features based on positions, which probably explains why SPE succeeds at first token recognition but fails at modular counting.”
BackgroundFocus on the present: a regularization method for the ASR source-target attention layerPreprint
Chen, N., Żelasko, P., Villalba, J., & Dehak, N. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2011.01210
ABSTRACTING INFLUENCE PATHS FOR EXPLAINING (CONTEXTUALIZATION OF) BERT MODELSPreprint
Lu, K., Wang, Z., Mardziel, P., & Datta, A. (2021) · arXiv (Cornell University)
Understanding How BERT Learns to Identify Edits.Preprint
Stevens, S., & Su, Y. (2020) · arXiv (Cornell University)
Data-Informed Global Sparseness in Attention Mechanisms for Deep Neural NetworksPreprint
Rugina, I., Dangovski, R., Jing, L., Nakov, P., & Marin Soljacic, A. (2020) · arXiv (Cornell University) · doi:10.48550/arxiv.2012.02030
“Responding to this challenge, previous work has taken pioneering steps to discover and to explain the sparseness in the attention patters (Vig and Belinkov, 2019; Clark et al., 2019; Kovaleva et al., 2019; Yeh et al., 2023; Ruscio et al., 2023; Kobayashi et al., 2023; Biderman et al., 2023; Zhang…”
BackgroundOn-the-Fly Attention Modularization for Neural GenerationPreprint
Dong, Y., Bhagavatula, C., Lu, X., Hwang, J. D., Bosselut, A., Cheung, J. C. K., & Choi, Y. (2021) · arXiv (Cornell University)
Training with Adversaries to Improve Faithfulness of Attention in Neural Machine Translation
Moradi, P., Kambhatla, N., & Sarkar, A. (2020) · Conference of the Asia-Pacific Chapter of the Association for Computational Linguistics and the International Joint Conference on Natural Language Processing: Student Research Workshop (AACL-IJCNLP SRW) · doi:10.18653/v1/2020.aacl-srw.14 · Cited by 1
“While several studies have focused on understanding the semantic notions captured by attention (Ghader and Monz, 2017; Vig and Belinkov, 2019; Clark et al., 2019), evaluating attention as an inter-”
BackgroundInterpreting Attention-Based Models for Natural Language Processing
Signorelli, & Steven, J. (2021)
eXSTS: eXplainable Semantic Textual Similarity
Cui, J. (2021) · DalSpace (Dalhousie University)
Attention-based Contrastive Learning for Winograd SchemasPreprint
Klein, T., & Nabi, M. (2021) · arXiv (Cornell University) · doi:10.48550/arxiv.2109.05108 · Cited by 2
“Inspired by (Vig and Belinkov, 2019), we assess the impact of the attention mechanism by analyzing the attention tensor which is obtained by querying the attention of the MASK token w.”
MethodAttention Method Analysis in Sentiment Analysis for Humor Level Evaluation
Xu, Z., & Xie, Y. (2022) · International Conference on Computer Research and Development · doi:10.1109/iccrd54409.2022.9730184 · Cited by 1
Analyzing Transformers via Value Matrices
Yoshida, M., Matsumoto, K., & Kita, K. (2023) · Transactions of the Japanese Society for Artificial Intelligence · doi:10.1527/tjsai.38-2_c-mb7
Artificial Intelligence Accountability in Emergent Applications: Explainable and Fair Solutions
Zini, J. E. (2023) · Advances in computer and electrical engineering book series · doi:10.4018/978-1-6684-6937-8.ch002
Entangled Representation Learning: A Bidirectional Encoder Decoder Model
Chu, J., & Lin, Z. (2022) · International Conference on Algorithms, Computing and Artificial Intelligence (ACAI) · doi:10.1145/3579654.3579728 · Cited by 1
“Attention based neural network has proved to be much more efficient models than convolutional or recurrent neural network [30].”
MethodAI model helps decode brain activity underlying conversation
Katsnelson, A. (2023) · The Transmitter · doi:10.53053/ezyf6002
Flat: Fusing Layer Representations for More Efficient Transfer Learning in NlpPreprint
Zhu, W., Li, Y., Liu, C., & Zhao, Y. (2023) · SSRN Electronic Journal · doi:10.2139/ssrn.4460393
Improving Syntactic Probing Correctness and Robustness with Control Tasks
Ma, W., Wang, B. Z., Zhang, H., Wang, L., Coto‐Solano, R., Hassanpour, S., & Vosoughi, S. (2023) · Proceedings of the conference - Association for Computational Linguistics. Meeting · doi:10.18653/v1/2023.acl-short.35 · Cited by 1
“…with the literature, suggesting that the most contributive attention heads for encoding syntactic relations (i.e., middle layers) are identified by the probing methods even without any control tasks (Hewitt and Manning, 2019; Vig and Belinkov, 2019; Goldberg, 2019; Jawa-har et al., 2019).”
BackgroundIncorporating Unlikely Negative Cues for Distinctive Image Captioning
Fei, Z., & Huang, J. (2023) · International Joint Conference on Artificial Intelligence · doi:10.24963/ijcai.2023/83 · Cited by 5
“On the other hand, as the attention weights can learn substantial semantic knowledge [Vig and Belinkov, 2019; Kobayashi et al., 2020], it is beneficial for the student model to further conduct UNKT on the attention matrices.”
BackgroundUm agente de jornalismo automatizado cobrindo a Amazônia Azul.
Sym, Y. V. (2023) · Digital Library of Theses and Dissertations (Universidade de São Paulo) · doi:10.11606/d.3.2023.tde-22082023-142314
Taxonomy and Bert Attention Mechanism for Clustering Maintenance ReportsPreprint
Valcamonico, D., Baraldi, P., Macêdo, J. B., Moura, M. D. C., Brown, J., Gauthier, S., & Zio, E. (2023) · SSRN Electronic Journal · doi:10.2139/ssrn.4633295
Disentangling the Linguistic Competence of Privacy-Preserving BERT
Arnold, S., Kemmerzell, N., & Schreiner, A. (2023) · BlackboxNLP Workshop on Analyzing and Interpreting Neural Networks for NLP (BlackboxNLP) · doi:10.18653/v1/2023.blackboxnlp-1.5
Ryu, S. (2023) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2023.findings-emnlp.27
Roles of Scaling and Instruction Tuning in Language Perception: Model vs. Human Attention
Gao, C., Huang, S., Li, J., & Chen, J. (2023) · Findings of the Association for Computational Linguistics: EMNLP (Findings of EMNLP) · doi:10.18653/v1/2023.findings-emnlp.868 · Cited by 12
Multilingual Symptom Prediction by Simultaneous Learning Using BERT
Zhu, C., Pahari, N., & Shimada, K. (2023) · International Conference on Asian Language Processing · doi:10.1109/ialp61005.2023.10337285
“The middle layers are most predictive of dependencies [11] and are the most transferable across tasks [12].”
BackgroundExplaining Neural Spike Activity for Simulated Bio-plausible Network through Deep Sequence Learning
Kulkarni, S., Tabassum, A., Lim, S., Schuman, C. D., Theilman, B. H., Rothganger, F., Wang, F., & Aimone, J. B. (2024) · Neuro Inspired Computational Elements Conference (NICE) · doi:10.1109/nice61972.2024.10549689 · Cited by 1
“We employ a transformer attention-based mechanism to understand the dynamics among neurons [17], [18].”
MethodCell-type-specific striatal modulation of amygdalar acetylcholine in salience assignmentPreprint
Chen, A., Li, Y., Zhu, H., Gu, H., Weng, Y., Ye, Q., Guan, W., Sun, Q., Li, B., Xu, F., et al. (2024) · bioRxiv (Cold Spring Harbor Laboratory) · doi:10.1101/2024.07.30.605919 · Cited by 1
Rethinking the Role of Structural Information: How It Enhances Code Representation Learning?
Sun, Q., Chen, N., Wang, J., & Li, X. (2024) · International Joint Conference on Neural Networks (IJCNN) · doi:10.1109/ijcnn60899.2024.10651132 · Cited by 2
“Probing techniques (17; 51) are first involved in explaining the models’ behaviours.”
BackgroundAERO: Softmax-Only LLMs for Efficient Private InferencePreprint
Jha, N. K., & Reagen, B. (2024) · Qeios · doi:10.32388/wwlt24 · Cited by 3
AERO: Softmax-Only LLMs for Efficient Private InferencePreprint
Jha, N. K., & Reagen, B. (2024) · Qeios · doi:10.32388/wwlt24.2
End-to-End Detection for Key Equipment in Natural Gas Station with DETR
Liang, X., Su, H., Zhang, J., He, Y., Qin, X., & Yang, Z. (2024) · Lecture notes in electrical engineering · doi:10.1007/978-981-96-1812-5_5
Success and failure of compositional generalisation in distributional models of language
Mao, S., Huebner, P. A., & Willits, J. A. (2025) · Language Cognition and Neuroscience · doi:10.1080/23273798.2024.2443861
“Second, self-attention layers in the middle layers of GPT-2 have been found to align with dependency relations (Vig & Belinkov, 2019).”
Xu, L., Mueller, K. D., Liss, J., & Berisha, V. (2025) · IEEE International Conference on Acoustics Speech and Signal Processing · doi:10.1109/icassp49660.2025.10889946 · Cited by 2
“Previous studies reveal that shallow attention layers in transformers tend to focus on local patterns while deeper layers capture global relationships [33], [34].”
Rethinking Low-Rank Adaptation in Vision: Exploring Head-Level Responsiveness across Diverse Tasks
Zhong, Y., & Zhou, Y. (2025) · IEEE Winter Conference on Applications of Computer Vision · doi:10.1109/wacv61041.2025.00756 · Cited by 4
“For the Transformer architecture itself, various researches have examined the redundancy in attention heads through attention patterns [16], pruning attention heads [30] [3] [22], attention visualization [29], and probing tests [3].”
BackgroundBigram Knowledge Extraction from GPT-2
Yoshida, M., & Matsumoto, K. (2025) · Transactions of the Japanese Society for Artificial Intelligence · doi:10.1527/tjsai.40-3_a-o65
Interpreting Attention Mechanisms of NMT with Linguistic Features
Guanghui, C. A. I., & Junguo, Z. H. U. (2025) · IEICE Transactions on Information and Systems · doi:10.1587/transinf.2024edp7292 · Cited by 1
Mechanistic Interpretability of Transformers in Non-dictionary Setting Using Toy Datasets
Nair, V. S., Gayathri, M. N., Sharma, A., Joseph, J., & Sivaprakasam, M. (2025) · Communications in computer and information science · doi:10.1007/978-981-96-6948-6_10
Efficient uniform sampling explains non-uniform memory of narrative storiesPreprint
Mu, J., Preston, A. R., & Huth, A. G. (2025) · bioRxiv (Cold Spring Harbor Laboratory) · doi:10.1101/2025.07.31.667952 · Cited by 2
“The entropy of these attention weights is thus related to how much informa-408 tion can flow from past inputs (the story) to future predictions (recall of the story) [37].”
You Might Not Need Attention Diagonals
Cui, Y., Yao, X., Wang, S., & Hu, G. (2025) · IEEE Signal Processing Letters · doi:10.1109/lsp.2025.3601497
“However, prior studies have observed repetitive patterns: models often over-attend to diagonal elements (self-tokens) and special tokens [9], [10], [11], and such effects are not fully explainable or reliable as model explanations [12], [13].”
On the Risk of Misleading Reports: Diagnosing Textual Biases in Multimodal Clinical AI
Restrepo, D. S., Ktena, S. I., Vakalopoulou, M., Christodoulidis, S., & Ferrante, E. (2025) · Lecture notes in computer science · doi:10.1007/978-3-032-06004-4_32 · Cited by 2
Mechouma, T., Biskri, I., & Robert, S. (2025) · Lecture notes in networks and systems · doi:10.1007/978-981-96-6929-5_34
Addressing task conflicts in LLMs multi-task fine-tuning with task-specific subnetwork refinement
Wang, Y., Wan, C., Tian, X., Liu, X., & Chen, Y. (2025) · Machine Learning · doi:10.1007/s10994-025-06885-z
TensorLLM: Tensorising Multi-Head Attention for Enhanced Reasoning and Compression in LLMs
Gu, Y., Zhou, W., Iacovides, G., & Mandic, D. P. (2025) · International Joint Conference on Neural Networks (IJCNN) · doi:10.1109/ijcnn64981.2025.11228585 · Cited by 20
“By exploiting the intuitions behind MHA [17]–[19], we propose a novel and intuitive multi-head tensorisation method.”
Rizgelienė, I., Marcinkevičius, V., & Plikynas, D. (2026) · EPJ Data Science · doi:10.1140/epjds/s13688-026-00648-z
Rethinking the Design of Sequence-to-Sequence Models for Efficient Machine Translation
Elbayad, M. (2020) · theses.fr (ABES) · doi:10.70675/97c82c7ez86c5z4bdbza801z12232614c776 · Cited by 2
Reliable Batch-Sequential Model Editing via Enhanced Editing Anchor Compression
Xu, H., Peng, Z., Wang, X., Guo, H., & Ling, Z. (2026) · ACM Transactions on Intelligent Systems and Technology · doi:10.1145/3803803
“However, the knowledge acquired during pretraining may be incorrect or outdated, leading to hallucinations that significantly impair their performance and effectiveness in downstream tasks [21, 39, 57].”
Characterization and detection of semantic textual outliers
Pantin, J. (2023) · theses.fr (ABES) · doi:10.70675/3abc7c1bz47b8z44b9z9a09z23c263b7a2af
Metheniti, E. (2023) · theses.fr (ABES) · doi:10.70675/2f81071bz4724z44ecz999dz1acee85d8951 · Cited by 5
Adeseye, A., Adeseye, A., Tenhunen, H., & Isoaho, J. (2026) · Lecture notes in networks and systems · doi:10.1007/978-3-032-32732-1_8
Employing Transformers and Humans for Textual-Claim Verification
Saeed, M. (2022) · theses.fr (ABES) · doi:10.70675/3e02a3a6z8281z4d84z8f38ze617eaaf969b · Cited by 2
Multimodal learning to predict breast cancer prognosis
Mbaye, N. M. (2024) · theses.fr (ABES) · doi:10.70675/cdccc54az52f7z4e20za5a4z3ec09cd3a564
Improving Representations for Language Modeling
Godey, N. (2024) · theses.fr (ABES) · doi:10.70675/b6a15d0ez15bez43e5za967z16a069e0a8bb
Nath, B. (2026) · International Journal of Speech Technology · doi:10.1007/s10772-026-10267-8
“Post-hoc explainability methods such as SHAP (Lundberg & Lee, 2017) and LIME (Ribeiro et al., 2016) have been adapted to NLP tasks including text classification, sentiment analysis, and more recently to NMT (Vig & Belinkov, 2019).”
Leveraging transformer model and heuristic strategies for solving the Traveling Salesman Problem
Levchenko, D., & Taillard, É. D. (2026) · Neural Computing and Applications · doi:10.1007/s00521-026-12120-0
“Originally introduced to improve performance in machine translation, these models rely on an attention mechanism [2] that enables them to handle long-range dependencies within sequences without requiring a recurrent structure.”
Nath, B., Gulzar, Y., Ya’u, B. I., & Mir, M. S. (2026) · Discover Artificial Intelligence · doi:10.1007/s44163-026-01371-4
“Post-hoc explainability methods such as SHAP [25] and LIME [26] have been adapted to NLP tasks including text classification, sentiment analysis, and more recently to NMT [27].”
A Deep Layer Limit Analysis of Transformer
Jin, L., Huang, J., Sun, M., & Wu, C. (2026) · Journal of Machine Learning · doi:10.4208/jml.250518 · Cited by 1
Chen, D., Chen, N., Chen, Y., Zhu, H., & Zhu, Z. (2026) · Engineering Applications of Artificial Intelligence · doi:10.1016/j.engappai.2026.115381
Kumar, A. A., Suman, S., Boghey, R. K., & Saurabh, P. (2026) · Discover Artificial Intelligence · doi:10.1007/s44163-026-01413-x
“Attention mechanism analysis provides interpretable insight into how MinimalLLM constructs contextual representations across its six Transformer layers [32, 33].”
Combating Textual Noise and Redundancy: Entropy-Aware Dense Visual Token Pruning
Wang, X., Yang, X., & Shen, W. (2026) · Lecture notes in computer science · doi:10.1007/978-3-032-37026-6_31 · Cited by 5
Vitale, J. D. (2026) · Machine Learning and Knowledge Extraction · doi:10.3390/make8070207
“Vig and Belinkov [45] performed a parallel analysis on GPT-2 and found that different layers specialize in different syntactic patterns, with middle layers most predictive of dependency relations and deepest layers capturing the longest-range relationships.”
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.