Elamur Research

Leveraging Pre-Trained Embeddings for Welsh Taggers

Paper · 2019 · Ignatius Ezeani, Scott Piao, Steven Neale et al.

Summary

A Welsh tagger can tell a reader that a word is a noun or a verb, or it can indicate what the word means in context. These are different kinds of information, and a decision about grammar can help narrow the possible meanings. The authors ask whether a single system can learn to supply both kinds of labels from a small collection of annotated Welsh text. The question matters because existing Welsh taggers depend heavily on dictionaries and rules that people write and maintain by hand. The study uses word embeddings, numerical representations learned from a larger body of Welsh text, to give the new tagger more information than it could learn from the annotated examples alone.

The authors start with 611 sentences from the National Corpus of Contemporary Welsh project, with grammatical and semantic labels checked by hand. For each eligible word, the tagger reads that word and the three words immediately before it. It retrieves their pretrained Welsh FastText vectors and feeds them to a small neural network. The network makes a single choice from 392 observed combinations of grammatical and semantic tags. A correct prediction supplies both annotations. This is joint prediction through a combined label, with the grammatical and semantic components learned from the same examples.

The strongest setting by exact match reached 95.24% evaluation accuracy on the combined labels, with a cross-entropy loss of 6.161. Cross-entropy measures how much probability the system gives to the correct answer, and lower values are better. Dropout and batch normalisation, techniques the authors tested to control how the network learns, reduced evaluation loss at the expense of accuracy. Using both gave an evaluation loss of 2.682 and accuracy of 86.66%. Which setting looks strongest therefore depends on whether the reader cares about the chosen label or the probability assigned to the correct one.

The authors place these results beside earlier figures for CyTag, a Welsh grammatical tagger, and CySemTagger, a Welsh semantic tagger. Those figures describe different outcomes. CyTag’s published accuracy concerns grammatical labels, while CySemTagger’s coverage records whether it supplies a valid semantic tag candidate. The new experiment scores exact agreement on the combined label. It establishes that the joint approach is feasible on the authors’ small Welsh dataset. The individual contribution of pretraining, the benefit of joint training over separate training, and the accuracy of semantic tagging on its own remain open.

Deep dive: Leveraging Pre-Trained Embeddings for Welsh Taggers

The paper tests whether pretrained Welsh word embeddings can support a single tagger that assigns both grammatical and semantic labels. · about 31 minutes to read

The problem and its context

What the two tags tell you

Part-of-speech tagging assigns a grammatical category to each word or other token in running text. A token is a unit of text that the tagger handles as an individual item. A grammatical annotation can identify a token as a noun, a pronoun, a verb or a preposition. A semantic annotation assigns a category concerned with meaning. In the paper’s illustration, arian receives the grammatical label E, the basic CyTag code for a noun, and the semantic label I1, within the domain that covers money and commerce. The grammatical tag tells a reader how to classify the word in the sentence. The semantic tag places that use in a meaning category.

The authors describe semantic tagging here as a coarse form of word-sense disambiguation. Disambiguation means deciding which interpretation a word has in its current context. The sense distinctions in this task come from the UCREL Semantic Analysis System, or USAS. Its inventory includes broad areas such as education, time, and language and communication. The categories provide a common way to annotate and compare uses of different words across texts. A semantic tag conveys the kind of meaning involved at the level the inventory distinguishes.

Grammar can contribute to that decision. As the paper explains, previous semantic tagging work used part-of-speech information to filter possible meaning categories. If a word has several entries or readings, its role in the sentence can render some of them inapplicable. In a pipeline, the grammatical tagger makes its decision first, and the semantic stage uses that decision as evidence. The Welsh experiment asks whether the two labels can instead be learned together as a recurrent pairing in annotated text.

For natural language processing, the authors describe Welsh as a low-resource language. The shortage they discuss concerns research materials and tools, including large bodies of consistently annotated text. They situate the work within the National Corpus of Contemporary Welsh project, known as CorCenCC, which was building an open resource for contemporary Welsh. The same project supplied the manually checked sentences that make the experiment possible.

The paper also identifies a practical difference between collecting text and maintaining a tagger. Text, including material obtained from the web, can accumulate without anyone first assigning categories to it. A hand-built tagging system needs lexical resources and rules capable of interpreting the forms and uses that occur in that material. The authors expect ongoing language change to make such resources costly to maintain. Their proposal exploits the distinction between the plentiful text from which numerical word representations can be learned and the much scarcer text on which reliable tagging decisions can be taught.

How the existing Welsh tools work

CyTag is the grammatical tagger the authors use as their main point of comparison. It is built around Constraint Grammar, an approach in which contextual rules act on candidate analyses. The system first proposes grammatical tags for a token. It then uses rules to discard or select readings based on features of neighbouring tokens, and follows this stage with further processing to resolve cases that remain ambiguous. A rule can therefore express a decision about a particular reading together with the conditions under which that decision applies.

