Grammatically-Guided Sparse Attention for Efficient and Interpretable Transformers
Not on the map. Why?
Abstract (arXiv)
The quadratic complexity of self-attention in Transformer models remains a significant bottleneck for processing long sequences and deploying large language models efficiently. For this approach, there has been significant research into Sparse Attention, and Deepseek Sparse Attention has combined various methods of creating segments of tokens to reduce the time complexity. This paper introduces a novel approach, Grammatically-Guided Sparse Attention, which constrains attention computations based on the grammatical roles of tokens. By leveraging Parts-of-Speech (POS) tags, attention masks are dynamically generated that enforce linguistically coherent connections between tokens, reducing the computational graph without sacrificing essential linguistic dependencies. Two masking strategies are proposed and evaluated: a hard mask that strictly allows only predefined grammatical interactions, and a soft mask that biases attention towards these interactions. The experiments, conducted on the SST-2 sentiment classification task using a DistilBERT-like architecture, demonstrate that Grammatically-Guided Sparse Attention maintains comparable accuracy to full attention while significantly reducing the theoretical computational overhead. Preliminary results show accuracy values of 0.8200 for hard masking and 0.8165 for soft masking, closely matching the 0.8200 of full attention, providing a path towards more efficient, interpretable, and linguistically-informed Transformer architectures.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 7 of its 12 references that are in the map. First posted on arXiv 23 May 2026.
Builds on
7 of 12 references.
References · 7
- 2017Attention Is All You Needcited by 60,361
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020Rethinking Attention with Performerscited by 1,601
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2018Linguistically-Informed Self-Attention for Semantic Role Labelingcited by 71
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2023SEA: Sparse Linear Attention with Estimated Attention Mask
- 2025Native Sparse Attention: Hardware-Aligned and Natively Trainable Sparse Attention
- 2021Predicting Attention Sparsity in Transformers
- 2026SAS: Simple Attention Sparsification via End-to-End Optimization of Context Ranking
- 2025DAM: Dynamic Attention Mask for Long-Context Large Language Model Inference Acceleration
- 2024A Training-free Sub-quadratic Cost Transformer Model Serving Framework With Hierarchically Pruned Attention
- 2024From Attention to Activation: Unravelling the Enigmas of Large Language Models
- 2026Full Attention Strikes Back: Transferring Full Attention into Sparse within Hundred Training Steps