Elamur Research

NTNU-TRH system at the MultiGED-2023 Shared on Multilingual Grammatical Error Detection

Paper · 2023 · Lars Bungum, Björn Gambäck and Arild Brandrud Næss

Summary

Finding a grammatical error and fixing it are separate jobs. The first asks where a piece of writing needs attention. The second asks what the writer should put there instead. The NTNU team took on the first job in MultiGED-2023, a shared task on grammatical error detection in learner writing. The task was to mark each token, a unit of text such as a word, as correct or incorrect. The data covered Czech, German, Italian and Swedish, plus English from two collections, FCE and Realec. The researchers wanted to know whether Flair’s character-based representations could compete with BERT’s and whether training one tagger across languages could match training separate taggers.

All the systems used the same general design. They turned the tokens in a sentence into contextual representations, then passed those representations through a bidirectional recurrent tagger that could use evidence from both sides of a token. Pretrained embeddings, the numerical representations supplied by Flair or BERT, were the only outside resource. The team added neither more learner texts nor artificial errors. Realec came with development and test files but no training file, so the researchers used taggers already trained to handle English and left Realec’s development file out of training.

The shared-task submission used multilingual Flair and a single recurrent layer. It ranked 5th of 6 systems. Its predictions were frequently right when it marked a token, but it marked few of the annotated errors. On the Realec test set it recorded F0.5 of 5.19, while on the Italian test set it reached 53.62. F0.5 rewards accurate flags while also accounting for errors the system misses. In the subsequent open phase, the team used a deeper tagger with 10 recurrent layers and obtained much stronger results on most of the test sets.

The language-specific BERT taggers achieved the best reported F0.5 on every test set, from 42.56 on Realec to 78.53 on Italian. Their gains over the corresponding Flair taggers were especially large on the smaller Italian and Swedish corpora. Sharing a single tagger changed the comparison. Multilingual BERT outscored multilingual Flair on both English test sets, while multilingual Flair led on Czech, German, Italian and Swedish. The Italian scores also qualify the overall advantage of separate training. Shared Flair reached 60.81 there, ahead of its language-specific Flair counterpart at 53.44.

The shared Flair jobs took approximately 6–8 hours to converge, compared with about 36 hours for shared BERT jobs on the authors’ multiuser computing grid. The team also found it easier to obtain Flair runs that predicted both labels. These were informal observations under variable computing conditions. Together with the test results, they establish Flair as a feasible, lower-cost baseline in this setup and show that the choice of embedding depends on how the tagger is trained and which corpus it will serve.

Deep dive: NTNU-TRH system at the MultiGED-2023 Shared on Multilingual Grammatical Error Detection

The NTNU MultiGED-2023 study compares Flair and BERT for finding grammatical errors in learner writing with shared and language-specific taggers. · about 31 minutes to read

The problem and its context

Finding the place that needs attention

A detector for learner writing receives a sentence and returns a judgment at each token position. To see the distinction from correction, consider a system that highlights the position where it suspects an agreement error. The highlight can serve its purpose even if the system offers no replacement word or grammatical explanation. A correction system has the further responsibility of producing a suitable edit. MultiGED-2023 gives the detector a sharply defined output, a sequence of labels aligned with the original text. The paper frames this as the detection side of work on grammatical error correction and learner language.

This formulation makes it possible to ask separately how the detector handles erroneous and acceptable writing. A detector that rarely raises a flag might make few mistakes among the flags it does raise, while giving a reader very little help in locating the annotated problems. A detector that flags freely might recover a broader share of those problems while drawing attention to acceptable tokens. The task therefore calls for evidence about both kinds of behavior. It is possible for systems to look alike on one measure while offering quite different kinds of feedback.

The alignment also fixes what the paper can observe. If a tagger identifies the annotated position, the task can credit that prediction directly. The output gives the position and a binary judgment. The representation does not identify an error type, describe a relationship among the relevant words, or specify an edit. An analysis of how frequently a detector locates errors can therefore proceed without the additional decisions that a correction benchmark would require.

What the correction literature contributed

The authors place their study alongside a survey by Bryant and colleagues on grammatical error correction. As they describe it, the survey covers several ways to formulate correction. Classifiers choose among decisions. Statistical and neural translation approaches treat learner writing and corrected writing as paired forms. Edit-based approaches organize the work around proposed changes. The survey also covers the use of language models when correction data are scarce or the task is approached without supervised correction examples. The authors mention recurrent and Transformer methods in that account of earlier work. The translation framing connects correction with machine translation.

Those approaches provide context for the study’s design. A method that generates revised text must decide what parts of the input to carry over and what to write in their place. A token classifier can work directly with the positions that the benchmark scores. The researchers adopt the latter formulation, keeping the output format fixed as they change the input representation and the scope of training. They note that the correction survey did not discuss contextual Flair embeddings. That gave them a reason to investigate Flair for detection, where it could be used in the kind of sequence labeling for which it had already been developed.

