Mask More and Mask Later: Efficient Pre-training of Masked Language Models by Disentangling the [MASK] Token
Liao, Baohao, Thulke, David, Hewavitharana, Sanjika, Ney, Hermann, Monz, Christof
–arXiv.org Artificial Intelligence
The pre-training of masked language models (MLMs) consumes massive computation to achieve good results on downstream NLP tasks, resulting in a large carbon footprint. In the vanilla MLM, the virtual tokens, [MASK]s, act as placeholders and gather the contextualized information from unmasked tokens to restore the corrupted information. It raises the question of whether we can append [MASK]s at a later layer, to reduce the sequence length for earlier layers and make the pre-training more efficient. We show: (1) [MASK]s can indeed be appended at a later layer, being disentangled from the word embedding; (2) The gathering of contextualized information from unmasked tokens can be conducted with a few layers. By further increasing the masking rate from 15% to 50%, we can pre-train RoBERTa-base and RoBERTa-large from scratch with only 78% and 68% of the original computational budget without any degradation on the GLUE benchmark. When pre-training with the original budget, our method outperforms RoBERTa for 6 out of 8 GLUE tasks, on average by 0.4%.
arXiv.org Artificial Intelligence
Nov-15-2022
- Country:
- North America
- United States
- Texas (0.04)
- Washington > King County
- Seattle (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Maryland > Montgomery County
- Gaithersburg (0.04)
- Louisiana > Orleans Parish
- New Orleans (0.04)
- California > Los Angeles County
- Long Beach (0.14)
- Canada > Quebec
- Montreal (0.04)
- United States
- Europe
- Germany > Berlin (0.04)
- Czechia > Prague (0.04)
- Austria (0.04)
- United Kingdom > England
- Hampshire > Southampton (0.04)
- Portugal > Lisbon
- Lisbon (0.04)
- Netherlands > North Holland
- Amsterdam (0.04)
- Italy
- Ireland > Leinster
- County Dublin > Dublin (0.04)
- Asia
- South Korea (0.04)
- China > Hong Kong (0.04)
- Africa > Ethiopia
- Addis Ababa > Addis Ababa (0.04)
- North America
- Genre:
- Research Report (0.82)
- Technology: