[Paper Review] Introduction to Coresets: Accurate Coresets
This paper introduces a comprehensive, accessible guide to accurate coresets—small, weighted subsets of data that preserve exact solutions for fundamental problems like vector sum, 1-mean, and low-rank approximation. It presents simple, provably correct algorithms based on Carathéodory's theorem and linear algebra, with O(nd²) or O(nd + d⁴ log n) construction times, and provides open-source code to bridge theory and practice for beginners and experts alike.
A coreset (or core-set) of an input set is its small summation, such that solving a problem on the coreset as its input, provably yields the same result as solving the same problem on the original (full) set, for a given family of problems (models, classifiers, loss functions). Over the past decade, coreset construction algorithms have been suggested for many fundamental problems in e.g. machine/deep learning, computer vision, graphics, databases, and theoretical computer science. This introductory paper was written following requests from (usually non-expert, but also colleagues) regarding the many inconsistent coreset definitions, lack of available source code, the required deep theoretical background from different fields, and the dense papers that make it hard for beginners to apply coresets and develop new ones. The paper provides folklore, classic and simple results including step-by-step proofs and figures, for the simplest (accurate) coresets of very basic problems, such as: sum of vectors, minimum enclosing ball, SVD/ PCA and linear regression. Nevertheless, we did not find most of their constructions in the literature. Moreover, we expect that putting them together in a retrospective context would help the reader to grasp modern results that usually extend and generalize these fundamental observations. Experts might appreciate the unified notation and comparison table that links between existing results. Open source code with example scripts are provided for all the presented algorithms, to demonstrate their practical usage, and to support the readers who are more familiar with programming than math.
Motivation & Objective
- To unify and clarify inconsistent coreset definitions across literature.
- To provide accessible, step-by-step proofs and implementations of foundational accurate coreset constructions.
- To lower the barrier to entry for researchers and practitioners by offering intuitive explanations and open-source code.
- To demonstrate that simple, exact coresets exist for core problems like vector sum and 1-mean, despite their absence in standard literature.
- To serve as a foundation for understanding modern coreset techniques by building from elementary, folklore results.
Proposed method
- Uses Carathéodory's theorem to reduce any weighted set of n points in R^d to a subset of at most d+1 points with identical weighted sum.
- Applies iterative weight elimination via solving linear systems to shrink the coreset while preserving the sum and non-negative weights.
- Employs a streaming-style clustering and recursive reduction strategy to achieve O(nd + d⁴ log n) time complexity.
- Leverages SVD to compute the right singular vector corresponding to the smallest singular value for finding valid coefficients in the reduction step.
- Implements a hierarchical coreset construction by clustering input points into O(n/d) groups, computing their means, and applying Carathéodory only to the means.
- Provides full open-source code with example scripts to demonstrate practical usage and validate theoretical claims.
Experimental results
Research questions
- RQ1Can simple, exact coresets be constructed for basic problems like vector sum and 1-mean using elementary linear algebra?
- RQ2Why are foundational accurate coreset constructions—such as for vector sum and 1-mean—missing from standard literature despite being folklore?
- RQ3How can the time complexity of coreset construction be reduced from O(n²d²) to O(nd + d⁴ log n) using clustering and recursive reduction?
- RQ4What is the role of Carathéodory's theorem in constructing minimal, exact coresets with non-negative weights?
- RQ5How can theoretical coreset constructions be made practically accessible through code and intuitive explanations?
Key findings
- A weighted subset of size at most d+1 can be computed in O(nd²) time that preserves the exact weighted sum of any n points in R^d.
- For the 1-mean problem with non-negative weights, a coreset of size at most d+3 exists and can be constructed in O(min{n²d², nd + d⁴ log n}) time.
- An optimized algorithm reduces construction time to O(nd + d⁴ log n) by clustering input points and applying Carathéodory only to cluster means.
- The algorithm guarantees that the coreset's weights sum to one and the weighted sum matches the original input exactly.
- The paper demonstrates that coresets for vector sum and 1-mean are not only possible but can be constructed efficiently using basic linear algebra and SVD.
- All algorithms are accompanied by open-source implementations, enabling reproducibility and practical adoption by researchers and practitioners.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.