Sequence labeling is the general task of assigning a label to every position in an input sequence. The paper points to earlier Flair evaluations on named entity recognition, chunking and part-of-speech tagging. Named entity recognition concerns positions that belong to entities, while part-of-speech tagging assigns grammatical categories to tokens. Error detection asks a different question of the same arrangement of input positions and output labels. The initial Flair study reported improvements on several datasets using contextual string embeddings for sequence labeling.

Why try a character-based representation

A word representation is contextual when the same written form can receive a different numerical description in a different surrounding passage. That is an attractive property for error detection because the written form alone may be compatible with several judgments. A familiar form can be out of place in a particular sentence. A form that looks unfamiliar can still have characters and surroundings that offer useful evidence. The tagger needs a representation through which it can use both kinds of information. The alternatives in the paper are both forms of word embeddings.

Flair learns from character sequences. Its pretraining does not require an explicit inventory of words, and the representation it supplies for a token reflects the text around that token. The authors point out that the character-based design gives Flair a way to represent rare or misspelled forms. People learning a language can produce unfamiliar strings, so this is a concrete reason to try Flair. It is a property of the representation and a motivation for the experiment. Whether that property pays off for grammatical error detection must be decided from task evidence.

The paper also discusses a proposal from earlier Flair research for situations where an occurrence of a rare word has too little context to characterize it well. Pooled contextual embeddings combine representations of occurrences encountered across a dataset. The paper mentions this approach to explain a development in Flair, while its own experiments compare named Flair and BERT settings. Pooling is not a separate comparison in the NTNU results. The earlier study introduced it for named entity recognition.

The authors describe mixed precedents for the comparison with BERT. They cite biomedical sequence-labeling studies where Flair was competitive with alternatives that included BERT while requiring less computation. They also cite work on identifying names in Portuguese geoscience writing that reported strong results with contextual embeddings. In a word sense disambiguation study, however, the researchers they cite argued that BERT better distinguished the intended meanings of words with several senses. And a medical concept study combined the two embedding types within one system, an option the NTNU authors return to as a possibility for further work. The different tasks made it reasonable to test the representations directly on grammatical error detection.

Why share a tagger across languages?

The task encouraged multilingual entries while leaving participants free to build separate taggers. The NTNU team treats those choices as two experimental designs. In a shared system, a single set of tagger parameters handles training material from the available languages. In a language-specific system, the tagger receives training examples from the relevant language or corpus. A service could assemble separate taggers behind a language-identification stage, as the authors point out. Such a service would still contain several trained detectors. Their distinction concerns how detectors learn and share parameters within multilingual and cross-lingual NLP.

Sharing creates an opportunity to learn from a larger combined body of annotated material. A shared tagger also has to fit examples drawn from all the contributing corpora using the same parameters. Separate training gives each tagger a narrower set of examples to fit, with its own pretrained representation available for the relevant language. The benchmark thus provides a practical comparison between two complete setups. The paper also distinguishes the sharing decision from the embedding decision. Either Flair or BERT can supply language-specific or multilingual representations.

The authors describe the languages in the benchmark as well resourced. Among their learner corpora, however, the amount of task data varies, and the two English corpora have different roles in training. This matters because the work asks whether a multilingual tagger can perform well even when language-specific alternatives and separate training material are available. Realec adds a related question within English. It lets the team evaluate a detector on another collection without using that collection to fit the detector.

The method, step by step

From a corpus file to a label at each position

The pipeline starts with learner text in the shared task’s vertical format. The files already express the input as token sequences, so the tagger can use their positions as the units of prediction. During supervised training, each position also has a reference label. The detector learns to associate the sentence evidence with those labels. At test time it receives the input sequence and supplies the labels itself. What the evaluator finally compares is the predicted judgment at each position with the reference judgment at that position.

A written token first needs to be put into a form the tagger can use. Flair or BERT supplies a vector, a list of numerical values that represents the text at that position in context. The tagger processes the sequence of these vectors with a bidirectional long short-term memory network, or Bi-LSTM. An LSTM is a recurrent network that carries information as it processes a sequence. Bidirectional processing lets the tagger combine information collected from the beginning towards the end with information collected in the reverse direction. A token can consequently be judged with evidence from the text preceding and following it.

The end of the pipeline assigns c for correct or i for incorrect. A sentence of several tokens therefore yields a sequence of judgments in the same order. The classification applies at token level even when the contextual evidence that informs it spans several positions. The researchers carry out this design in FlairNLP, using its corpus readers, embedding support and sequence tagger. The framework is described in the earlier work on FlairNLP.

From annotated learner corpora to test predictions

The steps in order.

