Parameter and Data Efficient Continual Pre-training for Robustness to Dialectal Variance in Arabic
Summary
Arabic has many dialects, such as Egyptian, Levantine and Moroccan, that differ from Modern Standard Arabic (MSA) in vocabulary, morphology and even meaning. Dialectal text and dialect–English translations are scarce. The authors (Amazon Web Services) ask three things: whether continuing to pretrain multilingual BERT on Arabic is a cheaper but equally good alternative to building an Arabic model from scratch, and whether small dialect corpora or parallel corpora add further value. Because memory and latency were tightly limited, they use 4-layer BERT encoders. These are trained with MLM on roughly 326M deduplicated Arabic sentences, then further trained on 102K Egyptian Arabic sentences and on about 255K GALE/BOLT Arabic–English pairs with a TLM loss. On the eight ALUE tasks their models beat truncated AraBERT and mBERT. Continued mBERT matches the scratch model while needing about 60% of its training time. Dialect data clearly helps the scratch model but barely changes the mBERT-based one, and parallel data adds almost nothing. The findings are relevant wherever a standard variety dominates the data but people write in dialects.
Key points
-
Evaluation uses the ALUE benchmark with eight tasks: FID, MDD, MQ2Q, SVREG, SEC, OOLD, OHSD and XNLI. Six of them contain dialectal data, mostly from Twitter. Baselines are AraBERT, AraBERT-Twitter and mBERT, each cut down to its first 4 layers.
-
Three models are compared:
- m-B-Ar: mBERT pretrained further for 800K steps.
- B-Ar: trained from scratch for 1.3M steps.
- t-B-Ar: like B-Ar, but with its own 64K WordPiece vocabulary.
Average scores are 68.76, 68.99 and 71.91 respectively, against 65.50 for AraBERT.
-
The pretraining corpus C1 combines Oscar, Arabic Wiki, CC100, Arabic Gigaword, Newswire, GALE and BOLT. Before training, sentences that consist mostly of repeated content are removed.
-
Adding the Egyptian Oscar corpus (C2) raises B-Ar's average from 68.99 to about 73. The same step moves m-B-Ar only from 68.76 to 69.16.
-
Adding the parallel data (C3) with TLM gives negligible or small gains. A sharp drop on FID cancels most of the improvements seen on the other dialectal tasks, so the authors do not claim a benefit.
Interesting ideas
- I1. The deduplication flags near-duplicates cheaply: hash every 10-token sliding window with MD5, count how often each hash appears across the corpus, and drop a sentence when 70% or more of its windows are repeated, while keeping one copy of exact duplicates. This catches boilerplate without pairwise comparisons. — For Mova (learn): Apply the same window-hash filter to silver corpora before witness parsers vote, so repeated templated sentences do not inflate agreement or skew training.
- I2. The authors keep only the bottom 4 layers of a pretrained 12-layer encoder and then fine-tune it, losing little accuracy while gaining speed and memory. This is a cheap way to get a small model that still carries pretrained knowledge. — For Mova (tree): gparse could start from a truncated pretrained encoder to cut GPU cost, after checking LAS against the full-depth version.
- I3. Training happens in ordered stages (broad corpus, then a small dialect corpus, then parallel pairs), and this worked better than mixing everything into one pool. A small in-domain stage at the end gives the scarce data a stronger voice. — For Mova (tree): After main treebank training, a short final pass on a small non-standard set such as tweets or informal dialogue could make the parser robust to that register without retraining from scratch.
- I4. The benchmark deliberately mixes standard and dialectal tasks and reports a separate average for the dialectal subset. This shows both the gain on new varieties and whether the standard variety regressed. — For Mova (learn): Score each adaptation against a standard-English control set alongside the target register, as a built-in negative control against hidden regressions.
- I5. The parallel-data result is examined task by task, which shows that one collapsing task (FID) hid gains elsewhere. An average alone would have suggested "no effect." — For Mova (answer): Break test results down per test type (school tests, maths problems, fable QA) so that one failing reader does not hide or fake progress in the others.
Cite
@misc{sarkar2022parameter,
title = {{Parameter and Data Efficient Continual Pre-training for Robustness to Dialectal Variance in Arabic}},
author = {Sarkar, Soumajyoti and Lin, Kaixiang and Sengupta, Sailik and Lausen, Leonard and Zha, Sheng and Mansour, Saab},
year = {2022},
doi = {10.48550/arxiv.2211.03966},
eprint = {2211.03966},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2211.03966}
}References
- Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pages 4171–4186, Minneapolis, Minnesota, June 2019. Association for Computational Linguistics. doi: 10.18653/v1/N19-1423. URL https://aclanthology.org/N19-1423. ↗
- Alexis CONNEAU and Guillaume Lample. Cross-lingual language model pretraining. In Advances in Neural Information Processing Systems, volume 32. Curran Associates, Inc., 2019. URL https://proceedings.neurips.cc/paper/2019/file/c04c19c2c2474dbf5f7ac4372c5b9af1-Paper.pdf. ↗
- Telmo Pires, Eva Schlinger, and Dan Garrette. How multilingual is multilingual bert? arXiv preprint arXiv:1906.01502, 2019. ↗ our card
- Yoshinari Fujinuma, Jordan Boyd-Graber, and Katharina Kann. Match the script, adapt if multilingual: Analyzing the effect of multilingual pretraining on cross-lingual transferability. arXiv preprint arXiv:2203.10753, 2022. ↗
- Omar F Zaidan and Chris Callison-Burch. Arabic dialect identification. Computational Linguistics, 40 (1):171–202, 2014. SVREG SEC OOLD OHSD XNLI 50.82 53.72 51.42 51.65 69.72 70.31 41.05 40.13 40.75 41.88 47.66 48.03 94.62 94.56 95.18 94.58 94.53 94.67 97.13 97.16 97.51 97.27 97.75 97.91 50.57 51.33 52.69 51.04 52.13 51.38 find our card
- Nizar Habash, Ryan Roth, Owen Rambow, Ramy Eskander, and Nadi Tomeh. Morphological analysis and disambiguation for dialectal arabic. In Proceedings of the 2013 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pages 426– 432, 2013. find
- Wissam Antoun, Fady Baly, and Hazem Hajj. Arabert: Transformer-based model for arabic language understanding. arXiv preprint arXiv:2003.00104, 2020. ↗ our card
- Haitham Seelawi, Ibraheem Tuffaha, Mahmoud Gzawi, Wael Farhan, Bashar Talafha, Riham Badawi, Zyad Sober, Oday Al-Dweik, Abed Alhakim Freihat, and Hussein Al-Natsheh. Alue: Arabic language understanding evaluation. In Proceedings of the Sixth Arabic Natural Language Processing Workshop, pages 173–184, 2021. find
- Ganesh Jawahar, Benoît Sagot, and Djamé Seddah. What does bert learn about the structure of language? In ACL 2019-57th Annual Meeting of the Association for Computational Linguistics, 2019. find our card
- Xiaoyi Ma, Dalal Zakhary, and Stephanie Strassel. GALE Phase 1 Arabic Broadcast News Parallel Text - Part 1 LDC2007T24. Web Download. Linguistic Data Consortium, Philadelphia, 2007. find
- Xiaoyi Ma, Dalal Zakhary, and Stephanie Strassel. GALE Phase 1 Arabic Broadcast News Parallel Text - Part 2 LDC2008T09. Web Download. Linguistic Data Consortium, Philadelphia, 2008. find
- Jennifer Tracey et al. BOLT Egyptian Arabic SMS/Chat Parallel Training Data LDC2021T15. Web Download. Linguistic Data Consortium, Philadelphia, 2021. find
- Ilya Loshchilov and Frank Hutter. arXiv:1711.05101, 2017. ↗
This page in Markdown → https://md.research.elamur.ai/free/en/papers/sarkar-2022-parameter-data-efficient-continual-pre/