NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Semi-supervised Learning with Density Based Distances

Avleen Singh Bijral, Nathan D. Ratliff, Nathan SrebroUAI 2011

Introduction

Semi-supervised learning (SSL) seeks to leverage the vast amounts of unlabeled data available in the modern digital landscape to improve predictive performance when labeled data is scarce. Most SSL frameworks operate under two primary premises: the Manifold Assumption, which posits that data resides on a low-dimensional surface, and the Cluster Assumption, which suggests that points within the same high-density region likely share the same label.

Traditional graph-based SSL methods, such as Laplacian Regularization, often struggle with computational scalability and sensitivity to hyperparameters like the number of neighbors ($k$). This paper introduces a novel approach using Density-Based Distances (DBD) and a specialized algorithm, Dijkstra*, to overcome these limitations, offering a path to state-of-the-art accuracy with significantly reduced computational overhead.

The Problem of Euclidean Proximity

In many complex datasets, Euclidean distance is a poor proxy for semantic similarity. For instance, in a spiral-shaped cluster, two points might be physically close in space but belong to different density manifolds separated by a gap.

Figure 1: A spiral dataset illustrating the cluster and manifold assumptions. Points A and B are close in Euclidean distance but separated by a low-density gap, requiring a distance metric that respects the underlying data distribution.

Standard methods often require explicit manifold estimation or solving massive systems of linear equations, which become prohibitively expensive as datasets scale into the millions of samples.

Methodology: Density-Based Distance (DBD)

The authors propose a distance metric that penalizes paths crossing low-density regions. By treating the dataset as a fully connected graph, the weight of an edge between points $x_i$ and $x_j$ is defined as: $$W_{ij} = \|x_i - x_j\|_p^q$$ Here, the exponent $q > 1$ serves as a "density-sensitivity" dial. Higher values of $q$ ensure that a single long "jump" across a low-density void is far more costly than a series of short hops through a dense cluster. This approach allows the algorithm to implicitly follow the "valleys" of high density without needing to explicitly map the manifold.

The Dijkstra* Algorithm

To make this approach viable for large-scale data, the authors developed Dijkstra. While a standard shortest-path search on a fully connected graph of $N$ points would take $O(N^2)$ time, Dijkstra integrates nearest-neighbor search directly into the process. By utilizing space-partitioning structures like Cover Trees to "lazily" evaluate only the most promising edges, the complexity is reduced to $O(N \log N)$. Empirically, the algorithm only needs to query approximately 7 to 8 neighbors per node to find the true shortest path, effectively turning a dense graph problem into a sparse one.

Figure 2: Convergence of DBD estimates across increasing sample sizes. The stability of these quartiles demonstrates that the metric reliably captures the underlying structure of the data as the sample size grows.

Experimental Results

The performance of DBD was evaluated against standard benchmarks (Digit1, USPS, COIL) and large-scale datasets like MNIST and CoverType.

  • Accuracy: A simple 1-Nearest Neighbor classifier using DBD distances proved competitive with, and often superior to, complex models like Laplacian RLS and Transductive SVMs (TSVMs).
  • Scalability: On the CoverType dataset, which contains over 581,000 samples, Dijkstra was 11 times faster* than traditional Laplacian regularization methods.
  • Robustness: The method transitions seamlessly from semi-supervised to supervised contexts as more labels are added, maintaining high performance across varying label densities.

Conclusion

By shifting the focus from explicit manifold modeling to density-sensitive pathfinding, this paper provides a robust and scalable framework for semi-supervised learning. The Dijkstra* algorithm ensures that the benefits of density-based distances can be applied to massive datasets, offering a significant speedup over traditional graph-based methods without sacrificing predictive accuracy.

Summary updated

BibTeX
@inproceedings{bijral2011semi,
  author = {Avleen Singh Bijral and Nathan D. Ratliff and Nathan Srebro},
  title = {{Semi-supervised Learning with Density Based Distances}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2011},
}
Figure