From annotated learner corpora to test predictionsStep 1: Read the shared task’s vertical corpus files1. Read the shared task’s vertical corpus filesStep 2: Choose separate corpora or a combined collection2. Choose separate corpora or a combined collectionStep 3: Supply contextual Flair or BERT embeddings3. Supply contextual Flair or BERT embeddingsStep 4: Process each sentence with a bidirectional LSTM4. Process each sentence with a bidirectional LSTMStep 5: Learn token labels using annotated training data5. Learn token labels using annotated training dataStep 6: Monitor performance on the development data6. Monitor performance on the development dataStep 7: Predict correct or incorrect for each test token7. Predict correct or incorrect for each test tokenStep 8: Submit the test labels for scoring8. Submit the test labels for scoring

Loading the shared-task material

The paper uses the official MultiGED-2023 data, which comprise six corpora in five languages and range from 8k to 35k sentences. FlairNLP reads the corpus format directly. The authors contrast this detail with the behavior of another framework they cite, OpenNMT.

There was a specific exception to the straightforward loading procedure. A UTF-8 character on line 96,487 of the Swedish training file caused embeddings to be produced with the wrong dimensions. The authors replaced the character with the string FOO in their experiments on that corpus. They also report trouble on line 149 of the Swedish test file and line 5351 of the Italian test file. Their account specifies a replacement for the Swedish training issue. For the two test lines it records the problems without describing a corresponding line-by-line remedy. The training replacement was a workaround for a representation failure at one location. The study otherwise used the existing tokenized input and reports no additional preprocessing.

The researchers added no synthetic examples. In particular, their training procedure did not involve taking correct text, inserting artificial mistakes and supplying the resulting positions as extra examples. The reference labels came from the shared-task corpora. The pretrained embedding resources contributed knowledge learned before the detection experiments, so a run could draw on language information beyond those corpora without enlarging the supervised error-detection set. This distinction matters for the comparison. The paper varies the pretrained representation while keeping the source of labeled error examples within the official data.

Choosing what the tagger can learn from

For separate training, FlairNLP’s Corpus object represents the material for a corpus-specific run. The setup yields language-specific taggers for Czech, German, Italian and Swedish. For English, the separately trained tagger comes from FCE. Both embedding families are tried in this design. The authors characterize the development examples in their FCE figure as two samples from ten individual taggers. Each uses the data and pretrained embeddings appropriate to its language.

To train one detector across the available languages, the team groups the corpora with FlairNLP’s MultiCorpus object. The same tagger is then trained across the collection. The pooling happens in the supervised setup, and the tagger uses multilingual embeddings to represent the text it receives. The authors ran shared experiments with multilingual Flair and multilingual BERT, using cased versions. The crucial operational detail is that a sentence passes through a single trained detector even when the next sentence comes from a different corpus.

Realec is handled differently in both designs. The shared task distributed development and test files for it but supplied no Realec training file. The authors also exclude its development file from training. For the individual results, they apply the FCE-trained English tagger to the Realec test set. For the shared results, they apply the multilingual tagger, which already has English coverage from FCE in the combined material. Both choices provide a way to evaluate on Realec using a detector whose learner supervision came from elsewhere. The Realec row in each result set measures performance on that test corpus and does not denote a separately fitted Realec tagger.

The representation and the recurrent tagger

Flair embeddings come from pretraining recurrent networks over characters in both directions. In the paper’s account, they learn from large unlabeled collections, which means the texts used to learn those representations do not have to carry grammatical error judgments. A token’s representation draws on surrounding character sequences. The recurrent network used to build a Flair embedding and the bidirectional LSTM used to assign error labels have distinct jobs. One provides the numerical description the detector receives. The other learns to predict the task labels from the input representations.

BERT supplies a different kind of contextual embedding, built with a Transformer. The authors’ discussion refers to BERT’s masked language training, in which the surrounding text serves as evidence for material hidden during pretraining. The experiments use BERT releases for the languages in the individual design and a multilingual release for the shared design. The paper identifies the Czech release through Czert.

For Swedish, the authors identify the BERT release made at the National Library of Sweden. They also name releases for English, German and Italian. These choices give individual BERT taggers access to resources directed at their particular language. The shared BERT comparison uses a different resource, one intended to represent multiple languages within the same system. The Swedish resource is described in Making a Swedish BERT.

After the embedding stage, the sequence tagger uses its recurrent layers to transform the input sequence into representations suited to the two labels. The framework offers a choice of recurrent unit and a choice of how many recurrent layers and hidden units to use. Hidden units determine the size of the state through which a recurrent layer carries information. Adding layers lets successive stages process the representations output by previous stages. The paper describes experiments with LSTMs, gated recurrent units and standard recurrent units while keeping the token-labeling task fixed.

FlairNLP can add a conditional random field, or CRF, above the recurrent part. In this architecture, the CRF can score a sequence of output labels together, so that decisions about neighboring labels can influence which label sequence is preferred. The system submitted for the official test phase had the recurrent tagger with one layer and no CRF. The main open-phase systems also omitted the CRF. Their recurrent stack used 10 LSTM layers and 256 hidden units. A comparison between the reported shared-task system and the main open-phase taggers thus concerns changes within the recurrent design while the label dictionary remains c and i.

