Co-Training
Co-training is a semi-supervised learning method in which two classifiers learn to predict the same label from different descriptions, or views, of each example. Starting with a small set of labeled examples, the classifiers assign pseudo-labels to selected unlabeled examples. A confident prediction in one view can then provide a training example for the other. Avrim Blum and Tom Mitchell introduced the method in 1998 to study how paired views can help when labels are scarce.[1]
Overview
Consider a university course page. Its syllabus might make the page easy to recognize even if an incoming link uses an unfamiliar course number. Once the page-text classifier assigns a course label, the link-text classifier can learn from that number. The information also flows the other way. An informative link can supply a label for a page whose own wording the first classifier has never seen. The pairing matters because both descriptions belong to the same page.[1]
| Property | Original co-training method |
|---|---|
| Introduced | Blum and Mitchell, Conference on Computational Learning Theory (COLT), 1998.[1][2] |
| Input | A labeled set and an unlabeled pool, with two views of each example.[1] |
| Base learners | One classifier for each view. The web experiment used two naive Bayes classifiers.[1] |
| Training signal | Both classifiers contribute predicted labels to a shared training set.[1] |
| Output evaluated | Predictions from either view alone and from a combination of the two.[1] |
History and origin
Blum and Mitchell presented Combining Labeled and Unlabeled Data with Co-Training at the 11th Annual Conference on Computational Learning Theory. They gave a mathematical model of learning from two views and tested a practical algorithm on university web pages. The paper received a ten-year Test of Time Award at the 2008 ICML/COLT conferences. The joint award session identified it as a COLT 1998 paper.[1][2][3]
Algorithm
Each labeled example contains both views and a known class. Each unlabeled example contains the paired views alone. The original binary classification algorithm draws a small working pool from the unlabeled examples. In each round, the classifiers train on the same labeled rows, each using its own columns. Each classifier selects its most confident positive and negative predictions in the pool. Both sets of selections join the shared labeled set, and fresh examples replenish the pool.[1]
Pseudocode
The following describes a round of the original procedure. A selected example keeps both of its views when it enters the labeled set.[1]
Draw a working pool from the unlabeled examples.
Repeat for the chosen number of rounds:
Fit the first classifier using the first view of the labeled set.
Fit the second classifier using the second view of the labeled set.
For each classifier, select its p strongest positive predictions
and n strongest negative predictions from the working pool.
Add the selected examples and their assigned labels to the shared set.
Remove the selected examples from the pool and refill it at random
from unused unlabeled examples.
Hyperparameters and practical defaults
In the web experiment the pool held 75 examples. Each classifier chose one positive and three negative examples per round, and each run lasted 30 rounds. The authors chose the one-to-three quota to approximate the class proportions in their corpus. Other studies used different quotas. For instance, Nigam and Ghani took one document per class per classifier in a two-class text experiment.[1][4]
Combining the two classifiers
Blum and Mitchell's combined classifier scored each class by multiplying the two classifiers' estimated probabilities. They also reported the results for each classifier separately.[1]
The distinction between this scoring rule and a joint probability matters when class frequencies differ. For two views that are independent given the class, Bayes' rule gives the following expression for a class with positive prior probability.[5]
Each single-view posterior already includes the class prior. Dividing once by that prior leaves one copy in the combined model. If all classes have equal priors, the division leaves the ranking unchanged.[5]
Key assumptions
| Assumption | Meaning in the original analysis |
|---|---|
| Sufficiency | A target function exists for each view. In the idealized model, either view contains the information needed to determine the true label.[1] |
| Compatibility | The two target functions assign the same label to paired views with probability one. The fitted classifiers can still disagree while learning.[1] |
| Conditional independence | For the paper's noise-learning theorem, once the true label is known, observing one view provides no further information about the other.[1] |
Writing the paired views as and and the true label as , conditional independence means
These are distinct conditions. Two copies of the same noisy measurement can provide exactly the same clues while telling each classifier little beyond what it already knows. In the original web experiment, the authors also acknowledged that real pages could have inconsistent views.[1]
Co-training vs. self-training
In self-training, a classifier adds its own confident predictions to its training data. Co-training gives each classifier access to labels selected using evidence it could not see. In the original shared-set implementation, the classifier also sees the examples it selected itself. A mistaken pseudo-label can therefore affect both learners.[1][4][6]
Variants and extensions
Different extensions change the type of supervision, the number of learners or the source of their differences.
Co-EM
Kamal Nigam and Rayid Ghani combined co-training with expectation-maximization in 2000. In co-EM, one classifier assigns a probability distribution over classes to every unlabeled example. The classifier for the other view trains on those soft labels alongside the original labels, then returns its own updated distributions. Later rounds can revise the probability assigned to a document.[4]
Tri-Training
Zhi-Hua Zhou and Ming Li's 2005 tri-training algorithm initializes three classifiers on bootstrap samples of the labeled data. Agreement between two classifiers makes an unlabeled example eligible to teach the third. The algorithm also estimates the pair's error and considers the number of proposed training examples before updating. All three classifiers can use the same features.[7]
Democratic Co-Learning
Yan Zhou and Sally Goldman proposed democratic co-learning in 2004. Several learning algorithms operate on the same features. Their different inductive biases can produce different predictions, and the group uses voting to assign labels. Diversity thus comes from the choice of learners.[8]
Single-view co-training
Nigam and Ghani investigated whether randomly partitioning a document vocabulary could substitute for a natural split. Their results depended on the dataset. On News5, which used five computer-related newsgroups, the incremental co-training algorithm with a random split had 28.0% error, compared with 27.0% for single-view self-training. Co-EM with a random split had 29.9% error, compared with 31.2% for single-view EM.[4]
Multi-Head Co-Training
Mingcai Chen and colleagues published Multi-Head Co-Training at AAAI in 2022. Several classification heads share part of one neural network. For each head, the other heads' predictions on weakly augmented images supply pseudo-labels, and the receiving head trains on a strongly augmented image. Table 1 reports 21.68% error on CIFAR-100 with 10,000 labels.[9]
Deep Co-Training
Siyuan Qiao and colleagues' 2018 Deep Co-Training method uses multiple deep neural networks for image classification. The training objective encourages agreement on unlabeled images. A separate loss uses perturbed images to discourage the networks from learning identical decision functions. The authors evaluated the approach on SVHN, CIFAR-10, CIFAR-100 and ImageNet.[10]
Worked example: web page classification
Blum and Mitchell classified 1,051 pages collected from computer science departments at four universities. Course home pages made up 22% of the collection. The first view represented words on the page. The second represented the anchor text of links pointing to that page from other pages in the collection.[1]
Each of five random splits set aside 263 pages for testing. Training began with 12 labeled pages, three course pages and nine others. The remaining 776 pages supplied the unlabeled pool. Table 2 of the paper reports the following mean test error across the five splits.[1]
| Classifier | Using the 12 labels alone | With co-training |
|---|---|---|
| Page text | 12.9% | 6.2% |
| Incoming link text | 12.4% | 11.6% |
| Combined | 11.1% | 5.0% |
The gain was uneven. The page classifier's error fell by 6.7 percentage points, while the link classifier's fell by 0.8 points. The authors suggested the shorter link descriptions might limit what that classifier could learn.[1]
Co-training in NLP
| Task | How the study obtained different evidence |
|---|---|
| Named entity recognition | Michael Collins and Yoram Singer classified extracted names as people, organizations or locations. One set of rules examined the name's spelling or words within it, while another examined its grammatical context.[11] |
| Statistical parsing | Anoop Sarkar used a lexicalized grammar, a corpus of sentences with annotated parse trees and additional unannotated sentences. The co-training procedure used a tagger and a parser to learn from those sentences.[12] |
| Cross-lingual sentiment analysis | Xiaojun Wan used machine translation to create Chinese and English versions of product reviews. The classifiers learned from labeled English reviews and unlabeled Chinese reviews, using the features of one language per classifier.[13] |
Co-training and modern semi-supervised learning
Different algorithms make different uses of two representations of an image. FixMatch takes a confident prediction from a weakly augmented image and trains the same model to reproduce it on a strongly augmented copy. Deep Co-Training maintains distinct predictors. Multi-Head Co-Training shares some weights but uses predictions from the other heads when supervising a given head.[9][10][14]
When does co-training help?
A useful split lets one view identify examples that still teach the other view something. Nigam and Ghani tested this idea on News 2x2, an artificial dataset with independent, informative views built from newsgroup posts. Incremental co-training had 3.7% error using the designed split and 5.5% using a random split. The comparison isolates a property of that dataset. Its results need not carry over to an arbitrary division of features.[4]
Failure modes
Confidence can outlast accuracy. In a study of base noun phrase identification, David Pierce and Claire Cardie found that co-training closed 36% of the error gap between systems trained with 500 and 211,000 labeled examples. Errors accumulating in the automatically labeled examples limited further improvement. Having a person correct selected labels gave the authors a way to study the effect of that noise.[6]
Theoretical foundations
Compatibility restricts the possible labels. Blum and Mitchell represented pairs of views as a bipartite graph. Each distinct value in the first view is a vertex on the left, each distinct value in the second a vertex on the right, and each observed pair joins two vertices. Under full compatibility the label must be constant throughout a connected component. An unlabeled pair can therefore constrain possible classifiers even before the class of its component is known.[1]
The original learnability theorem has additional conditions. Under conditional independence, a weakly useful binary predictor in the first view can provide noisy labels for the second. If the second view's target class is learnable in the PAC model with random classification noise, Theorem 1 establishes learnability from that initial predictor and unlabeled data. The separately reported web experiment used an iterative selection heuristic.[1][15]
Agreement and expansion give further results. Under conditional independence, Sanjoy Dasgupta, Michael Littman and David McAllester derived bounds for rules that can abstain. Unlabeled data can establish agreement up to a permutation of the class names, and labeled examples can identify the permutation. Maria-Florina Balcan, Blum and Ke Yang later analyzed iterative co-training under a weaker distributional assumption called expansion. Roughly, when both learners cover some but not all positive examples, enough examples lie in the part covered by just one. Their guarantee also requires base learners with one-sided error.[15][16]
Implementation considerations
The seed labels, unlabeled pairs and held-out evaluation data play different roles. Blum and Mitchell compared each view and the combined classifier against a baseline trained on the same 12 seed labels. Reporting those three comparisons showed that the incoming-link classifier improved much less than the page-text classifier, a difference concealed by the combined score alone.[1]
Library support
The Python package sslearn provides a two-view CoTraining implementation as well as TriTraining and DemocraticCoLearning. Its estimators follow the scikit-learn fit and predict interface. The sslearn API identifies which wrappers require two input views and which accept different base learners.[17]
Datasets and benchmarks
The original web collection and News 2x2 test different features of the algorithm. A web page and its incoming links are naturally paired. News 2x2 was constructed so the two parts of a document carry independently sampled evidence for the class. The image recognition studies use another setting again, in which distinct predictors or augmented versions of an image supply the views.[1][4][9][10]
Connections to related ideas
Co-training is an example of multi-view learning. Other methods can also use paired observations with a different training objective. In CLIP, for example, image and text encoders learn to identify which caption belongs with which image in a batch. The observed pair supplies the supervision for contrastive learning. Classical co-training instead needs a predicted class for an unlabeled example so that another view can learn from it.[1][18]
Strengths and limitations
A co-trained classifier can use its own view at prediction time, even when the other view helped to train it. In a web collection, that makes it possible to measure separately how much the text and the links gained from the unlabeled pages. The same experiment illustrates a limitation. More examples give a classifier more training material, but a short or ambiguous link can still provide little evidence about the destination. The practical value depends on what each view reveals and the accuracy of the labels it supplies.[1][6]
Frequently asked questions
Is co-training the same as ensemble learning?
Combining classifiers at prediction time is optional in co-training. The defining interaction takes place during training, when a label inferred from one view becomes training data for the other. The original paper evaluated both individual and combined predictions.[1]
Can co-training be used for regression?
Yes. In their 2005 COREG algorithm, Zhou and Li used two nearest-neighbor regressors with different distance metrics. Each regressor proposes a numeric label for the other. Its estimate of confidence depends on whether adding that example improves predictions on nearby labeled points. The final prediction averages the two regressors' estimates.[19]
What if I cannot easily split my features into two views?
Tri-training can use bootstrap samples to create different learners from one set of features. Democratic co-learning uses different learning algorithms. The results of random vocabulary splits in text experiments depended on the dataset and the algorithm.[4][7][8]
Why use two views instead of just self-training?
An example already obvious to one classifier can expose the other to new evidence about the same class. In name classification, for example, a familiar honorific can help label an instance whose surrounding context is new to the context classifier. That transfer depends on the inferred label being reliable.[6][11]
Has deep learning made co-training obsolete?
Researchers have adapted co-training to neural networks. Deep Co-Training uses separate networks, and Multi-Head Co-Training places several predictors in one model. Both address the question of how to keep learners sufficiently different to learn from each other.[9][10]
Explain like I'm 5 (ELI5)
Imagine two people sorting picture books about animals. One sees only the covers, the other only the titles. They start with a few books labeled "cat" or "dog." If the first person recognizes a cat on the cover, the second can use that book to learn a new word for cat. On another book, the title might be the clearer clue. If either person guesses wrong, the other can learn the wrong lesson. Co-training works the same way with two descriptions of an example.[1][6]
Continue reading
- Self-trainingSelf-training is a semi-supervised learning procedure in which a model trained on a small labeled set is used to generate predictions on unlabeled dataMentioned 4 times above
- Semi-Supervised LearningSemi-supervised learning is a machine learning approach that trains a model on a small amount of labeled data together with a large amount of unlabeled dataMentioned twice above
- FixMatchFixMatch is a semi-supervised learning algorithm for image classification that trains a model on a small set of labeled images together with a larger pool of unlabeled ones by combining two older ideas…Listed in See also
- Contrastive LearningContrastive learning is a family of machine learning methods that learn representations by pulling similar (positive) pairs of data points closer together in an embedding space while pushing dissimilar…Listed in See also
- Active LearningActive learning is a subfield of machine learning in which the learning algorithm interactively chooses which data points it wants labeledListed in See also
- Knowledge DistillationKnowledge distillation is a training method in which a student model learns from signals produced by a teacher model.Listed in See also
More from See also
More to read
Topics:Machine Learning
References
- ^1 ^2 ^3 ^4 ^5 ^6 ^7 ^8 ^9 ^10 ^11 ^12 ^13 ^14 ^15 ^16 ^17 ^18 ^19 ^20 ^21 ^22 ^23 ^24 ^25 ^26 ^27 ^28Avrim Blum and Tom Mitchell. Combining Labeled and Unlabeled Data with Co-Training. COLT, 1998, pp. 92-100.
- ^1 ^2Tom Mitchell. Selected Publications. Carnegie Mellon University. Entry for the 1998 COLT paper and the 2008 Test of Time Award.
- ^ICML 2008. Detailed Sessions. Joint award paper session, Helsinki, 2008.
- ^1 ^2 ^3 ^4 ^5 ^6 ^7Kamal Nigam and Rayid Ghani. Analyzing the Effectiveness and Applicability of Co-training. CIKM, 2000, pp. 86-93.
- ^1 ^2Josef Kittler, Mohamad Hatef, Robert P. W. Duin and Jiri Matas. On Combining Classifiers. IEEE Transactions on Pattern Analysis and Machine Intelligence, 1998, section 2.1.
- ^1 ^2 ^3 ^4 ^5David Pierce and Claire Cardie. Limitations of Co-Training for Natural Language Learning from Large Datasets. EMNLP, 2001.
- ^1 ^2Zhi-Hua Zhou and Ming Li. Tri-Training: Exploiting Unlabeled Data Using Three Classifiers. IEEE Transactions on Knowledge and Data Engineering, 2005.
- ^1 ^2Yan Zhou and Sally Goldman. Democratic Co-Learning. IEEE International Conference on Tools with Artificial Intelligence, 2004, pp. 594-602.
- ^1 ^2 ^3 ^4Mingcai Chen, Yuntao Du, Yi Zhang, Shuwei Qian and Chongjun Wang. Semi-supervised Learning with Multi-Head Co-Training. AAAI, 2022.
- ^1 ^2 ^3 ^4Siyuan Qiao, Wei Shen, Zhishuai Zhang, Bo Wang and Alan Yuille. Deep Co-Training for Semi-Supervised Image Recognition. ECCV, 2018, pp. 135-152.
- ^1 ^2Michael Collins and Yoram Singer. Unsupervised Models for Named Entity Classification. EMNLP/VLC, 1999.
- ^Anoop Sarkar. Applying Co-Training Methods to Statistical Parsing. NAACL, 2001.
- ^Xiaojun Wan. Co-Training for Cross-Lingual Sentiment Classification. ACL-IJCNLP, 2009, pp. 235-243.
- ^Kihyuk Sohn and colleagues. FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence. NeurIPS, 2020.
- ^1 ^2Sanjoy Dasgupta, Michael L. Littman and David A. McAllester. PAC Generalization Bounds for Co-training. NIPS, 2001.
- ^Maria-Florina Balcan, Avrim Blum and Ke Yang. Co-Training and Expansion: Towards Bridging Theory and Practice. NIPS, 2004.
- ^José L. Garrido-Labrador and contributors. sslearn API documentation. Wrapper estimators.
- ^Alec Radford and colleagues. Learning Transferable Visual Models From Natural Language Supervision. ICML, 2021, pp. 8748-8763.
- ^Zhi-Hua Zhou and Ming Li. Semi-Supervised Regression with Co-Training. IJCAI, 2005, pp. 908-915.
Improve this article
Add missing citations, update stale details, or write a clearer explanation. Anyone can edit: changes go live when you publish, and every edit is checked by an editor.
8 revisions · v8 · 3,010 words · full history
Fact-checks are independent of edits: a reviewer re-verifies the article against its sources and stamps the date. How we verify
Research and drafting on this wiki are AI-assisted, under named human editorial standards. How AI is used here
Reviewer note: Blum and Mitchell trained both classifiers from one shared set and averaged the reported web-page errors over five random splits. The mathematical guarantee has stronger assumptions than the empirical procedure. Later studies document both successful transfers between views and accumulation of incorrect labels.
Cite this page: AI Wiki. "Co-Training." aiwiki.ai, updated 1 Dec 2026, fact-checked 1 Dec 2026. CC BY 4.0. https://aiwiki.ai/wiki/co-training


