Research map / Architectures and efficiency / Attention and transformers
Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inference
Benjamin Warner, Antoine Chaffin, Benjamin Clavié, Orion Weller, Oskar Hallström, Said Taghadouini, Alexis Gallagher, Raja Biswas, Faisal Ladhak, Tom Aarsen, Nathan Cooper, Griffin Adams and 2 more
Answer.AI · LightOn · Johns Hopkins University · NVIDIA · Hugging Face
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 |
|---|---|---|---|
| use ModernBERT-base instead of GTE-en-MLM-base | encoder · BEIR single-vector retrieval | nDCG@10: 41.4 -> 41.6 | Improved |
| use ModernBERT-large instead of GTE-en-MLM-large | encoder · BEIR single-vector retrieval | nDCG@10: 42.5 -> 44.0 | Improved |
| use ModernBERT-base instead of GTE-en-MLM-base | encoder · MLDR out-of-domain (DPR) | nDCG@10: 34.3 -> 27.4 | Hurt |
| fine-tune in domain on MLDR | ModernBERT vs GTE-en-MLM · MLDR in-domain (DPR) | nDCG@10: 44.0 vs 44.4 (base) | Mixed |
| use ModernBERT instead of other long-context encoders | encoder · MLDR out-of-domain (ColBERT) | nDCG@10: 80.2 vs 69.3 (base) | Improved |
| use ModernBERT-base instead of DeBERTaV3-base | encoder · GLUE dev (avg) | score: 88.1 -> 88.4 | Improved |
| use ModernBERT-large instead of DeBERTaV3-large | encoder · GLUE dev (avg) | score: 91.4 -> 90.4 | Hurt |
| pretrain on code-including data mixture with code-aware tokenizer | ModernBERT · CodeSearchNet | nDCG@10: 44.9 -> 56.4 (vs GTE-en-MLM-base) | Improved |
| use ModernBERT-base instead of GTE-en-MLM-base | encoder · inference speed, long-context fixed length | thousand tokens/s: 46.8 -> 123.7 | Improved |
| replace global attention in every layer with global every third layer plus 128-token local windows (ablation) | ModernBERT · downstream tasks (ablation, 100B tokens) | downstream performance | No clear effect |
| use parallel attention (ablation) | ModernBERT · downstream tasks (ablation) | downstream performance | Hurt |
| use GeGLU instead of SwiGLU (ablation) | ModernBERT · downstream tasks (ablation) | downstream performance | No clear effect |
Earlier methods this paper compares with
Named baselines from earlier accepted papers in this paper's results tables: better than 0 of 1 on most shared results.
- DeBERTaV3-base — DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharing (ICLR 2023) · better on 1 of 2 shared results
Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.
Open problems in sparse efficient transformers for long context
Do sparse and efficient long-context attention methods keep their quality and speed at larger model scale?
- Not tested on models larger than a few billion parameters. · 12 papers state it
- Training costs more or is less stable than a standard transformer. · 7 papers state it
- Quality still falls behind softmax attention or the teacher model. · 6 papers state it
Closest papers by meaning
- MosaicBERT: A Bidirectional Encoder Optimized for Fast Pretraining (NeurIPS 2023 · similarity 0.90)
- DeeBERT: Dynamic Early Exiting for Accelerating BERT Inference (ACL 2020 · similarity 0.89)
- NarrowBERT: Accelerating Masked Language Model Pretraining and Inference (ACL 2023 · similarity 0.89)
- bert2BERT: Towards Reusable Pretrained Language Models (ACL 2022 · similarity 0.88)
- EarlyBERT: Efficient BERT Training via Early-bird Lottery Tickets (ACL 2021 · similarity 0.87)
- ShareBERT: Embeddings Are Capable of Learning Hidden Layers (AAAI 2024 · similarity 0.86)
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.