Elamur Research

Neural Self-Training through Spaced Repetition

Paper · 2019 · Hadi Amiri

Summary

A text classifier can supply labels for reviews or social media posts that nobody has annotated. The harder question is which of those predictions to use as training examples. Conventional self-training frequently begins with the texts the classifier labels most confidently. That choice can favor examples that resemble what it already knows how to recognize. Hadi Amiri’s paper asks whether the way a prediction holds up as a network learns can help identify unlabeled texts that will improve it. The experiments apply this idea to text classification.

The method adapts the Leitner system, a form of spaced repetition associated with flashcards. At the start of a training episode, the classifier predicts a label for each unlabeled text. Those predictions become provisional answers, called pseudo-labels. As the network trains, its predictions are checked against those answers after successive epochs. Agreement moves an example up a queue, while disagreement moves it down. The final queues group texts according to how readily the network reproduces their provisional answers. The method then tries training with each group in turn and uses performance on a separate labeled validation set to decide which group to keep.

The paper tests this procedure on positive and negative IMDb movie reviews and on tweets that may express an intention to leave a telecommunications brand. On IMDb, Leitner self-training achieved 78.27 macro-F1 on the test sets, compared with 77.11 for the strongest comparison system. On Churn, it achieved 69.90 against 67.70. Macro-F1 gives each class equal weight when combining its precision and recall score. For each task, the reported result is the mean performance on five randomly selected test sets.

Queues near the middle tended to give better validation results than the highest occupied queues. The paper also finds that selected IMDb examples differed more from the training data in the network’s internal representations than examples in the highest queue did. An alternative that drew confident predictions from across the queues raised the best IMDb test score to 80.71 macro-F1, while its best Churn score was 68.56. The authors relate the Churn result to class imbalance. Confident predictions there were frequently for the negative class, so a sample could draw from a broader range of queues and still provide too few useful examples of customers intending to leave.

Deep dive: Neural Self-Training through Spaced Repetition

See how Leitner spaced repetition selects which unlabeled texts to learn from, and how it performs on movie sentiment and customer churn prediction. · about 33 minutes to read

The problem and its context

Why an unlabeled text needs more than a predicted answer

A supervised classifier learns from examples paired with answers. For a movie review, the answer might indicate whether the reviewer’s opinion is positive or negative. To build a training set, someone has to supply those answers for enough texts to support learning. The paper begins with a common practical constraint in natural language processing. The text itself may be plentiful, while assigning task-specific labels takes time and money. A small labeled collection may also cover too little of what appears in a larger collection to support downstream analysis, including the detection of unfamiliar cases.

Semisupervised learning addresses this setting by using both labeled and unlabeled examples. Self-training is one way to do that. A classifier learns the task from the available labeled texts and then predicts answers for a pool of unlabeled texts. Some predictions are accepted as pseudo-labels and used to enlarge the training set. The classifier trained on that enlarged set can produce the next batch of predictions. This repeats until a stopping condition is met, such as running out of unlabeled examples or ceasing to improve on validation data.

Prediction and selection serve different purposes in this loop. Prediction says which label the classifier would assign to a text. Selection concerns the effect of feeding the text and that label back into training. A confident answer can be a sensible candidate because there is reason to hope the label is reliable. Its value as a teaching example also depends on what the classifier has already learned. If a text is easy for much the same reasons as many texts already in the training set, adding it may bring limited benefit. An unfamiliar text could stretch what the classifier can handle, provided its proposed label gives it a useful training signal.

The paper is especially interested in this choice for neural networks trained from small labeled samples. It identifies overfitting and high variance in gradient estimates as problems in that setting. Overfitting means that a network can learn distinctions that work well on the available training examples and transfer poorly to new texts. High variance in gradients means that the signals used to update the network can fluctuate substantially across the examples used to estimate them. A larger supply of useful examples could help. The sampling rule influences whether the additional examples actually broaden that supply and whether their provisional answers are suitable for training.

What earlier selection rules offered

In the conventional self-training described by the paper, selection commonly depends on prediction confidence. A threshold admits examples whose predicted labels receive sufficiently high confidence. The procedure is simple and can be repeated whenever the classifier changes. Its limitation, in the authors’ account, is that the same rule can repeatedly admit texts that fit the classifier’s current behavior closely. Any parts of the unlabeled pool that it handles less confidently can remain outside the training set, even after the classifier has added many examples from familiar parts of the pool.

The paper describes successful uses of confidence-oriented self-training in several areas, including word sense disambiguation, information extraction and object recognition. In word sense disambiguation, for instance, the task is to decide which meaning an ambiguous word has in context. The appeal of bootstrapping is that predictions on some occurrences can provide training material for handling others. The related work also includes cases in which ordinary self-training failed to improve a supervised starting point. The paper treats the sampling policy as a reason self-training can behave differently across tasks and datasets. Yarowsky’s work on unsupervised word sense disambiguation