The paper describes a CyTag grammar with 243 manually written rules. CyTag’s inventory contains 145 detailed tags that can be grouped into 13 broader categories. This distinction matters throughout the study. Grammatical annotation can be carried out at several levels of detail, and the paper’s Welsh examples use the basic CyTag codes. The product of the joint classification experiment is a set of observed grammatical and semantic combinations, so its inventory has a different meaning from the list of fine-grained grammatical distinctions available in CyTag.

The Welsh Natural Language Toolkit also includes a part-of-speech tagger, which the paper calls WNLT-Tagger. Its role in the discussion is clearest in the account of CySemTagger, which can accept input from different grammatical taggers. CySemTagger uses the grammatical output together with lookup resources for individual words and multiword expressions. It also includes a stage for resolving competing semantic categories and a stage that formats the output. The semantic inventory has 21 major fields and 232 tags. When the authors describe CySemTagger’s dependency on the preceding stage, they are describing a system with a separate meaning inventory and explicit linguistic resources of its own.

The ordering of these tools gives part of the motivation for a joint experiment. A grammatical analysis can be useful to a semantic tagger immediately, through a rule that filters candidates. It can also be useful during learning, because grammatical and semantic labels occur together in examples. Those uses of grammar pose different engineering questions. The rule-based pipeline needs a way to pass analyses between components and rules for how to act on them. The joint classifier needs enough examples for the relevant associations to be learned and a representation that helps it recognise similar contexts.

Why learn the labels together?

The paper places this proposal in an existing line of work on multilingual and cross-lingual NLP and on systems that learn related tasks together. Prior work had paired grammatical tagging with tokenization, dependency parsing and lemmatization, which identifies a word’s dictionary form. The authors also describe tagging research on Arabic and Chinese and on challenging kinds of material such as historical texts, learner writing, social media and text that switches between languages. Their account treats grammatical tagging as a mature task whose resources and methods still need to be adapted to particular languages and kinds of text. Robust Part-of-speech Tagging of Arabic Text

On the semantic side, the paper points to shared learning in applications such as sentiment analysis, opinion and role labelling, and semantic parsing. It identifies comparatively little precedent for pairing coarse word-sense annotation with another task. In parallel, researchers had tried transferring lexical resources across languages with bilingual dictionaries, parallel text or cross-lingual embeddings. The paper also describes earlier efforts to learn tasks across languages when one has sparse resources, with uneven outcomes depending on the task.

The Welsh study focuses on a different source of assistance. Its grammatical and meaning labels come from the same language, and the word vectors come from Welsh text. The transfer is from prior learning over Welsh text to a supervised annotation task, and the two annotations are treated as a common prediction target. The authors present the particular pairing of part of speech and coarse semantic categories as the novelty of the experiment. On this design, the same annotated token provides evidence about both its grammatical role and its semantic category.

For this approach to help in practice, it needs to do more than recognise familiar words. Its appeal is that prior learning can represent regularities in a language even where the task-specific material is thin. A word that is poorly represented in an annotated corpus may still have an informative pretrained vector. Meanwhile, the preceding words can give a familiar grammatical or semantic context a different interpretation. The authors investigate that possibility with a compact architecture and treat the resulting tagger as a prototype for further work on Welsh.

The method, step by step

Turn annotations into a prediction target

The starting point is an already tokenised sentence with both kinds of linguistic annotation. In the paper’s data illustration, the authors show how the same sentence can be represented as plain text, with grammatical tags alone, with semantic tags alone, or with both. The experiment uses the format called 3-BOTH. For each example in that format, the target consists of the grammatical and semantic codes attached to the current token. The codes together identify a class.

Consider the arian example. Its E grammatical code and I1 semantic code make up the answer that the classifier is asked to predict for that occurrence. The authors assign a distinct integer identifier to each combined class in the data. That integer serves as an index into the tag inventory. Its magnitude carries no linguistic significance. Once the classifier has selected a class, the associated grammatical and semantic codes are available as the two annotations for the token.

This representation makes the joint task an ordinary multiclass classification problem. The learner receives an input and has to select a single class from a fixed set. A token’s grammatical and semantic labels determine that class together. Two uses with the same grammatical category but different semantic categories have different class identifiers, as do two uses that share a semantic category but differ in part of speech. With 392 combined classes extracted from the training data, the output has a position for each observed pairing.

The combined inventory lets the classifier learn which labels occur together without a separate rule for every interaction. An output also has to be one of the available pairings. That constraint helps explain the architecture’s simplicity and the importance of the training corpus to what it can express. The system shares its internal representation across the combined classes, while the target treats each pairing as its own answer. There is no separately scored grammatical answer that can feed into a semantic stage, as there is in CySemTagger’s pipeline.

