Elamur Research

Generating unlabelled data for a tri-training approach in a low resourced NER task

Paper · 2022 · Hugo Boulanger, Thomas Lavergne and Sophie Rosset

Summary

A small collection of annotated sentences can teach a system what kinds of names or clinical terms to look for. It may give the system very little practice finding them in unfamiliar contexts. Semisupervised learning can make up some of the difference by drawing on additional text, but suitable text can be scarce even when it needs no annotation. Boulanger and colleagues ask whether a generator can supply that missing material. They study named entity recognition, the task of locating mentions in text and identifying their types.

The authors use GPT-2 to turn the text of each annotated sentence into prompts for new examples. It can write a sentence to follow the original one or complete a shortened version of it. The generated sentences enter training with no entity labels. Three taggers first learn from different samples of the annotated text. In each round of tri-training, two taggers independently label a generated sentence. If their predictions agree across the sentence, the third tagger can learn from that shared prediction alongside the original annotations. The assignment rotates, and the final system combines the scores of all three taggers.

The authors simulate a shortage of training data on CoNLL 2003 English news and I2B2 medical records. They use subsets ranging from 50 to 1000 labeled examples and keep the original test sets. At 50 examples, the ensemble improves on the single supervised tagger by an average of +2.98 F1 points on CoNLL and +4.32 on I2B2. At 1000 examples, the corresponding gains are +0.71 and +1.80. The average ensemble gain is positive at every training size on both corpora, although some individual runs lose ground. Individual tri-trained taggers also improve on average, with smaller gains than the ensembles.

The results show that generated sentences can support tri-training on these benchmarks even when some of the output is visibly unlike the target text. They establish the value of the combined procedure against a supervised baseline under the tested conditions. The experiment keeps labeled development and test resources from the original benchmarks, uses a generator already available in the target language, and evaluates the full combination of text generation, agreement-based training, and ensemble prediction.

Deep dive: Generating unlabelled data for a tri-training approach in a low resourced NER task

Boulanger and colleagues test whether GPT-2 can supply unlabeled sentences for tri-training when few examples are available for named entity recognition. · about 33 minutes to read

The problem and its context

When both annotated and unannotated text are scarce

Recognizing an entity involves deciding where a mention begins, where it ends, and what it refers to under a particular annotation scheme. A news service might want to identify the organizations named in an article. A clinical system might need to find references to problems, treatments, and tests. In both cases, an application needs examples that reflect the writing it will encounter and the distinctions it is expected to make. An annotation supplies those distinctions by marking a span and giving it a category. Linguistic annotation.

The authors emphasize that the availability of text in a language and its availability for a task are different questions. A language can have extensive resources for general use while a new application still lacks examples in its domain. Medical records and private-sector data pose the further problem that they may be hard to share. A collection can therefore be valuable enough to annotate in full and still be too small to give a tagger much experience. Their experiments examine this situation using corpora in English.

Semisupervised training typically starts from a different distribution of effort. A modest annotated collection provides correct answers, and a larger unannotated collection provides additional contexts in which to apply what has been learned. The original answers define the task. The extra text can help a system learn how the task behaves outside the narrow sample that someone annotated. That strategy depends on having a supply of text in the first place. Leaving data unlabeled saves annotation work only where the data already exists and can be used.

Boulanger and colleagues put the shortage at that point in the process. They assume a collection small enough for every available training example to have a human label. Given that assumption, the familiar distinction between a small labeled pool and a large unlabeled one has to be created. The tagged sentences provide the labeled pool. Their wording also gives a generator a starting point for producing the other pool. The resulting research question concerns whether these newly generated inputs can do the job that naturally occurring unlabeled sentences ordinarily do.

This setup leaves the entity categories visible during training. A learner sees examples of the task it will eventually perform, although the evidence can be sparse. The paper distinguishes this case from zero-shot learning, which it describes as attempting a target task without labeled examples of that task and drawing instead on what can be predicted in related settings. It also describes an approach to learning from very small samples in which labeled examples provide representations of the classes against which new inputs can be compared. Here the small sample has a different function. It teaches the taggers and supplies the text used to prompt a generator. Few-shot learning.

Transferring knowledge and creating additional examples

Transfer learning addresses a shortage by carrying knowledge from one source of supervision to another task or domain. The paper points to transfer from a better-resourced language and to the use of pretrained language representations. It takes the second route for its taggers. The labeled subset has to teach a category system and how it applies to the text, while a pretrained encoder already provides a representation of the input. In the paper’s account, pretrained architectures based on attention have made this way of approaching a new task common. Attention Is All You Need.

The pretrained components have separate jobs. The BERT variants provide representations that a classifier can turn into entity tags. GPT-2 produces text that gives the taggers extra material to work on. The paper situates GPT-2 within the line of generative work that began with GPT and continued with GPT-3. It also discusses T5 in its account of how pretrained Transformer systems became a starting point for downstream language tasks. Language Models are Few-Shot Learners · Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer.

