Abstract
Graph-based semi-supervised learning has been shown to be one of the most effective approaches for classification tasks from a wide range of domains, such as image classification and text classification, as they can exploit the connectivity patterns between labeled and unlabeled samples to improve learning performance. In this work, we advance this effective learning paradigm towards a scenario where labeled data are severely limited. More specifically, we address the problem of graph-based semi-supervised learning in the presence of severely limited labeled samples, and propose a new framework, called Shoestring, that improves the learning performance through semantic transfer from these very few labeled samples to large numbers of unlabeled samples. In particular, our framework learns a metric space in which classification can be performed by computing the similarity to centroid embedding of each class. Shoestring is trained in an end-to-end fashion to learn to leverage the semantic knowledge of limited labeled samples as well as their connectivity patterns with large numbers of unlabeled samples simultaneously. By combining Shoestring with graph convolutional networks, label propagation and their recent label-efficient variations (IGCN and GLP), we are able to achieve state-of-the-art node classification performance in the presence of very few labeled samples. In addition, we demonstrate the effectiveness of our framework on image classification tasks in the few-shot learning regime, with significant gains on miniImageNet (2.57%~3.59%) and tieredImageNet (1.05%~2.70%).
Introduction
Deep learning usually thrives on massive datasets, but in the real world, labeling data is expensive and time-consuming. Semi-supervised learning (SSL) tries to bridge this gap by using a few labeled "anchors" to categorize a sea of unlabeled data. Graph-based SSL is particularly good at this because it uses the connections between data points to propagate labels. However, these models have a breaking point. When labels are "severely limited" (e.g., only 1-5 examples per class), standard tools like Graph Convolutional Networks (GCNs) and Label Propagation (LP) fall apart. The signal from those few anchors is too weak to reach the rest of the graph, or the model overfits the tiny training set so aggressively that it fails to generalize. The Shoestring framework was developed to make graph learning robust even on a "shoestring" budget of labels.
Methodology
The Shoestring framework consists of two main modules working in tandem to organize the embedding space effectively:
- Graph Embedding Network: This serves as the base of the model, typically utilizing a standard GCN or variations like IGCN. Its role is to map high-dimensional input features into a lower-dimensional semantic space while preserving the graph's structural connectivity.
- Metric Learning Network: This module introduces a prototypical approach to classification. Instead of a standard softmax layer, Shoestring calculates a centroid (prototype) for each class by averaging the embeddings of its labeled samples. It then learns a metric space where unlabeled nodes are pulled toward the centroid of their correct class.
The model is trained using a joint objective function: $$L_{Shoestring} = L_{ce} + \lambda L_{me}$$ Where $L_{ce}$ is the standard cross-entropy loss and $L_{me}$ is the metric-based loss. This dual objective forces the model to not only classify labeled points correctly but also to ensure the entire embedding space is organized into tight, distinct clusters.
Experiments and Results
The researchers evaluated Shoestring across citation networks (Cora, CiteSeer, PubMed) and few-shot image classification benchmarks (miniImageNet, tieredImageNet).
Key Findings
- Massive Gains in Sparsity: On the Cora dataset with only one labeled sample per class, Shoestring improved accuracy by 32.1% compared to the baseline GLP model.
- State-of-the-Art Performance: On miniImageNet (5-way 1-shot), Shoestring-TPN achieved 55.35% accuracy, outperforming competitive baselines like MetaOptNet.
- Computational Efficiency: The overhead is minimal; for a 1-labeled sample per class scenario, training time increased by only ~0.5 seconds while providing a 20% gain in accuracy.
Visual analysis via t-SNE confirms that Shoestring creates much tighter, more separable clusters in the embedding space than a standard GCN when labels are scarce, effectively moving beyond the simple smoothness assumption to a more robust cluster assumption.
Discussion and Future Work
A critical insight from the study is that the choice of similarity metric (e.g., Cosine similarity vs. Euclidean distance) significantly impacts performance depending on the domain. While Cosine similarity excelled in image tasks, the optimal metric for citation networks varied by dataset.
Future work aims to address this sensitivity by developing adaptive similarity functions—sub-networks that automatically learn the best distance measure for a specific graph. While Shoestring is a powerful tool for the "low-data regime," the performance gap between it and standard GCNs narrows as labels increase, marking it as a specialized solution for extreme label sparsity.
Summary updated