Co-training gives the selection problem a different structure. As presented in the paper, it assumes that examples come with distinct views, each described by its own features. Ideally, either view contains enough information to predict the class, and the views are conditionally independent given that class. Each classifier starts with labeled examples and uses one view. Confident predictions on the unlabeled pool then help assemble additional training material. The complementary information in the views gives the procedure a way to expand beyond the evidence available to any single classifier. Combining Labeled and Unlabeled Data with Co-Training

The authors also discuss an approach that learns how to select examples in a co-training setting. It combines a reinforcement-learning agent with the classifiers for the separate views. The agent learns a sampling policy, so the choice of texts can respond to the training process. The requirement for distinct views still matters. Some text datasets offer no clear split into feature sets that would each support the task well by themselves. Amiri’s method instead extracts information about examples by observing successive states of a classifier training on the task.

How pretraining uses the same resource differently

Neural pretraining offers another way to learn from an unlabeled collection. In the reconstruction approach described by the paper, the network first learns to recover its inputs. Once it has learned through this objective, supervised fine-tuning adjusts it to make task-specific predictions with the available labels. Unlabeled text shapes the network’s parameters before it sees the supervised objective. A text can contribute during that first phase without being given a provisional sentiment or churn label. Semi-supervised Sequence Learning

A related line of work applies adversarial perturbations during training. The method discussed by the paper changes word embeddings, which are numerical representations of words, and trains the classifier to withstand the perturbation most damaging to its prediction. Continuous embedding values can receive small changes. A word identity is discrete, so the same kind of small adjustment cannot be applied directly to it. The paper includes a baseline that combines pretraining with this form of adversarial training. Adversarial Training Methods for Semi-Supervised Text Classification

The authors point out an architectural constraint of pretraining followed by fine-tuning. Parameters have to carry over, which ties the network used for the preliminary task to the network used for the supervised one. A preliminary task might benefit from a deeper architecture or from handling multiple kinds of data, such as speech and text. Those demands can make an appropriate preliminary network a poor architectural match for the eventual classifier. The Leitner proposal puts the transfer in the form of texts and predicted labels. The source of those labels can, in principle, be a trained classifier whose architecture differs from the network that will learn from them.

Why follow a prediction through training?

The starting intuition comes from spaced repetition. A learner revisiting material can use previous responses to decide how to group or schedule it. In the Leitner system, a successfully recalled item moves towards groups that hold easier material. An unsuccessful recall moves it toward groups that contain material requiring further work. A group’s contents can change as the learner’s ability changes.

Classifying unlabeled text introduces a complication. For a flashcard, there is an answer against which to judge recall. In this experiment, the system initially has only its own predicted label for each unlabeled text. Amiri takes that provisional answer as the reference during a training episode. Successive passes over the labeled data produce a series of network states, and the method observes whether those states reproduce each provisional answer.

That provides information a confidence score alone leaves out. Some provisional answers agree with the classifier’s predictions throughout training. Others agree only intermittently. Which pattern is useful depends on how training with those examples affects the target task. The paper therefore pairs its grouping procedure with a separate decision based on labeled validation data. Repeated agreement supplies the grouping signal, and validation performance supplies the criterion for adopting a group.

The method, step by step

Start with a seed classifier and build a provisional answer key

The method works in episodes. Each episode begins with the texts already available for supervised training, the texts still in the unlabeled pool, and a labeled validation set. In the first episode, the training set consists of the original human-labeled examples. As episodes pass, it can also contain examples selected earlier, accompanied by the predictions accepted for them. The validation set stays separate from that enlargement and is used to assess the classifiers trained along the way.

The first training run of the episode uses everything currently in the training set. The resulting classifier assigns a pseudo-label to every text still in the unlabeled pool. These are the episode’s reference labels for queue movement. They can include errors, and a text still in the pool can receive a different provisional label when the process begins again in a later episode. A text already admitted to training carries the label it received at selection.

The distinction between a pseudo-label and a fresh prediction is important here. The pseudo-label is held fixed while the queues are being populated. The fresh prediction comes from the network at a particular epoch and may change as training proceeds. If the reference were updated to match every fresh prediction, there would be no meaningful disagreement to track. The algorithm instead asks how a series of predictions compares with the provisional answer established at the beginning of the episode.

One episode of Leitner self-training

The steps in order.

One episode of Leitner self-trainingStep 1: Train on the current labeled set1. Train on the current labeled setStep 2: Predict provisional labels for the unlabeled texts2. Predict provisional labels for the unlabeled textsStep 3: Put all unlabeled texts in the lowest queue3. Put all unlabeled texts in the lowest queueStep 4: Train by epoch and update queue positions4. Train by epoch and update queue positionsStep 5: Try each queue as extra training data5. Try each queue as extra training dataStep 6: Compare candidate classifiers on labeled validation texts6. Compare candidate classifiers on labeled validation textsStep 7: Keep the best classifier and any winning queue7. Keep the best classifier and any winning queueStep 8: Move selected texts into the labeled set8. Move selected texts into the labeled set