Data augmentation approaches scarcity from the side of the examples. An augmentation procedure produces additional inputs from existing ones, frequently with the intention that the same answer will remain valid. That last assumption is easier to make for some forms of text classification than for sequence tagging. A rewritten sentence may keep its overall category while moving a name to a different position, replacing it with another name, or removing it. An annotation tied to the original positions then needs to be rebuilt.

The paper names back-translation and Easy Data Augmentation as approaches used in classification. Back-translation produces an alternative expression by translating the text out of its original language and back again. The tagging work discussed by the authors found limited benefit from paraphrasing in this way. The difficulty is relevant to the new procedure because the authors intend to generate more than small surface changes. A different ending can introduce another mention, while a new sentence may share only a subject or setting with the original. Improving Neural Machine Translation Models with Monolingual Data · EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Tasks.

DAGA provides a closer precedent in the paper’s account. It learns to generate examples from the training data and explores generating both tagged and untagged material for entity recognition. Boulanger and colleagues use a pretrained generator as it comes and supply examples as prompts. Their generator produces the text alone. That decision moves the question of whether a generated instance can be labeled usefully into the training procedure. It also lets the generator produce a different structure without requiring any correspondence between the tag sequences of the prompt and the output.

The paper also cites work that used GPT-2 to create unlabeled inputs for classification after adapting the generator to the available data. That work operated in a setting with substantial resources. The question in the present study is whether an application with a small labeled sample can obtain useful inputs from an unadapted GPT-2 and use those inputs for a task whose output has a separate decision at each position. The comparison to earlier generation work gives the reason for combining generation with a procedure that can screen those decisions.

From a guessed label to an agreed sequence

Pseudo-labeling is the semisupervised step that makes an unannotated input usable for ordinary supervised training. A system that has already learned from human labels predicts an answer for a new input. Its prediction is then paired with that input as a training target. The paper places this practice in a family of methods that differ in which systems produce the answers and how their training data is distributed. It cites earlier work on word sense disambiguation and co-training as examples in that family. Unsupervised Word Sense Disambiguation Rivaling Supervised Methods · Combining Labeled and Unlabeled Data with Co-Training.

An early mistake can survive this process if a tagger trains on its own mistaken prediction. The paper raises this concern about the self-training used in DAGA. Tri-training changes the source of the target. The learner receives a prediction from two peers that arrived at the same answer. Agreement supplies a reason to accept a target even though the procedure has no human judgment for that sentence. The authors refer to an earlier application of tri-training to clinical concept extraction, so the agreement procedure has a precedent in a domain represented in their own study.

The reason to use separate taggers is to make agreement informative. If their training histories were identical and led to identical predictions, checking for consensus would tell the learner little about the reliability of those predictions. If their histories yield some different decisions, a pair can agree on material that might help a third, while rejecting other material over which the pair disagrees. The authors use resampling at initialization to introduce that variation. The design follows earlier tri-training work and draws on the findings about agreement and confidence thresholds discussed in Strong Baselines for Neural Semi-Supervised Learning under Domain Shift.

This makes the proposed solution a chain of decisions about different kinds of uncertainty. The generator supplies possible sentences in a setting where gathering more text is difficult. The taggers decide which possible sentences admit a consistent reading under the target labels. Further training tests whether learning from those readings improves recognition on real text. The method can be evaluated by comparing the end of that chain with training on the original labels alone.

The method, step by step

From annotated sentences to a pool of generated text

An input to the tagger is a sequence of tokens. Its desired output assigns a tag to each position, encoding whether that position belongs to a mention and, if so, the category and position within the mention. Thus a change to one part of a sentence can alter both its wording and its correct tag sequence. The available training subset contains both the text and these correct sequences. The generation step uses the text portion of that subset. Tokenization.

GPT-2 takes a piece of text as context and continues it. The authors make use of that same operation in two ways. For follow-up generation, they pass in a complete sentence from the training subset and retain the following sentence as the new example. The generator continues using the subject, style, or pattern supplied by the sentence. The generated example can have a different structure, since it begins after the source example. In this paper, follow-up generation is intended to produce fresh sentences that still have some connection to the domain of the source. Text generation.

For completion, the authors retain a prefix of the source sentence and ask GPT-2 to write an ending. The prefix stays in the resulting example. A long prefix fixes more of the context and allows a narrower change. A short prefix gives the generator more freedom and can yield a sentence with little connection to the rest of the original. The paper considers the possibility of omitting randomly placed portions of a sentence as another source of variation. Its actual setup removes the end, which can be done directly with a generator that continues an input. The distinction between the two recipes is therefore where the result starts. A follow-up starts beyond the prompt. A completion includes the start of the prompt and continues from the cut.

For each original labeled example, the authors request five follow-up sentences. For completion, they cut the original to 75%, 50%, and 25% of its length, and request five completions at each cut. The paper gives 20 as the planned number of synthetic examples per natural training example. The usable number is slightly lower because output consisting entirely of whitespace, newlines, or similar noise is removed. The generation step uses the Hugging Face implementation of GPT-2 without fine-tuning for the task.