The original collection contains material the authors regard as straightforward to label, such as punctuation and numbers. They leave unambiguous items of this kind out of the extracted instances. They also remove items labelled unknown from the training data. The design concentrates the learning exercise on tokens for which the joint annotation is a meaningful classification choice. The paper gives statistics for the underlying corpus and vocabulary, so the size of that collection should be distinguished from the number of examples retained by the extraction procedure.

From annotated Welsh sentences to paired tags

The steps in order.

From annotated Welsh sentences to paired tagsStep 1: Read sentences with checked grammatical and semantic tags1. Read sentences with checked grammatical and semantic tagsStep 2: Select eligible tokens as prediction targets2. Select eligible tokens as prediction targetsStep 3: Collect each target and its three predecessors3. Collect each target and its three predecessorsStep 4: Retrieve and truncate the Welsh FastText vectors4. Retrieve and truncate the Welsh FastText vectorsStep 5: Join the vectors in sentence order5. Join the vectors in sentence orderStep 6: Score the observed pairs of annotation tags6. Score the observed pairs of annotation tagsStep 7: Decode the chosen pair into both labels7. Decode the chosen pair into both labels

Give the target its left context

For each selected token, the authors take a window of 4 words. The target occupies the rightmost position, and its three immediate predecessors occupy the earlier positions. As the window moves along the sentence, the word that was just a prediction target can become part of the input for a later target. The data produced by the windowing operation are therefore local classification examples drawn from a sequence.

The paper’s illustration puts arian immediately after rhywfaint, o and ’r. In that example, the input ends with arian itself. The other words provide local context, and later material in the sentence lies outside the window. The network can learn that an input with a particular pattern in the earlier positions favours certain classes for the final position. It also receives information about the target word through its own vector.

Keeping positions separate is important. The vector for the predecessor immediately before a target always appears in the corresponding slot. The same applies to the earlier context positions and to the target. As a result, the network can respond differently to evidence from different locations. It sees a fixed window of ordered inputs, with neither a predicted tag sequence nor a complete sentence as an additional input.

This setup gives the system access to some of the local evidence a hand-written rule might inspect. It supplies that evidence in a different form. CyTag explicitly checks features of neighbours when it applies a grammar rule. The classifier receives numerical representations of the words at the chosen positions. The labels in the training data guide it toward useful patterns in those inputs. It can therefore make context-sensitive decisions without the input specifying which particular cue to use for a given token.

The choice also defines what evidence is available at tagging time. A disambiguating expression to the right cannot influence this prediction through the window. A clue farther back than the three preceding words also falls outside it. The paper gives the window as the implemented feature design and leaves questions about alternative contexts to a different experiment.

Reuse Welsh FastText vectors

Each word in a window is replaced with a vector from the pretrained Welsh FastText resource. A vector here is an ordered list of numerical values standing for a word. The authors use this resource because it was learned from a larger collection of Welsh material than the labelled sentences available to them. Learning a representation directly from the task corpus would place the burden of learning both the input features and the tag decisions on that small corpus. Using existing vectors lets the tagging experiment start with representations learned elsewhere.

The FastText vectors have 300 values. The authors investigate several input lengths and choose to retain the first 100 values from each word vector. This is truncation: the selected prefix is passed on as it stands. The paper describes no additional projection learned to compress the vectors for this task. The word slots retain their order, and their truncated vectors are joined into an input of size 400 for each target.

There are two compatible ways to picture that representation. During feature construction, the window has a vector for each word, which can be arranged as a small matrix. When the network consumes the example, those vectors form a single ordered input. The position of each block still identifies its word’s position in the window. The paper’s matrix description and its description of a concatenated input refer to these two views of the same features.

The vocabulary counts give the role of pretraining some empirical context. There are 3902 entries in the corpus vocabulary as listed in the paper, and the count associated with the embedding vocabulary available to the experiment is 3821. The paper records 81 out-of-vocabulary items relative to that embedding resource. An item can therefore exist in the corpus while being absent from the available vector lookup. Separately, a token can be annotated as unknown in the gold data. These are different conditions. The paper’s count of embedding misses describes representation coverage, while the exclusion of unknown annotations describes which labels participate in training.

The authors present the use of pretrained vectors as a way to improve coverage and extend semantic tagging to unfamiliar vocabulary. The mechanism described for the main classifier is the use of these vectors as input features, with preceding tokens providing additional evidence. The coverage counts document the overlap between resources. They leave open the exact representation used when a lookup fails, and they do not report a separate evaluation for unfamiliar words.

From the input to a probability over tag pairs

The network has one hidden layer, meaning that a single intermediate stage transforms the input before the output classes are scored. The hidden layer has 256 units. The authors say they chose this width to keep the number of trainable parameters down and describe the choice as arbitrary. They use a rectified linear activation, or ReLU. A unit with this activation passes through its positive input and maps a negative input to zero. With this layer, the output scores can depend on patterns involving several parts of the input.

