paper-with-me

홈 › Papers

Accelerating Transformer Decoding via a Hybrid of Self-attention and Recurrent Neural Network

2019-09-05 · Chengyi Wang, Shuangzhi Wu, Shujie Liu

Due to the highly parallelizable architecture, Transformer is faster to train than RNN-based models and popularly used in machine translation tasks. However, at inference time, each output word requires all the hidden states of the previously generated words, which limits the parallelization capability, and makes it much slower than RNN-based ones. In this paper, we systematically analyze the time cost of different components of both the Transformer and RNN-based model. Based on it, we propose a hybrid network of self-attention and RNN structures, in which, the highly parallelizable self-attention is utilized as the encoder, and the simpler RNN structure is used as the decoder. Our hybrid network can decode 4-times faster than the Transformer. In addition, with the help of knowledge distillation, our hybrid network achieves comparable translation quality to the original Transformer.

📄 PDF Abstract BibTeX arXiv:1909.02279

Code (0)

등록된 구현이 없습니다.

Tasks

DecoderKnowledge DistillationMachine 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 설명 없음
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…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
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…
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 제목 키워드 기반

Component-Aware Self-Speculative Decoding in Hybrid Language Models

2026-05-01 · Hector Borobia, Elies Seguí-Mas, Guillermina Tormo-Carbó arxiv

Speculative decoding accelerates autoregressive inference by drafting candidate tokens with a fast model and verifying them in parallel with the target. Self-speculative methods avoid the need for an external drafter but…

Accelerating Neural Transformer via an Average Attention Network

2018-05-02 · ACL 2018 7 · Biao Zhang, Deyi Xiong, Jinsong Su

With parallelizable attention networks, the neural Transformer is very fast to train. However, due to the auto-regressive architecture and self-attention in the decoder, the decoding procedure becomes slow. To alleviate …

DecoderMachine TranslationTranslation

Cross-Attention Speculative Decoding

2025-05-30 · Wei Zhong, Manasa Bharadwaj, Yixiao Wang, Nikhil Verma 외

Speculative decoding (SD) is a widely adopted approach for accelerating inference in large language models (LLMs), particularly when the draft and target models are well aligned. However, state-of-the-art SD methods typi…

Decoder

Accelerating Large Language Model Decoding with Speculative Sampling

2023-02-02 · Charlie Chen, Sebastian Borgeaud, Geoffrey Irving, Jean-Baptiste Lespiau 외

We present speculative sampling, an algorithm for accelerating transformer decoding by enabling the generation of multiple tokens from each transformer call. Our algorithm relies on the observation that the latency of pa…

Language ModelingLanguage ModellingLarge Language Modelmodel

MaxViT-UNet: Multi-Axis Attention for Medical Image Segmentation

2023-05-15 · Abdul Rehman Khan, Asifullah Khan

Since their emergence, Convolutional Neural Networks (CNNs) have made significant strides in medical image analysis. However, the local nature of the convolution operator may pose a limitation for capturing global and lo…

DecoderFlood extent forecastingImage SegmentationInductive Bias+4