[Paper Review] Hierarchical Clustering with Prior Knowledge
This paper proposes a semi-supervised hierarchical clustering method that integrates prior domain knowledge via an ultrametric distance function as a regularization penalty on the original dissimilarity measure. By leveraging external ontological structures—such as Amazon’s browse taxonomy—the approach improves clustering quality on customer behavior data, with experiments showing superior performance in purity and entropy metrics over purely data-driven or knowledge-only approaches.
Hierarchical clustering is a class of algorithms that seeks to build a hierarchy of clusters. It has been the dominant approach to constructing embedded classification schemes since it outputs dendrograms, which capture the hierarchical relationship among members at all levels of granularity, simultaneously. Being greedy in the algorithmic sense, a hierarchical clustering partitions data at every step solely based on a similarity / dissimilarity measure. The clustering results oftentimes depend on not only the distribution of the underlying data, but also the choice of dissimilarity measure and the clustering algorithm. In this paper, we propose a method to incorporate prior domain knowledge about entity relationship into the hierarchical clustering. Specifically, we use a distance function in ultrametric space to encode the external ontological information. We show that popular linkage-based algorithms can faithfully recover the encoded structure. Similar to some regularized machine learning techniques, we add this distance as a penalty term to the original pairwise distance to regulate the final structure of the dendrogram. As a case study, we applied this method on real data in the building of a customer behavior based product taxonomy for an Amazon service, leveraging the information from a larger Amazon-wide browse structure. The method is useful when one wants to leverage the relational information from external sources, or the data used to generate the distance matrix is noisy and sparse. Our work falls in the category of semi-supervised or constrained clustering.
Motivation & Objective
- To address the limitations of hierarchical clustering that rely solely on data-driven similarity measures, which can be unstable or inaccurate with noisy or sparse data.
- To integrate external ontological knowledge—such as existing product browse structures—into hierarchical clustering to guide the dendrogram structure.
- To formalize a semi-supervised framework where prior relational knowledge is encoded as a penalty term in the clustering objective function.
- To demonstrate that linkage-based hierarchical clustering algorithms can faithfully recover the encoded structure when using ultrametric distances.
- To improve the construction of customer behavior-based product taxonomies by combining task-specific data with large-scale external knowledge.
Proposed method
- Uses an ultrametric distance function to encode prior relational knowledge from external sources, such as an existing product hierarchy.
- Combines the ultrametric distance with the task-specific dissimilarity measure via a weighted sum, where the hyperparameter α controls the trade-off between data-driven and knowledge-driven clustering.
- Applies single-linkage hierarchical clustering to the regularized distance matrix, leveraging its stability and convergence properties.
- Employs a penalty-based regularization framework, where the ultrametric distance acts as a regularizer to constrain the dendrogram structure toward known relationships.
- Validates the method using a real-world product taxonomy construction task at Amazon, using customer behavior data and a global browse structure as prior knowledge.
- Demonstrates that complete-link and average-link hierarchical clustering with ultrametric distances are order-independent due to the ultrametric condition, ensuring consistent results.
Experimental results
Research questions
- RQ1Can prior domain knowledge be effectively encoded and integrated into hierarchical clustering to improve clustering quality?
- RQ2How does the use of ultrametric distance as a regularization penalty affect the stability and fidelity of the resulting dendrogram?
- RQ3Does combining data-driven similarity with external ontological structure lead to better clustering performance than using either source alone?
- RQ4To what extent does the method preserve known hierarchical relationships from external sources in the final clustering structure?
- RQ5Is the proposed method robust to noisy or sparse data by leveraging structured external knowledge?
Key findings
- The semi-supervised approach achieved the highest purity (1.0) and lowest entropy (0.68) on the test set when α = 0.85, outperforming both purely data-driven and purely knowledge-based clustering.
- When α = 1.0, the method maintained high purity (0.96) and moderate entropy (0.72), indicating strong preservation of the external structure.
- As α decreased, the dendrogram structure evolved to reflect substitution relationships—e.g., coffee and tea were merged at lower levels, indicating their functional similarity in user behavior.
- In contrast, beans, grains, and rice groups remained distinct even at low α, showing limited substitution, which aligns with domain expectations.
- The method demonstrated that complete-link and average-link hierarchical clustering with ultrametric distances are order-independent, ensuring consistent results regardless of merging sequence.
- Theoretical analysis confirmed that ultrametric distances preserve the hierarchical structure under linkage-based algorithms, validating the method’s consistency and reliability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.