Training, development and test scoring

The training split supplies the examples from which the detector learns to assign the two labels. The development split allows the authors to observe how performance changes during training. They used TensorBoard to monitor progress and included development curves for the English FCE taggers and the shared taggers. An epoch is a pass through the training material. Reporting a development score by epoch gives an account of the path to convergence, beyond the result of the run ultimately evaluated on the test data.

The paper reports that the experiments used FlairNLP’s default F1 scoring during training and development. It reports F0.5 for the shared-task comparison, along with precision and recall. Precision asks how frequently the detector is right among the tokens it flags. Recall asks how many of the reference errors it finds. F0.5 gives more weight to precision than recall while still depending on both. This emphasis makes the precision and recall columns especially helpful when two systems have different flagging behavior. In the paper, these scores are named and reported without equations.

The team submitted test-set label sequences for evaluation in CodaLab. The official test phase captures the simpler Flair system the authors had working at submission time. The scoring service remained available in the open phase, so the team could evaluate further systems against the same task. This gives readers a shared evaluation setting for the study’s comparisons. The subsequent runs belong to the open phase and carry a different experimental history from the entry that received the official rank.

Experiments and results

The comparisons and the score columns

The principal comparisons use the six test sets from the shared task. The monolithic systems also use the available training and development data across corpora, with the Realec exception already described. The individually trained systems are evaluated on their corresponding test sets, with the FCE-trained English tagger also producing the Realec predictions. Hence, each column can be read across embedding types, and each test corpus can be read across different training scopes. The paper reports corpus-level results, so a comparison on one test set can be made directly from its scores.

The internal baselines are the initial shared Flair entry and the later Flair and BERT counterparts for each training design. The original submission supplies a point of comparison for the later recurrent configuration. For the embedding comparison, the appropriate baseline is the other embedding family within the same training design and test set. For the training-scope comparison, it is the system of the same embedding family applied to the same test set, with the understanding that the pretrained release also changes from language-specific to multilingual. The overall shared-task rank supplies competition context. The paper gives its own results in detail, while its discussion of the rank provides the position of the entry within the field.

The results are easiest to read when the positive class is explicit. A positive prediction is i, an error flag. High precision says the detector’s chosen flags frequently coincide with reference errors. High recall says it covers many of the reference errors. F0.5 condenses those two properties with an emphasis on precision. It can go down when recall improves if precision falls enough. It can also remain low for a detector with very high precision if that detector flags very few of the errors that are present. The submission illustrates the second case, and the shared Swedish comparison illustrates the first.

The official submission

The team’s one-layer multilingual Flair entry placed 5th of 6 systems. Its strongest test-set F0.5 was 53.62 on Italian, and its lowest was 5.19 on Realec. The contrast can be understood from the underlying precision and recall. Italian test precision was 93.38 and recall was 19.84. On Realec, precision was 51.34 and recall was 1.13. Neither row describes a detector that systematically covered the annotated errors, but the Italian run’s flags were much more likely to land on those errors and it found a larger share of them.

FCE gives the clearest example of how selective the entry was on a corpus where it had fairly high precision. The English FCE test set yielded precision of 81.37 and recall of 1.84, for F0.5 of 8.45. Czech had test precision of 80.65 and recall of 6.49, with F0.5 of 24.54. On Swedish, precision of 80.12 and recall of 5.09 produced F0.5 of 20.31. The similar precision values describe the reliability of the flags on those test sets. The recall column distinguishes how much of the annotated material the same tagger actually found.

German had test precision of 83.56 and recall of 15.58, leading to F0.5 of 44.61. This row and the Italian row show that the same shared detector could recover more of the annotated errors in some corpora than others. The results establish the corpus differences in coverage. They leave open whether those differences arose from the kinds of errors present, the distributions on which the tagger trained, or other properties of the corpora.

The authors report an implementation issue around the original submission. The test labeling produced through FlairNLP differed from the labeling obtained using the best system of the training run, and the resulting revision improved the submitted scores by what the paper describes as a minor amount. The article’s results for the official system are those the authors present for that entry. They give a separate account of the much larger changes in the open phase, where the recurrent tagger had more layers.

Separate training with Flair and BERT

The individually trained BERT taggers achieved higher test F0.5 than the individually trained Flair taggers on every corpus. On test sets from the larger corpora, the improvements were relatively modest. For Czech, Flair scored 63.73 and BERT scored 70.37. The paper reports the gap as 6.64. On German, the respective scores were 72.48 and 78.05, with a reported gap of 5.57. In both cases, BERT improved precision and recall. German test precision rose from 78.06 with Flair to 81.99 with BERT, and recall rose from 56.37 to 65.48. The German Flair result was already among the strongest in the study, so the BERT gain there came on top of a competitive Flair baseline.