The generation procedure produces sentences ahead of their tagging in tri-training. An original sentence may have a person, treatment, or other mention marked in its annotation. That markup does not become a target for the generated sentence. Even a completion that preserves an entire mention may place it in a different context or introduce another entity later. Running the taggers over the complete generated sentence permits a fresh prediction of all its positions. The authors call the collection of generated sentences the unlabeled set, even though the sentences come from a process that starts with labeled examples.

How generated sentences become tri-training examples

The steps in order.

How generated sentences become tri-training examplesStep 1: Draw bootstrap samples from the labeled training subset1. Draw bootstrap samples from the labeled training subsetStep 2: Train one tagger on each bootstrap sample2. Train one tagger on each bootstrap sampleStep 3: Generate follow-up sentences and complete shortened sentences3. Generate follow-up sentences and complete shortened sentencesStep 4: Find generated sentences with matching predictions from peers4. Find generated sentences with matching predictions from peersStep 5: Train each tagger on agreed and original examples5. Train each tagger on agreed and original examplesStep 6: Repeat until validation scores stop improving6. Repeat until validation scores stop improvingStep 7: Sum tag scores across taggers at inference7. Sum tag scores across taggers at inference

The tagger and its initial training

All taggers use the same architectural pattern. A pretrained BERT encoder represents the input and a feed-forward classifier predicts the tags. The classifier has two layers and a hidden size of 768, with a rectified linear unit, or ReLU, as its activation. The classifier uses the contextual representation of a position to decide what label fits there. A token that is ambiguous in isolation can therefore have a different score when it occurs among different surrounding words.

The training setup applies dropout between the encoder and the classifier. Dropout temporarily suppresses some values in a representation during training. The paper gives its setting as follows.

p = 0.1

Here p is the dropout probability and 0.1 is its configured value. The equals sign assigns that value to the parameter.

The optimizer is Adam, with an initial learning rate of 10⁻⁵, and the sentence batch size is 16. A batch is the group of sentences processed together for a training update. The learning rate sets the scale of the optimizer’s initial updates. For the low-resource comparisons, the paper specifies training for 1000 epochs with early stopping. An epoch is a pass through the current training set. The early-stopping rule ends training once development F1 has gone 20 epochs without improving. For the subset of size 50, the patience is 40 epochs. That extra patience gives a run more time to progress under the training condition with the fewest labeled examples.

The encoder is chosen separately for each corpus using the tests on the full training sets. CoNLL uses BERT large cased, and I2B2 uses BioBERT base cased. The word cased identifies a variant that preserves distinctions in letter case. The paper uses the biomedical encoder for the medical records and the general BERT variant for the news task. Within a tri-training run, the taggers use the architecture and encoder chosen for their corpus. The bootstrap step, instead of a different architecture for every member, supplies the stated source of diversity at initialization.

The labeled training subsets used to simulate resource scarcity should be distinguished from these bootstrap samples. The former determine which original sentences are available to a run. A bootstrap sample is drawn from that already limited collection to initialize one tagger. It is drawn with replacement, so a selected example can appear again in the same sample and another can be absent. This lets the authors vary the initial exposure to examples while keeping the full available labeled collection in reserve for the later rounds.

In the algorithm, the initialization can be read as follows, using brackets for the tagger subscripts.

m[i] ← train_model(sampling(L), m[i])

Here L is the labeled subset for the run, and sampling(L) draws examples from it with replacement. The index i identifies one of the three taggers, and m[i] refers to that tagger. The symbol ← means that the result of the training operation replaces the current state of the tagger. The parentheses mark the inputs to the functions. In train_model, the first input is the training data and the second is the recipient. The operation is carried out for each member, with its own draw.

This initialization is necessary for the next step to mean anything. Each tagger needs enough exposure to the task to make a usable prediction on a new sentence. Each also needs some chance of disagreeing with the others. Resampling attempts to supply that diversity while giving every member access to the same source of human supervision. In the smallest condition, different samples can still leave taggers with little evidence about what a plausible mention looks like. The paper addresses one consequence of that problem when it filters agreed predictions.

How each training round builds its own labels

Tri-training is organized into episodes, or rounds. At the start of an episode, the algorithm looks at each tagger in turn as a potential recipient of new supervised examples. For that recipient, the other two taggers serve as teachers. It starts the recipient’s collection of pseudo-labeled examples empty. The same generated pool is available to the pair for review, regardless of which tagger is currently the recipient.

L[i] ← ∅

L[i] is the pseudo-labeled set for recipient i in the current episode. The empty-set symbol ∅ means that it starts with no entries, and ← assigns that empty set to L[i]. The paper builds this set afresh in each episode, so an example’s eligibility is determined by the teachers’ current predictions.

{j, k} = {1, 2, 3} ∖ {i}