The output layer has 392 positions, corresponding to the 392 tag pairs in the class inventory. Softmax converts the output scores to a probability distribution over those positions. A class with a higher score receives a higher probability, and the classes share a fixed total probability. The winning class supplies the grammatical and semantic tags. During training, the probability assigned to the known answer is also the basis for the loss.

The network was implemented using TensorFlow and Keras, with Adam used to optimise its parameters. Adam is the procedure that uses information about how the loss changes with the parameters to update those parameters during training. The authors group examples in mini-batches, so each update uses the loss from a small batch. The selected batch size is 8 instances. The experiments that tune the input length, batch size and dropout rate use runs of 50 epochs, where an epoch is a pass through the training data. TensorFlow

The paper applies dropout at the hidden layer. Dropout suppresses a randomly selected portion of the layer’s activity during training, reducing the opportunity for the network to depend on any particular set of active units. The authors choose a rate of 30% for versions that use it. They also test batch normalisation, which normalises the values supplied to layers during training. The paper discusses its potential to affect both the rate of learning and regularisation, the set of measures used to restrain fitting to the training examples.

The authors compare versions with either intervention, both interventions, and neither. This gives them separate observations about two changes to the same overall design. Even with both omitted, a version can learn to match the supplied targets very closely. The other versions show how changing the training dynamics affects the accuracy of the final class and the probabilities assigned across all classes.

The training objective

The paper gives the following batch cross-entropy for the multiclass prediction problem.

−(1/N) ∑ᵢ₌₁ᴺ ∑ₜ₌₁ᵀ log(p(y | Xᵢ)ₜ) 𝟙[yᵢ = t]

N is the number of examples in the current batch, and i indexes those examples from 1 through N. T is the number of unique tags in the task, and t indexes the possible combined classes from 1 through T. Each ∑ directs the reader to add the terms over the indicated index. Xᵢ is the numerical input for instance i, and yᵢ is that example’s known class identifier. In p(y | Xᵢ)ₜ, y denotes the class being predicted, the vertical bar means “given,” and the subscript t selects the probability of class t from the distribution conditioned on Xᵢ.

The indicator 𝟙[yᵢ = t] is 1 when the given example has class t and zero otherwise. It selects the probability of the correct class from the inner sum. log takes the logarithm of that probability, the leading minus sign turns the result into a penalty, and 1/N averages the penalties over the batch. The loss is smaller when the network gives the correct pairing more probability. For an example on which the true class gets very little probability, the penalty can be large.

The use of combined labels determines how to interpret this loss. If the correct grammatical tag is paired with an incorrect semantic tag, the predicted class is a different one from the target. The same applies if the semantic part is right and the grammatical part is wrong. The probability rewarded by cross-entropy belongs to the full annotation pair. The associated accuracy also judges the full pair. This establishes a clear target for training and evaluation while making separate metrics necessary to see how well either annotation works by itself.

Experiments and results

The data used to test the tagger

The project corpus that underlies the experiment contains 611 sentences and 14,876 tokens. The texts come from several sources. They include Welsh Assembly proceedings from Kynulliad, translated instructions from Meddalwedd, Wikipedia material from Kwici, and spoken-language material from LERBIML. The authors also mention short abstracts from additional Welsh Wikipedia articles. The collection brings together text produced for different purposes, including institutional proceedings, instructional writing, encyclopedic prose and speech.

The sentences come from the CorCenCC gold-standard material used in developing the existing Welsh taggers. A gold standard is a collection of checked answers against which automatic annotations can be compared. In this case, having both layers of labels on the same text is what allows the authors to extract combined classes directly. The paper identifies the manually checked Welsh material, along with the tagging tools, as resources made available through the CorCenCC project and describes release of the version carrying both annotation layers together with the joint tagger.

The corpus totals describe the source collection. The statistical summary lists 1667 punctuation items and records 44 under unknown tags, while the authors describe exclusions at the instance extraction stage. The paper gives aggregate values for training and evaluation, with no partition sizes or detailed account of how the two sets were formed. Accordingly, the percentages for the joint tagger refer to the paper’s reported evaluation on its selected Welsh examples. The results are also pooled across the source material, so they describe the run as a whole across that collection.

What the reported scores measure

The central measure is accuracy: how frequently the highest-scoring combined label matches the reference label. Each example contributes a correct or incorrect decision. A wrong grammatical or semantic component makes the combined prediction incorrect. The result is therefore stricter about agreement on an individual evaluated example than a score that credits either component by itself. The restriction to the selected examples still matters when comparing this score with results from another tagger.

The second measure is cross-entropy loss. It records how much probability the tagger gives to the reference pair, including on examples where some other class wins. Suppose a system gives the correct class more probability than any competitor. It gets credit for that example in accuracy regardless of how large the lead is. Cross-entropy continues to distinguish a narrow lead from strong support for the correct class. Conversely, two incorrect decisions count equally against accuracy even if one places the right class close to the top and the other assigns it very little probability. This is why the two metrics can point to different settings.

