Graph-based semi-supervised learning via improving the quality of the graph dynamically

Jiye Liang, Junbiao Cui, Jie Wang, Wei Wei

Abstract

Graph-based semi-supervised learning (GSSL) models rely heavily on the quality of their input graphs. Traditional methods construct these graphs statically using rigid assumptions about the data's underlying structure, which can lead to suboptimal performance if the assumptions do not hold. This paper introduces a dynamic framework, GSSL-IQGD, that builds the graph by fusing multiple clustering results and iteratively refines it during the label inference process. By allowing graph construction and label prediction to mutually guide each other, the framework significantly boosts the performance of standard GSSL algorithms.

Introduction: The Bottleneck of Static Graphs

In Graph-based Semi-Supervised Learning (GSSL), the core assumption is that similar samples connected on a graph should share the same label. Consequently, the success of the model is entirely bottlenecked by the quality of the graph.

Usually, graph construction and label inference are treated as two isolated steps. A graph is built upfront using a specific assumption—like using a k-Nearest Neighbor (kNN) graph based on Euclidean distance. However, real-world data distributions are complex and unknown. If the data lies on a complex manifold, a simple Euclidean kNN graph will connect the wrong data points. Because the graph is static, the label inference algorithm will propagate wrong labels across these bad edges, leading to "unsafe" semi-supervised learning where adding unlabeled data actually hurts performance. The authors tackle this by asking: Why not let the graph construction and label inference guide each other to achieve common improvement?

Methodology: GSSL-IQGD

To avoid relying on a single, potentially flawed assumption about the data distribution, the authors propose GSSL-IQGD (Graph-based Semi-supervised Learning via Improving the Quality of the Graph Dynamically). The framework utilizes a specific set of notations to define the relationship between samples, labels, and the graph structure, as detailed in the table below.

Table of notations used in the GSSL-IQGD framework.

1. Clustering Ensemble for Graph Construction

Instead of a standard distance metric, the method runs multiple clustering algorithms (like k-means and DBSCAN) with various hyperparameters to generate a diverse set of clustering results. The graph's edges are defined by a weighted co-association matrix—essentially, nodes are connected strongly if they frequently end up in the same clusters.

2. Unified Alternating Optimization

The framework combines graph construction and label inference into a single optimization problem. The model alternates between two steps:

  • Update Labels: Predict labels for the unlabeled nodes using the current graph weight matrix.
  • Update Graph Weights: Adjust the weights of the different clustering results to refine the graph structure.

3. Supervision-Guided Refinement

The graph weights are updated using three signals: the smoothness of the newly predicted pseudo-labels, and "must-link" / "cannot-link" constraints derived from the small pool of ground-truth labeled data. This is a general framework; existing label inference algorithms—like the Harmonic method, Local and Global Consistency (LLGC), or modern Graph Convolutional Networks (SSC-GCN)—can be plugged directly into this alternating optimization loop.

Experimental Evaluation

The authors evaluated their framework on a mix of synthetic and real-world datasets, including three artificial toy datasets (Xclara, Chainlink, and Spiralsquare) and ten benchmark datasets (e.g., Iris, Wine, Pubmed, and MNIST). These vary widely in sample size, feature dimensions, and class counts.

Key Results

  • Toy Dataset Validation: On synthetic datasets, the algorithm perfectly learned to assign near-zero weights to useless clustering results and high weights to the specific k-means or DBSCAN runs that correctly captured the data's shape.
  • Benchmark Dominance: Across 8 benchmark datasets with labeled data ratios ranging from 1% to 10%, the IQGD-enhanced versions of Harmonic, LLGC, and SSC-GCN consistently ranked in the top 3 out of 27 tested configurations. They significantly outperformed static graph methods like kNN, b-matching, $\ell_1$, and LRR graphs.
  • Performance in Low-Label Regimes: The proposed method (specifically SLLI-IQGD) significantly outperformed other state-of-the-art dynamic graph construction methods (like STSSL and MGR-GGMC), with the performance gap being most pronounced when the ratio of labeled data was extremely small (e.g., 1%).

Discussion and Conclusion

The primary insight of this work is that no single clustering algorithm is universal; by fusing results and learning their weights, the model adaptively discovers the true data distribution. Furthermore, the graph structure often matters more than the inference math. Even advanced models like Graph Convolutional Networks (SSC-GCN) are bottlenecked by static graphs; plugging them into this dynamic framework yielded massive performance gains.

Limitations and Future Work

The current method is transductive, meaning all data (labeled and unlabeled) must be present during training to construct the graph. It cannot easily predict labels for entirely new, unseen data points (inductive learning) without recalculating the graph. Future work will focus on extending the framework to handle inductive learning scenarios and embedding a wider variety of GSSL methods to further validate its universality.

Summary updated

BibTeX
@article{liang2021graph,
  author = {Jiye Liang and Junbiao Cui and Jie Wang and Wei Wei},
  title = {{Graph-based semi-supervised learning via improving the quality of the graph dynamically}},
  journal = {Machine Learning},
  year = {2021},
  doi = {10.1007/s10994-021-05975-y},
}
Figure