Composable Coresets for Determinant Maximization: Greedy is Almost Optimal

Siddharth Gollapudi, Sepideh Mahabadi, Varun Sivashankar

Abstract

Determinant Maximization is a fundamental task for ensuring diversity in data summarization. In large-scale distributed and streaming settings, "composable coresets" are used to maintain efficiency. While complex Local Search algorithms have historically provided the best theoretical guarantees for these coresets, practitioners favor the simpler Greedy algorithm due to its speed. This paper bridges the gap between theory and practice by proving a new "local optimality" property for the Greedy algorithm. Specifically, the authors show that a Greedy solution is robust against single-point swaps, leading to a significantly improved approximation guarantee of $O(k)^{3k}$ for composable coresets, matching the performance of more complex methods.

Introduction

In many machine learning applications, selecting a representative subset of data requires balancing quality with diversity. Determinant Maximization serves as the mathematical standard for this task: given a set of vectors $P \subset \mathbb{R}^d$, the goal is to select a subset $\mathcal{C}$ of size $k$ that maximizes the volume of the parallelepiped spanned by these vectors, represented by the determinant of the Gram matrix.

As datasets scale, processing the entire pool at once becomes infeasible. This necessitates the use of composable coresets. In this framework, a massive dataset is partitioned, and a small summary (coreset) is extracted from each partition independently. These coresets are then merged and processed to find a final global summary. A coreset is effective if the optimal solution on the merged coresets is a good approximation of the optimal solution on the full dataset.

Algorithms and Methodology

The two primary approaches to this problem are the Greedy algorithm and the Local Search algorithm.

Pseudocode for the Greedy and Local Search algorithms for Determinant Maximization.

The Greedy algorithm (Algorithm 1) builds the set $\mathcal{C}$ iteratively by selecting the point $p$ that maximizes the volume of the set $\mathcal{C} \cup \{p\}$. In contrast, the Local Search algorithm (Algorithm 2) starts with a greedy solution and iteratively attempts to improve it by swapping a point in $\mathcal{C}$ with a point in $P \setminus \mathcal{C}$ if the swap increases the volume by a factor of at least $(1+\epsilon)$.

While Local Search offers superior theoretical bounds ($O(k)^{2k}$), its iterative nature is computationally expensive. The Greedy algorithm is much faster but previously had an exponentially worse theoretical guarantee ($C^{k^2}$). This paper proves that the Greedy solution is already "almost" locally optimal, making the expensive swap iterations of Local Search largely unnecessary.

Theoretical Insights: The Local Optimality of Greedy

The core contribution of this work is a proof using linear algebra—specifically the Gram-Schmidt process and the Matrix Determinant Lemma—to bound the potential gain from a single swap in a greedy solution.

The authors prove that for any set $\mathcal{C}$ chosen greedily and any points $q \in P \setminus \mathcal{C}$ and $p \in \mathcal{C}$, the volume ratio satisfies: $$\text{vol}(\mathcal{C} - p + q) \leq (1 + \sqrt{k}) \text{vol}(\mathcal{C})$$

This $(1 + \sqrt{k})$ bound is shown to be tight. By establishing this "swap" bound, the authors leverage existing frameworks for Local Search to provide a new, much tighter approximation factor for Greedy coresets: $O(k)^{3k}$. This moves Greedy from being theoretically poor to near-optimal in the composable coreset setting.

Empirical Evaluation

The theoretical findings were validated using synthetic data and two real-world benchmarks:

  • MNIST: 60,000 hand-written digit images (784-dimensional vectors).
  • GENES: Approximately 8,000 gene feature vectors used in cancer research.

Experiments showed that the theoretical $(1 + \sqrt{k})$ bound is conservative. While the theory allows for a swap to improve volume by a factor of $\sim 17$ for $k=300$, empirical results on real data showed improvements were almost always less than 1.5. This suggests that real-world data distributions are even more favorable to the Greedy algorithm than the worst-case analysis implies. Furthermore, the local optimality of Greedy remained stable as dataset sizes increased, confirming its reliability for massive scaling.

Conclusion

This research demonstrates that the simple Greedy algorithm is a powerful and theoretically sound tool for large-scale Determinant Maximization. By proving its near-local optimality, the authors have justified its widespread use in practice and provided a much-needed theoretical foundation for its performance in distributed environments. Future work may focus on narrowing the remaining gap between the $O(k)^{3k}$ bound and the $\tilde{O}(k)^k$ lower bound, as well as exploring the robustness of Greedy against multi-point swaps.

Summary updated

BibTeX
@inproceedings{gollapudi2023composable,
  author = {Siddharth Gollapudi and Sepideh Mahabadi and Varun Sivashankar},
  title = {{Composable Coresets for Determinant Maximization: Greedy is Almost Optimal}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=gwvwbsnTps},
}
Figure