paper-with-me

Papers

DynaBERT: Dynamic BERT with Adaptive Width and Depth

2020-04-08 · NeurIPS 2020 12 · 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 DynaBERT), 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.

📄 PDF Abstract BibTeX arXiv:2004.04037

Code (3)

huawei-noah/Pretrained-Language-Model 공식 구현 tf
huawei-noah/Pretrained-Language-Model/tree/master/DynaBERT 공식 구현 tf
PaddlePaddle/PaddleNLP/tree/develop/examples/model_compression/ofa paddle

Tasks

Language ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
DynaBERT DynaBERT is a BERT-variant which can flexibly adjust the size and latency by selecting adaptive width and depth. The training process…
RoBERTa 설명 없음
Residual Connection 설명 없음
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…
Linear Warmup With Linear Decay Linear Warmup With Linear Decay is a learning rate schedule in which we increase the learning rate linearly for $n$ updates and then linearly decay afterwards.
Weight Decay 설명 없음
Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…

Similar Papers 제목 키워드 기반

Recursive Vision Transformer with Dynamic Depth and Width Adjustment for Resource-Efficient Image Semantic Communication

2026-05-27 · Zhilong Zhang, Xinhui Zhang, Gongyu Jin, Sihua Wang 외 arxiv

Image semantic communication is a critical component in next-generation wireless communication systems. However, such systems typically suffer from large memory footprints and high computational complexity, making them d…

Semantic Communication

Distilling Linguistic Context for Language Model Compression

2021-09-17 · EMNLP 2021 11 · Geondo Park, Gyeongman Kim, Eunho Yang

A computationally expensive and memory intensive neural network lies behind the recent success of language representation learning. Knowledge distillation, a major technique for deploying such a vast language model in re…

Knowledge DistillationLanguage ModelingLanguage Modellingmodel+3

PARE: Pruning and Adaptive Routing for Efficient Video Generation

2026-05-26 · Yutong Wang, Yunke Wang, Tianfan Xue, Yu Qiao 외 arxiv

Video Diffusion Transformers (DiTs) generate high-quality videos but demand substantial compute due to wide blocks, deep architectures, and iterative sampling. Recent methods reduce cost by compressing width, depth, or s…

Text-to-Video Generation

Fast Inference of Visual Autoregressive Model with Adjacency-Adaptive Dynamical Draft Trees

2025-12-26 · Haodong Lei, Hongsong Wang, Xin Geng, Liang Wang 외 arxiv

Autoregressive (AR) image models achieve diffusion-level quality but suffer from sequential inference, requiring approximately 2,000 steps for a 576x576 image. Speculative decoding with draft trees accelerates LLMs yet u…

Which transformer architecture fits my data? A vocabulary bottleneck in self-attention

2021-05-09 · Noam Wies, Yoav Levine, Daniel Jannai, Amnon Shashua

After their successful debut in natural language processing, Transformer architectures are now becoming the de-facto standard in many domains. An obstacle for their deployment over new modalities is the architectural con…