---
title: "gaBERT –- an Irish Language Model — paper by Barry et al. (2022)"
description: "gaBERT trains BERT on Irish text from several sources and tests how well it parses sentences, fills pronoun gaps, and identifies verbal expressions."
canonical: "https://research.elamur.ai/free/en/papers/barry-2022-gabert-irish-language-model/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/barry-2022-gabert-irish-language-model/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2022](https://md.research.elamur.ai/free/en/papers/2022/) / gaBERT –- an Irish Language Model

# gaBERT –- an Irish Language Model

Paper · 2022 · James Barry, Joachim Wagner, Lauren Cassidy et al.

**Authors:** [James Barry](https://md.research.elamur.ai/free/en/authors/james-barry/), [Joachim Wagner](https://md.research.elamur.ai/free/en/authors/joachim-wagner/), Lauren Cassidy, Alan Cowap, [Teresa Lynn](https://md.research.elamur.ai/free/en/authors/teresa-lynn/), [Abigail Walsh](https://md.research.elamur.ai/free/en/authors/abigail-walsh/), [Mícheál J. Ó Meachair](https://md.research.elamur.ai/free/en/authors/micheal-j-o-meachair/) and [Jennifer Foster](https://md.research.elamur.ai/free/en/authors/jennifer-foster/) · **Year:** 2022 · **Venue:** Proceedings of the Thirteenth Language Resources and Evaluation Conference · **Licence:** [CC BY-NC 4.0 (ELRA, LREC proceedings)](https://creativecommons.org/licenses/by-nc/4.0/)

[Cited by **18** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/barry-2022-gabert-irish-language-model/cited-by/) · Proceedings of the Thirteenth Language Resources and Evaluation Conference · [licence](https://creativecommons.org/licenses/by-nc/4.0/)

- [Publisher's page](https://aclanthology.org/2022.lrec-1.511/)
- [PDF](https://aclanthology.org/2022.lrec-1.511.pdf)

## Summary

Irish has relatively few digital language resources, and its grammar gives those resources a lot of work to do. The same word can appear in several forms, the start of a word can change with its grammatical surroundings, and the words that make up a verbal expression can be separated in a sentence. The authors develop gaBERT, an Irish-language version of [BERT](https://md.research.elamur.ai/free/en/papers/devlin-2019-bert-pre-training-deep-bidirectional/), to see what can be gained by training on a wider collection of Irish text. They draw on sources ranging from fiction and official documents to Wikipedia and material collected from the web. They use Irish sentence analysis to choose how to clean the training text and build the vocabulary.

The clearest result comes from [dependency parsing](https://md.research.elamur.ai/free/en/concepts/dependency-parsing/), a task that asks which words are grammatically linked and what kind of relationship each link expresses. On the Irish-IDT test set in [Universal Dependencies](https://md.research.elamur.ai/free/en/concepts/universal-dependencies/) version 2.8, gaBERT reaches a labelled attachment score of 84.0. The corresponding scores are 80.3 for multilingual BERT, 80.4 for the Irish Wikipedia-trained WikiBERT, and 82.3 for multilingual BERT given extra training on the corpora the authors assembled. The last comparison shows that the new text also helps an existing multilingual system. The development experiments favour filtering whole documents and using a vocabulary of 30K entries learned with [SentencePiece](https://md.research.elamur.ai/free/en/papers/kudo-2018-sentencepiece-simple-language-independent-subword/).

The other tests reveal different strengths. In a set of 100 Irish passages with a pronoun hidden, the continued-training version of multilingual BERT restores the original token on 78 items, compared with 75 for gaBERT. A manual review that accepts other grammatically and semantically suitable answers gives the same ordering, with 85 matches and 83 matches, respectively. For identifying and classifying verbal [multiword expressions](https://md.research.elamur.ai/free/en/topics/multiword-expressions/) on the Irish PARSEME test data, the authors’ best gaBERT run has an F1 of 0.427, compared with 0.285 for the best multilingual BERT run. The authors release gaBERT and their experiment code. The results show gains on distinct Irish tasks, with the preferred system depending on what the evaluation asks it to do.

## Deep dive: gaBERT –- an Irish Language Model

gaBERT trains BERT on Irish text from several sources and tests how well it parses sentences, fills pronoun gaps, and identifies verbal expressions. · about 35 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Why Irish text presents a training problem

The authors start from a practical question for [low-resource languages](https://md.research.elamur.ai/free/en/topics/low-resource-languages/). When tools for reading and processing text become part of everyday digital life, a language with few such tools is harder to use in those settings. The Republic of Ireland recognizes Irish as its first official language. The paper cites census figures under which 1.5% of the population use Irish daily outside education. That figure concerns everyday use in the setting identified by the census. The authors use it to explain why digital support matters in a bilingual community where Irish is the less dominant language and where speech and language technology is scarce.

A shortage of text and a shortage of annotations affect different stages of building a tool. Unannotated text provides examples of how words occur together. Annotated text records particular decisions, such as which word is the subject of a verb or which tokens form a verbal expression. BERT can learn from the former before it ever sees the latter. The ability to train on ordinary text therefore creates an opportunity even when task-specific Irish examples are limited. It also puts more weight on decisions about what text to gather, how to clean it, and how to represent it.

The authors point to Irish [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/) as part of the difficulty. A suffix can mark tense, number or person, and nouns change for number and case. Nouns also have grammatical gender, which affects patterns of inflection. Some changes happen at the beginning of words through initial mutations, including lenition and eclipsis. Prepositions may themselves be inflected. A system that encounters a word in a familiar form has to make sense of related forms that may occur less often. The paper connects these properties with data sparsity in earlier work on Irish language processing.

The grammatical structure adds a separate demand. The paper describes verb–subject–object order, frequent fronting through cleft constructions, and distinct forms of the verb corresponding to English *to be*. It also highlights variable multiword expressions whose components may appear apart. Recognising the words in a sentence gives some of the evidence needed to analyse it. Their grammatical roles, their inflected forms, and their relationships to distant words can supply the rest. A useful representation of a word therefore has to account for the sentence around it as well as its spelling.

#### The choice between multilingual and Irish-only training

The research follows a line of work in [language model pretraining](https://md.research.elamur.ai/free/en/topics/language-models/) that learns contextual representations in advance and adapts them to a specific job later. A contextual representation encodes a token in light of the words around it. The same word can thus enter a downstream tool with different information depending on the sentence in which it appears. The paper situates BERT alongside earlier approaches to learning contextual representations and notes the large family of variants and analyses that followed it. [Deep Contextualized Word Representations](https://md.research.elamur.ai/free/en/papers/peters-2018-deep-contextualized-word-representations/)

For Irish, the immediate question was whether to start with a system shared across languages or to build one for Irish alone. A shared system such as multilingual BERT, called mBERT, already provides a starting point for a language with scarce training resources. A dedicated system can devote its text and its inventory of word pieces to a single language. The literature the authors cite gives reasons to try both approaches. Work on Dutch, Finnish and Persian had reported advantages for dedicated systems on tasks in those languages. Other studies made the case for multilingual systems in low-resource settings and drew attention to the part played by how they divide text into tokens. [BERTje](https://md.research.elamur.ai/free/en/papers/de-vries-2019-bertje-dutch-bert-model/) · [BERT for Finnish](https://md.research.elamur.ai/free/en/papers/virtanen-2019-multilingual-enough-bert-finnish/) · [How Good Is Your Tokenizer?](https://md.research.elamur.ai/free/en/papers/rust-2021-how-good-is-your-tokenizer/)

Irish already had an Irish-only system in WikiBERT-ga. The authors describe both that system and the Irish training material of mBERT in terms of Wikipedia. This makes WikiBERT-ga a useful comparison. An existing multilingual system and an existing Irish-only system answer different questions about what is already available. By assembling Irish text from several kinds of sources, the authors can ask what additional material offers beyond an encyclopedia-based starting point. By continuing the training of mBERT on that collection, they can also test a route that retains the existing multilingual system.

Earlier Irish work had produced resources for parsing, tagging, and studying multiword expressions. A resource central to this paper is the Irish-IDT [treebank](https://md.research.elamur.ai/free/en/topics/treebanks/), a collection of sentences supplied with grammatical analyses. It turns a broad question about whether a representation is useful into a measurable one. An Irish parser can be trained against the recorded analyses, then evaluated on sentences held apart from its training examples. The authors can apply a common procedure to different pretrained systems, even though those systems acquired their representations in different ways.

Parsing is a natural development task for this project because it draws on word forms and sentence structure together. But the authors also want evidence from questions that place different demands on the representation. Filling a pronoun gap allows them to look directly at a prediction made from context. Finding a verbal expression asks whether the representation supports learning a specialised set of labels from annotated Irish text. The experiments use each task for a particular purpose. Parsing guides the design, pronoun prediction allows inspection of the answers, and verbal expression identification tests transfer to another supervised task.

### The method, step by step

#### Assemble a collection of Irish text

The authors first build a corpus, meaning a collection of text prepared for systematic use. One portion is the Irish raw-text collection associated with a [CoNLL shared task on multilingual parsing](https://md.research.elamur.ai/free/en/papers/zeman-2017-conll-2017-shared-task-multilingual/). Another, called IMT in the paper, comes from research on Irish [machine translation](https://md.research.elamur.ai/free/en/topics/machine-translation/). It includes public administration and legal documents along with material from public bodies’ websites. The New Corpus for Ireland, or NCI, contributes fiction, news and informational and official writing. These sources bring written Irish from different settings into the same training project.

The other portions are the Irish part of OSCAR, the Irish side of [ParaCrawl](https://md.research.elamur.ai/free/en/papers/banon-2020-paracrawl-web-scale-acquisition-parallel/), and Irish Wikipedia. The authors use the unshuffled OSCAR material, drawn from CommonCrawl. ParaCrawl supplies text collected from multilingual websites. The authors take the Irish side of its Irish–English pairs, so the parallel material becomes a source of Irish sentences. Wikipedia supplies encyclopedia articles. Taken together, the sources contribute a mixture of curated collections, web-derived text and material gathered for other language technology projects.

The corpus counts describe the text after the authors divide it into sentences and words, before applying their experimental filters. ParaCrawl contributes 67.5M tokens, the largest source by that measure. The NCI contributes 33.5M, and CoNLL17 contributes 24.7M. The IMT portion accounts for 22.6M, OSCAR for 16.2M, and Wikipedia for 6.8M. The paper’s corpus inventory reports 171.3M tokens overall at this stage. These counts concern the prepared words and other text tokens in each source. The inventory that BERT will eventually use for its input pieces is learned at a later stage.

From Irish source text to the gaBERT evaluations The steps in order.

#### Turn source files into usable sentences

The sources arrive with different conventions for marking words, sentences and documents. CoNLL17 data already have token boundaries in CoNLL-U, a structured format used for annotated sentences. The authors convert those files to plain text with one tokenised sentence per line. They extract text from the Irish Wikipedia dump with WikiExtractor, keeping article headings, before dividing it into words and sentences. The IMT, OSCAR and ParaCrawl material also goes through word and sentence segmentation.

For those raw-text sources, the authors train UDPipe, a tool that can learn where to put token and sentence boundaries. Its training data combine Irish-IDT and the English-EWT treebank, both from Universal Dependencies version 2.7. The authors use the English examples to expose the segmenter to more instances of punctuation found in the pretraining text. That choice can also help the segmenter deal with material that mixes languages. To offset the larger English treebank, they give the Irish treebank ten times its original representation in the segmenter’s training data. The English material enters here as supervision for breaking up text.

The NCI takes a different route. It arrives in an already tokenised format, and some of its marked spans contain more than a sentence. The authors take the text from the first column of the files and clean up encodings for characters such as quotation marks and ampersands. Some encoded strings are spread across multiple existing tokens. They repeat the cleanup until applying the conversions stops changing the text. This preserves the useful segmentation supplied with the corpus while handling inconsistencies that would otherwise be carried into the next stage.

The remaining NCI sentence boundaries are detected by rules. The authors begin with the boundaries already present in the corpus and look inside the marked spans for further splits. A token containing sentence-ending punctuation offers a possible break. The surrounding text supplies evidence for accepting or rejecting it. A full stop after a title such as *Prof* can belong to the abbreviation. Punctuation inside nearby brackets can be part of the material enclosed. A small number followed by a full stop may introduce an item in a list. Where several viable breaks remain, the procedure considers the relative lengths of the resulting spans as well as its punctuation preferences. After choosing a split, it checks the resulting spans again. The aim is to hand the training pipeline plausible sentences from sources whose markup means different things.

#### Compare ways to remove noisy material

Once the source-specific work is done, the corpora are combined. The authors use the WikiBERT pipeline to prepare text for BERT, with variants that change the filtering step. One version keeps all collected material. Another applies the pipeline’s standard document filter. The other versions use OpusFilter to make decisions at the sentence level. Sentence filtering has an appeal when document boundaries are unclear. A broken or irrelevant line can be discarded while usable text around it survives.

The basic OpusFilter setting checks length and visible features of the text. It rejects a sentence longer than 512 words and one containing a word longer than 40 characters. It removes sentences with HTML tags, and those where either punctuation or numeric symbols account for over 60% under the corresponding filter. These rules target patterns that can signal unsuitable input for ordinary sentence prediction. They judge the surface shape of the text. A sentence can pass them while still containing material that would be undesirable for some applications.

The stricter sentence setting also checks script and estimated language. It requires the alphabetic characters in a sentence to be in Latin script. The language checks use CLD2 and [langid.py](https://md.research.elamur.ai/free/en/papers/lui-2012-langid-py-off-shelf-language/), with confidence scores required to exceed 0.8. The two checks address different issues because the script can be appropriate even when the language is wrong. The authors train a BERT system on the text surviving each filtering policy and judge the policy through the resulting Irish parser.

#### Choose the units that BERT will read

The earlier segmentation makes the text suitable for corpus processing. BERT applies an additional level of [subword tokenization](https://md.research.elamur.ai/free/en/concepts/subword-tokenization/). A sub-word vocabulary can contain a complete word or a piece of one. A word absent as a whole entry may still be represented by a sequence of known pieces. This design matters for Irish because related words can share some material while differing at the beginning or end. Training a vocabulary decides which forms or pieces get separate entries and which spellings are expressed through combinations.

The authors carry forward the filter setting with the highest median development parsing score. They then learn SentencePiece vocabularies of 15K, 20K, 30K, 40K and 50K entries and evaluate the corresponding BERT systems. The winning SentencePiece vocabulary size is also used for a WordPiece vocabulary trained separately. That comparison holds the number of entries fixed while allowing the procedures to choose different contents. The authors try another vocabulary made from the union of the two inventories. That setting tests what happens when the training vocabulary includes everything selected by either procedure.

The original BERT implementation expects its inputs in WordPiece form. The authors use a heuristic conversion to map the SentencePiece inventory into that form. This distinction helps explain what the comparison changes. The SentencePiece condition uses an inventory learned through SentencePiece and adapted for BERT. The direct WordPiece condition learns its inventory with a different tokenizer. Both feed an implementation that can accept the resulting pieces. The comparison therefore concerns how the pieces were obtained and what the Irish text looks like after segmentation, within the authors’ BERT pipeline.

#### Pretrain the encoder

An encoder turns a sequence of tokens into representations that a task-specific component can use. BERT does this with a stack of [transformer layers](https://md.research.elamur.ai/free/en/concepts/transformer/), which allow the representations to draw information from surrounding tokens. Its pretraining tasks create their own targets from the input text. One hides a token and asks the system to recover it. The other asks whether sequences come from contiguous text. An ordinary passage supplies what the training process needs to pose and score these questions.

The authors use whole-word masking. When the procedure picks a word to hide, it hides the pieces that belong to that word together. A target word split into pieces consequently presents a gap across those pieces during training. The model has to draw on the surrounding text rather than seeing another piece of the same masked word in its ordinary position. The pronoun evaluation later takes advantage of targets that the candidate systems can each predict as a token.

For the development studies, the authors train the original BERT BASE architecture for 500K steps with sequence length 128. They use the default architecture and settings with a lower batch size of 32 to fit the NVIDIA RTX 6000 GPUs, which had 24 GB of memory. A development run took just under 48 hours on GPU. These runs give the authors a way to compare candidate corpora and vocabularies before committing to the longer final schedule.

A data preparation seed determines a reproducible sequence of random choices at that stage, and the authors keep its default value of 12,345. They report that they could neither set an initialisation seed for pretraining through the BERT implementation’s options nor find evidence that one was set internally. Their comparisons at the parsing stage use repeated fine-tuning runs, while initialisation at the preceding pretraining stage remains a separate source of variability.

In the final gaBERT run, the authors use 128-token sequences for 900k training steps and then switch to 512-token sequences for another 100k steps. That schedule gives the later part of training access to longer stretches of text. They use a batch size of 128 and a TPU-v2-8 with 128GB of memory. The paper reports around 37.5 hours for the 1M steps on that hardware. The development and final timings belong to different hardware and training schedules. Together they describe how the authors carried out the two stages.

#### Adapt the encoder for grammatical analysis

For parsing, [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/) means starting with the pretrained encoder and adapting it within a system trained to predict grammatical annotations. The parser works with candidate links between words. Each word to be attached needs a head, the word to which it is grammatically linked, and a label specifying the relationship. A labelled attachment is correct when both choices agree with the treebank. Labelled attachment score, or LAS, measures how frequently the parser gets those two parts right together. Unlabelled attachment score, or UAS, credits the right head regardless of the relation label.

The authors build the system with [AllenNLP](https://md.research.elamur.ai/free/en/papers/gardner-2018-allennlp-deep-semantic-natural-language/). A word split into pieces is represented by averaging its piece encodings, which have size 768. The system learns to parse and to predict several kinds of tags. It predicts universal and treebank-specific [part-of-speech tags](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/), which describe grammatical categories under the shared and local annotation schemes. It also predicts morphological features, the grammatical properties marked on words. Each tagging task has its own feed-forward projection, a learned transformation of the word representation, and a classifier.

The parser then receives the transformer representation together with the projected representations from the tagging components. Concatenation puts those pieces of information side by side in the input to the parsing module. The parser uses a graph-based approach with [biaffine attention](https://md.research.elamur.ai/free/en/papers/dozat-2016-deep-biaffine-attention-neural-dependency/). In this setting the graph is formed from words and possible directed attachments. The scoring mechanism uses learned representations of a potential head and its dependent to assess links and labels. The tagging components therefore give the parsing component representations learned under additional grammatical supervision.

The parser settings distinguish between the representations used for arc scoring and label scoring. The corresponding feed-forward layers have sizes 500 and 100. The tagging layers have size 200. The paper gives a learning rate of 3e-4 for AdamW, the optimiser that updates the trainable parameters, with a batch size of 16, a schedule of 50 epochs and a patience setting of 10 for stopping. The authors compare candidates using the median development LAS across five fine-tuning runs with different random initialisations. A median uses the middle result in the ordered runs, which reduces the influence of a particularly good or poor run on the selection.

#### Set up a pronoun test that humans can judge

The cloze task presents a gap in a passage and asks what belongs in it. The authors select 100 passages of Irish from corpora and online publications, each between 4–77 words long. Each contains an occurrence of *é*, *í* or *iad*. These forms include masculine and feminine singular pronouns, which can correspond to English *it*, and a plural pronoun corresponding to *them*. The authors hide one target in each passage. The target tokens are available in every candidate vocabulary, so exact recovery is possible for each system.

Two evaluations are applied to the predictions. The first checks whether the system recovers the token the source actually used. It asks a precise question that can be scored from the original text. The second asks a human to classify each answer as a match, mismatch, copy or gibberish. A match is grammatically and semantically acceptable in its context. A mismatch is a real Irish word that fails to fit. A copy is an implausible repetition of something in the passage. Gibberish covers outputs such as a piece or stray punctuation that fails to form a valid Irish word in the blank. The categories are exclusive, so the manual evaluation also shows how the unsuccessful completions differ.

A pronoun supplies a useful test of what a system does with grammatical clues. An earlier noun can give evidence about gender or number. Other words can make one interpretation more likely, and clues can be close by or spread throughout a passage. The authors’ human review broadens the acceptable answers when a different word yields a coherent reading. The test thus measures both fidelity to the source and the ability to produce an acceptable completion under the particular conditions of the gap.

#### Teach the system to locate verbal expressions

The expression experiment uses the Irish portion of the PARSEME 1.2 shared-task data. The [PARSEME shared task](https://md.research.elamur.ai/free/en/papers/savary-2017-parseme-shared-task-automatic-identification/) focuses on expressions headed by a verb. These can vary in structure or meaning, and their component words can occur with other material between them. The annotations identify the expression components and classify expressions into six verbal types. The task asks the learner to recover this information in new text.

The authors convert the annotations into a modified BIO scheme. In BIO tagging, the labels distinguish beginnings, continuations and tokens outside expressions. Here the authors adapt that style of representation to their expression annotations, so the supervised training problem is to predict a label for each word. They attach a linear classification layer and adapt all layers of gaBERT and off-the-shelf mBERT. A linear layer uses the representation of a word to score possible labels. Its training signal comes from the manual expression annotations.

The authors vary batch size, learning rate and initial random seed in their fine-tuning experiments. For the best runs they report, both systems use a learning rate of 2e-5, a seed of 10, and training for 20 epochs. The selected mBERT run uses a batch size of 5. The selected gaBERT run uses a batch size of 1. This comparison asks how well the two systems do when each has received task-specific tuning. The repeated runs provide a further view of how sensitive the result is to changes in initialisation. The authors release their experiment code through GitHub and distribute the pretrained systems through Hugging Face.

### Experiments and results

#### Grammatical attachments on Irish-IDT

The main parsing comparison uses Irish-IDT from Universal Dependencies version 2.8. The development split is used to assess candidate training settings. The test split provides the held-out results for the selected approaches. The paper reports medians from five fine-tuning runs and uses the official UD evaluation script, `conll18_ud_eval.py`. Since all the main rows use the same treebank version, their scores can be read against a common annotation scheme and test split.

The baseline called No BERT uses a bidirectional recurrent encoder over word and character features. It reads information from both directions in the sentence and has access to the characters making up a word. Its test LAS is 71.4. Off-the-shelf mBERT reaches 80.3 test LAS, while WikiBERT-ga reaches 80.4. Their closeness is informative because one spreads its training across languages and the other is dedicated to Irish Wikipedia. Within this setup, either pretrained starting point supplies a substantial improvement over the non-BERT baseline.

The continued-training system, mBERT-cp, starts from mBERT and receives additional training on the corpora compiled for gaBERT. Its test LAS rises to 82.3. The paper describes the change over off-the-shelf mBERT as 2 LAS points. This is an improvement achieved by adapting the multilingual starting point with the new Irish material. gaBERT, which is trained as an Irish system with a dedicated vocabulary, reaches 84.0 test LAS. The authors report an improvement of 3.7 LAS points over mBERT and 3.6 over WikiBERT-ga.

Irish-IDT version 2.8 test labelled attachment scores gaBERT leads the parsing comparison, and continued training on Irish corpora improves multilingual BERT.

**The numbers**

| System or setting | LAS |
| --- | --- |
| No BERT | 71.4 |
| mBERT | 80.3 |
| WikiBERT-ga | 80.4 |
| mBERT-cp | 82.3 |
| XLM-R BASE | 82.5 |
| gaELECTRA | 83.1 |
| gaBERT (this paper) | 84.0 |

The main development results tell the same story about the ranking of the central BERT systems. No BERT has a development LAS of 73.4, mBERT has 81.8, WikiBERT-ga has 81.9, and mBERT-cp has 84.3. gaBERT has 85.6 on this split. A development score matters here because it is the criterion the authors use during design. The separate test score then shows how the chosen approach performs on the held-out portion of Irish-IDT.

The appendices add multilingual XLM-R BASE and Irish gaELECTRA. XLM-R BASE is a multilingual system in the RoBERTa family, and it reaches 82.5 test LAS. The authors suggest that the greater diversity of its crawled pretraining text may make it more competitive than mBERT. That explanation accompanies a comparison between complete systems. gaELECTRA reaches 83.1 test LAS using the same Irish corpus as gaBERT and a different pretraining objective and schedule. Together these rows put the central comparison in a wider field of possible starting points for an Irish parser. [XLM-R](https://md.research.elamur.ai/free/en/papers/conneau-2020-unsupervised-cross-lingual-representation-learning/) · [RoBERTa](https://md.research.elamur.ai/free/en/papers/liu-2019-roberta-robustly-optimized-bert-pretraining/)

The detailed results also show how attachment and tagging move together. On the version 2.8 test split, gaBERT leads the pretrained systems reported in the appendix across the listed metrics. Its UAS is 88.4, compared with 86.2 for off-the-shelf mBERT and 87.7 for XLM-R BASE. Its tagging scores on the test data are 97.0 for universal parts of speech, 95.7 for the treebank-specific tags, and 91.8 for morphological features. The authors select each row by median LAS. The additional metrics describe what those parsing-selected systems do, so they reflect the behaviour of a shared selection procedure across several outputs.

The older Irish-IDT release provides a separate comparison. The authors test gaBERT on version 2.5 against a system from Chau and colleagues that added the 99 most frequent Irish tokens to the mBERT vocabulary and adapted it on Irish Wikipedia. On that version’s test set, gaBERT has 77.5 LAS and the earlier system has 76.2. Irish-IDT version 2.5 had 858 trees, while version 2.8 had 4,005. The authors also point to work correcting inconsistent annotations when explaining why scores are lower under the older setup. The result of interest is the ordering within that version. The absolute scores come from different editions of the data and reflect their respective training and evaluation conditions.

#### Original words and acceptable alternatives

The cloze test distinguishes restoring a particular word from supplying a word that makes sense. For exact restoration, the strongest result among the central BERT comparisons comes from mBERT-cp, which recovers 78 of the original tokens in the 100 test items. gaBERT recovers 75, and WikiBERT-ga recovers 53. Off-the-shelf mBERT recovers 16. The gaELECTRA comparison in the appendix gives the same exact-recovery count as gaBERT. On this measure, adapting the multilingual system to the authors’ Irish corpora produces the leading result.

Exact original-token recovery on the Irish pronoun cloze test Continued training gives mBERT the highest exact recovery count, with gaBERT and gaELECTRA close behind.

**The numbers**

| System or setting | correct items |
| --- | --- |
| mBERT | 16 |
| WikiBERT-ga | 53 |
| gaELECTRA | 75 |
| gaBERT | 75 |
| mBERT-cp (this paper) | 78 |

The manual classifications show that an exact check can miss an acceptable answer. In one example, mBERT-cp predicts *faoi*, meaning *about*, in place of the original *iad*. The resulting question asks about the roots mentioned in the passage rather than asking what those roots are. The interpretation changes, and the new reading is coherent. That completion fails the exact check and receives a match in the manual review. The example explains why the paper reports both measures.

Other examples clarify the failure labels. WikiBERT predicts *thaitin*, meaning *liked*, in a sentence introducing the main problem with an advertisement. The word is Irish but fails to make sense where it has been inserted, making it a mismatch. In a passage where Seán buys a book and reads it, gaBERT predicts *leabhar*, the word for *book*. This leads to an unnatural repetition of the noun where the pronoun would carry the reference more smoothly. The authors classify it as a copy. A minus sign predicted by mBERT where the sentence needs part of a pronominal form is classified as gibberish.

With the manual measure, mBERT-cp has 85 matches and gaBERT has 83. WikiBERT has 62 and off-the-shelf mBERT has 41. The rankings among these systems agree across exact recovery and contextual acceptability. The manual labels also reveal differences hidden by a single count of successes. On the 100-item test, off-the-shelf mBERT produces 42 mismatches and 13 gibberish outputs. gaBERT produces 14 mismatches, 2 copies and 1 gibberish output. mBERT-cp produces 12 mismatches, 1 copy and 2 gibberish outputs. These are separate ways to fail the task, with different consequences for how a reader experiences the completed sentence.

gaELECTRA has 82 matches under manual evaluation, alongside 8 mismatches, 1 copy and 9 gibberish predictions. The exact-recovery count is shared with gaBERT, yet the manual categories show variation in the kinds of outputs produced when the system strays from the source. gaBERT yields more valid words that fail in context, while gaELECTRA produces more outputs classed as gibberish. A reading of the experiment that stops at exact recovery would miss that difference.

#### Verbal multiword expressions

The expression experiment asks how well the systems can identify marked verbal constructions in the Irish PARSEME text. Precision describes how often a predicted expression is correct. Recall describes how much of the annotated material the system retrieves. F1 combines precision and recall into a single score that rewards doing well on both. A system can achieve a favourable precision by making selective predictions, so recall is important for seeing how much of the annotated material it finds.

The reported best gaBERT run has test precision of 0.523, recall of 0.361 and F1 of 0.427. The best mBERT run has precision of 0.342, recall of 0.245 and F1 of 0.285. The paper draws particular attention to precision. gaBERT is more often correct when it identifies an expression, and it also retrieves more of those present in the annotations. The reported experiment across twenty random seeds shows the advantage in all three measures beyond the single selected runs.

F1 for verbal expression identification on the Irish PARSEME 1.2 test data The best tuned gaBERT run identifies verbal expressions more successfully than the best tuned mBERT run.

**The numbers**

| System or setting | F1 |
| --- | --- |
| mBERT | 0.285 |
| gaBERT (this paper) | 0.427 |

The authors also place the result beside systems submitted to the shared task. The best reported score they cite for global Irish expression identification is 0.306 F1, and the paper gives 0.121 as gaBERT’s margin over that score. Global identification here covers expressions seen in training as well as unseen expressions. The shared task emphasised unseen instances, and the authors explain that its highest-ranked Irish submission was second on the global measure. Their comparison therefore uses the highest global score. They also report minor differences in the way F1 was calculated, which make the comparison approximate.

The paper situates those Irish scores alongside an average of 0.701 F1 for the highest-ranking system across languages on overall identification and a best score of 0.483 for Hebrew. The authors describe Hebrew as the language with the next-lowest system performance in that comparison. These figures give context for the difficulty reported for Irish. The strongest evidence about gaBERT within the experiment is still the pairing with mBERT, where the authors use their own common data and scoring setup.

### What the ablations show

#### The unit of filtering matters in this pipeline

The filtering study changes what gets removed before pretraining. With no filtering, the pipeline’s comparison table reports 9.2M sentences and 171.3M tokens. The document filter retains 7.9M sentences and 161.0M tokens. The basic sentence filter leaves 9.0M sentences and 170.8M tokens, while the stricter sentence filter leaves 7.7M sentences and 161.2M tokens. These are the counts from the filtering experiment. They describe the input to pretraining after each policy is applied, and they give a sense of how aggressively each policy changes the corpus.

On development parsing, the document filter comes out ahead. Both sentence-filtering configurations are marginally worse, and the unfiltered setting has the lowest median, within the range of the sentence-filtered settings. The stricter script and language checks make little visible difference to LAS when added to the basic sentence filter. The stricter sentence filter and the document filter retain fairly similar token totals, yet the document setting has the better development score. The pattern makes the way the text is selected relevant alongside the amount kept.

The authors propose an explanation tied to BERT’s pretraining objective. The next-sentence task uses the order of stretches of text. Removing a sentence within a document changes what can remain contiguous. Discarding an entire document can leave the order of surviving documents’ contents intact. This is a plausible reason why document-level filtering does well even though the original reason for testing sentence filters was that source documents sometimes have messy boundaries. The study evaluates the filters through parsing and changes the surviving text as well as its continuity. It therefore provides evidence for choosing the document filter in this pipeline while leaving the mechanism open.

The choice is also conditional on the downstream metric. A stricter language check can change how much mixed-language material or material in other scripts the filter retains. The result here tracks the effect on Irish-IDT development LAS. It gives a criterion for selecting a filter for gaBERT, while questions about the linguistic or social composition of the surviving texts require separate measurements.

#### Inventory size and inventory contents are separate choices

Among the SentencePiece sizes the authors test, 30K gives the best development parsing performance. Increasing the inventory beyond that setting does not improve the result in their comparison. A vocabulary decision affects both which word forms can be represented directly and how longer or rarer forms are divided. The experiment identifies a preferred size within a fixed development procedure, using the corpus selected in the filtering stage.

The direct comparison at 30K gives SentencePiece an advantage over WordPiece. The union of the two vocabularies contains 32,314 entries and performs worse than using either inventory on its own. Combining the inventories therefore adds pieces without improving the chosen score. The size experiment and the comparison between procedures answer related questions. A vocabulary needs an appropriate number of places for entries, and the entries that occupy those places affect the representation the parser receives.

The authors inspect the inventories and find that WordPiece has more entries devoted to emojis and characters from other writing systems, leaving fewer entries for Irish words and pieces. They offer this observation as a possible reason for the weaker result with WordPiece. The inspection helps explain how two vocabularies of the same nominal size can allocate their entries differently. The observed vocabulary composition and the higher parsing score agree with that interpretation. The experiment varies the inventory as a whole, so the effect of removing individual categories of entries was not measured independently.

The development sequence matters for interpreting these comparisons together. The authors choose a filter, then carry it forward into the vocabulary study. They choose the strongest SentencePiece size before testing the direct WordPiece vocabulary of that size. The reported best combination is the product of these successive choices. A different tokenizer might respond differently to a corpus with sentence-level filtering, and the paper’s procedure is designed to choose workable settings without establishing all such interactions.

#### Additional Irish text helps an existing system

The comparison between off-the-shelf mBERT and mBERT-cp shows that a system whose training began elsewhere can benefit from extra exposure to the authors’ Irish material. The starting system is the same, and the adapted version receives further pretraining before task evaluation. Its parsing score rises, and it recovers many more original pronouns in the cloze task. This gives the corpus assembly a role beyond its use in gaBERT itself.

The comparison combines additional training with a change in the source of the training examples. It answers what happens when mBERT is adapted on that particular material. It leaves open how much of the gain would come from more steps on a different Irish corpus. It also leaves room for the vocabulary to interact with the extra training. gaBERT’s advantage on parsing over mBERT-cp is the difference between two training routes with different starting conditions, including whether a vocabulary is built expressly for Irish. The study supplies evidence about the two routes as tested.

The cloze result provides an especially important qualification to using LAS as a design guide. The Irish-only system leads the parsing benchmark, and continued mBERT leads on recovering the hidden pronoun. The same continued mBERT system also has the highest count of manually accepted completions. An Irish text representation can carry information useful for several purposes, and the task determines how that information earns credit.

#### The kind and position of clues affect the pronoun task

The authors group the cloze items by length to examine how much context accompanies the gap. The short group contains passages of 4–10 tokens. The medium group contains 11–20, and the long group contains 21–77. The paper reports that every system has its lowest match rate on the short group and that every system except off-the-shelf mBERT does best on the long group. The groups come from the selected passages as they occur. Consequently they differ in their content and in the amount of text around the gap.

For gaBERT, the reported match rates are 79.31% on short items, 83.33% on medium items and 85.71% on long items. For mBERT-cp, the corresponding group scores are 75.86%, 83.33% and 94.29%. Off-the-shelf mBERT has its highest group match rate, 55.56%, on the medium items. WikiBERT’s highest group score is 74.29% on long items. The group percentages use manually accepted matches within the length category. The earlier exact-recovery counts concern the original token across the whole test.

The paper’s examples explain why the quality of the context matters alongside its size. In a passage about a woman leaning over a food trolley while eating, a feminine singular noun supplies one clue. An earlier instance of *í* supplies another, and the absence of lenition on a later form supplies further grammatical evidence. In a passage about an easy meal that takes about half an hour to prepare, the noun *béile* provides the relevant feminine singular clue at a distance of 11 tokens from the gap. The authors report that none of the tested systems supplies a plausible completion there. A longer passage may provide more evidence, but its most informative word may also be farther away or occur without supporting cues.

The authors suggest considering the frequency of words in training, how many grammatical cues the passage contains, and how far those cues are from the blank. Their examples make those possible sources of difficulty concrete. The length analysis groups existing items. It does not alter each passage to move or remove a clue while keeping the rest fixed. Its result is a pattern across these items and supports the authors’ qualitative account of why particular examples can be difficult.

#### Different training runs reveal different sources of variation

The repeated expression experiments address a concern about comparing selected fine-tuning runs. The authors report sensitivity to the learning rate, batch size and seed. They show results across twenty random seeds and observe an advantage for gaBERT in precision, recall and F1. The selected runs use different batch sizes, so their final scores incorporate choices about how best to tune each starting point. The comparison across seeds provides evidence that the advantage extends beyond the two runs highlighted in the table.

The appendix also examines the course of pretraining for gaBERT and gaELECTRA. ELECTRA uses a binary decision about each input token, distinguishing tokens from the source text from substitutes supplied by a smaller generator. The authors train gaELECTRA on the gaBERT text and examine checkpoints every 100k steps, each time assessing development LAS with repeated parser fine-tuning. The best gaELECTRA median in that series comes at 400k steps. The best gaBERT checkpoint is the final one at 1M steps, which leads the authors to suggest that further training might still help gaBERT.

The two runs process different amounts of text per step. gaELECTRA uses a batch size of 256 and sequence length 512 throughout, while gaBERT switches sequence length and uses a batch size of 128 in the final training schedule. The checkpoint plot follows each system over the authors’ own training schedule. Equal step counts therefore provide a common horizontal label for the runs, while their amount of training input differs. This limits comparisons of training efficiency based on where the two development curves peak.

### Limitations

#### Limits identified by the authors

The paper frames the results as measurements on the tasks it actually evaluates. The authors mention potential applications such as education, predictive text, search and machine translation. Their relative demands differ from parsing, recovering a masked pronoun and tagging a verbal expression. The paper explicitly allows that different uses could rank the available systems differently. The cloze and parsing results already illustrate that point within the research itself.

The shared-task comparison for verbal expressions has a scoring limitation. The authors flag minor differences in F1 calculation between their evaluation and the earlier PARSEME submissions. They also explain that global identification combines seen and unseen expressions, whereas ranking in the shared task emphasised unseen ones. That distinction matters when considering how a system would handle an expression that it did not encounter during supervised training. The paper’s gaBERT-to-mBERT result concerns overall performance under the authors’ evaluation.

The extra work on related encoders has limits as well. The authors’ attempt to train RoBERTa BASE on the Irish corpus yields a development LAS of 81.8, similar to off-the-shelf mBERT in the paper. They leave the search for suitable RoBERTa settings open. The ELECTRA experiment demonstrates a competitive result under a different objective and schedule, with the authors explicitly noting the unequal training input per step. These experiments compare actual systems the team obtained. They leave room for the rankings to change under different training choices.

The authors release pretrained systems and code, while the assembled training dataset is not released with the paper. They explain that most source corpora are publicly available and document their differing access or reuse terms. Some materials were supplied for research. Where an anonymised dataset was available, the authors used that version. The details of preprocessing support understanding and reproduction of the pipeline, but access to its complete input depends on the underlying sources.

The paper also identifies risks associated with learning from web material. Some sources can include biased, hateful or otherwise unsuitable content. The release documentation calls for assessing those concerns in the intended application. The authors identify the extraction of training data as a potential vulnerability and suggest that gaBERT’s smaller size and autoencoding architecture could make it less susceptible. The paper reports no measurement of extraction risk for gaBERT and no dedicated evaluation of harmful outputs. The ethical discussion thus describes possible risks and the basis for the authors’ expectations. [Extracting Training Data from Large Language Models](https://md.research.elamur.ai/free/en/papers/carlini-2020-extracting-training-data-large-language/)

#### Limits visible in the experimental setup

gaBERT differs from the principal baselines in several respects at once. Its corpus mixes sources, its vocabulary is built for Irish, and its training begins from scratch under the authors’ chosen schedule. The development comparisons isolate individual choices within that pipeline more closely. The final comparison shows what the chosen combination achieves against available alternatives. Giving a separate causal share of the test improvement to corpus size, source diversity or vocabulary would require further comparisons that hold the other changes fixed.

The development study targets Irish-IDT LAS throughout. This gives the authors a consistent criterion for choosing among filters and vocabularies. It also makes the selected settings specific to what that parser and development split reward. The held-out parsing result tests transfer to another part of the same treebank. The cloze and expression results test other abilities of the final system, while the paper evaluates the individual filter and vocabulary alternatives through parsing. The evidence for transferring those individual design choices to other tasks is therefore indirect.

There are also different kinds of randomness in the project. The parser results summarise repeated fine-tuning runs, which helps show how well the encoder works under varying task initialisations. The authors identify uncertainty about fixing initialisation in BERT pretraining itself. A multi-run fine-tuning median measures variation after an encoder has been trained. It gives no direct estimate of how much the corpus-filter or vocabulary rankings might vary if the corresponding encoders were pretrained repeatedly. This matters particularly where the paper describes differences between development settings as marginal.

The pronoun test is deliberately narrow. Its 100 items cover contexts where the original word is one of the chosen pronouns, and the authors ensure that the masked tokens occur in every candidate vocabulary. This supports fair access to those answers while setting the scope of the result. The test gives evidence about completion in those passages. It does not sample the full range of lexical choices, inflections or syntactic constructions in Irish. The manual categories give readers a richer account of the responses than exact recovery alone, with examples that show how human judgement changes which completions receive credit.

The training corpus spans several registers, and its composition also limits what can be inferred. The same source totals can conceal differences in the relative frequency of constructions, genres and forms of Irish. The paper reports where the material came from and how much survived each filter. It does not report separate downstream results for each source or a breakdown of performance by variety of Irish. A system trained on several kinds of documents can perform well in the benchmark without this establishing how consistently it handles every kind of Irish writing.

Finally, the expression experiment compares gaBERT and off-the-shelf mBERT under the authors’ fine-tuning procedure. The parsing and cloze sections include continued mBERT and additional baselines, but the expression experiment does not make all those same comparisons. The gaBERT result therefore supports a transfer claim against the mBERT starting point used in that task. Whether the expression scores would follow the same ordering as the parsing or pronoun scores under a broader comparison remains open.

### What came after

The later papers that cite gaBERT cover several directions, including multilingual benchmarks, resources for evaluating Irish, and systems built for Irish or for Irish and English together. The citation establishes a connection to gaBERT in each case. The specific role of gaBERT, such as whether a later study used its weights, evaluated it as a baseline or cited it as related work, is unspecified for these papers.

LEXTREME (2023) develops a multilingual benchmark spanning multiple tasks in the legal domain. Its subject places evaluation across both languages and tasks within a particular kind of writing. gaBERT studies the related question of how a representation trained for Irish behaves on a defined set of tasks, and its corpus includes legal and administrative text. LEXTREME cites gaBERT in the context of a broader domain benchmark. The citation alone leaves the role of gaBERT in its experiments open. [LEXTREME](https://md.research.elamur.ai/free/en/papers/niklaus-2023-lextreme-multi-lingual-multi-task/)

UCCIX (2024) presents a large language model for Irish. It continues the focus on building systems expressly for Irish, which in gaBERT’s case meant collecting Irish text from several sources and learning a dedicated sub-word inventory. The two projects share that language focus. UCCIX’s citation connects its account of Irish language technology to gaBERT, while any reuse of its preprocessing, corpora or weights is unspecified. [UCCIX](https://md.research.elamur.ai/free/en/papers/tran-2024-uccix-irish-excellence-large-language/)

Irish-BLiMP (2026) develops a linguistic benchmark for evaluating human and language model performance in a low-resource setting. It carries forward the question of how to measure competence in Irish, with humans explicitly included in the scope of the benchmark. gaBERT’s paper had used people to judge alternative pronoun completions and used treebank annotations to score parsing. A benchmark that evaluates people as participants pursues a related but distinct measurement question from using people to assess a system’s outputs. The citation connects the studies without specifying whether gaBERT itself took the benchmark. [Irish-BLiMP](https://md.research.elamur.ai/free/en/papers/mcgiff-2026-irish-blimp-linguistic-benchmark-evaluating/)

Qomhrá (2026) presents a bilingual system for Irish and English. Its scope relates to a choice central to gaBERT. The earlier paper trained gaBERT only on Irish and used an existing multilingual model to test adaptation to Irish. Qomhrá makes Irish and English the explicit language pair. That focus follows the practical setting described by the gaBERT authors, where Irish is used within a bilingual community. The citation establishes the relationship to the earlier Irish work, with the details of any technical inheritance unspecified. [Qomhrá](https://md.research.elamur.ai/free/en/papers/mcinerney-2026-qomhra-bilingual-irish-english-large/)

Quality and Appropriateness of Large Text Datasets for Irish NLP (2026) investigates properties of large Irish text collections. It returns to the part of gaBERT’s study where the authors combined heterogeneous sources and compared ways of filtering them. gaBERT judged those choices through development parsing. The later paper makes dataset quality and appropriateness the subject of the research. Its citation connects that inquiry to a project whose training corpus was assembled from existing Irish resources, while the particular gaBERT datasets or filters examined in the later work are unspecified. [Quality and Appropriateness of Large Text Datasets for Irish NLP](https://md.research.elamur.ai/free/en/papers/walsh-2026-quality-appropriateness-large-text-datasets/)

## Cite

Cite as James Barry, Joachim Wagner, Lauren Cassidy, Alan Cowap, Teresa Lynn, Abigail Walsh, Mícheál J. Ó Meachair and Jennifer Foster. 2022. gaBERT –- an Irish Language Model. Proceedings of the Thirteenth Language Resources and Evaluation Conference.

The paper itself, not this page. BibTeX from the library's record of the work.

```bibtex
@inproceedings{barry2022gabert,
  title = {{gaBERT –- an Irish Language Model}},
  author = {James Barry, Joachim Wagner, Lauren Cassidy, Alan Cowap, Teresa Lynn, Abigail Walsh, Mícheál J. Ó Meachair and Jennifer Foster},
  booktitle = {Proceedings of the Thirteenth Language Resources and Evaluation Conference},
  year = {2022},
  url = {https://aclanthology.org/2022.lrec-1.511/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
