- Introduced by
- Goldberg, A., Li, M., & Zhu, X. (and others in stream learning community)
- Year
- 2000s–2010s
- Type
- Incremental / stream-based semi-supervised learning framework
- Family
- Machine learning
What does it do?
Online semi-supervised learning trains a classifier on a data stream in which most instances arrive unlabeled and only some can be labeled.
Each instance is processed once, and the model is updated incrementally: labeled examples anchor the classes, while the structure of unlabeled examples helps refine the decision boundary. It is intended for high-volume settings where labeling every instance is too costly.
The intuition behind the method
Consider a spam filter that receives a continuous flow of messages, of which reviewers can label only a small share. The model updates on each arriving message. Labeled messages show what spam and non-spam look like, and unlabeled messages contribute through assumptions about their structure, such as nearby messages tending to share a label. The model never holds the full history in memory; it adapts as the stream moves forward, so its decision boundary is shaped both by the few labels it has received and by the unlabeled data it has seen.
History
Semi-supervised learning on static datasets has been widely studied for many years, and it provides the background for the online setting. Extending these ideas to streams followed as streaming applications grew. Goldberg, Li and Zhu (2008) is the main citation for the online setting here; their paper presents online manifold regularization as a learning setting with an empirical study. That is one approach within the online semi-supervised area rather than the origin of the field as a whole.
When to use it
Use online semi-supervised learning when data arrives as a continuous stream, labeling every instance is too costly, and the distribution may change over time. It fits text classification on live feeds, fraud or intrusion monitoring, and industrial sensor data with rare fault labels. Do not use it when you have a static, fully labeled dataset, since batch methods are simpler and can make several passes over the data. It is also a poor choice when the stream is too short for the model to collect enough labeled anchors before it ends, because the adaptation benefit then never materialises.
Limitations and considerations
- Pseudo-labels and unlabeled updates can reinforce the model's own early errors: if the first predictions are poor, the unlabeled updates push the model further in the wrong direction.
- The learning rate, the weight given to unlabeled updates, and the labeling budget interact, so tuning them is harder than tuning a batch semi-supervised model on a fixed dataset.
- The benefit of unlabeled data depends on a cluster or manifold assumption holding in the stream. If the data violates it, the unlabeled updates may add noise rather than information.
- Handling sudden concept drift while still gaining from unlabeled data requires a drift detector and a reset policy, and these add design choices that can go wrong.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Each instance is processed once, and memory is bounded by a fixed-size buffer of recent instances, so the full dataset never has to be stored.
- Unlabeled instances can reduce labeling needs when the cluster or manifold assumption holds in the stream; the size of the gain depends on the data and should be checked against a supervised-only baseline.
- Because updates are incremental, the model can follow gradual changes in the data distribution without retraining from scratch.
- The labeling strategy is a separate design choice, so annotation effort can be traded off against accuracy by adjusting how often labels are requested.
- Base learners such as linear models, kernel methods or small neural networks can be used, provided they support incremental updates.
Applications
- Classifying high-volume text streams, such as social media posts or news items, where only occasional labels are available.
- Monitoring industrial sensor signals where fault labels are rare and the signal distribution can shift over time.
- Fraud or intrusion detection, where a small set of confirmed cases anchors a model that must keep pace with incoming traffic.
- Recommendation settings that combine explicit ratings as labeled signal with implicit feedback such as clicks as unlabeled signal.
How it works
How it works
Instances arrive one at a time, or in small mini-batches, from a stream. Unlike batch learning, the model cannot return to earlier data once it has passed, so each instance must be processed and then discarded or summarised. This limits the memory and computation available for each update.
For each incoming instance, a labeling strategy decides whether to request a human label. Common choices are uncertainty sampling, which requests labels where the model is least confident, random sampling, and threshold-based querying. Most instances typically remain unlabeled, so the strategy determines which labels the model ever sees.
After each instance is observed, labeled or not, the model is updated with a semi-supervised objective. Labeled instances contribute a supervised loss. For unlabeled instances this can take the form of manifold regularization, which adds a penalty, scaled by a regularization weight, when the prediction for a new instance differs sharply from predictions for its nearest recent neighbours; pseudo-labeling, which treats the current prediction as a provisional label; or graph-based propagation over a local neighbourhood of recent instances. Neighbourhood-based methods keep a buffer of recent instances of fixed size, so their memory use is bounded by that buffer rather than by the length of the stream.
Model parameters are updated incrementally, typically by online gradient descent or a closely related rule. A decreasing learning-rate schedule limits how far each update can move the model. If a drift detector signals that the data distribution has changed, the model can be adjusted more strongly, for example by reducing the influence of older pseudo-labels.
At any point in the stream, the current model state predicts labels for new instances. Because the model keeps changing, its accuracy at a given moment depends on how much labeled and unlabeled data it has absorbed so far and on whether the stream has recently drifted, so accuracy should be tracked over time rather than read from a single snapshot.
Common pitfalls
- Trusting pseudo-labels early in the stream, before enough labeled instances have anchored the model. Early pseudo-label errors can then be carried into later updates.
- Omitting drift detection, so the model degrades silently when the distribution shifts.
- Keeping a fixed learning rate for the whole stream, which can leave the model unstable in later stages where it should be changing more slowly.
- Evaluating only the final state of the model. Prequential (test-then-train) accuracy tracked over the stream is needed to detect degradation that occurs mid-stream.
- Setting the labeling budget too low in the early phase, which starves the model of the anchor labels it needs to start its semi-supervised updates.
Frequently asked questions
How is this different from regular online learning?
Regular online learning assumes every incoming instance has a label available immediately. Online semi-supervised learning relaxes this: most instances are unlabeled, and the model exploits their structure, through manifold, cluster or smoothness assumptions, to improve beyond what the labeled data alone would support.
How is this different from batch semi-supervised learning?
Batch semi-supervised learning can make several passes over a fixed dataset and can use graph structure built over all of it. Online SSL processes each instance once with bounded memory and builds only local or approximate structure. The size of the accuracy difference depends on the data, so compare the two on a held-out part of your stream.
What is the manifold assumption in this context?
The manifold assumption states that nearby points on the data manifold should receive similar predictions. In online SSL this is enforced locally: when an unlabeled instance arrives, the model is penalized if its prediction differs sharply from predictions on nearby recent instances. This is distinct from the cluster assumption, which concerns where the decision boundary lies relative to low-density regions.
How do I handle concept drift?
Use a drift detector, such as ADWIN or Page-Hinkley, to monitor prediction error or feature statistics. When drift is detected, give more weight to newly labeled instances, reduce reliance on older pseudo-labels, and consider resetting or partially re-initialising the model.
What labeling budget strategy should I start with?
Start with uncertainty sampling, requesting a label when the model's confidence falls below a threshold. This concentrates the annotation budget on instances most likely to improve the model. Combine it with a warm-up phase at the start of the stream in which a higher fraction of instances is labeled, so the model has reliable anchors before it relies on its own pseudo-labels.
Related methods
Sources
Goldberg, A., Li, M., & Zhu, X. (2008). Online manifold regularization: A new learning setting and empirical study. In Proceedings of the European Conference on Machine Learning and Knowledge Discovery in Databases (ECML PKDD), pp. 393–407. Springer.
Open publication referenceSemi-supervised learning. Wikipedia.
Open publication reference