paper-with-me

홈 › Papers

Transkimmer: Transformer Learns to Layer-wise Skim

2022-05-15 · ACL 2022 5 · Yue Guan, Zhengyi Li, Jingwen Leng, Zhouhan Lin, Minyi Guo

Transformer architecture has become the de-facto model for many machine learning tasks from natural language processing and computer vision. As such, improving its computational efficiency becomes paramount. One of the major computational inefficiency of Transformer-based models is that they spend the identical amount of computation throughout all layers. Prior works have proposed to augment the Transformer model with the capability of skimming tokens to improve its computational efficiency. However, they suffer from not having effectual and end-to-end optimization of the discrete skimming predictor. To address the above limitations, we propose the Transkimmer architecture, which learns to identify hidden state tokens that are not required by each layer. The skimmed tokens are then forwarded directly to the final output, thus reducing the computation of the successive layers. The key idea in Transkimmer is to add a parameterized predictor before each layer that learns to make the skimming decision. We also propose to adopt reparameterization trick and add skim loss for the end-to-end training of Transkimmer. Transkimmer achieves 10.97x average speedup on GLUE benchmark compared with vanilla BERT-base baseline with less than 1% accuracy degradation.

📄 PDF Abstract BibTeX arXiv:2205.07324

Code (1)

chandlerguan/transkimmer 공식 구현 pytorch

Tasks

Computational Efficiency

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Multi-Head Attention 설명 없음
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Adam 설명 없음
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…
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…

Similar Papers 제목 키워드 기반

Block-Skim: Efficient Question Answering for Transformer

2021-12-16 · Yue Guan, Zhengyi Li, Jingwen Leng, Zhouhan Lin 외

Transformer models have achieved promising results on natural language processing (NLP) tasks including extractive question answering (QA). Common Transformer encoders used in NLP tasks process the hidden states of all i…

Extractive Question-AnsweringQuestion Answering

Skim-Attention: Learning to Focus via Document Layout

2021-09-02 · Findings (EMNLP) 2021 11 · Laura Nguyen, Thomas Scialom, Jacopo Staiano, Benjamin Piwowarski

Transformer-based pre-training techniques of text and layout have proven effective in a number of document understanding tasks. Despite this success, multimodal pre-training models suffer from very high computational and…

document understandingLanguage ModelingLanguage Modelling

No-Skim: Towards Efficiency Robustness Evaluation on Skimming-based Language Models

2023-12-15 · Shengyao Zhang, Mi Zhang, Xudong Pan, Min Yang

To reduce the computation cost and the energy consumption in large language models (LLM), skimming-based acceleration dynamically drops unimportant tokens of the input sequence progressively along layers of the LLM while…

Video Skimming: Taxonomy and Comprehensive Survey

2019-09-21 · Vivekraj V. K., Debashis Sen, Balasubramanian Raman

Video skimming, also known as dynamic video summarization, generates a temporally abridged version of a given video. Skimming can be achieved by identifying significant components either in uni-modal or multi-modal featu…

SurveyVideo Summarization

Block Skim Transformer for Efficient Question Answering

2021-01-01 · Yue Guan, Jingwen Leng, Yuhao Zhu, Minyi Guo

Transformer based encoder models have achieved promising results on natural language processing (NLP) task including question answering (QA). Different from sequence classification or language modeling tasks, hidden s…

Language ModelingLanguage ModellingModel CompressionQuestion Answering