DACT-BERT: Differentiable Adaptive Computation Time for an Efficient BERT Inference

2Citations
Citations of this article
34Readers
Mendeley users who have this article in their library.

Abstract

Large-scale pre-trained language models have shown remarkable results in diverse NLP applications. However, these performance gains have been accompanied by a significant increase in computation time and model size, stressing the need to develop new or complementary strategies to increase the efficiency of these models. This paper proposes DACT-BERT, a differentiable adaptive computation time strategy for BERT-like models. DACT-BERT adds an adaptive computational mechanism to BERT's regular processing pipeline, which controls the number of Transformer blocks that need to be executed at inference time. By doing this, the model learns to combine the most appropriate intermediate representations for the task at hand. Our experiments demonstrate that our approach, when compared to the baselines, excels on a reduced computational regime and is competitive in other less restrictive ones. Code available at https://github.com/ceyzaguirre4/dact_bert.

Cite

CITATION STYLE

APA

Eyzaguirre, C., del Río, F., Araujo, V., & Soto, A. (2022). DACT-BERT: Differentiable Adaptive Computation Time for an Efficient BERT Inference. In NLP-Power 2022 - 1st Workshop on Efficient Benchmarking in NLP, Proceedings of the Workshop (pp. 93–99). Association for Computational Linguistics (ACL). https://doi.org/10.18653/v1/2022.nlppower-1.10

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free