Abstract
Comparison-based learning addresses the problem of learning when, instead of explicit features or pairwise similarities, one only has access to comparisons of the form: Object A is more similar to B than to C. Recently, it has been shown that, in Hierarchical Clustering, single and complete linkage can be directly implemented using only such comparisons while several algorithms have been proposed to emulate the behaviour of average linkage. Hence, finding hierarchies (or dendrograms) using only comparisons is a well understood problem. However, evaluating their meaningfulness when no ground-truth nor explicit similarities are available remains an open question.
In this paper, we bridge this gap by proposing a new revenue function that allows one to measure the goodness of dendrograms using only comparisons. We show that this function is closely related to Dasgupta's cost for hierarchical clustering that uses pairwise similarities. On the theoretical side, we use the proposed revenue function to resolve the open problem of whether one can approximately recover a latent hierarchy using few triplet comparisons. On the practical side, we present principled algorithms for comparison-based hierarchical clustering based on the maximisation of the revenue and we empirically compare them with existing methods.
Introduction
Hierarchical clustering (HC) is a fundamental tool in data science, used to construct "dendrograms" that represent data relationships across multiple scales. Traditionally, these algorithms require a complete matrix of pairwise similarities or distances. However, in many real-world domains—such as psychology, evolutionary biology, or crowd-sourced preference tasks—raw numerical similarities are unavailable. Instead, researchers must rely on comparisons: "Is a cat more like a dog than it is like a toaster?"
While previous work has developed algorithms to build trees from these ordinal comparisons, a significant gap remained: how to evaluate the quality of a resulting tree without access to ground truth or the underlying similarity scores. Standard metrics, such as Dasgupta’s cost, rely on the very similarity values that comparison-based learning seeks to avoid. This paper introduces a novel "revenue function" that defines the goodness of a hierarchy based purely on the internal logic of the comparisons themselves.
Methodology: Revenue and Linkage
The authors propose two primary revenue functions to evaluate dendrogram quality:
- Triplet Revenue ($Trev$): Based on triplets $(i, j, k)$ where $i$ is more similar to $j$ than to $k$. A high-quality tree should merge $i$ and $j$ at a lower level (closer to the leaves) than it merges $i$ and $k$.
- Quadruplet Revenue ($Qrev$): A similar logic applied to sets of four objects $(i, j, k, l)$.
The Theoretical Connection
The paper’s core contribution is Theorem 1, which proves that these comparison-based revenues are mathematically equivalent to Dasgupta’s Revenue ( a gold standard in hierarchical clustering) provided one uses a specific "additive similarity" derived from the comparisons. This theoretical bridge allows the authors to adapt the classical Average Linkage (AL) algorithm to work directly with comparisons. These adapted versions are termed AddS3-AL (for triplets) and AddS4-AL (for quadruplets).
Key Insights and Theoretical Results
- Revenue as a Proxy for Truth: The authors demonstrate a strong correlation between their unsupervised revenue score and supervised metrics like the Adjusted Rand Index (AARI). This implies that a tree with high revenue is likely to reflect the "true" underlying hierarchy of the data.
- Efficiency in Sampling: A major hurdle in comparison-based learning is the cubic growth of possible triplets ($O(n^3)$). The authors prove that a $(1 - \epsilon)$-approximation of the optimal revenue can be achieved using only $O(n^2 \log n)$ randomly sampled triplets, significantly improving the scalability of the approach.
- Robustness to Noise: The revenue function remains a reliable indicator of quality even when comparisons are "flipped" due to noise, a common occurrence in human-annotated datasets.
Empirical Evaluation
The researchers evaluated their methods on a mix of synthetic and real-world data:
- Planted Model: A synthetic binary tree where similarities are generated with Gaussian noise to test the recovery of a known latent hierarchy.
- Standard Datasets: Subsets of Zoo, Glass, and MNIST.
- Comparison-based Datasets: Real-world data from the
cblearnrepository, including Car, Food, Vogue, Nature, and Imagenet. These consist of human-provided ordinal comparisons.
On synthetic hierarchies, the revenue maximization successfully recovered the latent structure. On real-world datasets, AddS3-AL and AddS4-AL consistently outperformed or matched state-of-the-art comparison-based methods like tSTE-AL and MulK3-AL. Notably, the authors found that using a limited number of comparisons often yielded hierarchies nearly as accurate as those built using full similarity matrices (the "Cosine-AL" baseline).
Conclusion and Future Work
While the proposed revenue function provides a principled way to evaluate and build hierarchies from comparisons, some theoretical challenges remain. Specifically, extending approximation guarantees to cases where "additive similarities" are negative is an open problem. Additionally, while Average Linkage serves as an effective heuristic, maximizing revenue is likely NP-hard. Future research will focus on developing linear-time algorithms to handle increasingly massive comparison-based datasets.
Summary updated