Lune

AAAI2021顶会

Faster Depth-Adaptive Transformers

Yijin Liu, Fandong Meng, Jie Zhou, Yufeng Chen, Jinan Xu

摘要

Depth-adaptive neural networks can dynamically adjust depths according to the hardness of input words, and thus improve efficiency. The main challenge is how to measure such hardness and decide the required depths (i.e., layers) to conduct. Previous works generally build a halting unit to decide whether the computation should continue or stop at each layer. As there is no specific supervision of depth selection, the halting unit may be under-optimized and inaccurate, which results in suboptimal and unstable performance when modeling sentences. In this paper, we get rid of the halting unit and estimate the required depths in advance, which yields a faster depth-adaptive model. Specifically, two approaches are proposed to explicitly measure the hardness of input words and estimate corresponding adaptive depth, namely 1) mutual information (MI) based estimation and 2) reconstruction loss based estimation. We conduct experiments on the text classification task with 24 datasets in various sizes and domains. Results confirm that our approaches can speed up the vanilla Transformer (up to 7x) while preserving high accuracy. Moreover, efficiency and robustness are significantly improved when compared with other depth-adaptive approaches.

问 Lune

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

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

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

可以从这些问题问起

Lune 可以查阅

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

获取答案

免费开始,无需绑卡

脉络

  • A Simple Early Exiting Framework for Accelerated Sampling in Diffusion Models 引用了 DynaBERT: Dynamic BERT with Adaptive Width and Depth
  • A Simple Early Exiting Framework for Accelerated Sampling in Diffusion Models 引用了 Confident Adaptive Language Modeling
  • Fast and Robust Early-Exiting Framework for Autoregressive Language Models with Synchronized Parallel Decoding 引用了 Depth-Adaptive Transformer
  • Path Independent Equilibrium Models Can Better Exploit Test-Time Computation 引用了 Depth-Adaptive Transformer
  • What Layers When: Learning to Skip Compute in LLMs with Residual Gates 引用了 Fast and Robust Early-Exiting Framework for Autoregressive Language Models with Synchronized Parallel Decoding
  • What Layers When: Learning to Skip Compute in LLMs with Residual Gates 引用了 Depth-Adaptive Transformer
  • What Layers When: Learning to Skip Compute in LLMs with Residual Gates 引用了 Confident Adaptive Language Modeling
  • DynaBERT: Dynamic BERT with Adaptive Width and Depth 引用了 Depth-Adaptive Transformer
  • DynaBERT: Dynamic BERT with Adaptive Width and Depth 引用了 Reducing Transformer Depth on Demand with Structured Dropout
  • Confident Adaptive Language Modeling 引用了 Depth-Adaptive Transformer
  • Confident Adaptive Language Modeling 引用了 Reducing Transformer Depth on Demand with Structured Dropout
  • Confident Adaptive Language Modeling 引用了 MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devices
  • Confident Adaptive Language Modeling 引用了 DynaBERT: Dynamic BERT with Adaptive Width and Depth
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper11

  1. Confident Adaptive Language ModelingTal Schuster, Adam Fisch, Jai Gupta, Mostafa Dehghani 等NeurIPS 2022 · 394 次引用
  2. Path Independent Equilibrium Models Can Better Exploit Test-Time ComputationCem Anil, Ashwini Pokle, Kaiqu Liang, Johannes Treutlein 等NeurIPS 2022 · 43 次引用
  3. Fast and Robust Early-Exiting Framework for Autoregressive Language Models with Synchronized Parallel DecodingSangmin Bae, Jongwoo Ko, Hwanjun Song, Se-Young YunEMNLP 2023 · 12 次引用
  4. A Simple Early Exiting Framework for Accelerated Sampling in Diffusion ModelsTae Hong Moon, Moonseok Choi, EungGu Yun, Jongmin Yoon 等ICML 2024 · 10 次引用
  5. What Layers When: Learning to Skip Compute in LLMs with Residual GatesFilipe Laitenberger, Dawid Jan Kopiczko, Cees G. M. Snoek, Yuki M. AsanoICLR 2026 · 6 次引用

它引用的 Paper5

  1. Reducing Transformer Depth on Demand with Structured DropoutAngela Fan, Edouard Grave, Armand JoulinICLR 2020 · 695 次引用
  2. MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited DevicesZhiqing Sun, Hongkun Yu, Xiaodan Song, Renjie Liu 等ACL 2020 · 660 次引用
  3. DynaBERT: Dynamic BERT with Adaptive Width and DepthLu Hou, Zhiqi Huang, Lifeng Shang, Xin Jiang 等NeurIPS 2020 · 401 次引用
  4. Depth-Adaptive TransformerMaha Elbayad, Jiatao Gu, Edouard Grave, Michael AuliICLR 2020 · 264 次引用
  5. Multi-Scale Self-Attention for Text ClassificationQipeng Guo, Xipeng Qiu, Pengfei Liu, Xiangyang Xue 等AAAI 2020 · 69 次引用

相关 Paper

  1. Adaptive Computation Modules: Granular Conditional Computation for Efficient InferenceBartosz Wójcik, Alessio Devoto, Karol Pustelnik, Pasquale Minervini 等AAAI 2025 · 8 次引用
  2. Adaptive Depth Networks with Skippable Sub-PathsWoochul Kang, Hyungseop LeeNeurIPS 2024 · 5 次引用
  3. Efficient Transformer-based 3D Object Detection with Dynamic Token HaltingMao Ye, Gregory P. Meyer, Yuning Chai, Qiang LiuICCV 2023 · 10 次引用
  4. Understanding Dynamic Compute Allocation in Recurrent TransformersIbraheem Muhammad Moosa, Suhas Lohit, Ye Wang, Moitreya Chatterjee 等ICML 2026 · 5 次引用
  5. Length-Adaptive Transformer: Train Once with Length Drop, Use Anytime with SearchGyuwan Kim, Kyunghyun ChoACL 2021
黄昏的海面,两侧是细线勾勒的悬崖