arXiv Analytics

Sign in

arXiv:2204.13353 [cs.CL]AbstractReferencesReviewsResources

Attention Mechanism with Energy-Friendly Operations

Yu Wan, Baosong Yang, Dayiheng Liu, Rong Xiao, Derek F. Wong, Haibo Zhang, Boxing Chen, Lidia S. Chao

Published 2022-04-28Version 1

Attention mechanism has become the dominant module in natural language processing models. It is computationally intensive and depends on massive power-hungry multiplications. In this paper, we rethink variants of attention mechanism from the energy consumption aspects. After reaching the conclusion that the energy costs of several energy-friendly operations are far less than their multiplication counterparts, we build a novel attention model by replacing multiplications with either selective operations or additions. Empirical results on three machine translation tasks demonstrate that the proposed model, against the vanilla one, achieves competitable accuracy while saving 99\% and 66\% energy during alignment calculation and the whole attention procedure. Code is available at: https://github.com/NLP2CT/E-Att.

Related articles: Most relevant | Search more
arXiv:1912.11078 [cs.CL] (Published 2019-11-09)
Predictive Biases in Natural Language Processing Models: A Conceptual Framework and Overview
arXiv:1910.03474 [cs.CL] (Published 2019-10-04)
Fine-grained Sentiment Classification using BERT
arXiv:1508.05154 [cs.CL] (Published 2015-08-21)
Posterior calibration and exploratory analysis for natural language processing models