On FCE, the individual tagger reached test F0.5 of 54.72 with Flair and 62.25 with BERT, a reported gap of 7.53. BERT reached test precision of 71.13 and recall of 41.5. These scores can be read against Flair’s test precision of 65.49 and recall of 33.01. For both embeddings, the individual FCE run had a substantially higher recall than the official shared Flair entry. FCE also gives the authors a development example for each embedding family, while the scores in this comparison come from the test set.

NTNU taggers on the English FCE test set by F0.5

The individual BERT tagger leads, and multilingual BERT is close behind.

NTNU taggers on the English FCE test set by F0.5Submitted multilingual Flair: 8.45Submitted multilingual Flair8.45Open-phase multilingual Flair: 31.52Open-phase multilingual Flair31.52Individual Flair: 54.72Individual Flair54.72Open-phase multilingual BERT: 60.42Open-phase multilingual BERT60.42Individual BERT (this paper): 62.25Individual BERT (this paper)62.25
The numbers
System or settingF0.5
Submitted multilingual Flair8.45
Open-phase multilingual Flair31.52
Individual Flair54.72
Open-phase multilingual BERT60.42
Individual BERT (this paper)62.25

The individual English taggers also give a comparison on Realec, with F0.5 of 37.91 for Flair and 42.56 for BERT. The paper reports a gap of 4.65, the smallest in its individual comparison. Precision was 41.52 with Flair and 44.9 with BERT. Recall was 28.12 with Flair and 35.2 with BERT. The English taggers performed differently on FCE and Realec in spite of using the same systems within each embedding family. Since the former supplied training data and the latter did not, the results give two distinct views of what those taggers could do.

The largest individual F0.5 gaps occur on Italian and Swedish, the smaller corpora identified by the authors. On Italian, Flair scored 53.44 and BERT scored 78.53, a reported gap of 25.09. Test recall rose from 27.28 with Flair to 63.54 with BERT, and precision rose from 70.29 to 83.45. That combination matters because the BERT tagger both covered a larger share of the reference errors and produced flags with greater reliability. Its Italian result is the highest test F0.5 in the paper.

The Swedish test comparison shows the same direction of change. Individual Flair scored F0.5 of 46.78, and individual BERT scored 75.48, with a reported gap of 27.7. Precision moved from 57.44 to 80.64 and recall from 26.85 to 60.1. The change is visible in both components of F0.5. Swedish BERT found more of the annotated errors while improving the accuracy of the flags it did raise.

Taken together, the individually trained results show a consistent ordering without a consistent size of gain. A reader interested in whether Flair can serve as a feasible detector can look to the Czech and German runs, where it already detects a substantial share of the reference errors at relatively high precision. A reader comparing test performance under the paper’s individual design sees that BERT leads in those settings too, and that the margin is much larger on Italian and Swedish. The paper’s corpus-level reporting lets those two observations coexist.

Shared training with multilingual Flair and BERT

In the open phase, the shared BERT tagger outperformed shared Flair on both English test sets in F0.5. On FCE, it scored 60.42, compared with 31.52 for Flair. Their test precisions were fairly close, at 68.51 for BERT and 66.76 for Flair. Recall separated the taggers much more clearly, at 41.04 for BERT and 10.13 for Flair. On this corpus, the main difference visible in the score columns is that BERT found a greater share of the reference errors while maintaining comparable precision.

Realec follows a similar pattern for the shared taggers. Multilingual Flair reached test F0.5 of 24.54, and multilingual BERT reached 40.46. Test precision was 41.91 with Flair and 42.07 with BERT. Recall was 9.23 with Flair and 35.1 with BERT. The precision values are close even after moving to a different English test corpus. The recall difference shows that multilingual BERT recovered more errors there too. Its recall of 35.1 also approaches the FCE-trained individual BERT tagger’s Realec recall of 35.2, though the individual tagger has the higher F0.5.

NTNU taggers on the English Realec test set by recall

The shared and individual BERT taggers recover nearly the same share of reference errors.

NTNU taggers on the English Realec test set by recallSubmitted multilingual Flair: 1.13Submitted multilingual Flair1.13Open-phase multilingual Flair: 9.23Open-phase multilingual Flair9.23Individual Flair: 28.12Individual Flair28.12Open-phase multilingual BERT: 35.1Open-phase multilingual BERT35.1Individual BERT (this paper): 35.2Individual BERT (this paper)35.2
The numbers
System or settingRecall %
Submitted multilingual Flair1.13
Open-phase multilingual Flair9.23
Individual Flair28.12
Open-phase multilingual BERT35.1
Individual BERT (this paper)35.2

For Czech and German, multilingual Flair led multilingual BERT. On Czech, Flair reached test F0.5 of 47.85 and BERT reached 40.68. Test recall was close, at 21.05 for Flair and 20.43 for BERT. The two precisions separated more sharply, at 70.21 for Flair and 54.07 for BERT. On German, shared Flair reached F0.5 of 58.54, compared with 47.72 for shared BERT. Flair led on both parts of the score there, with precision of 72.35 and recall of 33.2, against BERT’s precision of 59.6 and recall of 26.55. These two cases produce the same ordering in F0.5 through visibly different precision and recall profiles.

