Elamur Research

A BERT's Eye View: Identification of Irish Multiword Expressions Using Pre-trained Language Models

Paper · 2022 · Abigail Walsh, Teresa Lynn and Jennifer Foster

Summary

The Irish expression buail le means ‘meet’, although its components can be glossed as ‘hit’ and ‘with’. Finding such multiword expressions in running text requires more than finding adjacent words. An expression can vary in form, its components can be separated by unrelated words, and a single word can belong to overlapping expressions. The authors investigate how to identify these constructions in Irish, where the PARSEME benchmark supplies 100 annotated expressions for training and 126 for development. On the original test split, 69% of the annotated expressions count as unseen because they did not occur in either of those splits.

The authors adapt two versions of BERT to assign a label to each token in a sentence. The multilingual version, mBERT, draws on pretraining across many languages. The Irish version, gaBERT, starts from pretraining on Irish alone. The experiments vary how much of each encoder can change during fine-tuning and how the training run is configured. They also compare ways of representing overlapping or discontinuous expressions and explore changes to the categories and the division of the data. A final filter removes predictions consisting of a single token after the authors find that the systems frequently make such predictions in isolation.

On the original Irish test split, the optimised gaBERT system reaches 40.33 F1 on unseen expressions, compared with 19.54 for MTLB-STRUCT, the strongest submitted system on that measure. It also leads the Irish comparison on global expression-based F1 at 45.66 and global token-based F1 at 54.38. The expression-based measure rewards finding a complete expression. The token-based measure can give partial credit when a prediction captures only some of its components. The optimised mBERT system improves on the earlier TRAVIS-multi submission, but it remains behind gaBERT on all these measures.

The experiments give a clearer answer about the choice between the Irish and multilingual encoders than about the best way to simplify or label the data. Full fine-tuning generally works best, and training for longer or adjusting the learning rate can help runs that otherwise predict no expressions. Settings that work individually can fail when combined, and changing the random seed can substantially alter the outcome. The alternative labelling schemes preserve distinctions that the initial conversion loses, but their scores vary with the encoder and dataset. The paper establishes that Irish-specific pretraining can support strong recognition of unseen expressions under this benchmark’s conditions, while leaving the choice of training and labelling settings open for other data.

Deep dive: A BERT's Eye View: Identification of Irish Multiword Expressions Using Pre-trained Language Models

How gaBERT identifies Irish verbal multiword expressions and detects unfamiliar combinations with little annotated training data. · about 34 minutes to read

The problem and its context

Recognising a construction in a sentence

A verbal multiword expression has a verb at its centre. The benchmark asks a system to find the words that participate in each such expression when it occurs in a sentence. The output therefore has to identify the expression’s components as well as its category when the task retains category labels. Giving the whole sentence an expression label would leave both questions unresolved. A sentence can contain distinct constructions, and the relevant words can be scattered across it.

The category of light verb constructions illustrates why individual words supply incomplete evidence. An Irish verb such as déan ‘make’ or ‘do’ participates in déan iarracht, an expression for making an attempt or trying. The verb is a useful clue because it recurs in this kind of construction. The other component still matters. An identification that marks only the verb has failed to give the full expression, even when it has recognised a promising place to look.

Other categories present different recognition problems. An inherently adpositional verb combines a verb with a selected adposition, as in éirigh le, which the authors gloss as ‘succeed’. A verbal idiom can contain components of different grammatical kinds and can leave slots open for material that does not belong to the expression. The authors describe parsing, machine translation, and information retrieval as tasks that can benefit from successful identification. In each case there is a reason to distinguish the words that form a unit from surrounding words that happen to occur nearby.

Variation, ambiguity and discontinuity make a list of known expressions an incomplete solution. A recogniser must decide which use of a word it is seeing and which other tokens belong with it. The list of participating tokens may leave holes in the sentence. Membership can also overlap, with a shared word doing duty in more than one construction. Those properties affect the choice of prediction format as much as they affect the ability to recognise a familiar expression.

There is a further distinction between identifying a new occurrence of a familiar expression and recognising an expression absent from the examples used to develop the system. A benchmark with many familiar cases can reward learning a set of recurring lexical combinations. PARSEME edition 1.2 makes success on unseen expressions visible as its own result. In the Irish experiment, that distinction has practical weight because unseen cases form a large part of the test set.

The task in Irish

The authors describe Irish as a Celtic minority language with relatively few resources for computational work, in spite of its official standing in Ireland and the European Union. Work on Irish multiword expressions had mostly been carried out in theoretical and corpus linguistics. The paper notes developments that made computational work more feasible, including the publication of the Peadar Ó Laoghaire idiom collection and the creation of a research lexicon for Irish multiword expressions.

The Irish Universal Dependencies treebank also acquired a more uniform treatment of these expressions. The treebank supplied sentences with reference part-of-speech tags, morphological features, and grammatical dependency relations. The Irish PARSEME corpus added manual linguistic annotation for the verbal expressions of interest. An idiom collection or lexicon records lexical material that researchers can consult. The corpus adds a different kind of evidence by specifying which tokens participate in particular occurrences in running text.

The annotation covers 7 categories, compared with the shared-task language average of 5. Light verb constructions account for the largest share of the Irish annotations. The guidelines distinguish the LVC.full category, illustrated by déan iarracht, from LVC.cause, illustrated by cuir tús, an expression for starting something. Inherently adpositional verbs, tagged IAV, are also frequent. The remaining distinctions include verbal idioms (VID), full and semi verb-particle constructions (VPC.full and VPC.semi), and inherently reflexive verbs (IRV).

