paper-with-me

홈 › Papers

Explicit Sparse Transformer: Concentrated Attention Through Explicit Selection

2019-12-25 · Guangxiang Zhao, Junyang Lin, Zhiyuan Zhang, Xuancheng Ren, Qi Su, Xu sun

Self-attention based Transformer has demonstrated the state-of-the-art performances in a number of natural language processing tasks. Self-attention is able to model long-term dependencies, but it may suffer from the extraction of irrelevant information in the context. To tackle the problem, we propose a novel model called \textbf{Explicit Sparse Transformer}. Explicit Sparse Transformer is able to improve the concentration of attention on the global context through an explicit selection of the most relevant segments. Extensive experimental results on a series of natural language processing and computer vision tasks, including neural machine translation, image captioning, and language modeling, all demonstrate the advantages of Explicit Sparse Transformer in model performance. We also show that our proposed sparse attention method achieves comparable or better results than the previous sparse attention method, but significantly reduces training and testing time. For example, the inference speed is twice that of sparsemax in Transformer model. Code will be available at \url{https://github.com/lancopku/Explicit-Sparse-Transformer}

📄 PDF Abstract BibTeX arXiv:1912.11637

Code (2)

lancopku/Explicit-Sparse-Transformer 공식 구현 tf
JunnYu/x-transformers-paddle jax

Tasks

Image CaptioningLanguage ModelingLanguage ModellingMachine TranslationTranslation

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
SPEED The monocular depth estimation (MDE) is the task of estimating depth from a single frame. This information is an essential knowledge in many computer vision tasks such as scene…
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Cosine Annealing Cosine Annealing is a type of learning rate schedule that has the effect of starting with a large learning rate that is relatively rapidly decreased to a minimum value before…
Sparsemax Sparsemax is a type of activation/output function similar to the traditional softmax, but able to output sparse probabilities.…
Residual Connection 설명 없음
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…

Similar Papers 제목 키워드 기반

Sparse Transformer: Concentrated Attention Through Explicit Selection

2019-09-25 · Guangxiang Zhao, Junyang Lin, Zhiyuan Zhang, Xuancheng Ren 외

Self-attention-based Transformer has demonstrated the state-of-the-art performances in a number of natural language processing tasks. Self attention is able to model long-term dependencies, but it may suffer from the ext…

Image CaptioningLanguage ModelingLanguage ModellingMachine Translation+1

HopFormer: Sparse Graph Transformers with Explicit Receptive Field Control

2026-02-02 · Sanggeon Yun, Raheeb Hassan, Ryozo Masukawa, Sungheon Jeong 외 arxiv

Graph Transformers typically rely on explicit positional or structural encodings and dense global attention to incorporate graph topology. In this work, we show that neither is essential. We introduce HopFormer, a graph …

Routing Absorption in Sparse Attention: Why Random Gates Are Hard to Beat

2026-02-11 · Keston Aquino-Michaels arxiv

Can a transformer learn which attention entries matter during training? In principle, yes: attention distributions are highly concentrated, and a small gate network can identify the important entries post-hoc with near-p…

Representation Learning

SCOPE: Subspace Clustering with Online Per-Head Top-K Estimation for Sparse Video Attention

2026-08-13 · Qi Zhao, Qirui Li, Hanlin Tang, Yiduo Li 외 arxiv

Diffusion Transformers (DiTs) incur quadratic self-attention cost over spatiotemporal tokens. Existing training-free sparse attention methods often construct sparse masks from block-level or cluster-level proxy scores, w…

Understanding the Expressive Power and Mechanisms of Transformer for Sequence Modeling

2024-02-01 · Mingze Wang, Weinan E

We conduct a systematic study of the approximation properties of Transformer for sequence modeling with long, sparse and complicated memory. We investigate the mechanisms through which different components of Transformer…