The largest advantage for shared Flair appears on Italian. It scored test F0.5 of 60.81, compared with 37.8 for shared BERT. Shared Flair’s test precision was 84.02 and its recall was 28.89. Shared BERT produced precision of 47.55 and recall of 20.78. The paper associates the contrast with the choice of multilingual embeddings within this shared setup. As the individual Italian result shows, the ordering reverses when the taggers are trained separately and receive language-specific embeddings.

NTNU taggers on the Italian test set by F0.5

Individual BERT leads overall, and shared Flair leads among the multilingual settings.

NTNU taggers on the Italian test set by F0.5Submitted multilingual Flair: 53.62Submitted multilingual Flair53.62Open-phase multilingual Flair: 60.81Open-phase multilingual Flair60.81Individual Flair: 53.44Individual Flair53.44Open-phase multilingual BERT: 37.8Open-phase multilingual BERT37.8Individual BERT (this paper): 78.53Individual BERT (this paper)78.53
The numbers
System or settingF0.5
Submitted multilingual Flair53.62
Open-phase multilingual Flair60.81
Individual Flair53.44
Open-phase multilingual BERT37.8
Individual BERT (this paper)78.53

Swedish gives a case where precision and recall pull in different directions. Shared Flair scored test F0.5 of 45.2 and shared BERT scored 41.32. Flair had test precision of 67.57 and recall of 19.45. BERT had precision of 50.04 and recall of 24.36. Here BERT recovered a larger share of annotated errors, while Flair’s flags were more reliable. The precision-weighted F0.5 measure favors Flair. This is a different shared-training outcome from the English results, where BERT was able to increase recall while keeping precision close to that of Flair.

How much does sharing change the result?

For BERT, individual training delivered higher F0.5 than shared training on every test set in the paper. The FCE test scores, 62.25 for the individual run and 60.42 for the shared run, give a case where shared BERT retained much of the performance of the separate English detector. The Italian scores, 78.53 for individual BERT and 37.8 for shared BERT, show how far the two configurations can diverge on another corpus under the same benchmark. Shared training with the selected multilingual BERT release therefore preserved performance much better in the English comparison than in several other comparisons.

Individual Flair also led shared Flair on most test sets. The Italian Flair result is the exception. Shared Flair had test precision of 84.02, compared with 70.29 for individual Flair, and recall of 28.89, compared with 27.28 for individual Flair. The resulting shared F0.5 of 60.81 exceeded the individual 53.44. This exception matters for interpreting the paper’s broad conclusion that separate training worked better. The conclusion describes the dominant pattern and the strongest outcomes overall. Applying it to an individual corpus still calls for reading the relevant score columns.

What the ablations show

What the comparisons hold fixed

The paper offers comparisons of embedding families and training setups, along with exploratory architecture runs. It does not give a full ablation table in which every architectural component is removed independently. Its most informative comparisons hold the main tagger configuration fixed within each part of the study. Hence, when the individual BERT results exceed the individual Flair results, the experimental change of interest is the embedding family that supplies the input. The examples are drawn from the same task corpus and are evaluated on the same test split. This gives a direct comparison between the particular pretrained resources as used by the same kind of detector.

The corresponding comparison is available in shared training. With the recurrent architecture set to the same reported configuration for both shared runs, the multilingual BERT and Flair results show that representation choice can have different effects in different corpora. The English improvements are mostly visible in recall. In Czech, German and Italian, Flair offers the higher precision and leads in F0.5. On Swedish, Flair’s precision advantage outweighs BERT’s recall advantage under the shared-task score. An account that only asks which embedding won would lose these differences in how the taggers made errors.

Comparisons between individual and shared training hold fewer things fixed. The amount and mix of training material change, along with the scope of the pretrained resources. For instance, the individual Italian BERT tagger uses an Italian release and learns from the Italian training corpus, while the shared tagger uses the multilingual release and learns from the combined collection. This is the relevant comparison for the authors’ question about choosing between complete systems. It gives no separate estimate of the effect of pooling corpora while holding the embedding release fixed.

What the extra recurrent layers explain

The team explored alternative recurrent designs before settling on the reported architecture. It tried layer counts of 2, 6, 12 and 24 and hidden-unit settings of 128, 256 and 512. It also considered alternatives to the LSTM, including gated recurrent units and standard recurrent units. The authors describe the exercise as a search for a setup that could learn the task reliably. They report no markedly better alternative among the explored configurations and describe cases where very shallow systems converged on a single label. The experiments presented in detail use 10 layers with 256 hidden units and no CRF.

