Weak supervision explained

Weak supervision is a paradigm in machine learning, the relevance and notability of which increased with the advent of large language models due to large amount of data required to train them. It is characterized by using a combination of a small amount of human-labeled data (exclusively used in more expensive and time-consuming supervised learning paradigm), followed by a large amount of unlabeled data (used exclusively in unsupervised learning paradigm). In other words, the desired output values are provided only for a subset of the training data. The remaining data is unlabeled or imprecisely labeled. Intuitively, it can be seen as an exam and labeled data as sample problems that the teacher solves for the class as an aid in solving another set of problems. In the transductive setting, these unsolved problems act as exam questions. In the inductive setting, they become practice problems of the sort that will make up the exam. Technically, it could be viewed as performing clustering and then labeling the clusters with the labeled data, pushing the decision boundary away from high-density regions, or learning an underlying one-dimensional manifold where the data reside.

Problem

The acquisition of labeled data for a learning problem often requires a skilled human agent (e.g. to transcribe an audio segment) or a physical experiment (e.g. determining the 3D structure of a protein or determining whether there is oil at a particular location). The cost associated with the labeling process thus may render large, fully labeled training sets infeasible, whereas acquisition of unlabeled data is relatively inexpensive. In such situations, semi-supervised learning can be of great practical value. Semi-supervised learning is also of theoretical interest in machine learning and as a model for human learning.

Technique

See also: Active learning (machine learning).

More formally, semi-supervised learning assumes a set of

l

independently identically distributed examples

x1,...,xl\inX

with corresponding labels

y1,...,yl\inY

and

u

unlabeled examples

xl+1,...,xl+u\inX

are processed. Semi-supervised learning combines this information to surpass the classification performance that can be obtained either by discarding the unlabeled data and doing supervised learning or by discarding the labels and doing unsupervised learning.

Semi-supervised learning may refer to either transductive learning or inductive learning. The goal of transductive learning is to infer the correct labels for the given unlabeled data

xl+1,...,xl+u

only. The goal of inductive learning is to infer the correct mapping from

X

to

Y

.

It is unnecessary (and, according to Vapnik's principle, imprudent) to perform transductive learning by way of inferring a classification rule over the entire input space; however, in practice, algorithms formally designed for transduction or induction are often used interchangeably.

Assumptions

In order to make any use of unlabeled data, some relationship to the underlying distribution of data must exist. Semi-supervised learning algorithms make use of at least one of the following assumptions:

Continuity / smoothness assumption

Points that are close to each other are more likely to share a label. This is also generally assumed in supervised learning and yields a preference for geometrically simple decision boundaries. In the case of semi-supervised learning, the smoothness assumption additionally yields a preference for decision boundaries in low-density regions, so few points are close to each other but in different classes.[1]

Cluster assumption

The data tend to form discrete clusters, and points in the same cluster are more likely to share a label (although data that shares a label may spread across multiple clusters). This is a special case of the smoothness assumption and gives rise to feature learning with clustering algorithms.

Manifold assumption

See main article: Manifold hypothesis. The data lie approximately on a manifold of much lower dimension than the input space. In this case learning the manifold using both the labeled and unlabeled data can avoid the curse of dimensionality. Then learning can proceed using distances and densities defined on the manifold.

The manifold assumption is practical when high-dimensional data are generated by some process that may be hard to model directly, but which has only a few degrees of freedom. For instance, human voice is controlled by a few vocal folds,[2] and images of various facial expressions are controlled by a few muscles. In these cases, it is better to consider distances and smoothness in the natural space of the generating problem, rather than in the space of all possible acoustic waves or images, respectively.

History

The heuristic approach of self-training (also known as self-learning or self-labeling) is historically the oldest approach to semi-supervised learning, with examples of applications starting in the 1960s.[3]

The transductive learning framework was formally introduced by Vladimir Vapnik in the 1970s.[4] Interest in inductive learning using generative models also began in the 1970s. A probably approximately correct learning bound for semi-supervised learning of a Gaussian mixture was demonstrated by Ratsaby and Venkatesh in 1995.[5]

Methods

Generative models

Generative approaches to statistical learning first seek to estimate

p(x|y)

, the distribution of data points belonging to each class. The probability

p(y|x)

that a given point

x

has label

y

is then proportional to

p(x|y)p(y)

by Bayes' rule. Semi-supervised learning with generative models can be viewed either as an extension of supervised learning (classification plus information about

p(x)

) or as an extension of unsupervised learning (clustering plus some labels).

Generative models assume that the distributions take some particular form

p(x|y,\theta)

parameterized by the vector

\theta

. If these assumptions are incorrect, the unlabeled data may actually decrease the accuracy of the solution relative to what would have been obtained from labeled data alone.[6] However, if the assumptions are correct, then the unlabeled data necessarily improves performance.[5]

The unlabeled data are distributed according to a mixture of individual-class distributions. In order to learn the mixture distribution from the unlabeled data, it must be identifiable, that is, different parameters must yield different summed distributions. Gaussian mixture distributions are identifiable and commonly used for generative models.