This distribution matters because the supply of examples for a category depends on how the corpus divides its annotations. A learner can encounter several examples of a common construction while receiving little evidence for a rare one. It must also learn distinctions within the light verb and verb-particle families if the full category inventory is retained. The authors accordingly treat the number of categories, the difficulty of particular categories, and the size of the training split as separate questions.

The shared-task approaches that shaped the comparison

The PARSEME shared task grew out of demand for a way to study verbal expressions across languages under a common framework. Edition 1.2 included 14 languages and put particular emphasis on expressions that the systems had not encountered during development. Irish joined that comparison with its manually annotated corpus.

The submissions represented several approaches to the recognition problem. Some used neural networks, among them TRAVIS-mono and MTLB-STRUCT. Others, including Seen2Unseen and HMSid, used filters based on association measures. Those measures offer a way to select candidate combinations based on the tendency of their words to occur together. FipsCo took a rule-based approach that joined parsing with expression identification. The differences matter because the systems could draw on different kinds of evidence even when the task judged their outputs in the same way.

Within the neural approaches, the authors were particularly interested in what pretraining supplies before the scarce task-specific examples are used. They describe pretrained transformer encoders as an established resource for natural language processing. The shared task had already seen systems adapt multilingual and monolingual BERT, as well as XLM-Roberta. The presence of these alternatives made it possible to ask a narrower question for Irish than whether pretraining was useful in general.

Two shared-task designs provided especially relevant precedents. MTLB-STRUCT trained for dependency parsing and expression identification together. That approach gave the system a separate learning objective concerned with grammatical relations. TRAVIS-mono attached a classifier to a language-specific encoder and adapted it for identification. Walsh and colleagues follow the latter architecture for both of their Irish systems. Using the same kind of prediction task lets them compare pretrained encoders while separately investigating choices about labels and training.

The method, step by step

Start with a sentence and decide what each token predicts

The system reads a sentence and assigns a category-bearing tag, or an outside tag, to each token. This is a sequence labelling problem because the predictions occupy positions in the input sequence. Each tag can say whether a token begins an expression, continues one, or falls outside the annotated constructions. A labelled sentence can then be interpreted as a set of predicted expressions.

The working input comes from the Irish PARSEME corpus in the cupt format. That format brings together a CoNLL-U representation of the sentence and PARSEME’s expression annotations. An expression has a sentence-local identifier. Its first participating token carries the identifier and a category, and other participating tokens carry the identifier. This makes membership explicit even when words intervene. A token can have multiple identifiers when more than one annotation includes it.

The experiment uses the sentence tokens and the expression labels, which the authors put into JSON. The corpus’s other linguistic annotations remain available as resources but are outside the input used for this sequence labelling experiment. That choice keeps the task close to the TRAVIS setup. It also helps locate what the experiment can establish. It tests the representations obtained from pretraining and adapted with expression labels. It leaves the value of supplying annotated grammatical relations for a separate experiment.

From Irish corpus annotations to scored expressions

The steps in order.

From Irish corpus annotations to scored expressionsStep 1: Read sentence tokens and PARSEME annotations1. Read sentence tokens and PARSEME annotationsStep 2: Convert expression membership to sequence tags2. Convert expression membership to sequence tagsStep 3: Tokenise for the chosen BERT encoder3. Tokenise for the chosen BERT encoderStep 4: Feed contextual states into the token classifier4. Feed contextual states into the token classifierStep 5: Fine-tune with annotated sentences5. Fine-tune with annotated sentencesStep 6: Assemble predicted expressions from their tags6. Assemble predicted expressions from their tagsStep 7: Filter isolated single-token predictions7. Filter isolated single-token predictionsStep 8: Score against PARSEME annotations8. Score against PARSEME annotations

Choose the starting encoder

The two starting encoders use the BERT approach to pretraining. In the masked-word task, some input is hidden and the system learns to recover it from the available context. The next-sentence prediction task teaches it to determine whether a pair’s second sentence follows its first. These objectives produce token representations that the expression classifier can reuse. They supply an initial representation of sentence context before the Irish expression annotations determine which distinctions matter for this task.

Multilingual BERT, abbreviated mBERT, was pretrained on a collection of Wikipedia data covering 104 languages. The Irish-specific gaBERT was pretrained on approximately 7.9 million Irish sentences. The gaBERT pretraining mostly followed the BERT settings; its batch size was smaller to accommodate memory constraints. The authors also point to earlier evaluations of gaBERT on dependency parsing and a cloze test, where it performed better than mBERT. A cloze test asks for missing material to be recovered from context. Those prior evaluations give a reason to test gaBERT on expressions, while the expression corpus supplies its own evidence about the comparison.

The authors use the Hugging Face Transformers library to obtain the encoders and work with their tokenization tools. Tokenization prepares the sentence as input for the chosen encoder. The classification layer reads the internal representations, called hidden states, and converts them into scores for the available sequence tags. Since the hidden state comes from processing the sentence, a prediction at the position of a verb can use context beyond that verb’s own spelling or form.

The task layer can be written as a compact description of the linear transformation in the paper.

sₜ = L(hₜ)

The subscript t identifies a token position. The symbol hₜ denotes the encoder’s hidden state at that position, and L is the linear classification layer. The symbol sₜ denotes the scores for the possible tags at the same position. The parentheses indicate that the layer takes the hidden state as input, and = states that applying the layer produces the tag scores. The study describes the architecture at this level. Its main experimental choices concern which parts are updated and how the task labels are defined.