Use successive predictions to populate the queues

A queue in this procedure is a group of texts at a particular level of agreement history. At the start of the queue procedure, every unlabeled text goes into the lowest queue and all higher queues are empty. The paper writes the ordered collection of queues as follows.

Q = [q₀, q₁, …, qₙ₋₁]

Here Q denotes the collection of queues, q denotes an individual queue, and the subscript gives its position. The subscript 0 marks the lowest queue. The symbol n is the number of queues, so n − 1 is the final index. The square brackets indicate the ordered collection, the ellipsis covers the intervening queues, and = defines Q.

The queue-building run trains the network on the current labeled data and examines its predictions after each epoch. An epoch is a pass through the training data. At that checkpoint, the network predicts labels for the unlabeled examples in the queues. An example moves up to the next queue if its prediction agrees with its assigned pseudo-label. If it disagrees, it moves down to the preceding queue. These moves operate within the available queue range.

The paper’s algorithm evaluates the examples in all queues at each epoch. Queue position records a pattern of agreement during training. In the experiments, entering a higher queue does not exclude a text from a future checkpoint. The connection with flashcards lies in how successful and unsuccessful responses change an item’s level. The text has supplied the classification analogue of a response, and its pseudo-label supplies the comparison answer.

Consider a review whose provisional label is positive. If the classifier predicts positive at successive checkpoints, the review advances through the queues as training proceeds. A review that alternates between positive and negative predictions can move up and down. A review that repeatedly disagrees with its provisional label stays near the bottom. These movements depend on both the text and the network’s ability to classify it at each checkpoint. They are meaningful even when the provisional labels for the reviews are identical.

A high queue means that the network has readily reproduced the provisional label. Reproduction and correctness can diverge because the provisional label itself can be wrong. In the other direction, a disagreement may occur when the current network has begun to make a better prediction than the one originally assigned. Queue position therefore describes behavior against a reference generated for the episode. It gives the sampler a way to organize examples without supplying a verified answer for each of them.

Each time the method rebuilds the queues, it starts with the remaining texts at the bottom. It uses the labeled training set as it exists in that episode and a fresh set of provisional answers for the unlabeled pool. An example’s experience in a previous episode may differ from its experience in the current one because the classifier has learned from additional texts. The grouping is specific to the classifier’s stage of training, and the same text need not keep the same queue position whenever it is considered.

Test what each queue contributes

Once the queues are populated, the method runs a training comparison. It takes the current labeled set and augments it with the texts from one queue, using their pseudo-labels as the additional targets. It trains a candidate classifier on that combined set and evaluates it on the labeled validation set. Each queue receives this treatment separately. The alternatives are competing choices about what to add to the same current training set.

The notation in the algorithm distinguishes the classifier trained on the current labeled set from the candidates trained with a queue.

M_q = train(L + [q, y[q]], V)

Here M_q is the candidate classifier for queue q, and train denotes the task-specific training procedure. L is the current labeled training set and V is the validation set. The symbol y denotes the provisional labels for the current unlabeled pool. The index operation y[q] restricts those labels to the examples in q. The brackets around q, y[q] pair the texts with their respective labels, + denotes the addition of those labeled examples to the training set, and = assigns the resulting classifier to M_q.

The comparison also includes the classifier trained on the labeled set as it stood at the beginning of the episode, denoted M_L in the paper. If a queue gives the best validation performance, the paper calls it the designated queue. Its classifier is retained, its texts and labels join the training set, and the corresponding texts leave the unlabeled pool. The algorithm also allows the classifier trained on the current labeled set to prevail, in which case the episode has no winning queue to add.

This is a greedy choice. The test is how useful each group is to the classifier at the current episode. The algorithm does not train through all possible future sequences of group choices before committing. It also evaluates examples collectively. A useful queue can contain individual examples of varying quality, and a queue that performs poorly as a group may contain examples worth using under a more selective rule.

The labeled validation set supplies the part of the process that can judge improvement against known answers. Comparisons with the pseudo-labels organize the examples, then experiments with the resulting groups determine whether learning from them helps. This arrangement allows a group of less consistent examples to win if its contribution to validation performance is stronger. It also allows highly consistent examples to lose if there is little benefit from using them.

Weight the training data and set stopping conditions

The paper gives two kinds of weighting for the training loss, the quantity the network is optimized to reduce. One depends on class size and is intended to address imbalanced data. If one class has many more examples, its predictions would otherwise account for more of the training signal. The other weight applies to pseudo-labeled examples as a function of the episode. Its purpose is to reduce the influence of potentially incorrect provisional labels. The paper describes what each weight is for without specifying a mathematical schedule for them.

For the Leitner queue procedure, the reported epoch setting is k = 32, where k is the training epoch limit. The paper also uses early stopping when validation F1 ceases to improve for three consecutive epochs. Thus the network states available for populating the queues depend on the training run and its validation behavior. The number of queues is chosen from n = {3, 5, 7, 9, 11} in the experiments, where n counts the available queue levels.