The parameterized joint distribution can be written as

p(x,y|\theta)=p(y|\theta)p(x|y,\theta)

by using the chain rule. Each parameter vector

\theta

is associated with a decision function

f\theta(x)=\underset{y}{\operatorname{argmax}}p(y|x,\theta)

. The parameter is then chosen based on fit to both the labeled and unlabeled data, weighted by

λ

:

\underset{\Theta}{\operatorname{argmax}}\left(logp(\{xi,yi\}

l
i=1

|\theta)+λlogp(\{xi\}

l+u
i=l+1

|\theta)\right)

[7]

Low-density separation

(1-yf(x))+

for labeled data, a loss function

(1-|f(x)|)+

is introduced over the unlabeled data by letting

y=\operatorname{sign}{f(x)}

. TSVM then selects

f*(x)=h*(x)+b

from a reproducing kernel Hilbert space

l{H}

by minimizing the regularized empirical risk:

f*=\underset{f}{\operatorname{argmin}}\left(\displaystyle

l(1-y
\sum
if(x

i))++λ1

2
\|h\|
l{H}

+λ2

l+u
\sum
i=l+1

(1-|f(xi)|)+ \right)

An exact solution is intractable due to the non-convex term

(1-|f(x)|)+

, so research focuses on useful approximations.[7]

Other approaches that implement low-density separation include Gaussian process models, information regularization, and entropy minimization (of which TSVM is a special case).

Laplacian regularization

Laplacian regularization has been historically approached through graph-Laplacian.Graph-based methods for semi-supervised learning use a graph representation of the data, with a node for each labeled and unlabeled example. The graph may be constructed using domain knowledge or similarity of examples; two common methods are to connect each data point to its

k

nearest neighbors or to examples within some distance

\epsilon

. The weight

Wij

of an edge between

xi

and

xj

is then set to
-\|x
2
j\|
/\epsilon2
i-x
e
.

Within the framework of manifold regularization,[8] [9] the graph serves as a proxy for the manifold. A term is added to the standard Tikhonov regularization problem to enforce smoothness of the solution relative to the manifold (in the intrinsic space of the problem) as well as relative to the ambient input space. The minimization problem becomes

l
\underset{f\in
l{H}}{\operatorname{argmin}}\left(1
l
\displaystyle\sum
i=1

V(f(xi),yi)+λA

2
\|f\|
l{H}+

λI\intl{M}\|\nabla

2dp(x) \right)
l{M}f(x)\|
[7]

where

l{H}

is a reproducing kernel Hilbert space and

l{M}

is the manifold on which the data lie. The regularization parameters

λA

and

λI

control smoothness in the ambient and intrinsic spaces respectively. The graph is used to approximate the intrinsic regularization term. Defining the graph Laplacian

L=D-W

where

Dii=

l+u
\sum
j=1

Wij

and

f

is the vector

[f(x1)...f(xl+u)]

, we have

fTLf=

l+u
\displaystyle\sum
i,j=1

Wij(fi-f

2
j)

\intl{M}\|\nabla

2dp(x)
l{M}f(x)\|
.

The graph-based approach to Laplacian regularization is to put in relation with finite difference method.

The Laplacian can also be used to extend the supervised learning algorithms: regularized least squares and support vector machines (SVM) to semi-supervised versions Laplacian regularized least squares and Laplacian SVM.

Heuristic approaches

Some methods for semi-supervised learning are not intrinsically geared to learning from both unlabeled and labeled data, but instead make use of unlabeled data within a supervised learning framework. For instance, the labeled and unlabeled examples

x1,...,xl+u

may inform a choice of representation, distance metric, or kernel for the data in an unsupervised first step. Then supervised learning proceeds from only the labeled examples. In this vein, some methods learn a low-dimensional representation using the supervised data and then apply either low-density separation or graph-based methods to the learned representation.[10] [11] Iteratively refining the representation and then performing semi-supervised learning on said representation may further improve performance.

Self-training is a wrapper method for semi-supervised learning.[12] First a supervised learning algorithm is trained based on the labeled data only. This classifier is then applied to the unlabeled data to generate more labeled examples as input for the supervised learning algorithm. Generally only the labels the classifier is most confident in are added at each step.[13] In natural language processing, a common self-training algorithm is the Yarowsky algorithm for problems like word sense disambiguation, accent restoration, and spelling correction.[14]

Co-training is an extension of self-training in which multiple classifiers are trained on different (ideally disjoint) sets of features and generate labeled examples for one another.[15]

In human cognition

Human responses to formal semi-supervised learning problems have yielded varying conclusions about the degree of influence of the unlabeled data.[16] More natural learning problems may also be viewed as instances of semi-supervised learning. Much of human concept learning involves a small amount of direct instruction (e.g. parental labeling of objects during childhood) combined with large amounts of unlabeled experience (e.g. observation of objects without naming or counting them, or at least without feedback).

Human infants are sensitive to the structure of unlabeled natural categories such as images of dogs and cats or male and female faces.[17] Infants and children take into account not only unlabeled examples, but the sampling process from which labeled examples arise.[18] [19]

