[Paper Review] Bertinho: Galician BERT Representations
This paper introduces Bertinho, a monolingual BERT model fine-tuned for Galician using less than 45 million tokens on a single GPU. Despite limited data, the 12-layer Bertinho base model outperforms multilingual BERT (mBERT) across POS tagging, dependency parsing, and named entity recognition, with the 6-layer variant also surpassing mBERT in most tasks.
This paper presents a monolingual BERT model for Galician. We follow the recent trend that shows that it is feasible to build robust monolingual BERT models even for relatively low-resource languages, while performing better than the well-known official multilingual BERT (mBERT). More particularly, we release two monolingual Galician BERT models, built using 6 and 12 transformer layers, respectively; trained with limited resources (~45 million tokens on a single GPU of 24GB). We then provide an exhaustive evaluation on a number of tasks such as POS-tagging, dependency parsing and named entity recognition. For this purpose, all these tasks are cast in a pure sequence labeling setup in order to run BERT without the need to include any additional layers on top of it (we only use an output classification layer to map the contextualized representations into the predicted label). The experiments show that our models, especially the 12-layer one, outperform the results of mBERT in most tasks.
Motivation & Objective
- To develop monolingual BERT models for Galician, a low-resource language lacking contextualized embeddings.
- To evaluate the impact of model depth (6 vs. 12 layers) on performance under data constraints.
- To compare monolingual Galician BERT (Bertinho) against multilingual BERT (mBERT) on downstream NLP tasks.
- To investigate the effectiveness of a two-phase pre-training strategy for low-resource language modeling.
- To release freely available, high-performing Galician BERT models to the NLP community.
Proposed method
- Pre-trained a 6-layer and a 12-layer BERT model on a monolingual Galician corpus of under 45 million tokens.
- Used a single TESLA P40 GPU for training, applying standard BERT objectives: masked language modeling and next sentence prediction.
- Designed a custom tokenizer to improve morphological segmentation of Galician words.
- Evaluated models on POS tagging, dependency parsing, and named entity recognition (NER) using standard datasets.
- Compared performance against the official multilingual BERT (mBERT) model across all tasks.
- Explored a two-phase training strategy—initial pre-training on shorter sequences, followed by fine-tuning on longer sequences—despite limited hardware constraints.
Experimental results
Research questions
- RQ1Can a monolingual BERT model trained on limited Galician data outperform mBERT in downstream NLP tasks?
- RQ2How does model depth (6 vs. 12 layers) affect performance when training data is scarce?
- RQ3Does a two-phase pre-training strategy improve model performance for low-resource languages like Galician?
- RQ4To what extent does a custom tokenizer enhance morphological representation in Galician BERT models?
- RQ5Why does mBERT outperform monolingual models in NER despite underperforming in other tasks?
Key findings
- The 12-layer Bertinho base model outperformed mBERT across all downstream tasks, including POS tagging, dependency parsing, and NER.
- The 6-layer Bertinho small model also surpassed mBERT in most tasks, demonstrating strong performance with reduced computational cost.
- mBERT performed better than Bertinho in NER, particularly on complex names and common noun-based organizations, though some errors were attributed to gold-standard mislabelings.
- The two-phase training strategy hurt performance, likely due to small batch sizes during the second phase caused by hardware limitations.
- The custom tokenizer improved morphological segmentation, especially for inflected Galician words.
- Despite using less than 45 million tokens—fewer than models for related languages like BETO—Bertinho achieved state-of-the-art results for Galician NLP.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.