paper-with-me

Papers

GMAT: Global Memory Augmentation for Transformers

2020-06-05 · Ankit Gupta, Jonathan Berant

Transformer-based models have become ubiquitous in natural language processing thanks to their large capacity, innate parallelism and high performance. The contextualizing component of a Transformer block is the $\textit{pairwise dot-product}$ attention that has a large $\Omega(L^2)$ memory requirement for length $L$ sequences, limiting its ability to process long documents. This has been the subject of substantial interest recently, where multiple approximations were proposed to reduce the quadratic memory requirement using sparse attention matrices. In this work, we propose to augment sparse Transformer blocks with a dense attention-based $\textit{global memory}$ of length $M$ ($\ll L$) which provides an aggregate global view of the entire input sequence to each position. Our augmentation has a manageable $O(M\cdot(L+M))$ memory overhead, and can be seamlessly integrated with prior sparse solutions. Moreover, global memory can also be used for sequence compression, by representing a long input sequence with the memory representations only. We empirically show that our method leads to substantial improvement on a range of tasks, including (a) synthetic tasks that require global reasoning, (b) masked language modeling, and (c) reading comprehension.

📄 PDF Abstract BibTeX arXiv:2006.03274

Code (1)

ag1988/gmat 공식 구현

Tasks

Language ModelingLanguage ModellingMasked Language ModelingReading Comprehension

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 설명 없음
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…
Linear Warmup With Cosine Annealing Linear Warmup With Cosine Annealing is a learning rate schedule where we increase the learning rate linearly for $n$ updates and then anneal according to a cosine schedule…
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 설명 없음

Similar Papers 제목 키워드 기반

Memory Transformer

2020-06-20 · Mikhail S. Burtsev, Yuri Kuratov, Anton Peganov, Grigory V. Sapunov

Transformer-based models have achieved state-of-the-art results in many natural language processing tasks. The self-attention architecture allows transformer to combine information from all elements of a sequence into co…

Language ModelingLanguage ModellingMachine TranslationNatural Language Understanding+3

Memory Representation in Transformer

2021-01-01 · Mikhail Burtsev, Yurii Kuratov, Anton Peganov, Grigory V. Sapunov

Transformer-based models have achieved state-of-the-art results in many natural language processing tasks. The self-attention architecture allows transformer to combine information from all elements of a sequence into co…

Language ModelingLanguage ModellingMachine TranslationQuestion Answering

SegMatch: A semi-supervised learning method for surgical instrument segmentation

2023-08-09 · Meng Wei, Charlie Budd, Luis C. Garcia-Peraza-Herrera, Reuben Dorent 외

Surgical instrument segmentation is recognised as a key enabler to provide advanced surgical assistance and improve computer assisted interventions. In this work, we propose SegMatch, a semi supervised learning method to…

Medical Image SegmentationPseudo LabelSegmentationSemantic Segmentation

Contextual Augmentation: Data Augmentation by Words with Paradigmatic Relations

2018-05-16 · NAACL 2018 6 · Sosuke Kobayashi

We propose a novel data augmentation for labeled sentences called contextual augmentation. We assume an invariance that sentences are natural even if the words in the sentences are replaced with other words with paradigm…

Data AugmentationGeneral ClassificationLanguage ModelingLanguage Modelling+3

Memory in humans and deep language models: Linking hypotheses for model augmentation

2022-10-04 · Omri Raccah, Phoebe Chen, Ted L. Willke, David Poeppel 외

The computational complexity of the self-attention mechanism in Transformer models significantly limits their ability to generalize over long temporal durations. Memory-augmentation, or the explicit storing of past infor…