Abstract
We investigate metric optimization problems where distances can be accessed via two oracles: a "strong" oracle providing exact distances and a "weak" oracle providing potentially corrupted estimates. This model reflects the real-world trade-off between expensive, high-fidelity models (e.g., large-scale embeddings) and cheaper, noisier alternatives. We present optimal algorithms for $k$-clustering and Minimum Spanning Tree (MST) that minimize strong oracle queries. For $k$-clustering, we achieve constant factor approximations with $\tilde{O}(k)$ strong point queries. For MST, we provide an $O(\sqrt{\log n})$ approximation using zero strong queries. Empirical evaluations on synthetic and real-world datasets demonstrate that our methods achieve near-baseline performance while querying the strong oracle for less than 1% of the data.
Introduction
Modern machine learning often relies on massive embedding models (like BERT or CLIP) to measure similarity. While accurate, these models are computationally prohibitive at scale. Engineers frequently supplement these with "weak" models—lightweight networks or simple metadata—which are faster but prone to errors. This paper formalizes the Weak-Strong Oracle Model to rigorously study the trade-off between precision and cost. The central question is: how many expensive "strong" queries are necessary to maintain high solution quality?
The Weak-Strong Oracle Model
The framework defines two types of distance oracles:
- Strong Oracle (SO): Returns the exact distance $d(x, y)$. We distinguish between edge queries (individual distances) and point queries (symbolic values, like embeddings, allowing distance calculation to all other queried points).
- Weak Oracle (WO): Returns a distance $\tilde{d}(x, y)$ that is correct with probability $1-\delta$ but may be arbitrarily corrupted with probability $\delta$.
Point queries act as force multipliers: a single point query enables distance calculations to all previously queried points, leading to a query complexity of $\tilde{O}(k)$ for clustering, compared to $\tilde{\Theta}(k^2)$ for edge queries.
Algorithms for Clustering
The authors focus on $k$-clustering problems, including $k$-center, $k$-median, and $k$-means. The core strategy for $k$-center involves a recursive "sample and cover" approach combined with greedy ball carving.
The algorithm leverages the median of weak oracle distances as a robust estimator. Since the median is resilient to outliers (provided $\delta < 1/2$), it effectively filters out corrupted weak distances, allowing the algorithm to "bootstrap" accuracy from noisy data. For point queries, this approach achieves a constant-factor approximation with only $\tilde{O}(k)$ queries, which is proven to be mathematically optimal.
Minimum Spanning Tree (MST)
A surprising result emerges for the MST problem: if the weak oracle satisfies the triangle inequality (a "metric-weak" oracle), a $O(\sqrt{\log n})$ approximation is possible without any strong oracle queries. The authors employ a bounded-degree tree transformation to prevent a small number of corrupted edges from compromising the global structure. This highlights the inherent robustness of MST structures when the underlying noise still behaves like a metric.
Empirical Evaluation
The researchers evaluated their algorithms using two primary sources:
- Stochastic Block Model (SBM): A synthetic benchmark for clustering where ground truth clusters are well-defined but distances are subjected to noise.
- MNIST: Real-world handwritten digits using t-SNE (well-clustered) and SVD (noisy) embeddings.
In both cases, the proposed algorithms matched the performance of "strong baselines" (which use 100% exact distances) while querying the strong oracle for less than 1% of the points.
Conclusion
This work establishes a vital theoretical foundation for the "retrieve-then-rerank" architectures and multi-model pipelines that are becoming standard in large-scale AI production systems. By intelligently combining expensive and cheap oracles, it is possible to solve complex metric optimization problems with minimal resource expenditure. Future work may explore non-metric weak oracles for MST and scenarios where corruption exceeds 50%.
Summary updated