TL;DR
This paper introduces a transductive label propagation method based on the manifold assumption to enhance semi-supervised deep learning, especially effective with limited labeled data, by iteratively generating pseudo-labels and training neural networks.
Contribution
It adapts classic transductive label propagation to deep learning, leveraging neural embeddings for improved semi-supervised learning in an inductive framework.
Findings
Improved performance on multiple datasets with few labels
Complementary to existing state-of-the-art methods
Effective in low-label regimes
Abstract
Semi-supervised learning is becoming increasingly important because it can combine data carefully labeled by humans with abundant unlabeled data to train deep neural networks. Classic methods on semi-supervised learning that have focused on transductive learning have not been fully exploited in the inductive framework followed by modern deep learning. The same holds for the manifold assumption---that similar examples should get the same prediction. In this work, we employ a transductive label propagation method that is based on the manifold assumption to make predictions on the entire dataset and use these predictions to generate pseudo-labels for the unlabeled data and train a deep neural network. At the core of the transductive method lies a nearest neighbor graph of the dataset that we create based on the embeddings of the same network.Therefore our learning process iterates between…
| Dataset | CIFAR-100 | Mini-ImageNet-top1 | Mini-ImageNet-top5 | |||
|---|---|---|---|---|---|---|
| Nb. labeled images | 4000 | 10000 | 4000 | 10000 | 4000 | 10000 |
| Fully supervised | ||||||
| Ours | ||||||
| MT [38] | ||||||
| MT + Ours | ||||||
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
\IfBeginWith
*paperfig/extern/
Label Propagation for Deep Semi-supervised Learning
Ahmet Iscen1 Giorgos Tolias1 Yannis Avrithis2 Ondřej Chum1
1VRG, FEE, Czech Technical University in Prague 2Univ Rennes, Inria, CNRS, IRISA
Abstract
Semi-supervised learning is becoming increasingly important because it can combine data carefully labeled by humans with abundant unlabeled data to train deep neural networks. Classic methods on semi-supervised learning that have focused on transductive learning have not been fully exploited in the inductive framework followed by modern deep learning. The same holds for the manifold assumption—that similar examples should get the same prediction. In this work, we employ a transductive label propagation method that is based on the manifold assumption to make predictions on the entire dataset and use these predictions to generate pseudo-labels for the unlabeled data and train a deep neural network. At the core of the transductive method lies a nearest neighbor graph of the dataset that we create based on the embeddings of the same network. Therefore our learning process iterates between these two steps. We improve performance on several datasets especially in the few labels regime and show that our work is complementary to current state of the art.
1 Introduction
Modern approaches to many computer vision problems exploit deep neural networks. These are popular for being very efficient and providing great performance at test time. The downside is a requirement of large amounts of training examples, which are labeled either by humans or automatically on proxy tasks.
Visual data are available in large quantities, however, data reliably annotated by humans are still very scarce. Obtaining large amounts of annotated training data for every single task is not only impractical, potentially costly, but it also turns out to be error prone. The low quality of crowd-sourced annotation is a common motivation to minimize the need of annotation.
In the domain of metric learning, promising results have been recently achieved by unsupervised methods for either learning from scratch or fine-tuning a supervised network for domain adaptation, which devise proxy tasks for learning. These tasks exploit the distribution of data in the original space, for instance pairwise relations of training examples [42], relations between examples and cluster centroids [1], or considering the manifold structure of data [19]. Alternatively, in self-supervised learning, one can take advantage of additional information like spatial layout in images [5, 12] or temporal relation in videos [40, 28]; or mine for such information in unstructured data by algorithmic supervision using conventional methods [13, 30]. However, most such proxy tasks are inferior when directly compared to laboriously annotated data by humans.
In classification, semi-supervised methods attempt to reduce the number of labeled examples, whereby the fully supervised performance on all data acts as an upper bound. In transductive learning [43, 45], label inference restricted to a given set of unlabeled examples is of interest. In inductive learning, the goal is generalization to new unseen data, while the original training data are discarded. This is achieved e.g. by combining classification loss on labeled data with unsupervised objectives on all data, where the latter act as regularization [41, 38]. Or, an existing classifier can be used to assign pseudo-labels [24, 35], which is another form of algorithmic supervision. Using a powerful classifier trained on carefully annotated data can provide high-quality pseudo-labels, opening the door to learning from real unlabeled, large scale data. In such omni-supervised learning [31], the fully supervised performance on the labeled part is actually the lower bound. This only refreshes the interest in inductive semi-supervised methods.
In this paper, we use efficient transductive label propagation [43] to infer pseudo-labels for unlabeled data, which are used to train the classifier. Label propagation is a graph-based method, and in this work the graph is constructed exploiting the embeddings obtained by the classification network itself. Thus, the proposed method alternates between two steps. First, the network is trained from labeled and pseudo-labeled data. The second step uses the embeddings of the network trained in the previous step to construct a nearest neighbor graph. Label propagation is then used to infer pseudo-labels for unlabeled images, as well as a certainty score per image and per class. Training is performed on all data, using certainty-based weights.
We experimentally show on standard datasets that the proposed method outperforms other semi-supervised approaches. The less labeled data is available, the more pronounced the advantage of the proposed approach is.
2 Related work
The literature is rich in the problem of semi-supervised learning (SSL). The reader is advised to see [3] for an extensive overview. The same holds for SSL in image classification [10, 16, 4, 37]. In this section, we mostly restrict the discussion to approaches that use deep learning for SSL and perform the training on a large image collection with mini-batch optimization.
Prior work on semi-supervised deep learning for image classification is divided into two main categories. The first consists of methods, e.g. [15, 23, 34, 38], that add an unsupervised loss term (often called a regularizer) into the loss function. This term is applied to either all images or only the unlabeled ones. Methods in the second category, e.g. [24, 36], assign pseudo-labels to the unlabeled examples. The pseudo-labeled data are then used in training with a supervised loss, such as cross entropy. Both categories use a standard loss term that is trained with supervision from labeled images. A thorough evaluation of SSL deep image classification can be found in Miyato et al. [27].
Our contribution belongs to the second category, and is conceptually and implementation-wise orthogonal to the first. It is therefore straightforward to combine the proposed method with any method from the first category. We do combine it with [38] as shown in Section 5.
Unsupervised loss in deep SSL. Assuming that every training image, labeled or not, belongs to a single category, a natural requirement on the classifier is to make a confident prediction on the training set. This idea was formalized by Sajjadi et al. [35], where the regularizer is designed to minimize the entropy of the network output. Such a loss term is easily combined with other terms. A similar combination is performed for denoising auto-encoders that are applied on all images in an unsupervised manner [32].
A direction attracting a lot of attention is that of consistency loss, where two related cases, e.g. coming from two similar images, or made by two networks with related parameters, are encouraged to have similar network outputs. Sajjadi et al. [34] is the first, to our knowledge, to use a consistency loss between the outputs of a network on random perturbations of the same image. Laine and Aila [23] rather apply consistency between the output of the current network and the temporal average of outputs during training. The state-of-the-art mean teacher (MT) method [38] replaces output averaging by averaging of network parameters. Consistency loss is commonly measured by squared Euclidean distance. The Jensen-Shannon divergence is used instead by Qiao et al. [29], while complementarity of the two networks is enforced via adversarial examples. A similar idea is proposed by Miyato et al. [26].
Pseudo-labeling in deep SSL. Lee [24] uses the current network to infer pseudo-labels of unlabeled examples, by choosing the most confident class. These pseudo-labels are treated like human-provided labels in the cross entropy loss. Its impact is similar to that of entropy minimization [35]; in both cases the network is forced to have more confident predictions. The same principle is adopted by Shi et al. [36], where the authors further add contrastive loss to the consistency loss. Our method is different from all such prior work in that pseudo-labels are inferred by label propagation rather than network predictions.
Label propagation has been extensively used in a transductive setup (see chapter 11 [3]). Recently, Douze et al. [7] perform label propagation on a large image dataset with CNN descriptors for few shot learning. Unseen images are classified via online label propagation, which requires storing the entire dataset, while the network is trained in advance and descriptors are fixed. Our work is different in that we perform label propagation on the training set off-line while training the network, such that inference is possible without accessing the original training set. Learning by association [17] can been seen as two steps of propagation on a constrained bi-partite graph between labeled and unlabeled examples. Graph transduction game (GTG) [9], a form of label propagation, has been used for pseudo-labels [8] as in our work, but in this case the network is pre-trained, the graph remains fixed and there is no weighting mechanism. We compare to this approach in Section 5.
3 Preliminaries
In this section we formulate the semi-supervised learning problem and then we discuss the classifier, different loss functions that are commonly used in prior work, and finally a transductive learning approach that our method is based on. In our experiments we use a convolutional neural network (CNN) to perform image classification, but this formulation applies to any network architecture in any domain.
Problem formulation. We assume a collection of examples with . The first examples for , denoted by , are labeled according to with , where is a discrete label set for classes. The remaining examples for , denoted by , are unlabeled. The goal in SSL is to use all examples and labels to train a classifier that maps previously unseen samples to class labels.
Classifier. The network takes an input example from and produces a vector of class confidence scores. We denote it by , where are the network parameters. It is conceptually divided in two parts. The first is a feature extraction network mapping the input to a feature vector, or descriptor. We denote the descriptor of the -th example by . The second typically consists of a fully connected (FC) layer applied on top of and followed by softmax, producing a vector of confidence scores. Function is the mapping from input space directly to confidence scores. The output of the network for the -th example is and the prediction is the one of maximum confidence score
[TABLE]
where subscript denotes the -th dimension of the vector.
Supervised loss. In supervised learning, the network is trained by minimizing a supervised loss term of the form
[TABLE]
which applies only to labeled examples in . Such term is part of the total loss when training a network in a semi-supervised setup [36, 38, 29]. A standard choice for the loss function in classification is cross-entropy, given by for and .
Pseudo-labeling is the process of assigning a pseudo-label to each example for . Denoting by the collection of pseudo-labels for , the following additional pseudo-label loss term applies
[TABLE]
where again is any supervised loss function like cross-entropy. An example is the approach proposed by Lee [24], who first train network with (2) and then assign pseudo-labels according to (1) for .
Unsupervised loss is another common alternative where the loss function applies to both labeled and unlabeled examples and encourages consistency under different transformations of the data or the network. The so-called consistency loss [36, 38, 36] is defined as
[TABLE]
where refers to a different transformation of example . Note that according to the standard practice of data augmentation, every forward pass of during training is performed under some random transformation. Parameter set is either equal to or any other transformation of it, such as a moving average over the sequence of network updates [38]. A simple choice of is the squared Euclidean distance, i.e. for , forcing the two outputs to be as close as possible.
Transductive learning solves a more specific problem. Instead of training a generic classifier able to classify new, yet unseen, examples, the goal is to use and to infer labels for examples in . In this work, we adopt the graph-based approach of Zhou et al. [43] for transductive learning by diffusion111We first present the original approach and discuss our design choices in the following section..
Diffusion for transductive learning [43]. Let be the descriptor set, where corresponds to as defined earlier. A symmetric adjacency matrix with zero diagonal is constructed, whose elements are non-negative pairwise similarities between and . Its symmetrically normalized counterpart is given by , where is the degree matrix and is the all-ones -vector. A label matrix is defined with elements
[TABLE]
That is, the rows of corresponding to labeled examples are one-hot encoded labels and the rest are zero. Diffusion amounts to computing the matrix
[TABLE]
where is a parameter. Finally, the class prediction for an unlabeled example is
[TABLE]
where is the element of matrix .
It is interesting to observe that matrix as defined by (8) is the minimizer of the following quadratic cost function
[TABLE]
where is the -th row of matrix , is the -th diagonal diagonal element of and is the Frobenius norm. The first term encourages smoothness such that nearby examples get the same predictions, while the second attempts to maintain predictions for the labeled examples [43].
4 Method
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Mathilde Caron, Piotr Bojanowski, Armand Joulin, and Matthijs Douze. Deep clustering for unsupervised learning of visual features. ECCV , 2018.
- 2[2] Siddhartha Chandra and Iasonas Kokkinos. Fast, exact and multi-scale inference for semantic image segmentation with deep Gaussian CR Fs. In ECCV , 2016.
- 3[3] Olivier Chapelle, Bernhard Scholkopf, and Alexander Zien. Semi-Supervised Learning . MIT Press, 2006.
- 4[4] Dengxin Dai and Luc Van Gool. Ensemble projection for semi-supervised image classification. In ICCV , 2013.
- 5[5] Carl Doersch, Abhinav Gupta, and Alexei A. Efros. Unsupervised visual representation learning by context prediction. In ICCV , 2015.
- 6[6] Wei Dong, Richard Socher, Li Li-Jia, Kai Li, and Li Fei-Fei. Imagenet: A large-scale hierarchical image database. In CVPR , June 2009.
- 7[7] Matthijs Douze, Arthur Szlam, Bharath Hariharan, and Hervé Jégou. Low-shot learning with large-scale diffusion. In CVPR , 2018.
- 8[8] Ismail Elezi, Alessandro Torcinovich, Sebastiano Vascon, and Marcello Pelillo. Transductive label augmentation for improved deep network learning. ar Xiv preprint ar Xiv:1805.10546 , 2018.
