Lune

NeurIPS2020顶会

BERT Loses Patience: Fast and Robust Inference with Early Exit

Wangchunshu Zhou, Canwen Xu, Tao Ge, Julian J. McAuley, Ke Xu, Furu Wei

摘要

In this paper, we propose Patience-based Early Exit, a straightforward yet effective inference method that can be used as a plug-and-play technique to simultaneously improve the efficiency and robustness of a pretrained language model (PLM). To achieve this, our approach couples an internal-classifier with each layer of a PLM and dynamically stops inference when the intermediate predictions of the internal classifiers remain unchanged for a pre-defined number of steps. Our approach improves inference efficiency as it allows the model to make a prediction with fewer layers. Meanwhile, experimental results with an ALBERT model show that our method can improve the accuracy and robustness of the model by preventing it from overthinking and exploiting multiple classifiers for prediction, yielding a better accuracy-speed trade-off compared to existing early exit methods. 2

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 111 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • FastBERT: a Self-distilling BERT with Adaptive Inference Time 引用了 ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
  • A Fast Post-Training Pruning Framework for Transformers 引用了 ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
  • A Fast Post-Training Pruning Framework for Transformers 引用了 Reducing Transformer Depth on Demand with Structured Dropout
  • A Fast Post-Training Pruning Framework for Transformers 引用了 Language Models are Few-Shot Learners
  • A-ViT: Adaptive Tokens for Efficient Vision Transformer 引用了 ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
  • A-ViT: Adaptive Tokens for Efficient Vision Transformer 引用了 FastBERT: a Self-distilling BERT with Adaptive Inference Time
  • A-ViT: Adaptive Tokens for Efficient Vision Transformer 引用了 Language Models are Few-Shot Learners
  • Model Tells You What to Discard: Adaptive KV Cache Compression for LLMs 引用了 Language Models are Few-Shot Learners
  • DynaBERT: Dynamic BERT with Adaptive Width and Depth 引用了 ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
  • DynaBERT: Dynamic BERT with Adaptive Width and Depth 引用了 FastBERT: a Self-distilling BERT with Adaptive Inference Time
  • DynaBERT: Dynamic BERT with Adaptive Width and Depth 引用了 Reducing Transformer Depth on Demand with Structured Dropout
  • DynaBERT: Dynamic BERT with Adaptive Width and Depth 引用了 Once-for-All: Train One Network and Specialize it for Efficient Deployment
  • Confident Adaptive Language Modeling 引用了 FastBERT: a Self-distilling BERT with Adaptive Inference Time
  • Confident Adaptive Language Modeling 引用了 Reducing Transformer Depth on Demand with Structured Dropout
  • Confident Adaptive Language Modeling 引用了 Language Models are Few-Shot Learners
  • Confident Adaptive Language Modeling 引用了 DynaBERT: Dynamic BERT with Adaptive Width and Depth
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper111

  1. Model Tells You What to Discard: Adaptive KV Cache Compression for LLMsSuyu Ge, Yunan Zhang, Liyuan Liu, Minjia Zhang 等ICLR 2024 · 432 次引用
  2. DynaBERT: Dynamic BERT with Adaptive Width and DepthLu Hou, Zhiqi Huang, Lifeng Shang, Xin Jiang 等NeurIPS 2020 · 401 次引用
  3. Confident Adaptive Language ModelingTal Schuster, Adam Fisch, Jai Gupta, Mostafa Dehghani 等NeurIPS 2022 · 394 次引用
  4. A-ViT: Adaptive Tokens for Efficient Vision TransformerHongxu Yin, Arash Vahdat, José M. Álvarez, Arun Mallya 等CVPR 2022 · 288 次引用
  5. A Fast Post-Training Pruning Framework for TransformersWoosuk Kwon, Sehoon Kim, Michael W. Mahoney, Joseph Hassoun 等NeurIPS 2022 · 247 次引用

它引用的 Paper8

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
  2. ALBERT: A Lite BERT for Self-supervised Learning of Language RepresentationsZhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel 等ICLR 2020 · 7,418 次引用
  3. Once-for-All: Train One Network and Specialize it for Efficient DeploymentHan Cai, Chuang Gan, Tianzhe Wang, Zhekai Zhang 等ICLR 2020 · 1,522 次引用
  4. Reducing Transformer Depth on Demand with Structured DropoutAngela Fan, Edouard Grave, Armand JoulinICLR 2020 · 695 次引用
  5. FastBERT: a Self-distilling BERT with Adaptive Inference TimeWeijie Liu, Peng Zhou, Zhiruo Wang, Zhe Zhao 等ACL 2020 · 257 次引用

相关 Paper

  1. CascadeBERT: Accelerating Inference of Pre-trained Language Models via Calibrated Complete Models CascadeLei Li, Yankai Lin, Deli Chen, Shuhuai Ren 等EMNLP Findings 2021 · 33 次引用
  2. ConsistentEE: A Consistent and Hardness-Guided Early Exiting Method for Accelerating Language Models InferenceZiqian Zeng, Yihuai Hong, Hongliang Dai, Huiping Zhuang 等AAAI 2024 · 26 次引用
  3. COSEE: Consistency-Oriented Signal-Based Early Exiting via Calibrated Sample Weighting MechanismJianing He, Qi Zhang, Hongyun Zhang, Xuanjing Huang 等AAAI 2025 · 3 次引用
  4. PALBERT: Teaching ALBERT to PonderNikita Balagansky, Daniil GavrilovNeurIPS 2022 · 10 次引用
  5. CeeBERT: Cross-Domain Inference in Early Exit BERTDivya Jyoti Bajpai, Manjesh K. HanawalACL Findings 2024 · 11 次引用
黄昏的海面,两侧是细线勾勒的悬崖