The one-layer shared Flair entry and the deeper shared Flair follow-up provide the nearest comparison of shallow and deeper recurrence. Both use multilingual Flair and omit the CRF. On FCE, the initial and later shared systems scored test F0.5 of 8.45 and 31.52. On Realec they scored 5.19 and 24.54. The paper attributes most of the improvement over the submission to adding recurrent layers, and distinguishes that change from the minor effect of revising the implementation used to output labels. The improvement is visible even when the comparison is restricted to the same embedding family and shared setup.

The deeper shared Flair tagger also shows that gains in coverage can come with losses in precision. On FCE, the initial test precision of 81.37 became 66.76 in the later shared Flair run, while recall went from 1.84 to 10.13. F0.5 nonetheless increased. A deeper system’s advantage in this example is better described as producing more useful error coverage at a lower precision than as improving every part of the prediction profile. The submitted tagger’s weak recall left substantial room for an improvement of that kind.

Italian again illustrates why the architecture result should be read corpus by corpus. The official Flair system already reached test F0.5 of 53.62 there, and the open-phase shared Flair tagger reached 60.81. The initial Italian result was closer to the follow-up than the FCE result was to its counterpart. The authors single out Italian as the test set on which the submitted system came close to the deeper systems’ F0.5. The architecture comparison therefore gives evidence about the shallow setup they had at submission time. It does not establish a universal relationship between layer count and performance.

What the training runs reveal

The paper’s development curves are a record of training behavior for the individual FCE examples and the shared runs. The FCE examples were chosen as samples of the individual systems. These figures concern the route to convergence on development data. The test tables concern the behavior of the resulting detectors on held-out material. Keeping the two forms of evidence distinct helps explain why the paper discusses both the best results and the difficulty of obtaining a usable run.

Some training runs reached a solution that labeled every token c. This is a practical failure for detection because it produces no error flags. The authors describe the failures as runs getting stuck in local minima. They also say that recurrent architectures of this kind can be sensitive to initialization, the parameter values from which training starts. Training a tagger once can therefore give a poor picture of what the configuration can do on later runs. Conversely, a usable endpoint in a test table gives limited information about how reliably another run of that setup will reach it.

The authors observed that the shared BERT experiments were harder to get to converge on runs that predicted both labels. They found it easier, anecdotally, to obtain nontrivial shared Flair runs. This distinction is compatible with the FCE and Realec test results, where the shared BERT tagger they obtained did better than shared Flair. Run reliability and the quality of a successful run are separate observations. The paper offers an account of the first and numerical test scores for the second.

The shared jobs also gave the authors an informal view of resource use. The multilingual BERT jobs could take about 36 hours to converge on the Sigma2 computing resources they used, while multilingual Flair jobs converged in about 6–8 hours. This timing comparison refers to shared runs and the conditions in which the authors ran them. It adds a practical dimension to the embedding comparison. A representation can give a better score on a target test set while requiring more training time and more attempts to obtain a detector that predicts both labels.

The connection with corpus size

The association between corpus size and the embedding comparison appears in the individual experiments. The largest reported differences in test F0.5 occur on the smaller Italian and Swedish corpora. The authors suggest that Flair may need more labeled training material to do well and raise a separate possibility concerning BERT’s masked language pretraining and differences in corpus size. These ideas arise from the pattern in the results. Corpus size was a property of the benchmark collections and was not varied by training on controlled fractions of the same corpus.

The shared experiments add another reason to keep the interpretation narrow. Shared Flair led shared BERT on Italian and Swedish, while individual Flair trailed individual BERT by the largest margins on those same test sets. The amount of task data per corpus remains part of the situation, but the representation releases and the training scope change between the two designs. The results establish that the relative value of the embedding families depends on the experimental setting. They give a concrete observation from which a test of data requirements could begin.

Limitations

Limits identified by the authors

The paper treats the embedding reversal under shared training as an open question. BERT’s individual results were stronger across the board, while shared BERT’s advantage appeared on the English test sets. The authors consider possible explanations involving the size of the task corpora and the pretraining of the embeddings. They leave the causes unresolved. In particular, the experiments do not trace the behavior of multilingual BERT on a corpus such as Italian to any measured property of its pretraining material or of the underlying representations.

The architecture search was exploratory. The authors tried different recurrent units, layer counts and hidden dimensions, and they describe room to improve the settings. The paper presents the selected architecture in detail without reporting complete results for the alternatives. It is therefore possible to judge how well the chosen 10-layer detectors performed in the benchmark. It is harder to tell how much a different combination of recurrent unit, width and depth would have changed the result, or how reproducible the best performance would be under repeated runs.

Their observations on computational cost also come with an explicit qualification. They worked on a multiuser high-performance computing grid, where conditions outside an individual job could influence its timing. The authors therefore describe the approximate training times informally and caution against direct timing comparisons. The figures document the scale of the training effort they encountered for the shared systems. They do not provide a controlled measurement of training speed, a breakdown of which stage used the most resources, or a measure of how quickly the trained detector labels new text.