The braces delimit sets. The numbers 1, 2, and 3 identify the ensemble members. The expression to the right of = uses the set-difference sign ∖ to remove the recipient i. The remaining indices j and k identify the other taggers. Their order is immaterial to the agreement check.

For every generated sentence, each teacher outputs a sequence of tags. The algorithm compares the complete sequences. Where a pair puts the same type on the same mention but differs on a later position, the test rejects the sentence for that recipient. Agreement is assessed at the level at which a training example will be provided, with a target for the entire sentence. This allows different pairs to accept different sentences. It also means that an otherwise confident pair cannot contribute only the part of a sentence on which it agreed.

mj = mk

x is a sentence drawn from the generated set U. The expressions mj and mk are the two teachers’ predicted tag sequences for x. The equals sign tests whether the sequences match, including the tag at each position. Even when the taggers assign different numerical scores to those tags, passing the test requires their chosen sequences to be identical.

If the sequences agree, the algorithm can store the sentence and the common prediction as a training pair. Either teacher’s prediction is sufficient to represent the target because the equality test has already passed.

L[i] ← L[i] ∪ {(x, mj)}

The union sign ∪ adds the new item to the collection already obtained for i. The braces enclose the item being added. Within them, (x, mj) pairs the sentence with the common tag sequence, written as teacher j’s prediction. The update arrow assigns the enlarged collection back to L[i].

The implemented experiment adds a condition to this basic algorithm. A sentence must contain a predicted mention to be included in the pseudo-labeled set. Two weak taggers could easily agree by assigning the outside tag everywhere, including on a sentence that does have a mention. This was a concern at the smallest training sizes, where the initial taggers have seen few annotated examples. The filter removes the resulting all-outside sequences from the generated training pool. It leaves the original labeled data intact, including whatever examples of outside tokens or sentences it already contains.

The authors distinguish this condition from a confidence threshold. A threshold would make acceptance depend on a numerical score as well as the label decision. They discuss adding one to remove uncertain predictions and give earlier findings as their reason for using the simpler agreement rule. The rule they test asks whether the sequences match and whether the agreed answer includes a mention. A high score from a teacher cannot make its preferred answer eligible when the other teacher chooses a different sequence.

Agreement has a role even when generated text is unrelated to the original prompt’s domain. It measures how the teacher taggers respond under the target label scheme. It does not directly assess whether the sentence is coherent, factually correct, or plausible as an extract from a medical record or a news article. Keeping a sentence therefore indicates that the two teachers offered the same usable training target under the acceptance rule. The discussion of generated examples later in the paper shows why that distinction matters.

Updating the taggers and making the final prediction

The algorithm first constructs the sets for all recipients. It then updates each tagger with its own pseudo-labeled set and the entire labeled subset. The two teachers for a given recipient have thus already produced their predictions before the next training phase begins. Within an episode, a teacher’s output is not influenced by another tagger having been updated earlier in the recipient loop. At the next episode, each tagger can offer predictions reflecting what it has learned since the preceding one.

m[i] ← train_model(L[i] ∪ L, m[i])

L[i] is the pseudo-labeled collection assigned to m[i] for the current episode, and L is the human-labeled subset. The union ∪ forms the training collection used by train_model. The second argument, m[i], is the current tagger, and ← stores the updated tagger in its place. The part of training backed by human labels now comes from the whole subset, regardless of which examples appeared in the recipient’s initial bootstrap sample.

Repeated episodes create two stopping decisions at different levels. During each tagger’s training, development F1 determines whether to stop waiting for further improvement. Across episodes, a separate validation set tells the procedure whether the taggers are still progressing. The authors divide each original development set in half so that each of these decisions can use its own portion. Tri-training ends when improvement has stopped for every member. The paper supplies the patience for a tagger’s training and describes the cross-episode stopping condition in terms of whether the members are still learning.

At test time, the ensemble uses every tagger’s score for each candidate tag and sums those scores across the members. The selected tag is the one with the highest total. This differs from the role of agreement in training. At inference there is a prediction to make for the input, and a member’s score can contribute even if it did not individually choose the final tag. At training, agreement is a gate that determines whether the learner receives any target for the generated sentence.

The paper calls the resulting system a voting ensemble. The aggregation described is a vote using scores, so two tags with the same count of individual first choices can still have different totals. The earlier training rule works on complete chosen sequences and does not add up the teachers’ scores. Separating these operations clarifies why testing individual taggers can address one part of the experiment: their predictions reflect the training episodes, while the ensemble score reflects both training and aggregation. The authors identify Tritraining-Gen as the repository for the experimental code.

Experiments and results

The news and clinical benchmarks

The experiments use two corpora with different kinds of text and different annotation schemes. CoNLL 2003 is drawn from Reuters news and distinguishes person, location, organization, and miscellaneous mentions. The news includes material with quite different surface forms. Ordinary reports and tabular sports results can place entities in different surroundings even when their labels belong to the same inventory. A random sample of sentences from this corpus can give a tagger very different exposure to those forms. Introduction to the CoNLL-2003 Shared Task: Language-Independent Named Entity Recognition.

