paper-with-me

Papers

Multi-Head Attention: Collaborate Instead of Concatenate

2020-06-29 · Jean-Baptiste Cordonnier, Andreas Loukas, Martin Jaggi

Attention layers are widely used in natural language processing (NLP) and are beginning to influence computer vision architectures. Training very large transformer models allowed significant improvement in both fields, but once trained, these networks show symptoms of over-parameterization. For instance, it is known that many attention heads can be pruned without impacting accuracy. This work aims to enhance current understanding on how multiple heads interact. Motivated by the observation that attention heads learn redundant key/query projections, we propose a collaborative multi-head attention layer that enables heads to learn shared projections. Our scheme decreases the number of parameters in an attention layer and can be used as a drop-in replacement in any transformer architecture. Our experiments confirm that sharing key/query dimensions can be exploited in language understanding, machine translation and vision. We also show that it is possible to re-parametrize a pre-trained multi-head attention layer into our collaborative attention layer. Collaborative multi-head attention reduces the size of the key and query projections by 4 for same accuracy and speed. Our code is public.

📄 PDF Abstract BibTeX arXiv:2006.16362

Code (2)

epfml/collaborative-attention 공식 구현 pytorch
JunnYu/x-transformers-paddle jax

Tasks

Machine TranslationTranslation

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
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 설명 없음
Residual Connection 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Multi-Head Attention 설명 없음
Adam 설명 없음
ReLU How Do I Communicate to Expedia? How Do I Communicate to Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Live Support & Special Travel…

Similar Papers 제목 키워드 기반

Entity and Evidence Guided Document-Level Relation Extraction

2021-08-01 · ACL (RepL4NLP) 2021 8 · Kevin Huang, Peng Qi, Guangtao Wang, Tengyu Ma 외

Document-level relation extraction is a challenging task, requiring reasoning over multiple sentences to predict a set of relations in a document. In this paper, we propose a novel framework E2GRE (Entity and Evidence Gu…

Document-level Relation ExtractionLanguage ModelingLanguage ModellingRelation+1

Knocking-Heads Attention

2025-10-27 · Zhanchao Zhou, Xiaodong Chen, Haoxing Chen, Zhenzhong Lan 외 arxiv

Multi-head attention (MHA) has become the cornerstone of modern large language models, enhancing representational capacity through parallel attention heads. However, increasing the number of heads inherently weakens indi…

Mongolian Questions Classification Based on Mulit-Head Attention

2020-10-01 · CCL 2020 10 · Guangyi Wang, Feilong Bao, Weihua Wang

Question classification is a crucial subtask in question answering system. Mongolian is a kind of few resource language. It lacks public labeled corpus. And the complex morphological structure of Mongolian vocabulary mak…

ClassificationQuestion Answering

Multimodal Multi-Head Convolutional Attention with Various Kernel Sizes for Medical Image Super-Resolution

2022-04-08 · Mariana-Iuliana Georgescu, Radu Tudor Ionescu, Andreea-Iuliana Miron, Olivian Savencu 외

Super-resolving medical images can help physicians in providing more accurate diagnostics. In many situations, computed tomography (CT) or magnetic resonance imaging (MRI) techniques capture several scans (modes) during …

Computed Tomography (CT)Image Super-ResolutionSuper-Resolution

Lightweight Temporal Self-Attention for Classifying Satellite Image Time Series

2020-07-01 · Vivien Sainte Fare Garnot, Loic Landrieu

The increasing accessibility and precision of Earth observation satellite data offers considerable opportunities for industrial and state actors alike. This calls however for efficient methods able to process time-series…

Earth ObservationTime SeriesTime Series AnalysisTime Series Classification