Research map / Architectures and efficiency / Attention and transformers
DecBERT: Enhancing the Language Understanding of BERT with Causal Attention Masks
Ziyang Luo, Yadong Xi, Jing Ma, Zhiwei Yang, Xiaoxi Mao, Changjie Fan, Rongsheng Zhang
Hong Kong Baptist University · NetEase Inc · Jilin University
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| add causal attention masks to first two layers (no PE) (ablation) | BERT-reImp w/o PE · English Wikipedia validation | valid PPL: 353.97 -> 4.59 | Improved |
| add learnable position embeddings (ablation) | BERT-reImp · English Wikipedia validation | valid PPL: 353.97 -> 4.28 | Improved |
| add learnable position embeddings (ablation) | Transformer Decoder (causal LM) · WikiText-103 validation | perplexity: 23.52 -> 23.37 | No clear effect |
| add learnable position embeddings (ablation) | Transformer Decoder (causal LM) · Chinese Wikipedia validation | perplexity: 12.96 -> 12.75 | No clear effect |
| replace BERT with DecBERT-Diff (causal masks in lower layers), with PE | BERT-reImp w/ PE · GLUE dev avg (small-scale) | average score: 83.37 -> 83.84 | Improved |
| replace BERT with DecBERT-Diff (causal masks), with PE | BERT-reImp w/ PE · English Wikipedia validation | valid PPL: 4.28 -> 4.07 | Improved |
| use opposite direction mask in second decoder layer (Diff vs Same), with PE (ablation) | DecBERT w/ PE · GLUE dev avg (small-scale) | average score: 83.51 -> 83.84 | Improved |
| use DecBERT without position embeddings instead of BERT w/ PE | DecBERT-Same w/o PE · GLUE dev avg (small-scale) | average score: 83.37 vs 83.05 | No clear effect |
| replace BERT with DecBERT-Diff in large-scale pretraining | BERT-reImp · GLUE test avg (large-scale) | average score: 82.4 -> 83.6 | Improved |
| replace BERT with DecBERT-Diff in large-scale pretraining | BERT-reImp · RTE test (large-scale) | accuracy: 66.5 -> 72.0 | Improved |
| replace BERT with DecBERT-Diff in large-scale pretraining | BERT-reImp · SST-2 and QQP test (large-scale) | accuracy: 94.7 -> 94.5 (SST-2); 89.4 -> 89.3 (QQP) | No clear effect |
| add causal masks to lower layers | BERT-reImp · pretraining speed (large-scale) | valid PPL: 3.48 at epoch 13 vs same at epoch 15 | Improved |
Open problems in long-context KV and memory attention
How can long-context attention be made fast and small in memory without losing quality against full attention?
- Validated only on models up to about 13B parameters. · 8 papers state it
- Speedups are limited because the code is not fused or kernel-optimized. · 5 papers state it
- Compressed or sparse attention still trails full attention. · 4 papers state it
Closest papers by meaning
- DEBERTA: DECODING-ENHANCED BERT WITH DISENTANGLED ATTENTION (ICLR 2021 · similarity 0.89)
- Symmetric Dot-Product Attention for Efficient Training of BERT Language Models (ACL 2024 · similarity 0.88)
- The Locality and Symmetry of Positional Encodings (EMNLP 2023 · similarity 0.88)
- Rethinking Positional Encoding in Language Pre-training (ICLR 2021 · similarity 0.88)
- StableMask: Refining Causal Masking in Decoder-only Transformer (ICML 2024 · similarity 0.88)
- Convolutions and Self-Attention: Re-interpreting Relative Positions in Pre-trained Language Models (ACL 2021 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.