The full self-training process uses K = 20, where K is the episode limit. It also stops when there are no unlabeled examples left to select. The authors say that running out of unlabeled data often ended their runs. An episode contains several training operations, including building the starting classifier, generating the queue assignments through training checkpoints, and testing alternative additions. The epoch and episode limits apply to different parts of this process.

The architecture used to obtain pseudo-labels is flexible in the formulation. The queues need provisional answers and a sequence of network predictions to compare with them. The classifier that supplies the provisional answers can be any trained downstream learner suited to the classification task. In the experimental procedure, the authors generate the labels with the task network trained at the start of the episode. The ability to use a different source for the labels follows from the interface between these parts of the method.

That flexibility comes with a computational cost elsewhere. Finding the designated queue can require training a candidate for every queue in an episode. The authors observe that most designated queues in practice fall in the middle or higher part of the system. They suggest that this observation could help narrow the search. They also raise the possibility of learning from movement patterns to select examples with less trial training. The reported approach chooses by training and validation, and the experiments on movement patterns examine what a future selector might use.

Experiments and results

Which texts were labeled, and what counted as a correct answer?

The evaluation uses two tasks with different kinds of text. The IMDb task is sentiment classification. After reading a movie review, the classifier predicts whether the reviewer feels positively or negatively about the film overall. The dataset contains 50K labeled reviews. For each experimental partition, the authors use 1K labeled reviews for training, 1K for validation, and 48K for testing, with balanced classes. They construct five such partitions to reduce dependence on a particular random choice of training and evaluation examples. A further 50K reviews are available for use as unlabeled data. Learning Word Vectors for Sentiment Analysis

The Churn task uses short posts about telecommunications brands. The label indicates whether a user expresses an intention to stop using the target brand. The paper describes a labeled collection of more than 5K tweets about three brands. Its dataset table lists 1K training examples, 1K validation examples and 3K test examples per partition, again with five partitions. The authors also collected 100K additional tweets about the target brands and used them as unlabeled data.

Churn depends on how the writer’s intention relates to the specific brand. A post saying that someone is leaving a provider can contain praise for it. Conversely, a post mentioning a switch may refer to moving towards the target brand. Polarity alone cannot settle these cases because the classifier needs to identify which provider gains or loses the customer and whether the writer expresses an intention to leave. In preprocessing, the authors use BRAND for the target name and BRAND-OTHER for other brand names. This keeps an explicit distinction between the target and other providers while removing their individual names.

On both datasets, the authors lower-case the texts and remove stop words, usernames and URLs. The partitioning leaves distinct jobs for the labeled sets. The training examples supply the initial learning signal. Validation examples guide choices such as which queue to add. Test examples supply the scores in the main comparison. This matters especially for Leitner self-training, where the system repeatedly judges candidate additions using validation performance. The test scores provide a check separate from those queue decisions.

The reported metric is macro-F1. For a particular class, precision asks how many texts assigned to that class are correct, and recall asks how many texts belonging to the class are recovered. The class’s F1 combines precision and recall through their harmonic mean. Macro-F1 averages the class scores with equal weight for each class. In the Churn task, this means that performance on texts expressing an intention to leave has the same influence on the reported score as performance on texts without that intention. The main results are averages of macro-F1 across the five test sets for each task.

The starting classifiers and the comparison methods

For IMDb the paper uses FastText in a deep averaging configuration. An embedding layer converts the words in a review to vectors. An averaging layer then combines those vectors into a single representation, which passes through hidden layers before the prediction layer. The reported setup has two hidden layers of size 256 and uses sigmoid activation at the output. The word vectors have 300 dimensions and come from the Google word2vec toolkit. An averaging classifier can make use of the features stored in those vectors while representing each review through their aggregate. Deep Unordered Composition for Text Classification · Efficient Estimation of Word Representations in Vector Space

For Churn the authors use a basic convolutional neural network. Its parameters follow the cited work on identifying churn in microblogs, with the exception of the pretrained embeddings. The authors use the two tasks to examine whether self-training helps from different starting levels of supervised performance. The IMDb starting classifier has the higher test macro-F1 in their setup. The tasks also differ in their data, class distributions and network architectures, which matters when interpreting any difference in the effect of self-training.

The comparison begins with each base classifier trained on the original labeled data. That establishes what the task network can do with the available annotations in the supervised setting. Standard self-training, abbreviated SST, then tests what happens when additional examples are selected by confidence. The authors choose among the thresholds .80, .85, .90 and .95 using the validation data. The classifier predicts labels on the remaining pool, and the threshold governs which provisional labels are accepted.

The pretraining baseline, abbreviated PST in the results, learns to reconstruct unlabeled inputs before the network is fine-tuned for classification. Its initial objective provides training on the unlabeled collection without requiring a predicted task label for each text. The adversarial baseline, AST, also uses pretraining and adds training against perturbations of the embeddings. These comparisons ask whether selecting task-specific pseudo-labels through a succession of checkpoints can be more helpful than using the unlabeled pool to prepare the classifier’s parameters.

