Abstract
Large Pre-trained Language Models (PLMs) have become ubiquitous in the development of language understanding technology and lie at the heart of many artificial intelligence advances. While advances reported for English using PLMs are unprecedented, reported advances using PLMs for Hebrew are few and far between. The problem is twofold. First, so far, Hebrew resources for training large language models are not of the same magnitude as their English counterparts. Second, there are no accepted benchmarks to evaluate the progress of Hebrew PLMs on, and in particular, sub-word (morphological) tasks. We aim to remedy both aspects. We present AlephBERT, a large PLM for Modern Hebrew, trained on a larger vocabulary and a larger dataset than any Hebrew PLM before. Moreover, we introduce a novel language-agnostic architecture that can recover all of the sub-word morphological segments encoded in contextualized word embedding vectors. Based on this new morphological component, we offer a new PLM evaluation suite consisting of multiple tasks and benchmarks that cover sentence-level, word-level, and sub-word level analyses. On all tasks, AlephBERT obtains state-of-the-art results beyond contemporary Hebrew baselines.
Introduction
Most dominant language models, such as BERT, were originally optimized for English, a language with relatively simple morphology. In contrast, Hebrew is a Morphologically Rich Language (MRL), where a single space-delimited word often contains multiple functional units (morphemes), such as prefixes for conjunctions or prepositions attached directly to a noun. This complexity creates two major hurdles for Hebrew NLP: a significant resource gap in training data compared to English, and a tokenization mismatch where standard sub-word units (WordPieces) do not align with meaningful morphological segments.
Methodology: The Morphological Extraction Model
To bridge the gap between BERT's standard tokenization and Hebrew's linguistic requirements, the authors developed AlephBERT. While the core model follows the BERT architecture (available in base and small sizes), its primary innovation is the Morphological Extraction Model.
Instead of altering the underlying tokenizer, this model acts as a neural "extractor" that decodes morphological information directly from the contextualized vectors produced by AlephBERT. It utilizes a sequence-to-sequence architecture—specifically a BiLSTM encoder and an LSTM decoder—to translate these vectors into character sequences interspersed with morphological boundary markers. This allows the system to predict Part-of-Speech (POS) tags and Named Entity Recognition (NER) labels for each extracted segment simultaneously.
Data and Training
The researchers addressed the Hebrew resource gap by compiling a massive 17.9GB corpus containing 1.9 billion words. This dataset includes a deduplicated version of the Hebrew Common Crawl (OSCAR) and the standard Hebrew Wikipedia. However, the most significant addition was a collection of 70 million Hebrew tweets gathered over four years. This large-scale social media crawl provided the necessary volume to reach a competitive scale for modern PLM training.
Key Results and Insights
AlephBERT achieved new state-of-the-art (SOTA) results across a comprehensive suite of Hebrew NLP benchmarks:
- Morphological Segmentation: Achieved a near-perfect F1 score of 98.20 on the Universal Dependencies (UD) corpus.
- Dependency Parsing: On the SPMRL dataset, the Labelled Attachment Score (LAS) reached 76.9, a substantial jump from the previous SOTA of 69.41.
- Named Entity Recognition: Achieved a word-level F1 score of 91.12 on the BMC corpus.
- Sentiment Analysis: Reached 84.91% accuracy on a Hebrew Facebook dataset.
A key insight from this work is that morphological information is implicitly encoded within BERT's contextualized vectors. By using an effective extraction model, researchers can bypass the need for linguistically perfect tokenizers. Furthermore, the study demonstrates that large-scale Twitter data can serve as a "silver bullet" for mid-resource languages, providing the volume necessary to train deep models despite the informal nature of the text.
Conclusion
AlephBERT represents a significant step forward for Hebrew NLP, providing a robust model and a standardized evaluation suite. While the model excels at syntactic and morphological tasks, future work may focus on improving performance for tasks requiring deeper semantic nuance. The Morphological Extraction Model itself is language-agnostic and holds potential for application to other morphologically rich languages like Arabic or Turkish.
Summary updated