Semi-supervised Voting Ensemble

Machine Learning
Introduced by
Zhou, Z.-H. & Li, M. (tri-training); Blum & Mitchell (co-training)
Year
1998–2005
Type
Semi-supervised ensemble (voting)
Family
Machine learning

What does it do?

A semi-supervised voting ensemble trains several classifiers on a small labeled set and then lets them label unlabeled examples for one another, adding an example to a training set only when the other classifiers agree on its label and the additional conditions of the tri-training rule are met.

Predictions on new data are made by voting across the classifiers. The method is aimed at settings where labels are expensive and unlabeled examples are plentiful.

The intuition behind the method

Think of three analysts who start from the same small set of labeled cases but are trained in different ways. When two of them independently agree on an unlabeled case, that case can be given to the third analyst as an extra training example, which is the tri-training idea of Zhou and Li. Each analyst retrains on the enlarged set, and the process repeats. At prediction time the analysts vote. The agreement check is the key step: it is meant to make the added labels more reliable than those a single model would produce by labeling its own predictions.

History

Blum and Mitchell (1998) introduced co-training, in which two classifiers trained on different views of the same examples label unlabeled examples for each other, and they gave a PAC-style analysis of this setting. Zhou and Li (2005) proposed tri-training, which generates three classifiers from the labeled set and labels an unlabeled example for one classifier when the other two agree, under further conditions given in their paper. Their version does not require a multi-view feature split or a particular base learning algorithm.

When to use it

Choose this method when labeled examples are scarce, unlabeled examples are plentiful, and the unlabeled data comes from roughly the same distribution as the labeled data. It fits classification problems in which you can build several genuinely different base learners. Do not use it when the unlabeled pool is also small, when the labeled set is already large enough to train the base learners well, when the base learners are near-copies of one another (their agreement then says little), or when the unlabeled data has a different class balance from the labeled data, because agreement-based pseudo-labels will inherit that bias.

Limitations and considerations

  • Its benefit depends on genuine diversity among the base classifiers; similar learners tend to agree on the same errors.
  • Pseudo-labels inherit any mismatch between the unlabeled and labeled distributions.
  • Repeated retraining of several models on a large unlabeled pool is computationally costly.
  • The additional conditions of the tri-training rule, the stopping criterion and the number of rounds must be set from the original paper and checked on validation data.
  • The cited papers report an analysis and experiments on particular settings (a PAC-style analysis by Blum and Mitchell; UCI data sets and web-page classification in Zhou and Li). They do not establish performance across all datasets.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Uses unlabeled examples, which can help when labeling is the bottleneck.
  • The agreement test requires several classifiers to concur before an example enters the training pool, which limits how much one model's errors can spread.
  • Voting over the final classifiers can reduce the variance of individual member predictions when the members are reasonably diverse, a general ensemble property.
  • Tri-training as described by Zhou and Li does not require a multi-view feature split or a particular learning algorithm, so the base learners can be chosen freely.
  • When features divide naturally into two views, the co-training setting of Blum and Mitchell can be used.

Applications

  • Web page and document classification, the setting used in the experiments of both Blum and Mitchell and Zhou and Li.
  • Text categorization with a small seed set of verified examples.

How it works

How it works

1

Several base classifiers are set up, ideally of different types or trained on different feature views. Diversity matters: classifiers that make the same mistakes will agree on wrong labels, and their agreement then carries little information.

2

Each classifier is trained separately on the labeled data. Differences in algorithm, random seed or feature subset are what make their agreement informative. Zhou and Li generate their three classifiers from the original labeled set, and the diversity among them is what makes their agreement informative.

3

Each unlabeled example is passed to the classifiers. In the tri-training rule of Zhou and Li, an unlabeled example is labeled for one classifier when the other two agree on its label, under additional conditions described in their paper. Those conditions must be applied as specified there; agreement alone is not the full rule. Agreement is used in place of trusting any single model's confidence. Requiring all members to agree is a stricter variant chosen by the practitioner, not part of the published procedure. It admits fewer pseudo-labels and should be compared with the published rule on held-out labeled data before use.

4

Each classifier is retrained on its original labeled examples together with the pseudo-labeled examples added for it. Rounds continue until no further examples pass the agreement test or a stopping rule set in advance is met.

5

On test data, each classifier predicts a label and the final label is the majority choice, as the formula shows. Averaging predicted probabilities (soft voting) is an alternative when the classifiers are well calibrated; the formula given covers hard voting only.

Formula
\hat{y} = \arg\max_c \sum_{k=1}^{K} \mathbf{1}[h_k(x)=c]

Common pitfalls

  • Using identical or highly correlated classifiers as the voting members, which makes agreement nearly certain and pseudo-labels unreliable.
  • Ignoring distributional shift between labeled and unlabeled data, leading to systematically wrong pseudo-labels.
  • Loosening the agreement conditions too early in training, flooding the training pool with noisy pseudo-labels before the base classifiers are reliable.
  • Evaluating only on pseudo-labeled data rather than a held-out labeled test set, producing optimistic accuracy estimates.
  • Failing to monitor class balance in the pseudo-labeled pool, which can cause the ensemble to collapse toward the majority class.

Frequently asked questions

How many classifiers do I need in the voting ensemble?

Co-training as described by Blum and Mitchell uses two classifiers on two views. Tri-training as described by Zhou and Li uses three classifiers, where the other two must agree before a label is passed to the third. With two classes, an odd number of voters avoids ties under hard voting, so three is the simplest set-up.

What happens if unlabeled data has a different class distribution than labeled data?

Pseudo-labels will be biased toward the classes that dominate the unlabeled pool, which can degrade the final model. If you suspect distributional shift, monitor the class balance of the pseudo-labeled examples in each round.

How do I set the pseudo-labeling rule and stopping criteria?

Tri-training as described by Zhou and Li labels an example for one classifier when the other two agree, under additional conditions given in their paper, which should be implemented as specified there. A stricter variant, such as requiring all members to agree, is a design choice of your own and not part of that procedure; if you use it, compare it with the published rule on a labeled validation set kept separate from the training pool. Choose the stopping rule and the number of rounds the same way.

Is soft voting better than hard majority vote here?

Soft voting averages predicted probabilities and is the better choice when the classifiers are well calibrated. Hard voting, the form shown in the formula, is simpler and is preferable when probability estimates are unreliable.

How does this differ from standard self-training?

Standard self-training uses a single model to label its own predictions, which can reinforce that model's errors. A voting ensemble uses agreement across several models as a filter before an example is added, which is the purpose of the agreement test in tri-training.

Related methods

Sources

  1. Zhou, Z.-H., & Li, M. (2005). Tri-training: Exploiting unlabeled data using three classifiers. IEEE Transactions on Knowledge and Data Engineering, 17(11), 1529–1541.

    Open DOI reference
  2. Blum, A., & Mitchell, T. (1998). Combining labeled and unlabeled data with co-training. Proceedings of the 11th Annual Conference on Computational Learning Theory (COLT), 92–100.

    Open DOI reference