Lune

NeurIPS2020顶会

DynaBERT: Dynamic BERT with Adaptive Width and Depth

Lu Hou, Zhiqi Huang, Lifeng Shang, Xin Jiang, Xiao Chen, Qun Liu

摘要

The pre-trained language models like BERT, though powerful in many natural language processing tasks, are both computation and memory expensive. To alleviate this problem, one approach is to compress them for specific tasks before deployment. However, recent works on BERT compression usually compress the large BERT model to a fixed smaller size. They can not fully satisfy the requirements of different edge devices with various hardware performances. In this paper, we propose a novel dynamic BERT model (abbreviated as Dyn-aBERT), which can flexibly adjust the size and latency by selecting adaptive width and depth. The training process of DynaBERT includes first training a width-adaptive BERT and then allowing both adaptive width and depth, by distilling knowledge from the full-sized model to small sub-networks. Network rewiring is also used to keep the more important attention heads and neurons shared by more sub-networks. Comprehensive experiments under various efficiency constraints demonstrate that our proposed dynamic BERT (or RoBERTa) at its largest size has comparable performance as BERT BASE (or RoBERTa BASE ), while at smaller widths and depths consistently outperforms existing BERT compression methods. Code is available at https://github.com/huawei-noah/ Pretrained-Language-Model/tree/master/DynaBERT .

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • TinyBERT: Distilling BERT for Natural Language Understanding 引用了 ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
  • TinyBERT: Distilling BERT for Natural Language Understanding 引用了 Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
  • TinyBERT: Distilling BERT for Natural Language Understanding 引用了 Reducing Transformer Depth on Demand with Structured Dropout
  • Structured Pruning Learns Compact and Accurate Models 引用了 TinyBERT: Distilling BERT for Natural Language Understanding
  • Structured Pruning Learns Compact and Accurate Models 引用了 Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
  • Structured Pruning Learns Compact and Accurate Models 引用了 Reducing Transformer Depth on Demand with Structured Dropout
  • TernaryBERT: Distillation-aware Ultra-low Bit BERT 引用了 TinyBERT: Distilling BERT for Natural Language Understanding
  • TernaryBERT: Distillation-aware Ultra-low Bit BERT 引用了 ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
  • TernaryBERT: Distillation-aware Ultra-low Bit BERT 引用了 Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
  • TernaryBERT: Distillation-aware Ultra-low Bit BERT 引用了 Reducing Transformer Depth on Demand with Structured Dropout
  • Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning 引用了 TinyBERT: Distilling BERT for Natural Language Understanding
  • Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning 引用了 Structured Pruning Learns Compact and Accurate Models
  • Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruning 引用了 Once-for-All: Train One Network and Specialize it for Efficient Deployment
  • Confident Adaptive Language Modeling 引用了 Q-BERT: Hessian Based Ultra Low Precision Quantization of BERT
  • Confident Adaptive Language Modeling 引用了 Reducing Transformer Depth on Demand with Structured Dropout
  • LLM-Pruner: On the Structural Pruning of Large Language Models 引用了 TinyBERT: Distilling BERT for Natural Language Understanding
  • LLM-Pruner: On the Structural Pruning of Large Language Models 引用了 Structured Pruning Learns Compact and Accurate Models
  • LLM-Pruner: On the Structural Pruning of Large Language Models 引用了 ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
  • LLM-Pruner: On the Structural Pruning of Large Language Models 引用了 Reducing Transformer Depth on Demand with Structured Dropout
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper93

  1. LLM-Pruner: On the Structural Pruning of Large Language ModelsXinyin Ma, Gongfan Fang, Xinchao WangNeurIPS 2023 · 994 次引用
  2. Sheared LLaMA: Accelerating Language Model Pre-training via Structured PruningMengzhou Xia, Tianyu Gao, Zhiyuan Zeng, Danqi ChenICLR 2024 · 453 次引用
  3. Confident Adaptive Language ModelingTal Schuster, Adam Fisch, Jai Gupta, Mostafa Dehghani 等NeurIPS 2022 · 394 次引用
  4. Structured Pruning Learns Compact and Accurate ModelsMengzhou Xia, Zexuan Zhong, Danqi ChenACL 2022 · 236 次引用
  5. TernaryBERT: Distillation-aware Ultra-low Bit BERTWei Zhang, Lu Hou, Yichun Yin, Lifeng Shang 等EMNLP 2020 · 147 次引用

它引用的 Paper12

  1. ALBERT: A Lite BERT for Self-supervised Learning of Language RepresentationsZhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel 等ICLR 2020 · 7,418 次引用
  2. TinyBERT: Distilling BERT for Natural Language UnderstandingXiaoqi Jiao, Yichun Yin, Lifeng Shang, Xin Jiang 等EMNLP Findings 2020 · 1,787 次引用
  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. Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTSheng Shen, Zhen Dong, Jiayu Ye, Linjian Ma 等AAAI 2020 · 656 次引用

相关 Paper

  1. NAS-BERT: Task-Agnostic and Adaptive-Size BERT Compression with Neural Architecture SearchJin Xu, Xu Tan, Renqian Luo, Kaitao Song 等KDD 2021 · 49 次引用
  2. MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited DevicesZhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu 等ACL 2020 · 660 次引用
  3. EBERT: Efficient BERT Inference with Dynamic Structured PruningZejian Liu, Fanrong Li, Gang Li, Jian ChengACL Findings 2021 · 31 次引用
  4. FastBERT: a Self-distilling BERT with Adaptive Inference TimeWeijie Liu, Peng Zhou, Zhiruo Wang, Zhe Zhao 等ACL 2020 · 257 次引用
  5. EfficientBERT: Progressively Searching Multilayer Perceptron via Warm-up Knowledge DistillationChenhe Dong, Guangrun Wang, Hang Xu, Jiefeng Peng 等EMNLP Findings 2021 · 20 次引用
黄昏的海面,两侧是细线勾勒的悬崖