The authors also identify a difference between the scoring used during development and the scoring used for the reported test comparison. FlairNLP used F1 in the experiments, while the shared-task results emphasize F0.5. These two measures place different weight on the reliability and coverage of error flags. The authors suggest using F0.5 in training in future work. The reported runs do not establish what decisions would change if the experiment used that criterion. They also mention stacking Flair and BERT embeddings, further exploration of the tagger’s settings, and the use of newer and larger pretrained representations as directions they leave untested.

Finally, the official entry belongs to an earlier stage in the project. The authors say that they had only recently made their pipeline work reliably when they submitted the shallow version. Their implementation correction and later architectural work affected the score in different ways. The rank tells readers where the actual shared-task entry placed. The open-phase results describe what the team learned from continuing to develop the system after that stage. The paper supplies no shared-task rank for the later configurations.

Limits visible in the setup

The individual and shared systems differ in several respects at once. Separate training changes which annotated examples the tagger sees, and it also changes which pretrained resource it uses. A shared BERT run learns from the combined learner material while representing it with a multilingual release. The corresponding individual run learns from a single corpus and represents it with a language-specific release. This design answers a practical question about the configurations available to the authors. It cannot identify how much of a result comes from sharing the tagger, how much comes from the embedding release, or whether an imbalance among corpora influenced the learned detector.

The paper’s findings on small corpora have a similar scope. The authors compare several corpora with different amounts of learner data, but a corpus also has its own language, source material and collection of errors. A large BERT advantage in Italian or Swedish could reflect properties that differ from those in Czech or German alongside the difference in data size. The score pattern points to a relationship worth investigating. It gives no learning curve for an otherwise unchanged corpus, which would be needed to estimate how the relative performance varies as the amount of labeled data grows.

Realec has a distinct evidentiary role. Its scores show how the FCE-trained English detector and the shared detector behave when applied to an English test corpus they did not train on. They do not measure how an individual detector trained on Realec would fare. The paper does not isolate the reasons why FCE and Realec produce different test scores. Both use the same output labels, but that alone is insufficient to determine whether a difference in score comes from the frequency of errors, their distribution or other differences between the collections.

The test tables report aggregate token decisions. For example, they show that individual BERT has higher precision and recall than individual Flair on Swedish. The tables give no breakdown of the error groups responsible for that improvement. They cannot show, for instance, whether Flair’s character-level representation specifically helped with rare or misspelled forms. The paper gives that property as a reason to investigate Flair. Establishing its contribution to these results would require evidence about the individual cases where the taggers agreed or differed.

Likewise, the scores support a conclusion about token-level detection and stop at that output. The taggers do not give a reason for each judgment or suggest a replacement. Precision and recall on the annotated test tokens therefore leave open how useful the flags would be to learners, how the detector would handle another kind of writing, and how well it would work as a component of a correction system. The languages studied are described as well resourced, so the results also leave open the behavior of this design in languages with fewer suitable pretrained resources or less annotated learner writing.

The paper reports point scores for its test comparisons and does not quantify variation across random initializations. Its account of runs that predict only c makes this particularly relevant. The fact that such runs occurred is evidence of an optimization difficulty. Without counts of starts and outcomes under matched conditions, the reader cannot estimate a failure rate for either family of shared taggers. The development plots show selected training trajectories, and the reported endpoints document usable runs. Together they leave the probability of reproducing those endpoints undetermined.

The reported comparison is strongest when read at the level the authors actually measured. For a particular corpus, it shows the precision, recall and F0.5 achieved by specified Flair and BERT taggers under separate or shared training. The conjunction of those scores with the training observations explains why different systems can look attractive under different constraints. More general claims about pretraining, data efficiency, multilingual interference or the source of specific errors would require experiments that distinguish those causes.

What came after

The paper’s documented continuation is the open phase of MultiGED-2023, in which the same team compared deeper shared taggers with separately trained taggers and extended the evaluation from Flair to BERT. The authors propose several follow-up experiments, including combining the two embedding families in a single detector. No later citing work is documented here that establishes whether those proposals were tested or how another study built on these results.

Cite

Cite as Lars Bungum, Björn Gambäck and Arild Brandrud Næss. 2023. NTNU-TRH system at the MultiGED-2023 Shared on Multilingual Grammatical Error Detection. Proceedings of the 12th Workshop on NLP for Computer Assisted Language Learning.

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

@inproceedings{bungum2023ntnu,
  title = {{NTNU-TRH system at the MultiGED-2023 Shared on Multilingual Grammatical Error Detection}},
  author = {Lars Bungum, Björn Gambäck and Arild Brandrud Næss},
  booktitle = {Proceedings of the 12th Workshop on NLP for Computer Assisted Language Learning},
  year = {2023},
  url = {https://aclanthology.org/2023.nlp4call-1.2/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/bungum-2023-ntnu-trh-system-multiged-2023/