Convert expression membership to a tag sequence

The initial labelling scheme is an adaptation of IOB2, a format derived from work on text chunking. In the paper’s use of the scheme, B- marks an expression’s beginning, I- marks a later component, and O marks a token outside the expression annotations. The beginning and continuation tags carry a category suffix. In B-LVC.full, for instance, the prefix supplies the role in the sequence and the suffix supplies the expression category.

A single tag per token is simpler than an arbitrary collection of expression identifiers. That simplification is useful when training a token classifier, but it has a cost. A tag such as I-LVC.full conveys a continuation and a category. It has less information than an explicit instruction that the word belongs to a particular numbered expression. Where annotations overlap, choosing one tag at a position can remove a relationship that is part of the reference data.

The paper illustrates the problem with an Irish sentence about doing a lot of study and research. In the original annotations, dhein ‘did’ is shared by two light verb constructions. One joins the verb to staidéir ‘study’, and the other joins it to taighde ‘research’. The words between the participating components include material outside the constructions. In cupt, the shared verb can start both numbered expressions. Each noun’s identifier shows which construction it continues.

Under the initial conversion, the classifier gets a beginning tag at dhein and continuation tags at both nouns. The procedure retains the first expression label available for a token with multiple memberships. After the two identifiers have been reduced to beginning and continuation tags, the sequence gives the appearance of a single expression containing the verb and both nouns. The original membership of the second noun has effectively been merged into the first expression.

The authors’ IOB2-double scheme uses the same inventory of tags with a revised convention for assigning a beginning. The shared verb receives the beginning tag of the first expression. The first subsequent component belonging to the second expression also receives a beginning tag. In the example, this makes dhein and staidéir one predicted unit in the converted representation, with taighde marking a separate beginning.

That second beginning preserves the distinction between the two expression occurrences. It also exposes the remaining loss. Standing on its own, the tag at taighde does not restore the shared verb to the second expression. The construction appears as a single-token unit in the converted data. The authors later use this fact in their error analysis. A single-token unit can be a consequence of the conversion, and when it has this origin it occurs alongside a multi-token expression.

The third scheme, bigappy-unicrossy, addresses structural relations that ordinary IOB2 distinguishes poorly. It uses lower-case tags or prefixes such as b-, i-, and o to help represent nested, discontinuous and crossing expressions. A nested expression has components inside the span of another expression. With crossing expressions, the positions of their components interleave. Discontinuity concerns gaps within an expression’s own extent. These are relations between positions, so changing the category suffix alone cannot encode them.

The scheme as originally proposed does not handle doubly annotated tokens in the way the Irish data require. The authors therefore also apply their revised beginning-tag convention to this scheme. In the study-and-research example, a lower-case continuation tag at staidéir conveys part of the nesting pattern, and taighde receives a new beginning tag. The experiment is a test of whether giving the sequence classifier this extra structural information helps in practice. Its design distinguishes the structural information that a tag sequence can express from the accuracy with which the learner can recover it.

Decide how much to update during training

For each pretrained encoder, the authors compare training the task classifier with the encoder frozen, updating only the upper part of the encoder, and updating the entire encoder. A frozen layer still processes the input. Its parameters stay fixed while the parts open to training learn from the task data. In the classifier-only condition, the task has to use the hidden states as supplied by pretraining. In the other conditions, the expression labels can also shape how the encoder produces those states.

The suffix in each system name identifies the number of encoder layers updated. The -0 condition freezes layers 1-12, leaving the classifier trainable. The -4 condition freezes layers 1-8 and updates the final 4 encoder layers along with the classifier. The -12 condition lets all 12 encoder layers change. The authors run these comparisons for gaBERT and mBERT, so evidence about a layer setting can be examined for either starting encoder.

The epoch count, batch size, and learning rate also affect training. An epoch is a pass through the training data. The batch size is the number of examples grouped for an update. The learning rate governs the scale of parameter updates during training. These settings control related aspects of the procedure. For example, an epoch still covers the same data when the batch size changes, but the grouping of the examples into updates changes. The paper examines the settings separately before looking at what happens when selected values are brought together.

The starting values for the sweeps are 20 epochs, batch size 8, learning rate 2e-5, and random seed 10. The initial epoch sweep goes from 5 through 40, and the initial batch sweep ranges from 1 through 20. The first learning-rate sweep ranges from 1e-6 through 0.2. A second sweep explores values near promising learning rates for each layer setting. Most settings outside the ones selected for investigation follow the BERT defaults.

The authors conduct the sweeps manually and vary a selected setting at a time. They judge these changes on the development set so the test set can serve as the final comparison. This procedure makes a practical diagnostic possible. It shows what happens when a setting changes under a particular group of defaults. A setting that performs well there still has to work alongside whatever other settings are selected.

Account for variation between training runs

A random seed fixes the starting point for random choices in a run. The paper treats it differently from a design decision such as which encoder layers can change, but still uses development performance to choose a seed. The purpose is to obtain a working optimised configuration for comparison with the shared-task systems. In a preliminary check, the authors train mBERT with 10 different seeds. The runs include 2 that make no expression predictions at all.