Knowledge transfer self-training, abbreviated KST, uses clusters. The method obtains representations through pretraining and groups unlabeled examples with similar representations, using a clustering approach such as k-means. It then trains a network to predict which cluster an example belongs to. Cluster membership supplies the provisional classification target for that phase. After this training, the prediction layer is adapted and the network is fine-tuned on labeled examples for the actual task. The choice of cluster count ranges over {10, 20, …, 100} and is made using validation performance.

Leitner self-training, or LST, is the queue-based procedure. The charts report the main comparison with the best queue lengths used by the authors for the designated-queue version. A separate experiment changes how examples are taken from the queues and is discussed with the analyses of sampling.

IMDb test results

IMDb test macro-F1 across supervised and semi-supervised methods

Leitner self-training leads the comparison, with knowledge transfer the strongest baseline.

IMDb test macro-F1 across supervised and semi-supervised methodsSupervised base classifier: 73.02Supervised base classifier73.02Standard self-training: 74.43Standard self-training74.43Pretraining self-training: 76.36Pretraining self-training76.36Adversarial self-training: 76.09Adversarial self-training76.09Knowledge transfer self-training: 77.11Knowledge transfer self-training77.11Leitner self-training (this paper): 78.27Leitner self-training (this paper)78.27
The numbers
System or settingmacro-F1
Supervised base classifier73.02
Standard self-training74.43
Pretraining self-training76.36
Adversarial self-training76.09
Knowledge transfer self-training77.11
Leitner self-training (this paper)78.27

The supervised IMDb classifier’s test macro-F1 was 73.02. Confidence-based self-training raised it to 74.43, while knowledge transfer was the strongest baseline at 77.11. The designated-queue version of Leitner self-training reached 78.27 using n = 5 queues. The paper reports an improvement of 5.25 macro-F1 points over the supervised classifier and 1.16 over knowledge transfer, all on the IMDb test comparison. For the latter comparison, it gives an average t-test probability value of .004 and reports the difference as statistically significant.

The position of the knowledge transfer baseline is informative for this task. It uses a separate learned classification objective on unlabeled reviews, and it outscored both the reconstruction and adversarial baselines in the IMDb test comparison. That result is consistent with the authors’ suggestion that cluster-based targets can give an effective start when labeled data is scarce. Leitner’s result shows that the target-task route can do better in this experiment when the provisional task labels are accepted through queue trials on validation data.

The paper also examines the point at which standard self-training does best on validation. For IMDb this occurs early, when an average of 1.4K unlabeled reviews have been pseudo-labeled and accepted. Allowing the procedure to add more reviews led to a reported IMDb macro-F1 of 66.94. The amount of accepted data and its effect on prediction quality tell different parts of the story. The initial batch contributes to the improved result, while further additions with this selection policy can produce a worse classifier than the original supervised one.

Churn test results

Churn test macro-F1 across supervised and semi-supervised methods

Leitner self-training scores highest, and confidence-based self-training ties the supervised starting point.

Churn test macro-F1 across supervised and semi-supervised methodsSupervised base classifier: 65.77Supervised base classifier65.77Standard self-training: 65.77Standard self-training65.77Pretraining self-training: 67.27Pretraining self-training67.27Adversarial self-training: 67.70Adversarial self-training67.70Knowledge transfer self-training: 67.06Knowledge transfer self-training67.06Leitner self-training (this paper): 69.90Leitner self-training (this paper)69.90
The numbers
System or settingmacro-F1
Supervised base classifier65.77
Standard self-training65.77
Pretraining self-training67.27
Adversarial self-training67.70
Knowledge transfer self-training67.06
Leitner self-training (this paper)69.90

The Churn classifier started at 65.77 test macro-F1. Standard self-training reached the same score. At its best validation point it had added an average of 0 examples from the unlabeled tweets, so the result reflects the supervised starting point. With further additions the paper reports Churn macro-F1 as low as 57.04. The authors suggest several possible reasons for poor results from continued confidence-based selection, including imbalance in the classes, limited exploration of the tweets, and prediction errors that reinforce themselves during training.

The strongest Churn baseline was adversarial self-training, with 67.70 test macro-F1. Leitner self-training with n = 7 queues reached 69.90. The paper reports improvements of 4.13 macro-F1 points over the supervised Churn classifier and 2.2 over adversarial self-training. It reports the comparison with that baseline as significant, giving .015 as the average t-test probability value. The results therefore show an advantage over the strongest tested baseline for each task, even though the identity of that baseline changes.

Across the tasks, comparison with the supervised starting point and comparison with the strongest semisupervised baseline answer separate questions. The former measures how much the whole use of unlabeled examples improved the particular initial classifier. The latter measures how the queue-based approach fared against another way of using the same kind of resource. The gain over the supervised classifier was larger on IMDb, while the lead over the strongest semisupervised baseline was larger on Churn. The two comparisons can move independently because baseline performance varies with the task.