See also

References

  1. Chawla, N., Bowyer, K., Hall, L.O., & Kegelmeyer, W.P. (2002). SMOTE: Synthetic Minority Over-sampling Technique. ArXiv, abs/1106.1813.
  2. Book: Stevens, Kenneth N.. Acoustic phonetics. 1998. MIT Press. 0-585-08720-2. Cambridge, Mass.. 42856189.
  3. Scudder. H.. July 1965. Probability of error of some adaptive pattern-recognition machines. IEEE Transactions on Information Theory. 11. 3. 363–371. 10.1109/TIT.1965.1053799. 1557-9654.
  4. Book: Vapnik . V. . Chervonenkis . A.. Theory of Pattern Recognition . ru . Nauka . Moscow . 1974. cited in
  5. Web site: Ratsaby . J.. Venkatesh. S. . Learning from a mixture of labeled and unlabeled examples with parametric side information. in Book: Proceedings of the eighth annual conference on Computational learning theory - COLT '95. 1995. ACM Press. 0-89791-723-5. New York, New York, US. 412–417 . 10.1145/225298.225348. 17561403. . Cited in
  6. In:
  7. Zhu, Xiaojin. Semi-Supervised Learning University of Wisconsin-Madison.
  8. M. Belkin . P. Niyogi . Semi-supervised Learning on Riemannian Manifolds. Machine Learning. 56. Special Issue on Clustering. 209–239. 2004. 10.1023/b:mach.0000033120.25363.1e. free.
  9. M. Belkin, P. Niyogi, V. Sindhwani. On Manifold Regularization. AISTATS 2005.
  10. Book: Iscen . Ahmet . Tolias . Giorgos . Avrithis . Yannis . Chum . Ondrej . 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) . Label Propagation for Deep Semi-Supervised Learning . 2019 . 5065–5074 . 10.1109/CVPR.2019.00521 . https://ieeexplore.ieee.org/document/8954421 . 26 March 2021. 1904.04717 . 978-1-7281-3293-8 . 104291869 .
  11. Book: Burkhart . Michael C. . Shan . Kyle . Deep Low-Density Separation for Semi-supervised Classification . International Conference on Computational Science (ICCS) . Lecture Notes in Computer Science . 2020 . 12139 . 297–311 . 10.1007/978-3-030-50420-5_22 . 978-3-030-50419-9 . free . 2205.11995 .
  12. Self-labeled techniques for semi-supervised learning: taxonomy, software and empirical study. Knowledge and Information Systems. 2013-11-26. 0219-1377. 245–284. 42. 2. 10.1007/s10115-013-0706-y. en. Isaac. Triguero. Salvador. García. Francisco. Herrera. 1955810.
  13. Self-Trained LMT for Semisupervised Learning. Computational Intelligence and Neuroscience. 2015-12-29. 3057481. 2016. 10.1155/2016/3057481. 26839531. 4709606. en. Nikos. Fazakis. Stamatis. Karlos. Sotiris. Kotsiantis. Kyriakos. Sgarbas. free.
  14. Yarowsky. David. 1995. Unsupervised Word Sense Disambiguation Rivaling Supervised Methods. Proceedings of the 33rd Annual Meeting of the Association for Computational Linguistics. 189–196. 10.3115/981658.981684. Cambridge, MA. Association for Computational Linguistics. 1 November 2022. free.
  15. Book: Analysis of Co-training Algorithm with Very Small Training Sets. Springer Berlin Heidelberg. 2012-11-07. 9783642341656. 719–726. Lecture Notes in Computer Science. en. Luca. Didaci. Giorgio. Fumera. Fabio. Roli. Georgy. Gimel’farb. Edwin. Hancock. Atsushi. Imiya. Arjan. Kuijper. Mineichi. Kudo. Shinichiro. Omachi. Terry. Windeatt. Keiji. Yamada. 10.1007/978-3-642-34166-3_79. 46063225 .
  16. Book: Zhu, Xiaojin. Introduction to semi-supervised learning. 2009. Morgan & Claypool Publishers. Goldberg, A. B. (Andrew B.). 978-1-59829-548-1. [San Rafael, Calif.]. 428541480.
  17. Younger B. A. . Fearing D. D. . 1999 . Parsing Items into Separate Categories: Developmental Change in Infant Categorization . Child Development . 70 . 2. 291–303 . 10.1111/1467-8624.00022.
  18. Xu, F. . Tenenbaum, J. B. . amp . 2007. Sensitivity to sampling in Bayesian word learning. 10. 3 . 288–297. 10.1111/j.1467-7687.2007.00590.x. 17444970 . Developmental Science. 10.1.1.141.7505 .
  19. Gweon, H., Tenenbaum J.B., and Schulz L.E. 2010. Infants consider both the sample and the sampling process in inductive generalization. Proc Natl Acad Sci U S A. 107. 20. 9066–71. 10.1073/pnas.1003095107. 20435914. 2889113. 2010PNAS..107.9066G. free.

Sources

External links