The paper uses two existing Welsh tools as external reference points. CyTag had reported 93.64% accuracy and 95.06% F1 for grammatical tagging. F1 combines precision, the proportion of relevant predictions that are right, with recall, the proportion of relevant reference items that are recovered. The paper cites CyTag’s reported F1 without turning it into a joint annotation measure. It is evidence about the performance reported for the earlier grammatical tool.

The CySemTagger figure is text coverage. It counts a token as covered when the system can supply at least one valid semantic tag candidate. The earlier semantic tagging evaluation reported 91.78% coverage when CyTag supplied the grammatical analysis and 72.92% when WNLT-Tagger supplied it. The comparison illustrates how much the semantic pipeline’s ability to offer a candidate can depend on its grammatical input. Coverage does not establish that the tag finally selected agrees with a human reference. Likewise, where a joint classification example receives a wrong pair, its result reveals nothing by itself about how many plausible semantic alternatives were available.

The authors say the new tagger compares favourably with these systems. The useful comparison is between the kinds of evidence the scores provide. CyTag shows what a dedicated Welsh grammatical tool had achieved on its own task. CySemTagger shows that a semantic tool built around lexical resources and grammar could cover much of the text it assessed, especially with CyTag supplying its grammatical input. The joint tagger shows that a system using pretrained vectors and paired labels can recover many of its evaluated annotation pairs. The reported numbers concern different targets, scoring criteria or instance selections, so they provide context for the prototype instead of a shared ranking.

The accuracy and loss of the joint tagger

The main comparison uses vectors truncated to 100 values, a mini-batch size of 8, and a dropout rate of 30% in the versions that enable dropout. The highest reported evaluation accuracy in this comparison is 95.24%, obtained with neither dropout nor batch normalisation. Its training accuracy is 99.23%. The same version has training loss of 0.021 and evaluation loss of 6.161. The training and evaluation scores tell different stories about the probabilities, even though the reported evaluation accuracy remains high.

Combined-label evaluation accuracy on the Welsh CorCenCC data

The version without dropout or batch normalisation matches the most reference pairs.

Combined-label evaluation accuracy on the Welsh CorCenCC dataNeither intervention (this paper): 95.24Neither intervention (this paper)95.24Dropout only: 94.89Dropout only94.89Batch normalisation only: 92.57Batch normalisation only92.57Dropout and batch normalisation: 86.66Dropout and batch normalisation86.66
The numbers
System or settingaccuracy %
Neither intervention (this paper)95.24
Dropout only94.89
Batch normalisation only92.57
Dropout and batch normalisation86.66

With dropout alone, the reported training accuracy is 98.36%, and evaluation accuracy is 94.89%. Training loss is 0.050 and evaluation loss is 4.880. The difference in rank between the two measures is already apparent here. The evaluation accuracy is lower than in the version with neither intervention, while the lower evaluation loss shows that the probabilities assigned to the reference labels incur less penalty on average.

With batch normalisation alone, training accuracy is 95.51% and evaluation accuracy is 92.57%. The corresponding losses are 0.144 for training and 3.837 for evaluation. Enabling both interventions moves the results farther in the same direction. Training accuracy is 88.88%, evaluation accuracy is 86.66%, and training loss is 0.350. At 2.682, the combined version’s evaluation loss is the lowest of the configurations in this comparison.

Combined-label evaluation cross-entropy on the Welsh CorCenCC data

Using both interventions produces the smallest penalty on the reference labels.

Combined-label evaluation cross-entropy on the Welsh CorCenCC dataNeither intervention: 6.161Neither intervention6.161Dropout only: 4.880Dropout only4.880Batch normalisation only: 3.837Batch normalisation only3.837Dropout and batch normalisation (this paper): 2.682Dropout and batch normalisation (thispaper)2.682
The numbers
System or settingcross-entropy loss
Neither intervention6.161
Dropout only4.880
Batch normalisation only3.837
Dropout and batch normalisation (this paper)2.682

The ordering across the two charts matters to what an application would see. When the system is used to assign one fixed pair to every eligible token, exact-match accuracy measures how often that output agrees with the reference. Loss reflects the entire set of probabilities through the probability of the reference class on each example. A change intended to improve the way the system distributes its probabilities can improve loss while moving some correct pairs below a competitor in the ranking. The paper observes that divergence at the aggregate level. Its scores do not indicate which particular predictions changed or reveal whether the new probabilities correspond better to observed frequencies.

What the ablations show

Changing how much of each vector the tagger sees

The optimisation experiments vary vector length, mini-batch size and dropout rate. The vector lengths tested are 10, 50, 100, 200 and 300. They are reported across other settings, and the paper tracks accuracy and loss during the 50-epoch runs. These trials ask how much useful signal is available to this classifier in differently sized prefixes of the pretrained embeddings. Each choice also changes the size of the input into the hidden layer, so it affects both the evidence available to the classifier and the number of parameters processing it.

