[Mova](https://md.mova.elamur.ai/free/en/) · [this page in HTML](https://mova.elamur.ai/free/en/docs/papers/langstream-2023-shalumov-hero-roberta-longformer-hebrew-language/)

[home](https://md.mova.elamur.ai/free/en/) / [docs](https://md.mova.elamur.ai/free/en/docs/) / [papers](https://md.mova.elamur.ai/free/en/docs/papers/) / [Modern Hebrew](https://md.mova.elamur.ai/free/en/docs/papers/he/) / HeRo: RoBERTa and Longformer Hebrew Language Models

# HeRo: RoBERTa and Longformer Hebrew Language Models

**Authors:** [Vitaly Shalumov](https://md.mova.elamur.ai/free/en/docs/papers/authors/vitaly-shalumov/); [Harel Haskey](https://md.mova.elamur.ai/free/en/docs/papers/authors/harel-haskey/) · **Year:** 2023 · **Venue:** arXiv:2304.11077 **Link:** [arxiv.org/abs/2304.11077](https://arxiv.org/abs/2304.11077) · library `langstream-2023-shalumov-hero-roberta-longformer-hebrew-language` · **Licence:** [arXiv non-exclusive license to distribute](https://arxiv.org/licenses/nonexclusive-distrib/1.0/license.html) — summary only

[**1** citations](https://openalex.org/works?filter=cites:W4366850652) openalex · 2026-10-18[**14** citations in our library](https://md.mova.elamur.ai/free/en/docs/papers/cited-by/langstream-2023-shalumov-hero-roberta-longformer-hebrew-language/) of the 140673 papers whose bibliographies we read[arXiv:2304.11077](https://openalex.org/S4306400194)[licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [Publisher's page](https://arxiv.org/abs/2304.11077)
- [PDF](https://arxiv.org/pdf/2304.11077)
- [arXiv 2304.11077](https://arxiv.org/abs/2304.11077)
- [OpenAlex](https://openalex.org/W4366850652)

**Authors (2)**

1. [Vitaly Shalumov](https://openalex.org/A5000535266) [ORCID](https://orcid.org/0000-0002-9455-2134) · h 6 · 221 citations · 15 works
2. [Harel Haskey](https://openalex.org/A5017795900) h 1 · 1 citations · 2 works

Citations and author metrics from openalex (2026-10-18); authors with the same name are not always told apart.

## What it is about

The authors build a Hebrew pre-training corpus, HeDC4, from mC4 and OSCAR 22.01. They deduplicate it with MinHash, clean it, and reach about 2.5 times the size of the corpus used for AlephBERT. On it they train HeRo, a RoBERTa-base model for inputs up to 512 tokens, and LongHeRo, a Longformer started from a mid-training HeRo checkpoint for long documents. HeRo beats AlephBERT on sentiment (SMCD accuracy 89.56 against 89.02), on NER (BMC F1 93.56) and on ParaShoot QA (F1 58.2 against 49.6). LongHeRo reaches 89.1 F1 on a machine-translated Hyperpartisan set, close to the English Longformer (90.1).

## Ideas

- I1. Near-duplicate removal as a step before any Hebrew corpus is used: MinHash over shingles, applied within each source and across sources. Measure how many documents go and check the removed pairs by eye, as the paper shows one near-duplicate example. Targets the corpus pipeline of `tools/ocrfix` output and any web text Mova collects.
- I2. Report every Hebrew test in two views, as the paper does: morph-based (gold segmentation given) and token-based (raw tokens). Run `tools/hbo` on the same MACULA-derived gold both ways, so the segmenter's loss is separated from the parser's loss.
- I3. Translated test sets need a manual check on a sample. The authors machine-translated Hyperpartisan and checked only a subset by hand. Any Hebrew test Mova builds by translation should be sampled and checked the same way, and kept as a test, never as training data.

## For Mova

I2 goes into `tools/hbo` (the evaluation harness) and the segmentation chapter [1. Script and pointing](https://md.mova.elamur.ai/free/en/docs/languages/hbo/01-script/). I1 is a data step for the Hebrew corpora. I3 is a rule for any translated test set in `languages/he/`.

## Cite

The paper itself, not this card. BibTeX from the library's record of the work. [arXiv 2304.11077](https://arxiv.org/abs/2304.11077)

```
@misc{shalumov2023hero,
  title = {{HeRo: RoBERTa and Longformer Hebrew Language Models}},
  author = {Shalumov, Vitaly and Haskey, Harel},
  year = {2023},
  eprint = {2304.11077},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.11077}
}
```

- [← previous ivrit.ai: A Comprehensive Dataset of Hebrew Speech for AI Research and Development](https://md.mova.elamur.ai/free/en/docs/papers/langstream-2023-marmor-ivrit-ai-comprehensive-dataset-hebrew/)
- [next → Introducing DictaLM -- A Large Generative Language Model for Modern Hebrew](https://md.mova.elamur.ai/free/en/docs/papers/langstream-2023-shmidman-introducing-dictalm-large-generative-language/)
- [↑ back to Modern Hebrew](https://md.mova.elamur.ai/free/en/docs/papers/he/)

## References

27 references, 5 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. Julien Abadji, Pedro Ortiz Suarez, Laurent Romary, and Benoît Sagot. 2022. Towards a cleaner document-oriented multilingual crawled corpus. arXiv preprint arXiv:2201.06642. [↗](https://arxiv.org/abs/2201.06642)
2. Adam Amram, Anat Ben David, and Reut Tsarfaty. 2018. Representations and architectures in neural sentiment analysis for morphologically rich languages: A case study from modern hebrew. In Proceedings of the 27th International Conference on Computational Linguistics, pages 2242– 2252. [find](https://scholar.google.com/scholar?q=Adam+Amram%2C+Anat+Ben+David%2C+and+Reut+Tsarfaty%2E+2018%2E+Representations+and+architectures+in+neural+sentiment+analysis+for+morphologically+rich+languages%3A+A+case+study+from+modern+hebrew%2E+In+Proceedings+) [our card](https://md.mova.elamur.ai/free/en/docs/papers/coling-2018-amram-representations-architectures-neural-sentiment-analysis/)
3. Dan Bareket and Reut Tsarfaty. 2021. Neural modeling for named entities and morphology (nemoˆ2). Transactions of the Association for Computational Linguistics, 9:909– 928. [find](https://scholar.google.com/scholar?q=Dan+Bareket+and+Reut+Tsarfaty%2E+2021%2E+Neural+modeling+for+named+entities+and+morphology+%28nemo%CB%862%29%2E+Transactions+of+the+Association+for+Computational+Linguistics%2C+9%3A909%E2%80%93+928%2E)
4. Iz Beltagy, Matthew E Peters, and Arman Cohan. 2020. Longformer: The long-document transformer. arXiv preprint arXiv:2004.05150. [↗](https://arxiv.org/abs/2004.05150)
5. Andrei Z Broder. 1997. On the resemblance and containment of documents. In Proceedings. Compression and Complexity of SE-QUENCES 1997 (Cat. No. 97TB100171), pages 21–29. IEEE. [find](https://scholar.google.com/scholar?q=Andrei+Z+Broder%2E+1997%2E+On+the+resemblance+and+containment+of+documents%2E+In+Proceedings%2E+Compression+and+Complexity+of+SE%2DQUENCES+1997+%28Cat%2E+No%2E+97TB100171%29%2C+pages+21%E2%80%9329%2E+IEEE%2E)
6. Avihay Chriqui and Inbal Yahav. 2021. Hebert & hebemo: a hebrew bert model and a tool for polarity analysis and emotion recognition. arXiv preprint arXiv:2102.01909. [↗](https://arxiv.org/abs/2102.01909) [our card](https://md.mova.elamur.ai/free/en/docs/papers/langstream-2021-chriqui-hebert-hebemo-hebrew-bert-model/)
7. Marta R Costa-jussà, James Cross, Onur Çelebi, Maha Elbayad, Kenneth Heafield, Kevin Heffernan, Elahe Kalbassi, Janice Lam, Daniel Licht, Jean Maillard, et al. 2022. No language left behind: Scaling human-centered machine translation. arXiv preprint arXiv:2207.04672. [↗](https://arxiv.org/abs/2207.04672)
8. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2018. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805. [↗](https://arxiv.org/abs/1810.04805)
9. Eylon Guetta, Avi Shmidman, Shaltiel Shmidman, Cheyn Shmuel Shmidman, Joshua Guedalia, Moshe Koppel, Dan Bareket, Amit Seker, and Reut Tsarfaty. 2022. Large pre-trained models with extra-large vocabularies: A contrastive analysis of hebrew bert models and a new one to outperform them all. arXiv preprint arXiv:2211.15199. [↗](https://arxiv.org/abs/2211.15199) [our card](https://md.mova.elamur.ai/free/en/docs/papers/hbo-2022-gueta-large-pre-trained-models-extra/)
10. Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat, and Mingwei Chang. 2020. Retrieval augmented language model pre-training. In International Conference on Machine Learning, pages 3929–3938. PMLR. [find](https://scholar.google.com/scholar?q=Kelvin+Guu%2C+Kenton+Lee%2C+Zora+Tung%2C+Panupong+Pasupat%2C+and+Mingwei+Chang%2E+2020%2E+Retrieval+augmented+language+model+pre%2Dtraining%2E+In+International+Conference+on+Machine+Learning%2C+pages+3929%E2%80%933938%2E+PMLR%2E)
11. Omri Keren and Omer Levy. 2021. Parashoot: A hebrew question answering dataset. arXiv preprint arXiv:2109.11314. [↗](https://arxiv.org/abs/2109.11314) [our card](https://md.mova.elamur.ai/free/en/docs/papers/ud-2021-keren-parashoot-hebrew-question-answering-dataset/)
12. Johannes Kiesel, Maria Mestre, Rishabh Shukla, Emmanuel Vincent, Payam Adineh, David Corney, Benno Stein, and Martin Potthast. 2019. Semeval-2019 task 4: Hyperpartisan news detection. In Proceedings of the 13th International Workshop on Semantic Evaluation, pages 829–839. [find](https://scholar.google.com/scholar?q=Johannes+Kiesel%2C+Maria+Mestre%2C+Rishabh+Shukla%2C+Emmanuel+Vincent%2C+Payam+Adineh%2C+David+Corney%2C+Benno+Stein%2C+and+Martin+Potthast%2E+2019%2E+Semeval%2D2019+task+4%3A+Hyperpartisan+news+detection%2E+In+Proceedings+o)
13. Katherine Lee, Daphne Ippolito, Andrew Nystrom, Chiyuan Zhang, Douglas Eck, Chris Callison-Burch, and Nicholas Carlini. 2021. Deduplicating training data makes language models better. arXiv preprint arXiv:2107.06499. [↗](https://arxiv.org/abs/2107.06499)
14. Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692. [↗](https://arxiv.org/abs/1907.11692)
15. Ilya Loshchilov and Frank Hutter. 2017. Decoupled weight decay regularization. arXiv preprint arXiv:1711.05101. [↗](https://arxiv.org/abs/1711.05101)
16. Naama Ben Mordecai and Michael Elhadad. 2005. Hebrew named entity recognition. [find](https://scholar.google.com/scholar?q=Naama+Ben+Mordecai+and+Michael+Elhadad%2E+2005%2E+Hebrew+named+entity+recognition%2E)
17. Gabriele Sarti and Malvina Nissim. 2022. It5: Large-scale text-to-text pretraining for italian language understanding and generation. arXiv preprint arXiv:2203.03759. [↗](https://arxiv.org/abs/2203.03759)
18. Amit Seker, Elron Bandel, Dan Bareket, Idan Brusilovsky, Refael Shaked Greenfeld, and Reut Tsarfaty. 2021. Alephbert: A hebrew large pre-trained language model to start-off your hebrew nlp application with. arXiv preprint arXiv:2104.04052. [↗](https://arxiv.org/abs/2104.04052) [our card](https://md.mova.elamur.ai/free/en/docs/papers/langstream-2021-seker-alephbert-hebrew-large-pre-trained/)
19. Rico Sennrich, Barry Haddow, and Alexandra Birch. 2015. Neural machine translation of rare words with subword units. arXiv preprint arXiv:1508.07909. [↗](https://arxiv.org/abs/1508.07909)
20. Pedro Javier Ortiz Suárez, Laurent Romary, and Benoît Sagot. 2020. A monolingual approach to contextualized word embeddings for mid-resource languages. arXiv preprint arXiv:2006.06202. [↗](https://arxiv.org/abs/2006.06202)
21. Jörg Tiedemann and Santhosh Thottingal. 2020. Opus-mt–building open translation services for the world. In Proceedings of the 22nd Annual Conference of the European Association for Machine Translation. European Association for Machine Translation. [find](https://scholar.google.com/scholar?q=J%C3%B6rg+Tiedemann+and+Santhosh+Thottingal%2E+2020%2E+Opus%2Dmt%E2%80%93building+open+translation+services+for+the+world%2E+In+Proceedings+of+the+22nd+Annual+Conference+of+the+European+Association+for+Machine+Translation)
22. Trieu H Trinh and Quoc V Le. 2018. A simple method for commonsense reasoning. arXiv preprint arXiv:1806.02847. [↗](https://arxiv.org/abs/1806.02847)
23. Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, et al. 2020. Transformers: State-of-the-art natural language processing. In Proceedings of the 2020 conference on empirical methods in natural language processing: system demonstrations, pages 38–45. [find](https://scholar.google.com/scholar?q=Thomas+Wolf%2C+Lysandre+Debut%2C+Victor+Sanh%2C+Julien+Chaumond%2C+Clement+Delangue%2C+Anthony+Moi%2C+Pierric+Cistac%2C+Tim+Rault%2C+R%C3%A9mi+Louf%2C+Morgan+Funtowicz%2C+et+al%2E+2020%2E+Transformers%3A+State%2Dof%2Dthe%2Dart+natural+la)
24. Linting Xue, Noah Constant, Adam Roberts, Mihir Kale, Rami Al-Rfou, Aditya Siddhant, Aditya Barua, and Colin Raffel. 2020. mt5: A massively multilingual pre-trained text-to-text transformer. arXiv preprint arXiv:2010.11934. [↗](https://arxiv.org/abs/2010.11934)
25. Manzil Zaheer, Guru Guruganesh, Kumar Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, et al. 2020. Big bird: Transformers for longer sequences. Advances in Neural Information Processing Systems, 33:17283–17297. [find](https://scholar.google.com/scholar?q=Manzil+Zaheer%2C+Guru+Guruganesh%2C+Kumar+Avinava+Dubey%2C+Joshua+Ainslie%2C+Chris+Alberti%2C+Santiago+Ontanon%2C+Philip+Pham%2C+Anirudh+Ravula%2C+Qifan+Wang%2C+Li+Yang%2C+et+al%2E+2020%2E+Big+bird%3A+Transformers+for+longer+s)
26. Rowan Zellers, Ari Holtzman, Hannah Rashkin, Yonatan Bisk, Ali Farhadi, Franziska Roesner, and Yejin Choi. 2019. Defending against neural fake news. Advances in neural information processing systems, 32. [find](https://scholar.google.com/scholar?q=Rowan+Zellers%2C+Ari+Holtzman%2C+Hannah+Rashkin%2C+Yonatan+Bisk%2C+Ali+Farhadi%2C+Franziska+Roesner%2C+and+Yejin+Choi%2E+2019%2E+Defending+against+neural+fake+news%2E+Advances+in+neural+information+processing+systems%2C+)
27. Yukun Zhu, Ryan Kiros, Rich Zemel, Ruslan Salakhutdinov, Raquel Urtasun, Antonio Torralba, and Sanja Fidler. 2015. Aligning books and movies: Towards story-like visual explanations by watching movies and reading books. In Proceedings of the IEEE international conference on computer vision, pages 19–27. [find](https://scholar.google.com/scholar?q=Yukun+Zhu%2C+Ryan+Kiros%2C+Rich+Zemel%2C+Ruslan+Salakhutdinov%2C+Raquel+Urtasun%2C+Antonio+Torralba%2C+and+Sanja+Fidler%2E+2015%2E+Aligning+books+and+movies%3A+Towards+story%2Dlike+visual+explanations+by+watching+movies+)
