Lune

ACL2023顶会

Gradient-based Intra-attention Pruning on Pre-trained Language Models

Ziqing Yang, Yiming Cui, Xin Yao, Shijin Wang

摘要

Pre-trained language models achieve superior performance but are computationally expensive. Techniques such as pruning and knowledge distillation have been developed to reduce their sizes and latencies. In this work, we propose a structured pruning method GRAIN (Gradientbased Intra-attention pruning), which performs task-specific pruning with knowledge distillation and yields highly effective models. Different from common approaches that prune each attention head as a whole, GRAIN inspects and prunes intra-attention structures, which greatly expands the structure search space and enables more flexible models. We also propose a gradient separation strategy that reduces the interference of distillation on pruning for a better combination of the two approaches. Experiments on GLUE, SQuAD, and CoNLL 2003 show that GRAIN notably outperforms other methods, especially in the high sparsity regime, and achieves 6 ∼ 7× speedups while maintaining 93% ∼ 99% performance. Under extreme compression where only 3% transformer weights remain, the pruned model is still competitive compared to larger models. 1 1 Code is available at https://github.com/airaria/ GRAIN . 2.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • TinyBERT: Distilling BERT for Natural Language Understanding 引用了 Reducing Transformer Depth on Demand with Structured Dropout
  • TinyBERT: Distilling BERT for Natural Language Understanding 引用了 MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices
  • MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices 引用了 TinyBERT: Distilling BERT for Natural Language Understanding
  • TinyBERT: Distilling BERT for Natural Language Understanding 引用了 DynaBERT: Dynamic BERT with Adaptive Width and Depth
  • DynaBERT: Dynamic BERT with Adaptive Width and Depth 引用了 TinyBERT: Distilling BERT for Natural Language Understanding
  • Pruner-Zero: Evolving Symbolic Pruning Metric From Scratch for Large Language Models 引用了 Movement Pruning: Adaptive Sparsity by Fine-Tuning
  • LoRAP: Transformer Sub-Layers Deserve Differentiated Structured Compression for Large Language Models 引用了 Movement Pruning: Adaptive Sparsity by Fine-Tuning
  • Movement Pruning: Adaptive Sparsity by Fine-Tuning 引用了 TinyBERT: Distilling BERT for Natural Language Understanding
  • Movement Pruning: Adaptive Sparsity by Fine-Tuning 引用了 Reducing Transformer Depth on Demand with Structured Dropout
  • DynaBERT: Dynamic BERT with Adaptive Width and Depth 引用了 Reducing Transformer Depth on Demand with Structured Dropout
  • Elastic ViTs from Pretrained Models without Retraining 引用了 Movement Pruning: Adaptive Sparsity by Fine-Tuning
  • Elastic ViTs from Pretrained Models without Retraining 引用了 DynaBERT: Dynamic BERT with Adaptive Width and Depth
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper4

  1. Pruner-Zero: Evolving Symbolic Pruning Metric From Scratch for Large Language ModelsPeijie Dong, Lujun Li, Zhenheng Tang, Xiang Liu 等ICML 2024 · 64 次引用
  2. LoRAP: Transformer Sub-Layers Deserve Differentiated Structured Compression for Large Language ModelsGuangyan Li, Yongqiang Tang, Wensheng ZhangICML 2024 · 11 次引用
  3. Elastic ViTs from Pretrained Models without RetrainingWalter Simoncini, Michael Dorkenwald, Tijmen Blankevoort, Cees G. M. Snoek 等NeurIPS 2025 · 2 次引用
  4. Neural Parameter Search for Slimmer Fine-Tuned Models and Better TransferGuodong Du, Zitao Fang, Jing Li, Junlin Li 等ACL 2025

它引用的 Paper16

  1. TinyBERT: Distilling BERT for Natural Language UnderstandingXiaoqi Jiao, Yichun Yin, Lifeng Shang, Xin Jiang 等EMNLP Findings 2020 · 1,787 次引用
  2. Reducing Transformer Depth on Demand with Structured DropoutAngela Fan, Edouard Grave, Armand JoulinICLR 2020 · 695 次引用
  3. MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited DevicesZhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu 等ACL 2020 · 660 次引用
  4. Movement Pruning: Adaptive Sparsity by Fine-TuningVictor Sanh, Thomas Wolf, Alexander M. RushNeurIPS 2020 · 656 次引用
  5. DynaBERT: Dynamic BERT with Adaptive Width and DepthLu Hou, Zhiqi Huang, Lifeng Shang, Xin Jiang 等NeurIPS 2020 · 401 次引用

相关 Paper

  1. Structured Pruning Learns Compact and Accurate ModelsMengzhou Xia, Zexuan Zhong, Danqi ChenACL 2022 · 236 次引用
  2. Length-Adaptive Distillation: Customizing Small Language Model for Dynamic Token PruningChang Liu, Chongyang Tao, Jianxin Liang, Jiazhan Feng 等EMNLP Findings 2023
  3. Gradient-Free Structured Pruning with Unlabeled DataAzade Nova, Hanjun Dai, Dale SchuurmansICML 2023 · 38 次引用
  4. Block Pruning For Faster TransformersFrançois Lagunas, Ella Charlaix, Victor Sanh, Alexander M. RushEMNLP 2021 · 2 次引用
  5. MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained TransformersWenhui Wang, Furu Wei, Li Dong, Hangbo Bao 等NeurIPS 2020 · 2,727 次引用
黄昏的海面,两侧是细线勾勒的悬崖