paper-with-me

Papers

DeFormer: Decomposing Pre-trained Transformers for Faster Question Answering

2020-05-02 · ACL 2020 6 · Qingqing Cao, Harsh Trivedi, Aruna Balasubramanian, Niranjan Balasubramanian

Transformer-based QA models use input-wide self-attention -- i.e. across both the question and the input passage -- at all layers, causing them to be slow and memory-intensive. It turns out that we can get by without input-wide self-attention at all layers, especially in the lower layers. We introduce DeFormer, a decomposed transformer, which substitutes the full self-attention with question-wide and passage-wide self-attentions in the lower layers. This allows for question-independent processing of the input text representations, which in turn enables pre-computing passage representations reducing runtime compute drastically. Furthermore, because DeFormer is largely similar to the original model, we can initialize DeFormer with the pre-training weights of a standard transformer, and directly fine-tune on the target QA dataset. We show DeFormer versions of BERT and XLNet can be used to speed up QA by over 4.3x and with simple distillation-based losses they incur only a 1% drop in accuracy. We open source the code at https://github.com/StonyBrookNLP/deformer.

📄 PDF Abstract BibTeX arXiv:2005.00697

Code (1)

StonyBrookNLP/deformer 공식 구현 tf

Tasks

Question Answering

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…
Residual Connection 설명 없음
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Linear Warmup With Linear Decay Linear Warmup With Linear Decay is a learning rate schedule in which we increase the learning rate linearly for $n$ updates and then linearly decay afterwards.
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Weight Decay 설명 없음
SentencePiece 설명 없음

Similar Papers 제목 키워드 기반

ODEFormer: Symbolic Regression of Dynamical Systems with Transformers

2023-10-09 · Stéphane d'Ascoli, Sören Becker, Alexander Mathis, Philippe Schwaller 외

We introduce ODEFormer, the first transformer able to infer multidimensional ordinary differential equation (ODE) systems in symbolic form from the observation of a single solution trajectory. We perform extensive evalua…

regressionSymbolic Regression

ModEFormer: Modality-Preserving Embedding for Audio-Video Synchronization using Transformers

2023-03-21 · Akash Gupta, Rohun Tripathi, WonDong Jang

Lack of audio-video synchronization is a common problem during television broadcasts and video conferencing, leading to an unsatisfactory viewing experience. A widely accepted paradigm is to create an error detection mec…

Contrastive LearningVideo Synchronization

EEG-Deformer: A Dense Convolutional Transformer for Brain-computer Interfaces

2024-04-25 · Yi Ding, Yong Li, Hao Sun, Rui Liu 외

Effectively learning the temporal dynamics in electroencephalogram (EEG) signals is challenging yet essential for decoding brain activities using brain-computer interfaces (BCIs). Although Transformers are popular for th…

EEGElectroencephalogram (EEG)

GeoDeformer: Geometric Deformable Transformer for Action Recognition

2023-11-29 · Jinhui Ye, Jiaming Zhou, Hui Xiong, Junwei Liang

Vision transformers have recently emerged as an effective alternative to convolutional networks for action recognition. However, vision transformers still struggle with geometric variations prevalent in video data. This …

Action Recognition

KDEformer: Accelerating Transformers via Kernel Density Estimation

2023-02-05 · Amir Zandieh, Insu Han, Majid Daliri, Amin Karbasi

Dot-product attention mechanism plays a crucial role in modern deep architectures (e.g., Transformer) for sequence modeling, however, na\"ive exact computation of this model incurs quadratic time and memory complexities …

Density EstimationImage Generation