I2B2 contains medical records whose annotations mark problems, treatments, and tests. In this part of the study, entity recognition amounts to clinical concept extraction. The inputs require the tagger to interpret words and expressions under a category scheme defined for clinical writing. Generating text loosely related to the source prompt may therefore still fail to produce an example characteristic of the task. Conversely, an example resembling a clinical fragment can provide practice in locating a mention even when it lacks the wider context of a record.

The corpus sizes in the paper are reported as line counts. CoNLL has 14,986 training lines and 3683 test lines. I2B2 has 11,482 training lines and 27,625 test lines. The authors use the original test sets when they train on smaller subsets. This preserves the benchmark’s test coverage and makes it possible to assess progress on the same test throughout the study. A reduction in training data changes what the learner sees while the evaluation conditions for a corpus stay fixed.

How the paper varies the amount of supervision

The authors simulate a limited annotation budget by taking a sample of 1000 labeled examples from each training set, without replacement. That sample contains less than 10% of either training set. The operation is repeated with ten random seeds. Each seed determines a different draw, so the reported averages reflect several possible small collections and depend less on any particular collection’s mix of examples.

The smaller sets are drawn within the larger ones for each seed. The paper expresses the relation between them as follows.

S₅₀ ⊂ S₁₀₀ ⊂ S₂₅₀ ⊂ S₅₀₀ ⊂ S₁₀₀₀

S denotes a subset of the labeled training corpus. The subscript is the number of labeled examples it contains: 50, 100, 250, 500, or 1000. The symbol ⊂ means that the smaller collection is contained within the next larger one. The chain applies separately for each seed within each corpus.

Nesting matters for reading the learning curves. An experiment at a larger size adds examples to the smaller sample for that seed. It does not replace all the examples with an unrelated draw. The comparison between the supervised baseline and the tri-training procedure is closer still. Both start with the same underlying labeled subset at each seed and size. The augmented condition then uses that subset as its source of prompts as well as its source of human labels.

The availability of more original examples changes two inputs to tri-training. The taggers have more human-labeled material, and the generator has more prompts from which to build a pool. The paper uses the same generation recipe per source example across the sizes. Consequently the size comparisons describe what happens when more labeled text is made available to the full procedure. They do not directly measure what would happen if the labeled set stayed fixed and the amount of generated text alone grew.

What counts as a baseline and what F1 measures

The main baseline is a single supervised tagger trained on the natural examples in a reduced subset. Its training uses the same corpus-specific architecture as the tri-training taggers. The baseline therefore shows what this tagging approach can recover directly from that quantity and selection of annotations. The corresponding augmented run begins with the same annotations, generates additional inputs, and produces both individual tri-trained taggers and an ensemble.

The paper also trains taggers on the original training corpora. These are full-data reference scores, which the authors call toplines. They use them to check the viability of the architecture and to choose the pretrained encoder for each task. On the CoNLL test set, the full-data BERT base tagger records 90.0 F1 and the BERT large tagger 92.0. On I2B2, the full-data scores are 84.0 for BERT base, 85.0 for BERT large, and 86.6 for BioBERT. These reference runs use 50 training epochs, a batch size of 32, and selection by development F1. They show the scale of performance with full training data under the paper’s reference settings. They are distinct from the matched comparisons at each reduced size.

The metric is F1, computed with seqeval. Precision concerns how many of the mentions a tagger proposes are correct. Recall concerns how many of the reference mentions the tagger recovers. F1 combines those quantities into a single score. A system that confidently labels too much text can lose precision, while a system that rarely proposes a mention can lose recall. An increase in F1 can come from changes in either aspect of performance. The paper reports the aggregate score for sequence tagging and cites the earlier work on chunking associated with this style of evaluation. Text Chunking using Transformation-Based Learning.

For each size, the baseline column gives the average of 10 test F1 scores and their spread across the seeded subsets. The individual comparison, which the paper denotes ∆unique, uses each tri-trained tagger’s difference from the baseline for its own subset and seed. There are 30 such differences per size. The ensemble comparison, ∆ensemble, takes the difference between the ensemble and its corresponding single supervised baseline. The ∆ symbol marks a change in F1. A positive value means an improvement, and the magnitude is in points on the F1 scale. The comparison is made within each matched run before aggregating.

I2B2 test results

On I2B2, the supervised baselines at 50 and 100 labeled examples score 36.23±5.80 and 49.22±3.23 test F1. At sizes 250, 500, and 1000, the baseline reaches 64.34±1.43, 71.39±0.75, and 77.38±0.64. The values after ± are standard deviations, which describe the variability of the results around their averages. Large uncertainty at the smaller sizes is consistent with the paper’s concern that the particular selection of examples can strongly influence a run.