The shortest vectors stand out. With length 10, the reported training accuracy is 72.44 and evaluation accuracy is 70.26 on the table’s accuracy scale. The longer inputs reach evaluation accuracies of 94.51 at length 50, 94.76 at length 100, 95.23 at length 200 and 95.38 at length 300. The paper’s learning curves likewise distinguish the 10-value setting from the other lengths. The authors describe the other settings as approaching their accuracy levels within the first 30 to 40 epochs.

The loss curves complicate that ranking. The authors report that evaluation loss starts to rise within the first 10 epochs for the vector comparison. The evaluation loss at length 10 is 3.517, even though it has the lowest evaluation accuracy of the vector settings. The loss values for lengths 50, 100, 200 and 300 are 5.313, 4.775, 4.650 and 4.994, respectively. The 300-value input yields the highest evaluation accuracy in this sweep, while the 200-value setting has the lowest evaluation loss among the longer settings. The training decision to use 100 is presented as a compromise in a small-data setting. The paper supplies no formal scoring rule that derives that choice from the reported accuracy and loss.

The short-vector result supports a specific conclusion. The first 10 values offer insufficient information for this particular input construction and classifier to perform as well as it does with the longer prefixes. The outcome leaves open which dimensions carry the useful signal and how a compression procedure learned for the task would behave. Since every setting uses Welsh FastText features, this sweep addresses how much of those features to pass into the classifier. A comparison with word vectors learned from the task corpus or with other input representations would test a different question.

The learning curves also help explain why the authors consider training dynamics. Once many predictions reach the correct top position, additional training can change the probabilities without changing many of the winners. If some incorrect decisions become more confident, loss on the evaluation data can keep growing. That pattern is compatible with the reported levelling of accuracy and rising loss. The aggregate curves do not identify the individual examples responsible, so the explanation remains an interpretation of the two metrics.

Changing how updates are grouped

The batch-size sweep uses 8, 16, 32 and 64 examples per update. The evaluation accuracies for the Welsh task are 95.29, 95.55, 95.03 and 94.97, respectively, on the paper’s accuracy scale. Evaluation losses in the same order are 4.450, 4.552, 4.758 and 4.905. These results put the top accuracy at batch size 16 and the lowest loss at batch size 8. The paper describes the changes in accuracy as small and chooses the smaller batch for its evaluation loss.

This comparison alters how examples contribute to each parameter update. It keeps the underlying annotation task and the form of the input fixed. The averages describe how the choice behaved over the other settings tested in this experiment. They do not tell a reader how much variation to expect from a repeat run, or how a different corpus would affect the ranking. The evidence for choosing 8 is a reported mean loss advantage in the sweep, alongside evaluation accuracies that are close on the reported scale.

Changing the strength of dropout

The authors test dropout rates of 10%, 20%, 30%, 40% and 50% on the hidden layer. At the low end, the setting of 10% gives evaluation accuracy of 95.38 and evaluation loss of 3.807. With dropout at 30%, the reported evaluation accuracy is 94.27 and loss is 3.434. At 50%, evaluation accuracy reaches 90.32 and evaluation loss is 3.280. The full sweep shows decreasing evaluation accuracy as dropout rises. Loss is lowest at the highest rate, with a small initial increase from the 10% setting to the 20% setting before it falls across the higher rates.

The training scores also show progressively less close agreement with the training examples as the dropout intervention strengthens. At 10%, training accuracy is 99.11 and training loss is 0.033. At 30%, they are 97.68 and 0.083. At 50%, they are 93.08 and 0.232. Regularisation in this experiment clearly changes how tightly the classifier fits its own examples. The evaluation outcome then depends on which aspect of the prediction is measured. The authors select 30% as a compromise between loss and accuracy.

Those sweep values belong to the parameter exploration, which pools results across configurations. The subsequent dropout-only result belongs to a comparison with the input length and batch size already selected. Keeping these contexts distinct matters when the values differ. The exploration informs the choice of a training setting. The later comparison estimates how the addition or removal of an intervention changes performance under the chosen configuration.

Turning dropout and batch normalisation on and off

The final comparison is the paper’s direct component ablation. The underlying task, vector length and mini-batch size are shared across its configurations, and the authors toggle dropout and batch normalisation. Comparing the unchanged architecture with the dropout-only variant isolates the reported effect of adding dropout at the chosen rate. Comparing it with the batch-normalisation-only variant does the same for batch normalisation. The combined variant shows what happens when both are applied to the same classifier.