What the ablations show

The highest occupied queue rarely gave the best validation result

The paper first examines the candidate classifiers that are already trained during ordinary Leitner self-training. For each episode, these are the classifiers that would result from adding the examples of each queue to the current training set. The analysis records their validation macro-F1 and averages the scores across episodes. The actual training runs continue to make their usual choices, so only the designated queue is added at the end of an episode. The analysis can see how each alternative would have fared at that moment.

On IMDb, with n = 5, adding q₂ produced the best average validation performance. On Churn, with n = 7, q₄ produced the best average. Both were near the middle of their systems. The highest occupied queues, q₄ on IMDb and q₅ on Churn, often gave weaker results. No Churn example reached q₆ in this analysis. The authors suggest that the difficulty of churn prediction and the initial performance of its classifier may account for this empty queue.

This is a comparison of what each group contributes at the points when the algorithm considers it. For instance, the strong average for IMDb’s q₂ does not establish that a run which always takes q₂ would reach the same test result. The regular procedure changes the composition of the training set as it makes successive selections. The candidate trained on a lower queue in a later episode already benefits from examples selected and incorporated earlier. The paper points to this shared starting point to explain why some lower queues score better than one might expect from their position.

The analysis also gives context for the weak standard self-training results. The highest queues contain examples whose provisional labels are readily reproduced. The authors suggest that these examples may frequently receive high confidence. The validation advantage of the middle queues shows that ease as measured through this process can diverge from usefulness for further training. The middle position identifies a kind of disagreement history that happened to produce helpful groups under these experimental conditions.

What the network’s representations reveal about the selected examples

The paper asks whether the highest queues contain examples that closely resemble the current training data. It represents each text by the output of the last hidden layer of the classifier, immediately before the prediction layer. Those numbers describe the features available to the classifier when it makes its decision. The representations are obtained at each episode, so they reflect the classifier’s learned features at that point.

The comparison uses cosine similarity, which measures alignment through a dot product normalized by lengths. The episode-level similarities are averaged as follows.

(1/K) Σₑ₌₁ᴷ cosine(Tₑ, Qₑ)

Here K counts the self-training episodes included in the average, and e indexes an episode. The Σ symbol denotes summation, with e = 1 as the starting episode and K as the upper bound. The factor 1/K divides the accumulated result by the number of episodes. Tₑ contains the representations of the current training examples at episode e, and Qₑ contains the representations of the queue being compared with them. The function cosine returns the similarity of its arguments. Parentheses delimit the function arguments and the averaging factor, and the comma separates the two inputs.

The paper specifies Tₑ as a real-valued matrix with mₑ × d entries in its row and column dimensions, where mₑ is the number of training examples at episode e and d is the representation dimension. The corresponding dimensions for Qₑ are pₑ × d, with pₑ denoting the number of examples in the target queue. Each row describes a text, and the matrices share the same feature dimension. The paper defines the comparison using an L2-normalized dot product, meaning a normalization based on Euclidean length. It leaves the reduction from collections of potentially different sizes to a single similarity per episode unspecified.

For the comparison shown on IMDb, the authors split the analysis by class. The queue examples are grouped according to their pseudo-labels, and the training examples according to their training labels. This lets the comparison examine positive and negative reviews separately. In both classes, the examples in the highest queue were more similar to the training data in the network’s representation than were the examples in the designated queues.

This supports the explanation that the highest queue often offers more of what the classifier already represents in much the same way. It also gives the authors a concrete sense in which the selected examples extend beyond the training set. The evidence is based on similarity in a representation learned for the task. The analysis does not assign a human-interpretable reason for each difference, such as new vocabulary or a particular kind of expression of sentiment. It relates the sampled material to the classifier’s own representation of the examples it has seen.

Diversity and usefulness can diverge

The paper also measures how different an expanded training set would be from the current set if it included a particular queue. It does this by joining the queue’s representations to the training representations and computing the distance from the original collection on its cosine-based measure. As with the validation analysis, these comparisons examine possible additions along a run that continues to select only its designated queues.

(1/K) Σₑ₌₁ᴷ (1 − cosine(Tₑ, concat(Tₑ, Qₑ)))

Here K is the episode count, e is the episode index, and Σₑ₌₁ᴷ adds the term for each episode from 1 through K. The factor 1/K converts that sum into an average. Tₑ holds training representations and Qₑ holds the target queue’s representations at episode e. The function concat stacks the rows of Qₑ beneath those of Tₑ. The first argument of cosine is the original training representation matrix and the second is the expanded matrix. The expression 1 − cosine(…) turns higher similarity into a smaller diversity value. Parentheses group operations and delimit function inputs, and commas separate those inputs.