The authors first investigate epochs, batch size and learning rate. They then compare seeds using the full fine-tuning configuration for both encoders, which generally did best in the earlier sweeps. The subsequent seed experiments use 20 seed values. Looking across runs gives a view of variability that an optimised score alone would miss. It can distinguish a configuration that frequently gives useful predictions from one that yields a strong result intermittently.

For mBERT, the selected full-encoder configuration uses 30 epochs, batch size 4, and learning rate 4e-5. The gaBERT investigation proceeds with two configurations after the individually promising batch size and learning rate fail when combined. The learning-rate configuration uses 30 epochs, batch size 8, and learning rate 2e-4. The batch-size configuration also uses 30 epochs, with batch size 2 and learning rate 2e-5. Each keeps a different promising setting while returning the other to its default.

The optimised gaBERT run comes from the learning-rate configuration at seed 10. The optimised mBERT run uses seed 75. Both choices are made for the task at hand. The paper’s seed comparison provides context for interpreting them as selected outcomes of the development procedure.

Change the data and inspect the predictions

The second experiment series reuses the training settings obtained in the first. The original dataset serves as the baseline, and the other conditions change the categories or the data split. Each condition is tried with the original IOB2 conversion, IOB2-double and bigappy-unicrossy. This arrangement lets the authors see whether a labelling scheme has a consistent advantage as the examples and categories change.

Experiment 2A merges LVC.full and LVC.cause into LVC, and VPC.full and VPC.semi into VPC. The task still distinguishes different families of expressions. It drops the finer distinctions within those two families. Experiment 2B puts every expression under a single MWE category. The learner still has to determine where expressions begin and which tokens participate, but no longer has to name a family.

Experiment 3 removes the IRV and VID labels from the expression targets. The paper gives different reasons for treating the two as challenging. Inherently reflexive verbs have only 6 annotated instances, and the authors note earlier doubts about retaining that category. Verbal idioms are difficult because of their structural and semantic variety. Removing both changes the set of expressions the system is asked to detect, so the resulting scores concern a narrower task.

Experiment 4 redistributes the available sentences across the splits. The training split then has 219 annotated expressions, the development split has 216, and the test split has 230. The paper reports changes of +119 for training, +90 for development, and -212 for testing. This is a way to study the effect of access to more development examples and training supervision within the existing corpus. It also changes the collection on which the systems are tested.

After inspecting predictions, the authors add a filter that removes predicted expressions consisting of a single token. An isolated verb or other component can be assigned a beginning without the rest of its expression being recovered. A single-token prediction can also arise from the special representation of overlap. The filter makes a practical choice about the observed balance of those cases. Its contribution is measured separately from the effects of choosing an encoder or adjusting the data.

Experiments and results

The corpus and the comparison set

The Irish PARSEME annotations are described as covering 1700 sentences from the Irish Universal Dependencies treebank. The original split gives the learner 257 training sentences with 100 annotated expressions. Development contains 322 sentences and 126 expressions. The test set contains 1120 sentences and 442 expressions. Most of the testing evidence is therefore held apart from the examples available for fitting and selecting the classifier.

By the paper’s comparison with other shared-task languages, only Hindi has fewer sentences, at 1684. The authors report 662 annotated verbal expressions for Irish and 1034 for Hindi. A small corpus and a small inventory of annotated expressions are distinct constraints. Sentences can contain no expression, an expression with several components, or overlapping occurrences. For this task the number of occurrences available to learn from is especially relevant, because those are the examples that show which words go together and where the boundaries fall.

The original split places particular pressure on the system to recognise expressions it has not seen during development. Of the test expressions, 69% are unseen by the task’s training-and-development criterion. The dataset also retains categories whose frequency differs considerably. A score over the complete test set therefore reflects performance on a mix of common categories, sparse categories, familiar expressions and unseen expressions. The separate unseen measure makes it possible to inspect one important part of that mix.

The main comparison includes the authors’ optimised gaBERT and mBERT systems and Irish submissions from the open track of PARSEME edition 1.2. TRAVIS-multi is the most direct precedent for the mBERT system because both adapt multilingual BERT for expression labelling. MTLB-STRUCT provides a comparison with joint grammatical parsing and expression identification. Seen2Unseen supplies a comparison from the association-based family. MultiVitaminBooster is another submitted neural system in the Irish results.

The two optimised systems are retrospective additions to the comparison. Their rank describes where their results would place them among the published results. The paper discusses the hypothetical placement of its mBERT system and reports how far gaBERT improves on the submitted systems. This distinction matters when reading the results as a comparison with an established benchmark.

What the scores count

Precision describes how much of what a system predicts agrees with the reference annotation. Recall describes how much of the reference annotation the system recovers. F1 combines precision and recall into a single measure that penalises a poor result on either. The underlying unit of comparison still matters. A system can identify several correct components and have an incomplete expression, so a score for components answers a different question from a score for complete expressions.

The authors use both the seqeval library and the PARSEME evaluation script. The latter follows the evaluation associated with PARSEME edition 1.1. In seqeval, a discontinuous chunk can be counted as separate expressions. The PARSEME scorer also provides a token-based measure, which can award partial credit to a prediction that shares tokens with a reference expression. The comparisons with open-track submissions use the PARSEME results.

The global expression-based measure concerns complete expressions across the test set. The unseen expression-based measure restricts attention to expressions absent from the training and development data. The global token-based measure gives a view of component recognition across the test set. Reporting these together helps distinguish incomplete recovery from a broader failure to find an expression’s words. The same numeric score would have a different interpretation if calculated over a different unit or subset.