Every size gives a positive average for the individual tri-trained taggers relative to their matching baseline. At size 50, the individual gain is +3.93±1.89 F1 points. At 100 it is +2.56±2.37, and at 250 it is +1.89±1.25. At 500 examples the individual gain is +1.93±0.70, and at 1000 it is +1.28±0.84. The individual taggers are a useful comparison when serving an ensemble would create a constraint on memory or inference time. The paper measures their effectiveness as recognizers and leaves the operational costs themselves unmeasured.

The ensemble gains on the I2B2 test set are +4.32±1.82 at size 50, +3.08±2.38 at 100, and +2.45±1.23 at 250. At the larger sizes, the mean gains are +2.49±0.73 at 500 and +1.80±0.84 at 1000. These are gains relative to a different supervised baseline at each size. In particular, the ensemble has its largest improvement at the size where the reference supervised score is lowest. The gain does not establish that training with fewer labels gives a higher final F1 than training with more.

Individual and ensemble tri-training gains on the I2B2 test set with 50 labeled examples

The ensemble yields the larger average improvement over the matched supervised tagger.

Individual and ensemble tri-training gains on the I2B2 test set with 50 labeled examplesIndividual tri-trained tagger: +3.93Individual tri-trained tagger+3.93Tri-trained ensemble (this paper): +4.32Tri-trained ensemble (this paper)+4.32
The numbers
System or settingF1 points gained
Individual tri-trained tagger+3.93
Tri-trained ensemble (this paper)+4.32

The I2B2 results also show why the general relationship between labeling budget and gain needs careful wording. The gain at 500 examples is close to the gain at 250 examples and slightly higher. The broad result is that the largest lift appears at the smallest size and the gain is still positive at the largest size. The scores at intermediate sizes reflect both the quality of the seed taggers and the usefulness of the material that can be generated from their training subset.

CoNLL test results

The CoNLL single-tagger baselines follow a rising curve as more human labels become available. At 50 and 100 examples, they score 59.87±3.32 and 69.20±3.92 test F1. At 250, 500, and 1000 examples, their scores are 80.65±1.99, 84.74±0.89, and 87.70±0.38. The absolute CoNLL and I2B2 scores come from distinct entity schemes and distinct test sets. The comparison of interest is between procedures within each corpus.

At size 50, an individual CoNLL tri-trained tagger gains +2.33±2.01 F1 points on average over its supervised baseline. The individual gain at 100 examples is +0.08±3.64. At 250, 500, and 1000, it is +1.06±1.11, +0.54±0.83, and +0.27±0.37. Thus a positive average can coexist with substantial variation. The size-100 mean in particular tells little about what will happen to a single tagger trained on any one small sample.

The CoNLL ensemble gains are +2.98±1.98 at size 50 and +0.84±3.68 at size 100. They are +1.77±1.17 at 250, +1.14±0.71 at 500, and +0.71±0.40 at 1000. As on I2B2, the ensemble improves the average result at each size and offers its largest gain at 50. The strongest exception to a smooth decline in gain is the dip at 100. The authors examine the individual seeds behind that result to see what produces it.

Tri-trained ensemble gains over supervised CoNLL test F1 by labeled training size

The largest gain occurs with the smallest labeled subset, while the intermediate results vary.

Tri-trained ensemble gains over supervised CoNLL test F1 by labeled training size50 labeled examples (this paper): +2.9850 labeled examples (this paper)+2.98100 labeled examples: +0.84100 labeled examples+0.84250 labeled examples: +1.77250 labeled examples+1.77500 labeled examples: +1.14500 labeled examples+1.141000 labeled examples: +0.711000 labeled examples+0.71
The numbers
System or settingF1 points gained
50 labeled examples (this paper)+2.98
100 labeled examples+0.84
250 labeled examples+1.77
500 labeled examples+1.14
1000 labeled examples+0.71

Across the 50 seed-and-size runs for each corpus, the authors report that the ensemble loses F1 relative to its paired baseline once on I2B2 and in five runs on CoNLL. These counts answer a different question from the mean gains. The mean describes the performance change averaged across runs. The count of losses indicates how frequently one would have been better off with the baseline for a particular draw. The benchmark showing a positive mean at each size can still contain runs in which the extra training harms recognition.

The paper also contextualizes its tagger by comparing it with scores reported for DAGA on the gold data. According to the description, its taggers lead by 30 points at a size of 1,000 and by 9 points at full size. That comparison concerns the performance of the tagging setups. The paired comparisons within the paper put the same supervised starting resources on both sides and are the results that bear most directly on the use of GPT-2 sentences in tri-training.

What the ablations show

The paper reports no component ablation. Its matched comparisons, breakdown of seed-level behavior, and inspection of generated text show where the full procedure helps and where a component’s contribution remains unresolved.

What changes when the tagger is used alone

The comparison between a supervised baseline and an individual tri-trained tagger is informative because both systems make predictions as single taggers. It compares a standard supervised run with one member that has received a bootstrap initialization and then been trained on agreement-selected generated text alongside the labeled data. The tests show positive mean gains even at this level. The size-50 I2B2 result is a clear case: individual taggers gain +3.93 F1 points before scores from multiple taggers are combined at inference.

