[Paper Review] k-Means Clustering of Lines for Big Data
This paper proposes the first Polynomial-Time Approximation Scheme (PTAS) for k-line median clustering in ℝᵈ, achieving a (1+ε)-approximation in O(n log n) time for constant k, d, and ε. It introduces a coreset of size dk^O(k) log n / ε² that enables efficient streaming and distributed computation across M machines with near-logarithmic memory, communication, and update costs, validated by experiments on Amazon EC2 and real-world applications in computer vision and anomaly detection.
The input to the $k$-median for lines problem is a set $L$ of $n$ lines in $\mathbb{R}^d$, and the goal is to compute a set of $k$ centers (points) in $\mathbb{R}^d$ that minimizes the sum of squared distances over every line in $L$ and its nearest center. This is a straightforward generalization of the $k$-median problem where the input is a set of $n$ points instead of lines. We suggest the first PTAS that computes a $(1+ε)$-approximation to this problem in time $O(n \log n)$ for any constant approximation error $ε\in (0, 1)$, and constant integers $k, d \geq 1$. This is by proving that there is always a weighted subset (called coreset) of $dk^{O(k)}\log (n)/ε^2$ lines in $L$ that approximates the sum of squared distances from $L$ to any given set of $k$ points. Using traditional merge-and-reduce technique, this coreset implies results for a streaming set (possibly infinite) of lines to $M$ machines in one pass (e.g. cloud) using memory, update time and communication that is near-logarithmic in $n$, as well as deletion of any line but using linear space. These results generalized for other distance functions such as $k$-median (sum of distances) or ignoring farthest $m$ lines from the given centers to handle outliers. Experimental results on 10 machines on Amazon EC2 cloud show that the algorithm performs well in practice. Open source code for all the algorithms and experiments is also provided. This thesis is an extension of the following accepted paper: "$k$-Means Clustering of Lines for Big Data", by Yair Marom & Dan Feldman, Proceedings of NeurIPS 2019 conference, to appear on December 2019.
Motivation & Objective
- Address the lack of efficient approximation algorithms for k-line median clustering in high-dimensional spaces.
- Develop a coreset construction method that reduces the input size while preserving the sum of squared distances to any k centers.
- Enable efficient distributed and streaming computation of k-line median using the coreset and merge-and-reduce techniques.
- Validate the method on real-world applications such as drone pose estimation and anomaly detection in computer vision.
- Extend the framework to handle outliers and other distance functions like k-median and robust clustering.
Proposed method
- Prove the existence of a (1+ε)-approximate coreset of size dk^O(k) log n / ε² for k-line median in ℝᵈ.
- Use sensitivity sampling to compute the coreset by assigning each line a weight proportional to its contribution to the optimal cost.
- Apply the merge-and-reduce technique to support streaming and distributed processing across M machines.
- Design a bi-criteria approximation algorithm that outputs a set of candidate centers from which a (1+ε)-approximation can be derived.
- Leverage VC-dimension bounds to ensure generalization and stability of the coreset under various distance functions.
- Implement and evaluate the algorithm using a coreset-based EM algorithm for practical deployment on cloud infrastructure.
Experimental results
Research questions
- RQ1Can a (1+ε)-approximate coreset be constructed for k-line median in ℝᵈ with size sublinear in n and polynomial in k and 1/ε?
- RQ2Can this coreset be used to design a streaming or distributed algorithm that maintains near-logarithmic memory, communication, and update time?
- RQ3How does the coreset-based approach compare to standard heuristics like RANSAC and EM in terms of accuracy and stability for anomaly detection?
- RQ4Can the framework be extended to handle k-median and robust clustering with outliers?
- RQ5What is the empirical performance of the coreset in real-world applications such as 3D pose estimation from multiple camera views?
Key findings
- The proposed coreset construction achieves a (1+ε)-approximation for k-line median in O(n log n) time, with coreset size dk^O(k) log n / ε².
- The coreset enables a streaming algorithm where each machine sends only O(log n) lines to the main server, achieving near-logarithmic communication and update time.
- Experimental results on 10 machines in Amazon EC2 show that the coreset construction time decreases nearly linearly with the number of machines.
- In anomaly detection tasks, the coreset achieved an error of ε=0.4 with m=1000 samples, outperforming RANSAC, which had an error of 1.8 under the same conditions.
- The coreset-based method detected 3.2 outliers on average (out of 6) with a 10% sample size, while RANSAC detected less than 1 outlier, demonstrating superior sampling quality.
- Visualizations confirmed that coreset outliers were globally and locally dominant, whereas RANSAC missed key outliers, indicating better robustness and accuracy.
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.