Efficient Distributed Semi-Supervised Learning using Stochastic Regularization over Affinity Graphs

Sunil Thulasidasan, Jeffrey A. Bilmes, Garrett T. KenyonarXiv 2016

Introduction

Semi-supervised learning (SSL) is a critical paradigm for training deep neural networks (DNNs) in domains where labeled data is scarce but unlabeled data is abundant. Graph-based SSL approaches typically construct an affinity graph representing similarities between data points and use it to regularize the model, encouraging similar points to have similar labels. While effective, these methods have historically struggled to scale to large datasets and distributed computing environments due to the computational overhead of graph operations and the requirements of stochastic optimization.

The Shuffling vs. Structure Dilemma

The primary obstacle in scaling graph-based SSL with Stochastic Gradient Descent (SGD) is the conflicting requirements of optimization and regularization. For SGD to converge effectively, data must be shuffled randomly into mini-batches to satisfy the independent and identically distributed (i.i.d.) assumption. However, graph regularization is only effective if a data point and its neighbors are present within the same mini-batch.

Standard random shuffling leads to what the authors term the "Sparsity Trap": the probability of neighbors co-occurring in a small random mini-batch is negligible, causing the regularization term to vanish during training. This phenomenon is visualized in the comparison between random and structured batches below.

Comparison of (a) random shuffling vs. (b) partitioned batches, and (c) the resulting distribution of within-batch edge weights.

Proposed Methodology: Meta-batches and Partitioning

To resolve this conflict, the authors propose a multi-step pipeline that balances local graph structure with global data diversity:

  1. Graph Partitioning: Using the METIS library, the global affinity graph is partitioned into $k$ balanced blocks. This process minimizes "edge-cuts," ensuring that the majority of a node's neighbors reside within the same partition.
  2. Meta-batch Construction: Rather than training on single partitions—which would bias the model toward specific neighborhoods and violate i.i.d. assumptions—the system constructs "meta-batches." These are formed by combining multiple diverse graph blocks, preserving enough local connectivity for regularization while maintaining the entropy required for stable SGD.
  3. Distributed Loss Decomposition: The standard graph-based loss function is reformulated into a sum of objectives that can be computed independently across parallel workers, facilitating data-parallel training.
  4. Synchronous Distributed Training: The method is implemented using the MXNet framework, enabling synchronized parallel training across multiple GPU workers (up to 8 in this study).

Experimental Evaluation

The authors evaluated the system on the TIMIT speech corpus, a benchmark featuring over 1 million speech frames represented as 351-dimensional vectors of cepstral coefficients. To simulate label-scarce environments, they tested scenarios with label availability ranging from 2% to 50%.

Key Results

  • Accuracy Gains: In low-label regimes (e.g., 5% labeled data), the graph-regularized DNN significantly outperformed purely supervised baselines and existing graph-based SSL methods.
  • Optimization Efficiency: The reduction in gradient noise in the parallel setting allowed for more aggressive learning rates (scaled by the number of workers $k$), leading to faster convergence and higher validation accuracy per epoch compared to sequential training.
  • Scalability: Using 8 parallel workers, the system achieved a significant speedup in wall-clock time. While synchronization with a parameter server introduces overhead, the collective throughput of the distributed system effectively overcomes this bottleneck.

Limitations and Future Work

While the proposed method successfully scales graph-based SSL, the current implementation relies on synchronous SGD, which is susceptible to the "straggler" problem where the slowest worker dictates the overall training speed. Future research may explore asynchronous SGD variants to mitigate this. Additionally, the construction of meta-batches currently relies on heuristics; developing provably optimal batch construction methods remains an open area for investigation. Finally, the system's performance is inherently tied to the quality of the initial $k$-nearest neighbor graph, which must be pre-computed.

Conclusion

This work demonstrates that the "shuffling vs. structure" dilemma in graph-based SSL can be overcome through intelligent graph partitioning and meta-batch construction. By preserving local connectivity within a distributed data-parallel framework, the proposed method allows deep learning models to effectively leverage large-scale unlabeled data without sacrificing training efficiency or convergence properties.

Summary updated

BibTeX
@misc{thulasidasan2016efficient,
  author = {Sunil Thulasidasan and Jeffrey A. Bilmes and Garrett T. Kenyon},
  title = {{Efficient Distributed Semi-Supervised Learning using Stochastic Regularization over Affinity Graphs}},
  year = {2016},
  eprint = {1612.04898},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1612.04898},
}
Figure