Batch normalisation alone produces a larger reduction in evaluation loss than dropout alone, accompanied by lower training and evaluation accuracies. The authors read the learning curves as showing slower convergence and a stronger regularising effect for the batch-normalised version. Their discussion also notes that evaluation accuracy had been improving more slowly after the first 50 epochs while evaluation loss continued to rise. That observation motivated looking at a technique that could affect learning speed and regularisation together.

With both interventions, the loss on the evaluation data falls farther while agreement with the checked labels falls on both training and evaluation data. A smaller penalty on a collection of probability estimates is compatible with a higher count of mistaken top choices. For example, reducing extreme confidence in wrong predictions could lower the penalty on those cases even while shifting other decisions away from their correct class. The aggregate losses and accuracies establish the tradeoff in the experiment. The paper gives no per-example probability analysis that would establish the exact mechanism behind it.

The component comparison consequently explains a feature of the tagger’s behaviour, specifically the effect of these training choices on its decisions and loss. The experiment’s broader motivations concern pretrained representations and combining grammatical with semantic learning. Those ingredients are present throughout the comparison. The paper supplies no matched runs that remove pretraining or replace the combined task with separately trained grammatical and semantic classifiers. The ablation findings apply to the training interventions within the proposed tagger.

Limitations

Limits the authors identify

The authors describe their corpus as small for a neural tagging experiment and treat the work as exploratory. They say the results of an experiment on this scale are inconclusive. The training annotations are valuable because the same tokens carry checked labels for grammar and meaning. Their limited amount leaves less evidence for rare words, rare senses and rare combinations of labels. The authors identify larger training collections and further optimisation as directions for continuing the work.

The paper also frames the prototype in part as a way to reduce dependence on resources curated by hand. The training examples still depend on manual checking, and the semantic taxonomy supplies the set of distinctions the tagger learns. What the experiment changes is the mechanism that maps text to labels. A supervised classifier learns the mapping from examples using information in pretrained vectors, while the existing systems apply explicitly encoded analyses. The authors demonstrate that the example-based approach can work on their Welsh task. They leave the amount of annotation effort needed for broader deployment to future investigation.

Earlier evaluation of the semantic reference system had been limited to text coverage. The authors acknowledge that CySemTagger had no directly corresponding accuracy or F1 scores in the comparison they discuss. They also present their own data as an initial basis for development. Together, those points narrow the interpretation of the conclusion. The study offers a promising result for a Welsh prototype and a practical demonstration of simultaneous tagging, with room for a more direct assessment against the tools already in use.

The paper also lists inter-annotator agreement for Welsh semantic tagging among its contributions. Agreement concerns how consistently people assign the semantic categories, an important issue when a classification system is evaluated against human decisions. The results reported for the joint tagger do not give an agreement coefficient or a breakdown by semantic category. The numerical evaluation cannot therefore be used to locate classes where annotators agreed readily or to compare the tagger with a quantified level of human agreement.

Limits that follow from the experimental design

The first issue is attribution. A good score from a classifier built with Welsh FastText vectors demonstrates performance with those features present. It does not quantify the contribution of pretraining. To do that would require a comparison under the same evaluation procedure with an alternative representation, such as vectors learned from the annotated data alone. Truncation experiments compare prefixes of pretrained vectors, so they establish sensitivity to input size within the proposed design. The value of having pretrained features in the first place remains unmeasured against a matched control.

The same reasoning applies to joint learning. The authors show that a fixed inventory of grammatical and semantic pairs can be predicted with substantial accuracy on the evaluation used here. To isolate a gain from learning jointly, an experiment would need outputs from separately trained classifiers using the same examples and features, together with scores for each individual annotation task. Then a reader could see whether learning the pair improves grammatical decisions, semantic decisions or agreement across both. Comparing paired accuracy with earlier standalone figures cannot identify those effects.

An exact-match score also conceals the location of errors. A predicted pair can miss only the grammatical label, only the semantic label, or both. Each case contributes the same error to combined accuracy. That is an appropriate scoring rule for an application that requires both values to be correct, but it cannot diagnose the relative difficulty of the tasks. It also gives no detail about whether semantic errors cross broad domains or confuse categories within the same domain. The paper reports scores for the combined classification without a breakdown of these cases.

The fixed class inventory creates a related restriction. A pair needs an output class before it can be chosen. If a grammatical category and semantic category were both observed during training but never together in a particular combination, that combination has no class in the described output. The method shares evidence internally across classes through its hidden layer. Its final choice nonetheless remains tied to the pairings extracted from the corpus. This distinction matters most in a low-resource setting, where valid combinations can be sparsely attested.

The total score also leaves performance on uncommon classes unresolved. Each evaluated example has equal weight in accuracy, so frequently occurring labels can contribute many more decisions than rare ones. Reporting a class-by-class result would show how broadly successful the classifier is across the combined inventory. The paper’s aggregate accuracy is enough to describe how many reference pairs the classifier generally matches in the evaluation. It cannot establish reliable performance on categories with few examples or on words rarely encountered in the annotated corpus.