The second experiment series reports global expression-based precision, recall and F1 before the final filter. The open-track comparison presents the optimised results with the filter included. Keeping those conditions distinct helps avoid crediting a change of labelling scheme for an improvement made by removing isolated predictions. The reshuffled experiment also has a different test set, so its results address the effect of a changed data allocation within the corpus.

The results on the original Irish test split

The clearest improvement appears on the unseen expressions. The optimised gaBERT system attains 40.33 F1, with precision of 53.30 and recall of 32.44. MTLB-STRUCT, the best submitted Irish system on that measure, records 19.54 F1, with precision of 23.08 and recall of 16.94. The paper reports an F1 advantage of 20.79 for gaBERT over MTLB-STRUCT. The advantage accompanies higher recall as well as higher precision, so the result reflects the recovery of more reference expressions alongside more selective predictions.

Open-track comparison on the Irish PARSEME test split, unseen expression F1

The Irish-specific gaBERT system leads the comparison on complete unseen expressions.

Open-track comparison on the Irish PARSEME test split, unseen expression F1Optimised gaBERT (this paper): 40.33Optimised gaBERT (this paper)40.33MTLB-STRUCT: 19.54MTLB-STRUCT19.54Seen2Unseen: 13.67Seen2Unseen13.67Optimised mBERT: 11.46Optimised mBERT11.46
The numbers
System or settingF1
Optimised gaBERT (this paper)40.33
MTLB-STRUCT19.54
Seen2Unseen13.67
Optimised mBERT11.46

Seen2Unseen reaches 13.67 unseen expression F1, compared with 11.46 for the optimised mBERT system. The mBERT system’s precision is 25.88, higher than Seen2Unseen’s 21.74 and MTLB-STRUCT’s 23.08. Its recall is only 07.36. The precision result shows that mBERT can make correct predictions among the unseen cases it attempts. The recall result explains why that precision does not translate into a higher F1 ranking.

TRAVIS-multi, the earlier multilingual BERT submission, records 2.6 F1 on the unseen Irish test expressions. The paper attributes an advantage of 4.73 on this measure to its mBERT system before filtering and 8.86 after removing single-token predictions. These are the reported gains over TRAVIS-multi, under the two post-processing conditions. MultiVitaminBooster has 0.0 F1 in the Irish comparison for this measure.

The result for complete expressions across the whole test set also favours gaBERT. Its F1 is 45.66, with precision of 63.01 and recall of 35.80. Seen2Unseen records 30.58 F1 and MTLB-STRUCT 30.07. The ordering of those competing systems differs from the ordering on unseen expressions. A benchmark restricted to unseen cases can therefore alter the baseline one would choose as the strongest point of comparison.

Open-track comparison on the Irish PARSEME test split, global expression F1

GaBERT also leads when the evaluation counts complete expressions across the test set.

Open-track comparison on the Irish PARSEME test split, global expression F1Optimised gaBERT (this paper): 45.66Optimised gaBERT (this paper)45.66Seen2Unseen: 30.58Seen2Unseen30.58MTLB-STRUCT: 30.07MTLB-STRUCT30.07Optimised mBERT: 19.93Optimised mBERT19.93
The numbers
System or settingF1
Optimised gaBERT (this paper)45.66
Seen2Unseen30.58
MTLB-STRUCT30.07
Optimised mBERT19.93

Optimised mBERT has global expression precision of 43.41 and recall of 12.93, resulting in F1 of 19.93. TRAVIS-multi records 7.17 F1 on this measure. The precision of the optimised mBERT predictions is close to that of Seen2Unseen, at 44.16, but the latter recovers more reference expressions, with recall of 23.39. This is another case where the component readings of F1 explain the ordering more clearly than the headline score alone.

On the global token-based measure, the gaBERT system reaches 54.38 F1, with precision of 74.31 and recall of 42.89. MTLB-STRUCT follows at 44.47 F1. The optimised mBERT system gets 29.85, and TRAVIS-multi reaches 26.11. The token scores show that the advantage of the Irish encoder extends to identifying participating words, even when the evaluation allows incomplete expression matches.

Open-track comparison on the Irish PARSEME test split, global token F1

GaBERT maintains its lead when partially correct expressions can earn credit.

Open-track comparison on the Irish PARSEME test split, global token F1Optimised gaBERT (this paper): 54.38Optimised gaBERT (this paper)54.38MTLB-STRUCT: 44.47MTLB-STRUCT44.47Seen2Unseen: 32.62Seen2Unseen32.62Optimised mBERT: 29.85Optimised mBERT29.85
The numbers
System or settingF1
Optimised gaBERT (this paper)54.38
MTLB-STRUCT44.47
Seen2Unseen32.62
Optimised mBERT29.85

The authors say that their mBERT system would have placed 3rd on each of the three measures if it had been added on its own to the Irish open track. GaBERT would have placed 1st on all three. The comparison shows a benefit from adapting mBERT more carefully as well as a much stronger outcome from the Irish starting encoder. The remaining precision and recall figures describe the size and nature of the task that even the stronger system leaves unresolved.

The multilingual benchmark as context

Across all 14 languages in the open track, MTLB-STRUCT reaches an average unseen expression F1 of 38.53. Its global expression F1 is 70.14, and its global token F1 is 74.14. The Irish gaBERT system’s unseen result exceeds that multilingual unseen average. Its global results leave Irish with the lowest performance on the two global measures in the paper’s comparison.

