paper-with-me

Papers

DEED: Dynamic Early Exit on Decoder for Accelerating Encoder-Decoder Transformer Models

2023-11-15 · Peng Tang, Pengkai Zhu, Tian Li, Srikar Appalaraju, Vijay Mahadevan, R. Manmatha

Encoder-decoder transformer models have achieved great success on various vision-language (VL) tasks, but they suffer from high inference latency. Typically, the decoder takes up most of the latency because of the auto-regressive decoding. To accelerate the inference, we propose an approach of performing Dynamic Early Exit on Decoder (DEED). We build a multi-exit encoder-decoder transformer model which is trained with deep supervision so that each of its decoder layers is capable of generating plausible predictions. In addition, we leverage simple yet practical techniques, including shared generation head and adaptation modules, to keep accuracy when exiting at shallow decoder layers. Based on the multi-exit model, we perform step-level dynamic early exit during inference, where the model may decide to use fewer decoder layers based on its confidence of the current layer at each individual decoding step. Considering different number of decoder layers may be used at different decoding steps, we compute deeper-layer decoder features of previous decoding steps just-in-time, which ensures the features from different decoding steps are semantically aligned. We evaluate our approach with two state-of-the-art encoder-decoder transformer models on various VL tasks. We show our approach can reduce overall inference latency by 30%-60% with comparable or even higher accuracy compared to baselines.

📄 PDF Abstract BibTeX arXiv:2311.08623

Code (0)

등록된 구현이 없습니다.

Tasks

Decoder

Similar Papers 제목 키워드 기반

You Need Multiple Exiting: Dynamic Early Exiting for Accelerating Unified Vision Language Model

2022-11-21 · CVPR 2023 1 · Shengkun Tang, Yaqing Wang, Zhenglun Kong, Tianchi Zhang 외

Large-scale Transformer models bring significant improvements for various downstream vision language tasks with a unified architecture. The performance improvements come with increasing model size, resulting in slow infe…

DecoderLanguage ModelingLanguage Modelling

CascadeBERT: Accelerating Inference of Pre-trained Language Models via Calibrated Complete Models Cascade

2020-12-29 · Findings (EMNLP) 2021 11 · Lei LI, Yankai Lin, Deli Chen, Shuhuai Ren 외

Dynamic early exiting aims to accelerate the inference of pre-trained language models (PLMs) by emitting predictions in internal layers without passing through the entire model. In this paper, we empirically analyze the …

Knowledge DistillationModel Selection

LGViT: Dynamic Early Exiting for Accelerating Vision Transformer

2023-08-01 · Guanyu Xu, Jiawei Hao, Li Shen, Han Hu 외

Recently, the efficient deployment and acceleration of powerful vision transformers (ViTs) on resource-limited edge devices for providing multimedia services have become attractive tasks. Although early exiting is a feas…

SmartBERT: A Promotion of Dynamic Early Exiting Mechanism for Accelerating BERT Inference

2023-03-16 · Boren Hu, Yun Zhu, Jiacheng Li, Siliang Tang

Dynamic early exiting has been proven to improve the inference speed of the pre-trained language model like BERT. However, all samples must go through all consecutive layers before early exiting and more complex samples …

Contrastive LearningLanguage ModellingRTEWNLI

FSR: Accelerating the Inference Process of Transducer-Based Models by Applying Fast-Skip Regularization

2021-04-07 · Zhengkun Tian, Jiangyan Yi, Ye Bai, JianHua Tao 외

Transducer-based models, such as RNN-Transducer and transformer-transducer, have achieved great success in speech recognition. A typical transducer model decodes the output sequence conditioned on the current acoustic st…

DecoderPositionspeech-recognitionSpeech Recognition