On IMDb, q₂ and the designated queues score high on this measure of diversity. The connection to the validation analysis is that q₂ also yielded the best average validation performance among individual queues. The lower queue q₀ adds an important qualification. By the diversity measure it introduced more change than q₃ and q₄, yet it did not help validation performance in the same way as the most useful groups. The paper suggests the difficulty of these examples or errors in their provisional labels as possible explanations.

The authors report a similar relationship for Churn, where q₄ introduced the most diversity and also led the average queue-level validation comparison. Taken together, these results support selection of examples that bring different material the classifier can learn to handle. A large change in representation by itself leaves open whether the pseudo-labels will be usable. Agreement history by itself leaves open whether the examples add anything substantial. The designated-queue procedure makes its choice using the combined effect on validation performance.

Drawing confident predictions from every queue

The next experiment alters the acquisition rule directly. Instead of taking a single existing queue, the authors construct a new group across queue boundaries. They rank the examples inside each queue by prediction confidence and combine the top r% of each. Here r is the percentage selected within a queue, and the experiment uses r = 10%. The authors use a small sampling rate so the classifier can take in confident examples gradually. The newly assembled group is treated as the designated queue for that episode.

This changes where confidence is applied. Standard self-training uses it to select from the unlabeled pool as a whole. The diverse-queue procedure applies the ranking separately within each group of agreement histories. A text in a lower queue can therefore enter the new training batch if it ranks high enough within its own group. Which queues contribute more examples still depends on their sizes, and selection within each queue still depends on the classifier’s confidence.

IMDb test macro-F1 for diverse sampling across queue counts

Diverse sampling works best with the largest tested queue count, and the scores vary across settings.

IMDb test macro-F1 for diverse sampling across queue countsDiverse sampling with 3 queues: 76.83Diverse sampling with 3 queues76.83Diverse sampling with 5 queues: 76.77Diverse sampling with 5 queues76.77Diverse sampling with 7 queues: 78.03Diverse sampling with 7 queues78.03Diverse sampling with 9 queues: 75.34Diverse sampling with 9 queues75.34Diverse sampling with 11 queues (this paper): 80.71Diverse sampling with 11 queues (thispaper)80.71
The numbers
System or settingmacro-F1
Diverse sampling with 3 queues76.83
Diverse sampling with 5 queues76.77
Diverse sampling with 7 queues78.03
Diverse sampling with 9 queues75.34
Diverse sampling with 11 queues (this paper)80.71

The best diverse-queue result on IMDb is 80.71 test macro-F1 at n = 11. The paper reports a gain of 2.44 points over the 78.27 from its best designated-queue IMDb run. The scores across queue counts matter to the interpretation. At n = 5, the same count that gives the best designated-queue IMDb result, the diverse-queue variant achieves 76.77. The reported improvement compares the best settings of the two strategies. It does not show that changing the sampling strategy at a fixed queue count always improves the classifier.

On Churn the best diverse-queue result is 68.56 test macro-F1 at n = 9. The strongest designated-queue result is 69.90, and the paper reports a decrease of 1.34 points between them. The same rule for drawing texts across queues thus has a different effect on Churn from the effect seen in the best IMDb setting. On Churn, the authors say, highly confident examples in upper queues often belong to the negative class. Those are examples labeled as showing no intent to leave. Selecting confident examples from each queue can favor that class even when it draws from a variety of agreement histories.

Training with class-weighted loss is intended to offset imbalance in the learning signal, but the sampling problem also concerns which positive examples reach the training set at all. The authors argue that the Churn classifier still needs positive examples that bring useful variation beyond the positive texts it has seen. The diverse-queue experiment shows why a sampling rule based on several levels of difficulty can still perform worse when its choices within those levels favor one class.

Different paths can lead to the same queue

The final analysis considers what queue position leaves out. A text can finish in the lowest queue because its prediction never agreed with its provisional label. Another can finish there after progressing to a higher queue and then receiving predictions that disagree with the label. A third can alternate between adjacent positions and arrive at the same endpoint. The final grouping puts these texts together, although their prediction histories reveal different behavior during training.

The authors track movements during each episode and calculate the standard deviation in movement patterns among examples ending in the same queue. They then average the deviations over training episodes. The analysis asks whether examples that share an endpoint also tend to have similar paths. On both datasets, movement varies more in the middle queues than in the lower or higher ones. The paper relates the pattern at the ends of the system to texts that are consistently hard or consistently easy for the learner.

Greater variability in the middle queues is relevant because groups near the middle performed strongly in the validation analysis. A sampler that treats the whole queue as a unit acts on a group whose members can have quite different prediction histories. The authors propose that a finer policy might use those histories to distinguish examples within such a group. The movement experiment establishes that there is variation available for such a policy to use. Testing a policy that actually learns from the histories remains a separate question.

Limitations

Limits identified by the authors

The most direct risk is that the algorithm checks one prediction against another prediction. A wrong provisional label can remain easy for the network to reproduce and move up the queues. An example with a correct provisional label can be pushed down by erroneous predictions during training. The authors present validation-based choice as a way to reduce the effect of these movements. When a sampled group contains misleading examples, training with that group may fail to improve validation performance. This protection operates on the proposed addition as a whole, so a winning queue may still contain errors.