These observations describe different parts of the evaluation. The unseen subset isolates a type of generalisation that the authors were trying to improve. The global scores include all test expressions and reflect a wider mixture of categories and lexical patterns. Good performance on the unseen measure relative to other languages can coexist with low overall scores for Irish. The multilingual averages are useful benchmarks for scale, while the comparisons between systems on the same Irish split supply the sharper test of the authors’ approach.

The paper also notes that gaBERT’s unseen result is higher than the best results for several other languages, including Basque, Hebrew and Italian, as well as Portuguese and Romanian. Portuguese had 6437 annotated expressions. These comparisons motivate the authors’ conclusion that good language-specific resources can compensate for a shortage of task annotation in some circumstances. The evaluation compares performance on the respective languages’ benchmarks, with their own constructions and distributions.

What the ablations show

Fine-tuning depth changes which learning rates work

The classifier-only and partially frozen conditions test whether useful expression evidence is already accessible in the pretrained hidden states with limited adaptation. Across the tuning experiments, updating all encoder layers generally yields the strongest results. Updating only the classifier generally yields the weakest. The final comparison consequently uses full fine-tuning for both encoders.

The depth comparison also changes how the learning rate should be read. With the other parameters at their defaults, the conditions that update the final layers or the whole encoder need small rates. A rate above 8e-4 consistently produces runs with no predicted expressions in those conditions. The best rates in the authors’ sweeps are 4e-5 for the partially and fully updated mBERT configurations and 2e-4 for their gaBERT counterparts.

When the encoder is frozen, the authors find that a rate greater than 2e-4 is needed to obtain predictions. A rate of 0.8 still produces development F1 of 10.1 for mBERT-0 and 23.2 for gaBERT-0. These are results for classifier-only tuning, with the encoder fixed. They illustrate that a rate which is too large for changing the encoder can still be usable when only the new classifier is being trained. They also show that the performance of a frozen encoder depends on how its classifier is fitted.

The comparison thus supports a practical conclusion about the system evaluated in the paper. Full updating generally provides a better route to good scores, while the learning rate depends on which parameters are open to change. The tests leave open how far a separately optimised classifier-only system could improve. The authors explicitly suggest that combining its larger learning rates with other tuning choices might raise its scores.

More passes and small batches helped under the tested conditions

Runs that updated encoder layers frequently failed to produce expression tags when trained for fewer than 5 epochs. The failures became less common as training approached 15 epochs, while development F1 increased. The upward trend continued to the upper tested bound of 40 epochs, with slower improvement after 20 epochs. On these data, a run stopped early could therefore look incapable of recognising expressions even though longer training with the same approach could yield useful predictions.

Batch size showed the opposite trend. For the configurations that updated the final part or all of the encoder, the best development F1 appeared at batch sizes between 1-4. The mBERT run that attempted batch size 20 with the entire encoder trainable halted because of memory limitations. This particular run supplies evidence about hardware feasibility. Its interruption leaves no score with which to assess the recognition quality of that setting.

These sweeps help explain why tuning on a small corpus matters. An epoch describes passes over the corpus, and batch size affects how that material is grouped into updates. The authors cite earlier work suggesting that instability on small datasets may partly reflect the smaller number of training iterations. Their own results are consistent with training length mattering. The experiment varies epochs and batch sizes in a concrete setup, so the observed trends describe that setup and its tested ranges.

Seeds revealed an interaction the individual sweeps missed

The clearest failure of one-setting-at-a-time optimisation comes from gaBERT. The learning rate and batch size selected from their individual sweeps produce no expression predictions when used together, across the seeds tested. This is stronger evidence of a problematic combination than a single unsuccessful run would have been. Changing the seed does little for a configuration whose selected settings interact poorly throughout the sweep.

The authors recover by testing the promising batch size and learning rate in separate gaBERT configurations. The configuration built around the smaller batch size reaches development F1 of 43.0 at its best, while several other seeds give 0.0. The learning-rate configuration is less variable in the seed comparison and supplies the final gaBERT run. A high score from a selected seed and a dependable training configuration are different outcomes. The box plots give evidence about the latter that the final benchmark ranking cannot show.

The seed result also puts the data experiments in perspective. A large score change can accompany a change in the target representation, but large changes also occur without changing what the labels mean. A labelling scheme that produces no predictions could be difficult for the chosen training configuration. The experiment series cannot confidently assign the whole effect to the information represented by the tags.

The authors draw a methodological implication from the failed combination. They suggest that a random search over training settings may be effective because it can try combinations directly. The paper’s evidence for that suggestion is the interaction it observed during manual search. The article’s results concern the manual sweeps and seed trials that the authors actually carried out.

More expressive tags did not give a consistent score advantage

On the original Irish test split, before the single-token filter, gaBERT’s global expression F1 is 38.51 under the initial IOB2 conversion. It records 33.47 with IOB2-double and 31.96 with bigappy-unicrossy. For gaBERT in this baseline comparison, the least elaborate labelling scheme gives the strongest result. The extra representational capacity of the alternatives has a linguistic motivation that exists independently of their F1 scores.

With the reshuffled corpus in Experiment 4, the direction reverses. GaBERT’s unfiltered global expression F1 is 40.27 with IOB2, 41.53 with IOB2-double, and 43.52 with bigappy-unicrossy. The corresponding mBERT scores on the reshuffled test split are 17.49, 22.32, and 27.65. Both encoders thus benefit from the richer labelling schemes in that particular comparison.

