Introduction
Hierarchical clustering is a fundamental tool in data analysis, prized for its ability to produce interpretable dendrograms that reveal multi-scale relationships within data. However, traditional agglomerative methods—such as single, average, and complete linkage—are notoriously sensitive to noise. A single outlier or a few boundary points can lead to "chaining" effects, where distinct clusters are prematurely merged, rendering the resulting hierarchy inaccurate. This paper introduces Robust Median Neighborhood Linkage, an algorithm designed to maintain structural integrity even in the presence of significant noise and adversarial data points.
The Challenge of Noisy Data
Classic linkage methods rely on a "strict separation property," assuming that all points within a cluster are more similar to each other than to any point outside. In real-world scenarios, this assumption rarely holds. Boundary points often share similarities with multiple groups, and noise can create spurious high-similarity links between unrelated clusters.
As shown in the figure above, even a few noisy connections (dashed lines) can trick standard algorithms into merging disparate branches of the hierarchy, such as "Science" and "Sports," too early in the process. To address this, the authors propose a more relaxed theoretical framework called the weak good neighborhood property, which allows for a fraction of "bad" neighbors as long as the cluster core remains cohesive.
Methods: Robust Median Neighborhood Linkage
The proposed algorithm moves away from raw pairwise distances, instead leveraging local neighborhood structures and a robust voting mechanism:
- Shared Neighborhood Graph: The algorithm constructs a graph where points are connected only if they share a significant number of common neighbors within a specific radius. This threshold is gradually increased to build the hierarchy.
- The Median Test: When considering a merge between two clusters (or "blobs"), the algorithm calculates the number of shared neighbors for all pairs of points across the two groups. A merge only occurs if the median number of shared neighbors exceeds a threshold. This ensures that a few noisy outlier links cannot force a merge; the majority of points in both clusters must "agree" on the connection.
- Inductive Scalability: To handle massive datasets, the authors provide an inductive variant. The algorithm clusters a small random sample and then assigns the remaining points based on their proximity to this core. Crucially, the required sample size is shown to be independent of the total number of points $N$, depending only on the noise parameters.
Empirical Evaluation and Results
The algorithm was tested against a variety of synthetic and real-world datasets, including UCI benchmarks (Wine, Iris, BCW) and large-scale biological sequence data (PFAM).
- Robustness to Corruption: In experiments with up to 20% attribute corruption or Gaussian noise, Robust Median Neighborhood Linkage consistently outperformed baselines like Ward’s method and CURE, maintaining low classification errors where others failed.
- Theoretical Guarantees: The authors prove that their algorithm will always find a "pruning" of the hierarchy that matches the ground-truth clustering, provided the data satisfies the weak good neighborhood property.
- Efficiency: On the PFAM datasets (up to 100,000 sequences), the inductive method achieved high accuracy using only 2.5% of the total pairwise similarities, demonstrating significant computational savings.
Conclusion and Future Work
Robust Median Neighborhood Linkage represents a significant step toward making hierarchical clustering practical for noisy, real-world data. While the algorithm currently requires manual tuning of noise parameters ($\alpha$ and $\nu$), it provides a mathematically grounded framework for robust unsupervised learning. Future research aims to automate parameter selection and explore whether other popular empirical methods can be justified under similar relaxed noise conditions.
Summary updated