The ensemble comparison asks a different question. Can the full system use the several taggers together to produce a better answer? Its mean gains exceed the corresponding individual gains at every size for both corpora. The two results together suggest that the training procedure can produce a better single tagger and that aggregating their scores can improve the overall result further. The individual figure averages over all members in the seeded runs. It describes expected member performance, without establishing how a practitioner would identify the strongest member for a given run.

These comparisons also give a way to interpret the CoNLL result at size 100. The individual scores are close to the baseline on average, while the ensemble has a larger positive mean. At that size the variability is substantial in both results. The evidence for using the ensemble there is stronger at the level of the mean than as a promise about a new seed. An ensemble of bootstrapped supervised taggers would have helped isolate the change that also comes from pseudo-labeled training. The paper’s single supervised baseline leaves that particular comparison open.

The size-100 CoNLL dip and the more consistent settings

The authors’ boxplots show the distribution of ensemble gains at each size. They are useful because the spread of a gain is about the effect of changing procedures on the same sample. The spread of the baseline F1 describes how much the initial supervised task varies across different samples. Those are different kinds of variability. A small sample can be difficult for both procedures, and its difficulty alone does not determine the size or direction of the improvement.

On CoNLL at 100 labeled examples, three seeds yield negative ensemble gains. The most extreme run loses -8.6 F1 points on the test set relative to its paired baseline. In a diagnostic calculation that leaves out that run, the authors report a mean ensemble gain of +1.89 F1 points at the same size. The main result retains all runs. The sensitivity calculation shows how strongly the low average is shaped by a large loss and helps distinguish that case from a size at which all runs show only a small effect. It still leaves more than one seed at this size with a loss.

The authors describe the settings from 250 examples upward as the most consistent. In those settings, their comparison puts the ensemble’s mean improvement above the spread of the supervised baseline measured by its standard deviation. That interpretation concerns the regularity of the gains, even as the absolute amount of improvement generally becomes smaller. The smallest samples present the largest opportunity for improvement and some of the greatest variation. A reader deciding how to interpret the results should therefore keep the size of the gain and its variability together.

What the generated examples reveal

The paper inspects a small selection of generated sentences that the taggers have labeled. The authors chose these examples to make both useful-looking and problematic outputs visible. Among the CoNLL completions, one has only a final punctuation mark added. This shows that requesting another version of a sentence need not add a substantially different entity context. In the I2B2 completion, the retained prompt is the single word FOLLOW. The completed sentence is a social-media invitation. That prefix supplied too little evidence that the intended domain was medicine.

The follow-up examples illustrate a related problem with short or formulaic prompts. A CoNLL document marker leads to text resembling a software fragment. A date from the medical corpus leads to a continuation resembling online chat. These prompts provide evidence about a textual pattern while supplying little about the entity scheme or the domain in which the pattern appears. A generator can find a plausible way to follow a date in some kind of writing and still produce a poor imitation of clinical notes.

Other examples illustrate output that the authors judge more satisfactory. A CoNLL follow-up includes a personal name, and a clinical follow-up has the form of a fragment about a test. These examples show that a mixed pool can contain material that gives the taggers relevant-looking decisions to make. The punctuation-only and off-domain examples show different ways an output can have little value. One adds minimal variety. The others add variety that may have little relationship to the target data.

The examples were selected for illustration, so they establish possibilities rather than frequencies. They also show why a tag sequence for a generated sentence is insufficient evidence that the sentence belongs in the domain. The paper’s examples make the issue visible, while the test scores answer the practical question at the level of the entire generated pool. There is no reported comparison between training on follow-up sentences alone and training on completions alone, or between the different prefix lengths. The study thus establishes that the mixture can work, with the value of its constituents left unresolved.

Limitations

The authors’ stated limits

The paper’s simulation reduces the labeled training set. A fully resource-constrained application can also lack enough annotated development and test data. Here, the authors have an original development set from each corpus and divide it between tagger training and episode-level validation. These two uses matter because both stop conditions depend on labeled evidence of improvement. In a new application with only a small amount of annotation in total, setting aside data for both purposes would change the amount available to train the taggers. The paper identifies limited development data as a feature a closer simulation could incorporate.

The authors keep the original test sets for a reason. A stable test on the corpus helps compare results across the reduced training sizes and with existing results. Deliberately shrinking the test would make those comparisons harder to interpret. This choice strengthens the benchmark evaluation and leaves a gap between the experiment and a deployment that would first have to build its own evaluation set. When the paper speaks of learning from a small annotated subset, that size describes the training labels, while the original benchmark still supplies separate labeled evidence for model selection and evaluation.

The paper identifies access to a large open-domain generator in the target language as the hardest practical limit. The authors test situations in which the application’s own annotated text is scarce but a generator trained on substantial text is available. This is a particular kind of resource shortage. A language with few domain examples may benefit from the setup if it still has a generator capable of useful continuations. The paper tests English and raises multilingual generation as a possible route to wider applicability. It leaves that possibility for empirical testing. Low-resource languages · Multilingual and cross-lingual NLP.