Experiment 2B gives a different outcome for mBERT. With all category labels merged and the results evaluated globally at expression level before filtering, it records 17.77 with IOB2, 16.91 with IOB2-double, and 12.68 with bigappy-unicrossy. The ranking depends on the data condition. The general result is a change in the usefulness of the schemes as the label set or split changes, with no stable winner under the training settings tried.

That variability is easier to interpret by separating what the schemes encode from what the experiments measure. The overlapping example demonstrates a specific representational gain from introducing an additional beginning. Recovery of complete expressions over the test split requires the learner to predict that extra distinction correctly where it applies. The score reflects that burden alongside recognition of all the other expressions. The paper establishes the gain in expressive capacity from the worked example and leaves the aggregate predictive effect unsettled.

Simplifying the categories changed the task and the outcome

Merging the fine-grained labels in Experiment 2A has mixed effects. On the Irish test split before filtering, gaBERT attains global expression F1 of 37.17 with IOB2 and 45.43 with bigappy-unicrossy. Its score with IOB2-double is 41.06. These scores show that the same category simplification interacts with the way membership is encoded. With the simplified categories, mBERT trained using IOB2-double makes no expression predictions, recording 0.00 precision, recall and F1.

Merging all categories in Experiment 2B removes the need to distinguish kinds of expression. For gaBERT on the Irish test split, the unfiltered global expression F1 is 37.34 with IOB2 and 30.20 with IOB2-double. With bigappy-unicrossy it is 36.86. Dropping category distinctions therefore offers no uniform improvement over gaBERT’s result on the original dataset. The token sequence still has to specify what belongs to each expression, which is one of the central difficulties in the original task.

Removing verbal idioms and inherently reflexive verbs in Experiment 3 also gives results that depend on the labelling scheme. GaBERT reaches 44.44 unfiltered global expression F1 with bigappy-unicrossy, compared with 34.88 with IOB2 and 32.74 with IOB2-double in that experiment. For mBERT, the corresponding values are 12.59, 14.12 and 9.08. The two encoders favour different schemes on the reduced category inventory.

The merged and reduced inventories alter the recognition target in different ways. Merging removes some distinctions among expressions that still need to be identified. Excluding categories removes those categories from the target set. A higher score under either setting describes performance under its changed objective. It does not establish that the system has improved on the original collection of expression categories. The tests establish that simplifying the target can matter substantially, with effects that depend on the encoder and representation.

The extra training data helped mBERT more clearly

The new split in Experiment 4 places more annotated expressions into training and development. The authors report that optimised mBERT improves on each evaluation measure when compared with its optimised original-split result. This is an encouraging result for a multilingual encoder used with limited training annotation. It shows that the classifier can make better use of available Irish data when given access to more of the annotated material.

The outcome for gaBERT is more varied. In the comparison of optimised systems, its token-based and unseen expression-based scores decline slightly after reshuffling, particularly in precision. The authors suggest that some categories, such as verb-particle constructions, may appear in a wider variety in the new training data. The resulting predictions may attach those labels to a wider set of tokens, some incorrectly. This is their proposed explanation for the precision pattern.

The reshuffle changes the contents of the test set as well as the training and development sets. It is therefore an experiment on the effect of a different allocation of the corpus. The data support the claim that the new arrangement helps mBERT on the reported evaluations. They give less direct evidence about what would happen if additional annotations were added while every test sentence stayed fixed.

Manual inspection explains several recurrent errors

The authors find many predicted expressions consisting of a single token. The overlap conversion can produce such units legitimately in the transformed annotations, but those cases are relatively rare and accompany another expression with several components. Predictions often appear in isolation. Relative to multi-token predictions, the rate of single-token predictions is nearly double for mBERT compared with gaBERT across the labelling schemes examined.

Removing these single-token predictions improves global expression precision and F1 for both optimised systems. The reported global expression F1 gains are 5.59 for mBERT and 7.15 for gaBERT. This comparison isolates the effect of processing the outputs, since it changes which proposed expressions are kept after training. A classifier that often identifies a plausible beginning without its companion words can make better expression-level predictions overall once those incomplete units are removed.

Inspection also reveals recurring associations between labels and particular words. Most verb-particle predictions involve bain with amach or variations of those forms. That combination makes up most of the relevant annotations in training and development. The association helps the classifier when the combination is present, but high precision with low recall on VPC.full shows the limits of recognising a narrow set of examples.

The light verb predictions display a related pattern with more room for lexical variation. Forms of cuir ‘put’ are strongly associated with LVC.cause, as in cuir fearg (ar), glossed by the authors as ‘anger’. The verbs déan ‘make’ or ‘do’ and tabhair ‘give’ are associated with LVC.full. An example is déan iarratas, ‘make an application’. A tally of the words marked by each system shows that gaBERT attaches labels to a wider range of tokens, especially for light verb constructions. This analysis concerns the variety of words in the predictions. It complements the expression scores by showing where the systems concentrate their labels.

GaBERT’s advantage is particularly large for the two light verb categories. The reported baseline differences in expression-based F1 are 27.86 for LVC.full and 41.71 for LVC.cause, in gaBERT’s favour. The verbal idiom scores show the opposite ordering. After filtering, on the original split mBERT reaches 12.35 expression F1 for VID, compared with 10.64 for gaBERT. On the reshuffled test split those scores are 5.56 and 4.48. Both systems struggle with the category, in spite of gaBERT’s much better overall performance.

