Length-Adaptive Transformer: Train Once with Length Drop, Use Anytime with Search
원문 초록
Despite transformers' impressive accuracy, their computational cost is often prohibitive to use with limited computational resources. Most previous approaches to improve inference efficiency require a separate model for each possible computational budget. In this paper, we extend PoWER-BERT (Goyal et al., 2020) and propose Length-Adaptive Transformer that can be used for various inference scenarios after one-shot training. We train a transformer with LengthDrop, a structural variant of dropout, which stochastically determines a sequence length at each layer. We then conduct a multi-objective evolutionary search to find a length configuration that maximizes the accuracy and minimizes the efficiency metric under any given computational budget. Additionally, we significantly extend the applicability of PoWER-BERT beyond sequence-level classification into token-level classification with Drop-and-Restore process that drops word-vectors temporarily in intermediate layers and restores at the last layer if necessary. We empirically verify the utility of the proposed approach by demonstrating the superior accuracy-efficiency trade-off under various setups, including span-based question answering and text classification. Code is available at https://github.com/clovaai/length-adaptive-transformer.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
mSTEB: Massively Multilingual Evaluation of LLMs on Speech and Text Tasks
TokenBreak: Bypassing Text Classification Models Through Token Manipulation
ICS: Total Freedom in Manual Text Classification Supported by Unobtrusive Machine Learning
AdaptText: A Novel Framework for Domain-Independent Automated Sinhala Text Classification
A Method for MBTI Classification Based on Impact of Class Components
Targeted Data-driven Regularization for Out-of-Distribution Generalization
토론
이 논문과 연결된 포럼 글이 아직 없습니다.