about
ModernBERT (arxiv.org)
3 points by fzliu on Dec 19, 2024 | hide | past | pdf | 1 comment on HN

In plain words: A rebuilt BERT — the model that reads a sentence at once to judge or search text — adds modern training tricks, 2 trillion words, and 8,192-word inputs. It beats older encoders on classification and search, and is fastest and uses least memory on common GPUs.

Abstract · Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inference

Encoder-only transformer models such as BERT offer a great performance-size tradeoff for retrieval and classification tasks with respect to larger decoder-only models. Despite being the workhorse of numerous production pipelines, there have been limited Pareto improvements to BERT since its release. In this paper, we introduce ModernBERT, bringing modern model optimizations to encoder-only models and representing a major Pareto improvement over older encoders. Trained on 2 trillion tokens with a native 8192 sequence length, ModernBERT models exhibit state-of-the-art results on a large pool of evaluations encompassing diverse classification tasks and both single and multi-vector retrieval on different domains (including code). In addition to strong downstream performance, ModernBERT is also the most speed and memory efficient encoder and is designed for inference on common GPUs.

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, et al.
arXiv:2412.13663 · cs.CL, cs.AI · submitted Dec 18, 2024 · updated Dec 19, 2024
abstract · pdf · html

add comment on HN

Currently ongoing discussion with author participation https://news.ycombinator.com/item?id=42463315