The category results give a concrete reason to read the aggregate advantage carefully. The Irish-specific encoder performs especially well on frequent and relatively regular constructions in this corpus. Verbal idioms remain difficult, and mBERT leads on that particular category in the reported comparisons. The authors suggest that common verbs and regular patterns in light verb and inherently adpositional constructions could contribute to the strong unseen result for Irish. Their inspection supplies plausible evidence for that account, while the experiment varies whole encoders and does not isolate a causal effect of any individual lexical pattern.

Limitations

Limits the authors identify

The authors describe the results for data optimisation and alternative tagging schemes as inconclusive. They choose the training settings in the first experiment series and reuse them when changing the labelling and data. A new encoding changes the prediction targets that the classifier has to learn. The settings selected for the original task may work differently under those targets. The authors propose further tuning after the data changes as a way to investigate their full impact.

They also point to instability as a persistent limitation. A change of seed, training configuration or dataset can leave a system predicting no expressions. Longer training and a suitable learning rate improve the prospects in the sweeps, but the failed gaBERT combination demonstrates the limits of transferring a setting’s apparent success from one configuration to another. The selected runs give the benchmark comparison definite results. The seed experiment shows why those runs are an incomplete description of training behaviour.

The authors recognise a practical obstacle to extending the approach to other languages with limited resources. Training a dedicated encoder requires a supply of language data and hardware. Irish already had gaBERT available, so the expression study could begin with that resource and use the small annotated corpus for adaptation. The paper also reports a hardware limit within fine-tuning itself, when the full mBERT configuration with batch size 20 exceeds available memory. The evidence for the value of an Irish encoder therefore comes with a concrete distinction between having few labelled expressions and having few resources for pretraining.

The alternative tag sequences have limits even when they do what their designers intend. IOB2-double separates overlapping annotations that the initial conversion merges. It can still represent the second expression with only a fragment of its membership, as the shared-verb example shows. Bigappy-unicrossy supplies more information about the relationships between expressions and requires the additional beginning-tag convention for the Irish overlap case. Its structural vocabulary helps describe the problem, while the reported scores leave its practical benefit unsettled.

Limits of the experimental setup

The comparison supports gaBERT as a starting point for this Irish corpus. It does not isolate the effect of concentrating pretraining on a single language. The Irish and multilingual encoders start from different corpora, and their pretraining procedures are not identical. The study holds the downstream task design close enough to compare their usefulness for this problem. A causal comparison of individual pretraining choices would require controls that the two available encoders do not supply.

Seed selection on development data gives a sensible procedure for obtaining benchmark entries without tuning on the test set. It also means the test results are for selected runs. They do not describe the expected performance of a run drawn from all the tested seeds. The development seed plots are therefore important evidence about robustness. For the dataset and labelling comparisons, reusing chosen settings makes the experiment feasible, but makes it harder to distinguish an inherently difficult representation from a setting that needs further adjustment.

The reshuffle is similarly limited as a test of the value of additional supervision. Its outcome depends partly on which examples end up in the new test set. It also changes which expressions can count as unseen, since that status depends on what appears in training and development. The paper’s comparison demonstrates what happens under its revised allocation. It leaves open how much of the change would persist under a test that fixed the evaluation examples and altered only the amount of training annotation.

The single-token filter addresses a frequent error under the benchmark conditions. The converted reference data can nonetheless include a single-token unit associated with an overlap. A rule that removes predictions of this form can suppress an error or remove the representation of part of a real construction. The improvement in aggregate F1 indicates that removing those predictions paid off in the tested setup. It gives no way to decide in a particular case whether the classifier noticed genuine evidence of overlap.

Comparisons with higher-resourced languages offer context about the scale of gaBERT’s unseen result. The languages have distinct inventories of constructions and their test examples need not be equally difficult. The paper’s own account suggests that regular patterns and common verbs might help on the Irish unseen subset. The strongest evidence for improved Irish recognition remains the comparison with other systems under the same Irish evaluation. The cross-language results leave the relative contributions of annotation volume, constructional regularity and the pretrained encoder open.

Finally, the system uses the expression annotations without training on the treebank’s dependency relations as a separate task. The strong results of the joint MTLB-STRUCT approach motivate further investigation. The present experiments do not establish what would happen if gaBERT were also trained to recover grammatical structure, or whether such supervision would especially help the discontinuous and overlapping cases that motivate the alternative tags.

What came after

No later citing study is documented here. The paper closes with two directions for continuing the work. One is to tune the training procedure again after changing the labels or the dataset, so the comparison tests how well each representation can work under suitable settings. The other is to investigate joint learning of parsing and expression identification, using the Irish treebank’s grammatical annotations alongside the expression data. MTLB-STRUCT provides the earlier precedent for that direction. The paper leaves both investigations open.

Cite

Cite as Abigail Walsh, Teresa Lynn and Jennifer Foster. 2022. A BERT's Eye View: Identification of Irish Multiword Expressions Using Pre-trained Language Models. Proceedings of the 18th Workshop on Multiword Expressions @LREC2022.

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

@inproceedings{walsh2022bert,
  title = {{A BERT's Eye View: Identification of Irish Multiword Expressions Using Pre-trained Language Models}},
  author = {Abigail Walsh, Teresa Lynn and Jennifer Foster},
  booktitle = {Proceedings of the 18th Workshop on Multiword Expressions @LREC2022},
  year = {2022},
  url = {https://aclanthology.org/2022.mwe-1.13/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/walsh-2022-bert-s-eye-view-identification/