The authors also identify the cost of searching for a designated queue. The full comparison can train a separate classifier with each candidate queue, in addition to the training needed to create the queues. A high queue count can provide a more detailed grouping while requiring more candidate fits. The observed tendency for winning queues to be near the middle or higher up suggests a possible shortcut. The paper gives no timing comparison to establish what would be saved or how often a restricted search would miss a useful group.

The Churn results make class balance a stated limitation of the diverse variant. A rule centered on confident predictions can favor examples from the more readily predicted class. Weighting the training loss addresses how much influence the present examples receive. The examples absent from a sample pose a different problem, particularly where the classifier needs new kinds of positive cases. The paper attributes the worse diverse-queue Churn result to this imbalance and identifies the need for more useful positive examples.

The authors also treat their analysis of movement as a basis for future work. It shows that texts grouped together at the end of an episode can have drawn different predictions along the way. The paper does not train a classifier with a policy that uses that history to make individual selection decisions. Its suggestions about finer sampling and eliminating some of the trial training are hypotheses grounded in the movement analysis.

Limits visible in the experimental design

IMDb and Churn give the method two text-classification settings, each with a small initial training set and a large unlabeled pool. Both tasks are binary. The results support the sampling method for these setups and leave open how the same procedure would behave with more classes, different training sizes, or other kinds of prediction. In a task with more classes, for example, aggregate queue behavior may conceal which individual classes provide the accepted examples. The Churn variant already shows that a broad sample by one measure can still have thin coverage of a class that matters to the evaluation.

The difference in starting performance lets the paper compare a higher-performing classifier with a lower-performing one. It does so across different tasks, architectures and collections of text. A comparison at fixed task and architecture with varying seed quality would isolate initial performance more directly. In the reported experiments, the larger gain over the supervised classifier on IMDb is consistent with the authors’ interpretation about a stronger starting point, while other differences between the tasks could contribute to the pattern.

The comparison with standard self-training shows that the full Leitner procedure helped. It leaves some uncertainty about which part of the procedure accounts for how much of the gain. Queue construction changes the groups offered to the validation set, and trying each group changes the decision rule used to admit examples. The paper studies candidate queues and compares a different sampling rule within the queue system. A validation search over groups formed without agreement histories, with otherwise comparable training effort, would provide a more direct measure of the contribution of the Leitner grouping itself. No such matched comparison is reported.

The same distinction applies to sample composition. The designated-queue rule takes an entire group, and the groups can differ in size and class mixture. The queue-level validation analysis therefore reflects a combination of agreement history, the number of examples, provisional label quality and the way classes are represented in each group. It shows that particular groups are more effective additions during these runs. It does not establish a universal amount of difficulty, diversity or confidence that training examples should have.

The similarity analyses speak to the state of the network doing the learning. They use representations produced by that network and measure how those representations align when queue examples are compared with or added to the training set. This supports an account in which designated queues bring examples the classifier sees as less redundant. It leaves the exact features responsible for the difference open. The diversity score also has no direct access to the correctness of the pseudo-labels. The weaker validation performance of the low queue with relatively high diversity makes that distinction consequential.

The main scores average across five partitions and report significance for the comparisons with the strongest baselines. The score table gives point estimates for the tested methods, without showing the spread of outcomes across partitions for each configuration. This limits what can be inferred about how stable a particular queue count or sampling choice would be in a fresh run. The diverse-queue results illustrate the sensitivity directly through scores that change substantially across the tested counts, including settings where that variant scores below the designated-queue version.

Finally, the capacity to obtain pseudo-labels from another classifier follows from how the algorithm is designed. The experiments use their task classifiers to supply those labels. They do not include a controlled comparison that changes the labeler architecture while holding the downstream classifier fixed. The paper therefore establishes architectural flexibility in the formulation, with the reported performance gains measured in the specific configurations tested.

What came after

There are no documented follow-up studies to trace here. The paper closes by proposing finer selection within queues, extension to other iterative learning methods such as boosting, and applications where scarce labeled data has limited the use of neural classifiers.

The movement analysis gives the first of these directions a concrete starting point. Texts can finish in the same queue after following different paths, particularly in the middle of the system. A follow-up could test whether those paths predict which examples improve the classifier and whether they can guide selection with fewer candidate training runs. The paper establishes the variation in paths and the performance of its validation-based selector. It leaves the test of a selector based on those paths open.

Cite

Cite as Hadi Amiri. 2019. Neural Self-Training through Spaced Repetition. Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers).

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

@inproceedings{hadi2019neural,
  title = {{Neural Self-Training through Spaced Repetition}},
  author = {Hadi Amiri},
  booktitle = {Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)},
  year = {2019},
  doi = {10.18653/v1/n19-1003},
  url = {https://doi.org/10.18653/v1/n19-1003}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/amiri-2019-neural-self-training-through-spaced/