How to Design Robust Algorithms using Noisy Comparison Oracle

Raghavendra Addanki, Sainyam Galhotra, Barna Saha · DOI

Abstract

Metric based comparison operations such as finding maximum, nearest and farthest neighbor are fundamental to studying various clustering techniques such as k -center clustering and agglomerative hierarchical clustering. These techniques crucially rely on accurate estimation of pairwise distance between records. However, computing exact features of the records, and their pairwise distances is often challenging, and sometimes not possible. We circumvent this challenge by leveraging weak supervision in the form of a comparison oracle that compares the relative distance between the queried points such as `Is point u closer to v or w closer to x ?'. However, it is possible that some queries are easier to answer than others using a comparison oracle. We capture this by introducing two different noise models called adversarial and probabilistic noise. In this paper, we study various problems that include finding maximum, nearest/farthest neighbor search under these noise models. Building upon the techniques we develop for these problems, we give robust algorithms for k -center clustering and agglomerative hierarchical clustering. We prove that our algorithms achieve good approximation guarantees with a high probability and analyze their query complexity. We evaluate the effectiveness and efficiency of our techniques empirically on various real-world datasets.

Introduction

Most clustering algorithms, such as $k$-means or $k$-center, rely on a well-defined metric, assuming that the distance between any two data points can be precisely calculated. In practice, this is often impossible due to missing features or the subjective nature of similarity (e.g., comparing images). While researchers have explored "crowd oracles" to bridge this gap, asking humans to provide absolute cluster labels is often unrealistic.

This research shifts the focus to quadruplet queries: "Is $d(u, v) \leq d(w, x)$?" Humans are significantly more adept at these relative comparisons. However, these queries remain prone to noise, particularly when the distances being compared are very similar. We propose a framework to handle such noise and build robust algorithms for fundamental metric tasks.

Noise Models and Challenges

We define two specific noise models to characterize oracle unreliability:

  1. Adversarial Noise: The oracle may provide an incorrect answer only if the two distances are within a multiplicative factor $(1+\mu)$ of each other. This captures the inherent difficulty in distinguishing very similar distances.
  2. Probabilistic Noise: The oracle has a fixed probability $p < 0.5$ of being wrong. Crucially, this noise is persistent—repeatedly asking the same question yields the same incorrect answer, making simple majority voting ineffective.
Figure 5: A visualization of the challenges in relative distance comparison. Small differences in distance on a 1D line can lead to errors in noisy oracle models.

Robust Algorithmic Framework

To address these noise models, we develop several robust subroutines:

  • Count-Max: Instead of relying on a single comparison, this algorithm assigns a "score" to each point based on how many other points it is "further" than. This aggregation acts as a stable proxy for distance.
  • Tournament-based Selection: To optimize query complexity, we use a tree-based tournament structure to identify approximate maximums or nearest neighbors efficiently.
  • Robust $k$-center: We adapt the classic greedy $k$-center algorithm by replacing exact distance lookups with our robust "Approx-Farthest" and "Assign" subroutines.
Figure 6: Geometric representation of the adversarial noise model, illustrating the regions of uncertainty (shaded) where comparisons relative to point $u$ become unreliable.

Experimental Results

Our algorithms were evaluated on five diverse real-world datasets, including geographic data (Cities), image categories (Caltech-256), and large-scale text embeddings (DBLP).

  • Theoretical Guarantees: For $k$-center clustering under adversarial noise, we achieve a $(2 + O(\mu))$ approximation, nearly matching the theoretical optimum of 2 for noiseless data.
  • High Accuracy: On the Caltech and Amazon datasets, our robust $k$-center algorithm achieved an F-score of over 0.90, significantly outperforming baseline methods.
  • Efficiency: For the massive DBLP dataset (1.8M records), our nearest neighbor search completed in less than 6 seconds, demonstrating scalability to large datasets.
  • Human Feasibility: A user study on Amazon Mechanical Turk confirmed that human errors follow the patterns predicted by our noise models, validating the quadruplet oracle as a practical tool for crowdsourcing.

Conclusion

By leveraging relative comparisons and accounting for persistent noise, we demonstrate that it is possible to design robust, efficient clustering algorithms without requiring exact distance metrics. This approach opens new possibilities for analyzing datasets where similarity is subjective or difficult to quantify precisely.

Summary updated

BibTeX
@article{addanki2021how,
  author = {Raghavendra Addanki and Sainyam Galhotra and Barna Saha},
  title = {{How to Design Robust Algorithms using Noisy Comparison Oracle}},
  journal = {Proc. VLDB Endow.},
  year = {2021},
  doi = {10.14778/3467861.3467862},
}
Figure