Efficient Out-of-Sample Extension of Dominant-Set Clusters

Massimiliano Pavan, Marcello PelilloNeurIPS 2004

Graph-based (or pairwise) clustering is a powerful analytical tool because it does not require data to be represented as feature vectors; it only requires a measure of similarity between pairs of data points. However, this flexibility comes with a severe computational bottleneck: the number of pairwise comparisons grows quadratically ($O(N^2)$) with the number of data points.

If you have a dataset of 100,000 images, calculating every pairwise similarity is computationally daunting. More importantly, re-calculating the entire cluster structure every time a new image is added is practically impossible. This "out-of-sample" problem—how to efficiently assign a new, unseen point to an existing cluster—is the core challenge addressed in this research. The authors introduce a linear-time method to assign out-of-sample data points to clusters defined as "dominant sets," enabling graph-based clustering to scale to massive datasets and high-resolution images.

Methodology: Dominant Sets and Linear-Time Approximation

The paper builds upon the framework of Dominant Sets, a graph-theoretic concept that generalizes the idea of a "maximal clique" to edge-weighted graphs. A dominant set is essentially a group of nodes exhibiting high internal similarity and low external similarity.

To handle out-of-sample extensions, the authors introduce a novel membership rule. They prove mathematically that the "tightness" of a new point $i$ relative to an existing cluster $S$ can be determined by the sign of a specific weight function ($w_{S \cup \{i\}}(i)$). If the sign is positive, the point belongs to the cluster.

Calculating this weight exactly, however, is recursive and computationally slow. To bypass this, the authors propose a clever approximation: they treat the existing cluster as a "clique with constant weight." This simplification reduces the computational complexity to linear time relative to the size of the cluster, making the extension process extremely fast. Furthermore, this rule naturally allows for "soft" clustering, where a point can belong to multiple clusters or be flagged as an outlier if it fits nowhere.

Euclidean distance between approximated and true membership values across different sampling rates.

The most surprising insight from this methodology is that approximating a complex, varied cluster as a simple, uniform clique works remarkably well. As shown in the evaluations, the distance between the approximated membership values and the "true" values is negligible (around 0.02 in their tests).

Experimental Results and Performance

The authors evaluated their approach across several domains, including synthetic 2D data, the Johns Hopkins University Ionosphere Database, and high-resolution images from the Berkeley Segmentation Database.

The results highlight significant improvements in both speed and feasibility:

  • Speedup: In image segmentation tasks, the approximation method was 15 times faster than running the full algorithm on the entire image.
  • Accuracy: On the Ionosphere dataset, the algorithm achieved 73.4% accuracy using only a 40% sample for initial clustering. Interestingly, this was slightly better than the 72.7% accuracy achieved by clustering the full dataset at once, suggesting the sampling process inherently helped filter out noise.
  • Feasibility: The authors successfully segmented images with over 150,000 pixels. Running the standard dominant-set algorithm on the full version of these images would have been unfeasible due to memory and time constraints.
Computational time (in seconds) required for clustering at various sampling rates, demonstrating the efficiency gains of the approximation method.

Because the membership rule requires a point to be tightly coupled to a cluster, it naturally ignores noise. If a point does not strongly resemble any existing group, it is simply not assigned, acting as a built-in outlier detector. Unlike spectral clustering (like Normalized Cut), which often requires global eigenvector calculations, dominant sets allow for these highly efficient "local" membership decisions.

Limitations and Future Directions

While highly effective, the method does have limitations. Most notably, it relies heavily on the initial sample being representative of the entire dataset. If the initial clustering misses a small but distinct group of data, the out-of-sample extension will never be able to "find" that cluster; it can only assign new points to pre-existing groups. Additionally, while unclassified points are naturally treated as outliers, the framework does not currently provide a strategy for forcing a "hard" partition where every point must be assigned.

Future work could explore dynamic evolution—how clusters themselves might evolve, shift, or merge as more out-of-sample data is processed, rather than just adding points to static clusters. Overall, this linear-time approximation represents a major step forward in making graph-based clustering viable for large-scale, real-world applications.

Summary updated

BibTeX
@inproceedings{pavan2004efficient,
  author = {Massimiliano Pavan and Marcello Pelillo},
  title = {{Efficient Out-of-Sample Extension of Dominant-Set Clusters}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2004},
  url = {https://openreview.net/forum?id=By-afvZdWS},
}
Figure