Learning Partitions with Optimal Query and Round Complexities

Hadley Black, Arya Mazumdar, Barna Saha

Abstract

This paper provides a complete characterization of the trade-off between query complexity and round complexity for the problem of learning an unknown partition of $n$ elements into $k$ clusters. While traditional sequential algorithms require $O(k)$ rounds to achieve efficiency, this work introduces a novel recursive framework that achieves optimal query complexity in only $O(\log \log n)$ rounds. This double-exponential improvement in adaptivity has significant implications for parallelizing tasks in clustering, database entity resolution, and crowdsourcing.

Introduction

Partition learning is a fundamental problem in machine learning and data management. Given a set of $n$ items belonging to at most $k$ hidden groups, the goal is to determine the underlying partition by querying an oracle. In practical applications like crowdsourcing or large-scale entity resolution, the efficiency of an algorithm is measured by two primary metrics: query complexity (the total number of questions asked) and round complexity (the number of sequential batches of questions).

There is a natural tension between these two. A fully adaptive algorithm (one query per round) is query-efficient but slow due to high latency. Conversely, a non-adaptive algorithm (all queries in one round) is fast but requires a prohibitive $\Theta(n^2)$ queries. This paper bridges the gap, identifying the optimal query complexity for any fixed number of rounds $r$.

Problem Formulation

The authors consider an oracle model where queries can be pairwise (asking if two items are in the same set) or subset-based.

  1. Pairwise Queries: The oracle returns a binary answer indicating if elements $i$ and $j$ belong to the same partition.
  2. Subset Queries: The oracle returns the number of distinct groups represented in a subset of size $s$. The paper distinguishes between "weak" queries (returning the count) and "strong" queries (returning the exact grouping of the subset).

Methodology

The research utilizes a combination of recursive algorithmic design and extremal graph theory to establish tight bounds.

Recursive Algorithmic Framework

For pairwise queries, the authors propose a strategy that divides elements into small batches. The algorithm learns partitions within these batches non-adaptively and then uses subsequent rounds to merge these partitions. This is achieved by querying representatives from each discovered set, effectively reducing the problem size at each step.

LearnSparse Subroutine

To handle subset queries, the authors developed a randomized subroutine called LearnSparse. This tool identifies pairs belonging to different sets by sampling random subsets. If the count returned by the oracle matches the subset size, the algorithm concludes that all elements in that subset belong to different groups. This allows for efficient pruning of the search space.

Lower Bounds via Turán’s Theorem

To prove optimality, the authors model queries as edges in a graph. By applying Turán’s Theorem, they demonstrate that if an algorithm asks fewer than the specified number of queries, there must exist a large "independent set" of elements. Within this set, the oracle can hide multiple valid partition configurations that the algorithm cannot distinguish, proving that the proposed query counts are the minimum necessary.

Key Results and Insights

The Smooth Interpolation

The paper establishes a precise mathematical formula for deterministic query complexity given $r$ rounds: $\Theta(n^{1+ \frac{1}{2^r-1}} k^{1- \frac{1}{2^r-1}})$. This formula successfully bridges the gap between the non-adaptive ($r=1$) and fully adaptive settings.

Double-Exponential Speedup

One of the most striking findings is that $O(\log \log n)$ rounds are sufficient to reach the information-theoretic optimal query complexity of $O(nk)$. For a dataset of one million elements, $\log \log n$ is approximately 4 or 5, whereas the number of clusters $k$ could be in the thousands. This represents a massive improvement over previous state-of-the-art algorithms that required $k-1$ rounds.

Weak vs. Strong Queries

The study reveals that for subset sizes $s \le \sqrt{n}$, "weak" queries (which only provide a count of groups) are just as powerful as "strong" queries (which provide the full sub-partition). This is significant for communication efficiency, as weak queries require only $O(\log k)$ bits of communication from the oracle, compared to $O(s \log k)$ bits for strong queries.

Conclusion and Future Work

This work provides the first tight characterization of the query-round trade-off for partition learning. By showing that optimal query complexity can be achieved in a very small number of rounds, the authors provide a theoretical foundation for highly parallelized clustering algorithms.

Future research directions include establishing matching lower bounds for randomized algorithms, as the current lower bounds are strictly deterministic. Additionally, extending these models to handle noisy or adversarial oracles would make the algorithms more robust for real-world crowdsourcing environments where human error is prevalent.

Summary updated

BibTeX
@inproceedings{black2025learning,
  author = {Hadley Black and Arya Mazumdar and Barna Saha},
  title = {{Learning Partitions with Optimal Query and Round Complexities}},
  booktitle = {Conference on Learning Theory},
  year = {2025},
}
Figure