Active Distance-Based Clustering Using K-Medoids

Amin Aghaee, Mehrdad Ghadiri, Mahdieh Soleymani Baghshah

TL;DR

This paper introduces an "active" k-medoids clustering algorithm that significantly reduces the number of pairwise distance calculations required. By intelligently querying a small subset of distances and using the triangle inequality to estimate the rest, their method achieves comparable or better clustering quality than traditional k-medoids while being much more computationally efficient, especially for large datasets.

What Problem Does This Paper Address?

Traditional k-medoids clustering, a popular centroid-based method, relies on having the complete pairwise distance matrix for all data points. This can be computationally prohibitive for large datasets, as the number of distances grows quadratically with the number of data points ($O(n^2)$). In many real-world scenarios, obtaining these distances can also be expensive or time-consuming (e.g., querying a human oracle for similarity judgments, or performing complex feature extraction). The paper addresses this by developing an "active" clustering approach, where the algorithm strategically selects which distances to query and uses estimations for the rest, thereby minimizing the need for expensive distance computations.

Methods

The core of the proposed method is an active k-medoids algorithm that leverages the triangle inequality to estimate unknown distances. The algorithm employs a recursive, bottom-up approach:

  1. Hierarchical Partitioning: The data is recursively partitioned into smaller groups. This continues until a group size falls below a predefined threshold.
  2. Active Querying within Groups: Within each group, the algorithm identifies "landmark" points. These landmarks are chosen based on a sub-k-medoids clustering within the group, selecting medoids and a few random points from each sub-cluster. The distances between these landmarks are then queried from an oracle.
  3. Distance Estimation: The triangle inequality is used to estimate upper bounds for unknown distances between points, both within and between groups. For example, if distances $d_{ax}$, $d_{xy}$, and $d_{yb}$ are known, the distance $d_{ab}$ can be estimated as $d_{ab} \le d_{ax} + d_{xy} + d_{yb}$. This estimation is applied recursively up the hierarchy.
  4. Clustering: Once a sufficient number of distances are estimated, the standard k-medoids algorithm is applied to the dataset using these estimated distances.

A comparison baseline, "Random-Rival," is also introduced, which randomly selects a subset of distances and uses the Floyd-Warshall algorithm to estimate all pairwise distances via shortest paths on a graph representation of the data.

Datasets

The paper evaluates its method on a combination of synthesized and real-world datasets. The datasets include:

  • vary-density(s)
  • seeds
  • mouse(s)
  • fisheriris
  • data_2000(s)
  • Trace
  • multi-features
  • TwoDiamonds(s)
  • EngyTime(s)
  • COIL100
  • NORM10(s)
  • NEC_animal
  • ALOI200

The paper notes that some datasets are synthesized (marked with 's') and that for NEC_animal and ALOI200, grayscale images were generated from the original data.

Key Insights and Ideas

  • Triangle Inequality as a Powerful Estimator: The paper highlights the effectiveness of the triangle inequality in metric spaces for providing meaningful upper-bound estimations of unknown distances, significantly reducing the need for direct queries.
  • Recursive Hierarchical Approach: The recursive partitioning and bottom-up estimation strategy allows the algorithm to manage complexity and focus queries on the most informative parts of the data hierarchy.
  • Intelligent Landmark Selection: Instead of random sampling, selecting landmarks based on sub-clustering within groups helps ensure that the queried distances are representative and lead to better estimations.
  • Active Learning for Unsupervised Tasks: This work demonstrates a successful application of active learning principles to an unsupervised learning problem (clustering), showing that strategic querying can be highly beneficial.
  • Trade-off between Query Count and Accuracy: The paper implicitly shows that a small increase in the number of queried distances (controlled by parameter 's') can lead to substantial improvements in clustering quality (NMI score).

Key Results

  • The proposed active k-medoids algorithm consistently achieves high Normalized Mutual Information (NMI) scores, often comparable to or better than the Random-Rival baseline, even when querying a significantly smaller percentage of distances.
  • For instance, on the "seeds" dataset, the active k-medoids with $s=1$ achieves an NMI of 90.3% by querying only 7.1% of distances, while the Random-Rival algorithm needs to query around 7.1% to reach a similar NMI. With $s=3$, the active method achieves 89.5% NMI with 7.3% queries.
  • The paper claims that their method is "much better than asking them randomly," as demonstrated by the comparison with Random-Rival.
  • The time complexity of the proposed algorithm is noted as $O(n^2kp)$, which is competitive, especially considering the reduced query cost.

Limitations and Future Work

  • Parameter Sensitivity: The paper mentions that increasing parameters like 's' (number of random points per sub-cluster) and 'b' (branching factor) can improve NMI but also increase running time and the number of queries. Finding optimal parameters might require further investigation.
  • Metric Space Assumption: The method relies on the triangle inequality, implying it's best suited for metric spaces. Its performance on non-metric distance measures might be limited.
  • Future Work: The authors suggest that further exploration of the trade-off between query cost and clustering accuracy by tuning parameters like 's' and 'b' would be beneficial. They also imply that the effectiveness of the landmark selection strategy could be further optimized.

Summary updated

BibTeX
@inproceedings{aghaee2016active,
  author = {Amin Aghaee and Mehrdad Ghadiri and Mahdieh Soleymani Baghshah},
  title = {{Active Distance-Based Clustering Using K-Medoids}},
  booktitle = {PAKDD},
  year = {2016},
  url = {https://openreview.net/forum?id=BwTxU657hE},
}
Figure