The authors also acknowledge that they are far below the full training sizes and do not expect the reduced-data runs to reach the full-data reference scores. Their comparison asks how much their method improves a small-data tagger. A gain that matters at a particular training budget can therefore coexist with a substantial gap to the performance available from a full annotated corpus. The evidence concerns making better use of a limited sample, with the full-data runs providing a scale for that improvement.

Limits of what the comparisons can establish

The baseline isolates an application-level choice: train one tagger with the original annotations, or implement the full generated-data tri-training procedure. It leaves several changes bundled together. The tri-trained taggers start from resampled data, receive additional rounds of learning, and see pseudo-labeled generated sentences. The ensemble also combines multiple predictions. An individual tri-trained tagger’s gain establishes that aggregation alone cannot account for all the improvement over the baseline. Which parts of the member’s training history account for that gain remains open.

The use of a single supervised baseline leaves the value of supervised ensembling unmeasured. An ensemble of supervised taggers using the same initialization and score aggregation could establish how much benefit the extra training contributes beyond combining several members. A tri-trained ensemble given naturally occurring unlabeled text could answer a further question about how well the synthetic pool substitutes for natural text when both are available. The experiment deliberately gives the procedure no separate natural unlabeled pool. Its results apply to using generated data in that setting.

There is also a difference between usefulness in aggregate and accuracy of the pseudo-labels. The paper tests the training method by measuring F1 on labeled natural test examples after training. It does not measure entity annotation correctness on a human-reviewed sample of the generated pool. Agreement can arise because two teachers recognize the same valid mention, because their mistakes are correlated, or because they impose the same interpretation on an out-of-domain fragment. The architecture and the source of human training labels are shared, so bootstrapping provides some variety without making teacher errors independent.

The filter for sentences with no predicted mentions illustrates the implications of relying on agreement. It keeps a pair from contributing an all-outside answer when the pair missed a real entity. It also removes genuinely entity-free sentences that might have given the recipient practice declining to propose a mention in unfamiliar contexts. The authors suggest that this precaution might be unnecessary. Since they do not report a separate run that retains such sentences, the results cannot establish which side of the tradeoff matters more, or whether it changes with the amount of supervision.

The generator supplies examples in proportion to the original sample, so the data-size comparison intertwines several effects. A larger labeled subset can produce better-informed taggers, supply more source contexts for generation, and increase the available synthetic pool. The diminishing advantage at higher sizes is consistent with supervised training already having learned more of what the generated examples can teach. It could also depend on which contexts the expanded generation pool contains and which sentences the teachers accept. The aggregate gains do not distinguish these mechanisms.

The distributional results should also guide the meaning of improvement. Across all tested sizes, mean ensemble F1 improves on both corpora. The losses on particular seeds show that the expected direction and the result for an individual sample can differ. The reported averages and standard deviations are descriptive, and the paper does not accompany the table of gains with a reported significance test. The evidence for gains comes from the matched results across sizes and seeds. The way those gains depend on category frequency, exact boundaries, precision, or recall is not broken down in the reported scores.

Finally, the two corpora test different news and medical annotation schemes, but they leave other domains and languages untested. The larger mean gains on I2B2 establish a result on that benchmark with its own encoder and baseline. The paper does not vary domain, entity inventory, or encoder one at a time. A claim that clinical writing generally benefits more from this procedure would require evidence beyond that contrast. What the tested domains establish is that the procedure can improve recognition under substantially different kinds of text and labeling within the same language.

What came after

A later citing paper, New Semantic Task for the French Spoken Language Understanding MEDIA Benchmark, appeared in 2024. It addresses a new semantic task for a French spoken-language benchmark. That concerns a different language and a different kind of input from the English news sentences and medical records used to test generation-based tri-training.

The citation establishes a connection between the papers. It does not establish that the later study generated unlabeled sentences, used agreement to assign labels, or measured the effects of tri-training on MEDIA. The French benchmark therefore identifies a later task in which the earlier paper was cited, while the evidence for the method’s performance remains the comparison on CoNLL and I2B2.

Cite

Cite as Hugo Boulanger, Thomas Lavergne and Sophie Rosset. 2022. Generating unlabelled data for a tri-training approach in a low resourced NER task. Proceedings of the Third Workshop on Deep Learning for Low-Resource Natural Language Processing.

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

@inproceedings{boulanger2022generating,
  title = {{Generating unlabelled data for a tri-training approach in a low resourced NER task}},
  author = {Hugo Boulanger, Thomas Lavergne and Sophie Rosset},
  booktitle = {Proceedings of the Third Workshop on Deep Learning for Low-Resource Natural Language Processing},
  year = {2022},
  doi = {10.18653/v1/2022.deeplo-1.4},
  url = {https://doi.org/10.18653/v1/2022.deeplo-1.4}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/boulanger-2022-generating-unlabelled-data-tri-training/