The treatment of vocabulary poses a separate question. The corpus and vector lookup overlap substantially according to the reported counts, and the authors identify better coverage of unfamiliar vocabulary as part of the motivation. The paper does not give separate accuracy for words lacking a pretrained vector, words absent from the annotated training data, and words well represented in both resources. Those groups ask different questions. A trained classifier can encounter a familiar vector for a word that is new to the annotated corpus. A word absent from the vector resource raises an additional input construction problem. The result does not measure the contribution of pretraining to each kind of unfamiliar case.

The left-context window places a further boundary on interpretation. The proposed tagger uses neighbouring text, but the experiment leaves open whether clues elsewhere in a sentence would improve its decisions. Since the window always ends at the target, any resolution that depends on following text is outside the available input. The paper does not compare windows, and it does not report enough about errors to tell how often wider context would matter. Its conclusion concerns the stated local feature design.

Finally, the reporting leaves uncertainty about the independence and breadth of the evaluation. The paper provides training and evaluation results but does not give enough detail about the partition to determine how sentences or source documents were distributed. If overlapping windows from a sentence were assigned to different partitions, examples could share context across them. If whole sentences or documents were kept together, a different kind of generalisation would be tested. The method creates the possibility of overlap; the reporting does not establish whether it occurred. The paper also gives no separate results for genres, and its exclusions mean the combined score concerns selected tagging instances. These details matter when extending the results to complete texts, unfamiliar sources or a new sample of Welsh usage.

What came after

Later citations take the paper into Welsh language infrastructure and into semantic annotation beyond Welsh. Their descriptions establish the scope of the citing projects. The specific role of the Welsh embeddings, the paired output classes and the local window in each project is undocumented here, so the links trace where the work was cited and which part of the research problem each later study addresses.

The Welsh natural language toolkit study from 2021 addresses the development of a toolkit for an under-resourced language, with Welsh as its focus. The shift in scale is from an experiment about a pair of annotation tasks to a project concerned with a wider collection of language-processing tools. The original experiment is relevant to that setting because it tests one way to obtain Welsh grammatical and semantic labels when the resources for building them are limited. The later study’s citation connects the experiment with toolkit development. Its title establishes the Welsh toolkit as the contribution and leaves the choice of tagging components unspecified. Developing a Welsh Natural Language Toolkit

The AraSAS work from 2022 presents an open-source semantic tagger for Arabic. It shares the goal of making semantic annotation available for a particular language, while its stated contribution is an Arabic tagging tool. The connection is clearest on the semantic side of the Welsh paper. Both works address how words in running text can receive meaning labels through an automatic tool, and the Welsh study supplies one cited example of how such a tool can be approached with limited annotations. The later work’s description identifies the language, the annotation task and the open-source release. It leaves open whether the Arabic tagger borrows any part of the Welsh classifier’s training or prediction procedure. AraSAS

The PyMUSAS study from 2026 describes a multilingual semantic annotation framework that combines rules with a neural component and uses silver-standard data. Silver-standard annotations serve as training evidence with a lower level of verification than manually checked gold-standard labels. This brings together elements that the Welsh study places in different parts of its account. The earlier Welsh tools use lexical resources and hand-written rules, and the Welsh prototype trains a neural classifier on checked examples. PyMUSAS addresses semantic annotation through a hybrid of rules and neural learning, accompanied by a different approach to obtaining annotated data. The description supports that connection at the level of system design. It does not specify whether the framework reuses the Welsh study’s vectors, label construction or experimental corpus. PyMUSAS

The citations thus document continuation along three distinct lines: tooling for Welsh, an open semantic tagger for Arabic, and a multilingual framework that combines rule-based and learned components. None of those descriptions supplies a follow-up result on the original Welsh evaluation. The contribution that can be carried forward with confidence is the demonstrated feasibility of treating Welsh grammatical and semantic annotation as one prediction problem using pretrained Welsh word vectors, together with the evidence that different training choices favour different evaluation measures.

Cite

Cite as Ignatius Ezeani, Scott Piao, Steven Neale, Paul Rayson and Dawn Knight. 2019. Leveraging Pre-Trained Embeddings for Welsh Taggers. Proceedings of the 4th Workshop on Representation Learning for NLP (RepL4NLP-2019).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/w19-4332

@inproceedings{ezeani2019leveraging,
  title = {{Leveraging Pre-Trained Embeddings for Welsh Taggers}},
  author = {Ignatius Ezeani, Scott Piao, Steven Neale, Paul Rayson and Dawn Knight},
  booktitle = {Proceedings of the 4th Workshop on Representation Learning for NLP (RepL4NLP-2019)},
  year = {2019},
  doi = {10.18653/v1/w19-4332},
  url = {https://doi.org/10.18653/v1/w19-4332}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/ezeani-2019-leveraging-pre-trained-embeddings-welsh/