Improving BERT with Hybrid Pooling Network and Drop Mask

Qian Chen, Wen Wang, Qinglin Zhang, Chong Deng, Ma Yukun +1 more
7/14/2023
cs.CL

No confident code implementation found for this paper.

Abstract

Transformer-based pre-trained language models, such as BERT, achieve great success in various natural language understanding tasks. Prior research found that BERT captures a rich hierarchy of linguistic information at different layers. However, the vanilla BERT uses the same self-attention mechanism for each layer to model the different contextual features. In this paper, we propose a HybridBERT model which combines self-attention and pooling networks to encode different contextual features in each layer. Additionally, we propose a simple DropMask method to address the mismatch between pre-training and fine-tuning caused by excessive use of special mask tokens during Masked Language Modeling pre-training. Experiments show that HybridBERT outperforms BERT in pre-training with lower loss, faster training speed (8% relative), lower memory cost (13% relative), and also in transfer learning with 1.5% relative higher accuracies on downstream tasks. Additionally, DropMask improves accuracies of BERT on downstream tasks across various masking rates.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2023improving,
  title  = {Improving BERT with Hybrid Pooling Network and Drop Mask},
  author = {Qian Chen and Wen Wang and Qinglin Zhang and Chong Deng and Ma Yukun and Siqi Zheng},
  year   = {2023},
  eprint = {2307.07258},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.07258v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2307.07258.svg)](https://codeofpaper.com/paper/2307.07258)

Discussion