Presentation is loading. Please wait.

Presentation is loading. Please wait.

CLUSTERABILITY A THEORETICAL STUDY Margareta Ackerman Joint work with Shai Ben-David.

Similar presentations


Presentation on theme: "CLUSTERABILITY A THEORETICAL STUDY Margareta Ackerman Joint work with Shai Ben-David."— Presentation transcript:

1 CLUSTERABILITY A THEORETICAL STUDY Margareta Ackerman Joint work with Shai Ben-David

2 The theory-practice gap Clustering is one of the most widely used tools for exploratory data analysis. Social Sciences Biology Astronomy Computer Science.. All apply clustering to gain a first understanding of the structure of large data sets. Yet, there is distressingly little theoretical understanding of clustering.

3 Inherent obstacles Clustering is not well defined. There is a wide variety of different clustering tasks, with different (often implicit) measures of quality. In most practical clustering tasks there is no clear ground truth to evaluate your solution by. (in contrast with classification tasks, in which you can have a hold out labeled set to evaluate the classifier against).

4 Common solutions Objective utility functions Sum Of In-Cluster Distances, Average Distances to Center Points, Cut Weight, Spectral Clustering, etc. (Shmoys, Charikar, Meyerson, Luxburg,..) Analyze the computational complexity of discrete optimization problems. Consider a restricted set of distributions (“generative models”): Ex. Mixtures of Gaussians [Dasgupta ‘99], [Vempala, ’03], [Kannan et al ‘04], [Achlitopas, McSherry ‘05]. Recover the parameters of the model generating the data. Many more….

5 Quest for a General Theory What can we say independently of any specific algorithm, specific objective function, or specific generative data model ? Axioms of clustering Ex. Clustering functions [Puzicha, Hofmann, Buhmann ‘00], [Kleinberg ‘02] Axioms of clustering quality measures [Ackerman and Ben-David, ‘08]. Find axioms that define clustering.

6 Why study clusterability? Even if a data set has no meaningful structure, any clustering algorithm will find some partition of the data set. Clusterability aims to determine whether a data set can be meaningfully clustered. Notions of clusterability quantify the degree of clustered structure in a data set.

7 Our contributions We set out to explore notions of clusterability, compare them, and find patterns of similarity. Computational complexity of clustering Data sets that are more clusterable are computationally easier to cluster well. Hardness Determining whether a data set is clusterable is usually NP-hard. Comparison Notions of clusterability are pairwise inconsistent.

8 Outline  Definitions and notation  Clusterability and the complexity of clustering  Introduce a new notion of clusterability: PC-clusterability  Worst pair ratio (Epter, Krishnamoorthy, and Zaki, 1999)  Separability (Ostrovsky, Rabani, Schulman, and Swamy, 2006)  Variance ratio (Zhang, 2001)  Comparison of notions of clusterability  The hardness of determining clusterability  Summary and future work

9 Definitions and Notation kXkX  A k-clustering of X is a k-partition of X kk  A loss function (or cost function) is a function that takes a clustering and outputs a real number. Ex. k-median, k-means. OPT L,k (X)  Let OPT L,k (X) denote the minimal loss over all kX k-clusterings of X. OPT L,k (X) = min{ L (C): C a k-clustering of X}.

10 Definitions and Notation C ={X 1 X 2, …,X k } c i X i X i c i A clustering C = {X 1, X 2, …, X k } is center-based if there are centers c i in X i, such that all points in X i are closer to c i than to any other center.

11 Outline  Definitions and notation  Clusterability and the complexity of clustering  Introduce a new notion of clusterability: PC-clusterability  Worst pair ratio (Epter, Krishnamoorthy, and Zaki, 1999)  Separability (Ostrovsky, Rabani, Schulman, and Swamy, 2006)  Variance ratio (Zhang, 2001)  Comparison of notions of clusterability  The hardness of determining clusterability  Summary and future work

12 Better clusterability implies that data is easier to cluster well k k In most formulations, clustering is an NP-hard problem. (ex. k-means and k-median clustering, correlation clustering, ect.)  When a data set has no significant clustered structure, there is no sense in clustering it.  Clustering makes sense only on data sets that have meaningful clustering structure.  We show that the more clusterable a data set is, the easier it is to cluster well.  Clustering is hard only when there isn’t sufficient clustering structure in the data set.

13 Outline  Definitions and notation  Clusterability and the complexity of clustering  Introduce a new notion of clusterability: PC-clusterability  Worst pair ratio (Epter, Krishnamoorthy, and Zaki, 1999)  Separability (Ostrovsky, Rabani, Schulman, and Swamy, 2006)  Variance ratio (Zhang, 2001)  Comparison of notions of clusterability  The hardness of determining clusterability  Summary and future work

14 Center Perturbation Clusterability: A high level definition L Call a clustering optimal when it has optimal cost by some loss function L. If a clustering looks like the optimal clustering, we might expect that its cost is also near-optimal (in well-clusterable data sets.) X X A data set X is CP-clusterable if all clusterings that are structurally similar to an optimal clustering of X have near-optimal cost.

15 Center Perturbation Clusterability C C’ε Two center-based clusterings C and C’ are ε-close if there exist c 1 c 2, c 3,…,c k Cc’ 1 c’ 2, c’ 3,…,c’ k C’ centers c 1, c 2, c 3,…, c k of C and c’ 1, c’ 2, c’ 3,…, c’ k of C’ s.t. |c i -c’ i | ≤ |c i -c’ i | ≤ ε. Definition: X(ε,δ)-k CXεk X A data set X is (ε,δ)-CP Clusterable (for k) if for every clustering C of X that is ε-close to some optimal k- clustering of X, L (C) ≤(1+ δ) OPT L,k (X). Definition: X(ε,δ)-k CXεk X A data set X is (ε,δ)-CP Clusterable (for k) if for every clustering C of X that is ε-close to some optimal k- clustering of X, L (C) ≤(1+ δ) OPT L,k (X).

16 Good PC-clusterability implies that it is easy to cluster well This result holds with any loss function where the optimal clusterings are center-based. Theorem: X R m (rad(X)/sqrt(l),δ) k nkC Given a data set X in R m that is (rad(X)/sqrt(l),δ)-PC clusterable (for k), there is an algorithm that runs in time polynomial in n, and outputs a k-clustering C such that L (C) ≤(1+ δ) OPT L,k (X). Theorem: X R m (rad(X)/sqrt(l),δ) k nkC Given a data set X in R m that is (rad(X)/sqrt(l),δ)-PC clusterable (for k), there is an algorithm that runs in time polynomial in n, and outputs a k-clustering C such that L (C) ≤(1+ δ) OPT L,k (X).

17 Proof that PC-clusterability implies that it is easy to cluster well ll X Let an l -sequence denote a collection of l elements of X (not necessarily distinct). Algorithm 1: k l X For each k-tuple of l -sequences of X S l S := centers of mass of the l -sequences C temp SX C temp := the clustering that S induces on X L (C temp ) L (C) If L (C temp ) < L (C) C C temp C := C temp C Return C Algorithm 1: k l X For each k-tuple of l -sequences of X S l S := centers of mass of the l -sequences C temp SX C temp := the clustering that S induces on X L (C temp ) L (C) If L (C temp ) < L (C) C C temp C := C temp C Return C

18 Proof that PC-clusterability implies that it is easy to cluster well C’ rad(X)/sqrt( l )X  By Maurey’s result, there is a clustering C’ examined by Algorithm 1 that is rad(X)/sqrt( l )-close to an optimal clustering of X. L (C)≤ L (C‘)  Since Algorithm 1 selects the minimal loss clustering of the ones it examines, L (C)≤ L (C‘). X(rad(X)/sqrt(l),δ)  Since X is (rad(X)/sqrt(l),δ)-PC clusterable, L (C)≤ L (C ‘) ≤ (1+ δ) OPT L,k (X). L (C)≤ L (C ‘) ≤ (1+ δ) OPT L,k (X). Theorem [Maurey, 1981]: l ≥1xX R m x 1, x 2,,…, x l ɛ X x i rad(X)/sqrt( l ) x For any fix l ≥1, and each x in the convex hull of X in R m, there exist x 1, x 2,,…, x l ɛ X such that the average of the x i ’s is at most rad(X)/sqrt( l ) away from x. Theorem [Maurey, 1981]: l ≥1xX R m x 1, x 2,,…, x l ɛ X x i rad(X)/sqrt( l ) x For any fix l ≥1, and each x in the convex hull of X in R m, there exist x 1, x 2,,…, x l ɛ X such that the average of the x i ’s is at most rad(X)/sqrt( l ) away from x.

19 Outline  Definitions and notation  Clusterability and the complexity of clustering  Introduce a new notion of clusterability: PC-clusterability  Worst pair ratio (Epter, Krishnamoorthy, and Zaki, 1999)  Separability (Ostrovsky, Rabani, Schulman, and Swamy, 2006)  Variance ratio (Zhang, 2001)  Comparison of notions of clusterability  The hardness of determining clusterability  Summary and future work

20 Worst Pair Ratio Clusterability: Preliminaries  The width of a clustering is the maximum distance between points in the same cluster (over all clusters).  The split of a clustering is the minimum distance between points in different clusters. Introduced by Epter, Krishnamoorthy, and Zaki in 1999. Definition: Xk The Worst Pair Ratio of X (w.r.t. k) is WPR k (X)=max{(C)/(C) : C k X}. WPR k (X)=max{split(C)/width(C) : C a k-clustering of X}. Definition: Xk The Worst Pair Ratio of X (w.r.t. k) is WPR k (X)=max{(C)/(C) : C k X}. WPR k (X)=max{split(C)/width(C) : C a k-clustering of X}.

21 Better WPR-clusterability implies that it is easier to cluster well Theorem: Xn Given a data set X (on n elements) where WPR k (X) > 1kX O(n 2 log n) WPR k (X) > 1, we can find a k-clustering of X with the maximal split over width ratio in time O(n 2 log n). Theorem: Xn Given a data set X (on n elements) where WPR k (X) > 1kX O(n 2 log n) WPR k (X) > 1, we can find a k-clustering of X with the maximal split over width ratio in time O(n 2 log n).

22 Outline  Definitions and notation  Clusterability and the complexity of clustering  Introduce a new notion of clusterability: PC-clusterability  Worst pair ratio (Epter, Krishnamoorthy, and Zaki, 1999)  Separability (Ostrovsky, Rabani, Schulman, and Swamy, 2006)  Variance ratio (Zhang, 2001)  Comparison of notions of clusterability  The hardness of determining clusterability  Summary and future work

23 Separability clusterability k-1k  Separability measures how much is gained in the transition from k-1 to k clusters. L k  In the original definition, L is k-means. Introduced by Ostrovsky, Rabani, Schulman, and Swamy in 2006. Definition: Xkε A data set X is (k,ε)-separable if OPT L,k (X) ≤ εOPT L,k-1 (X) OPT L,k (X) ≤ εOPT L,k-1 (X). Definition: Xkε A data set X is (k,ε)-separable if OPT L,k (X) ≤ εOPT L,k-1 (X) OPT L,k (X) ≤ εOPT L,k-1 (X).

24 Better separability implies that it is easier to cluster well Theorem [Theorem 4.13, Ostrovsky et al. 2006] : (k, ε 2 )XR m εkk (1- ε 2 )/(1-37 ε 2 )OPT k-means, k (X) 1- O(ε 2 ) O(nm) Given a (k, ε 2 )-separable data set X in R m, for small enough ε, we can find a k-clustering with k-means loss at most (1- ε 2 )/(1-37 ε 2 )OPT k-means, k (X) away from the optimal, with probability at least 1- O(ε 2 ) in time O(nm). Theorem [Theorem 4.13, Ostrovsky et al. 2006] : (k, ε 2 )XR m εkk (1- ε 2 )/(1-37 ε 2 )OPT k-means, k (X) 1- O(ε 2 ) O(nm) Given a (k, ε 2 )-separable data set X in R m, for small enough ε, we can find a k-clustering with k-means loss at most (1- ε 2 )/(1-37 ε 2 )OPT k-means, k (X) away from the optimal, with probability at least 1- O(ε 2 ) in time O(nm).

25 Outline  Definitions and notation  Clusterability and the complexity of clustering  Introduce a new notion of clusterability: PC-clusterability  Worst pair ratio (Epter, Krishnamoorthy, and Zaki, 1999)  Separability (Ostrovsky, Rabani, Schulman, and Swamy, 2006)  Variance ratio (Zhang, 2001)  Comparison of notions of clusterability  The hardness of determining clusterability  Summary and future work

26 Variance Ratio – Preliminaries. Introduced by Zhang in 2001. C The within cluster variance of C is C The between cluster variance of C is Definition: Xk The Variance Ratio of a data set X (for k) is Var k (X) = max{B(C)/W(C) : C k X} Var k (X) = max{B(C)/W(C) : C a k-clustering of X} Definition: Xk The Variance Ratio of a data set X (for k) is Var k (X) = max{B(C)/W(C) : C k X} Var k (X) = max{B(C)/W(C) : C a k-clustering of X}

27 Better VR clusterability implies that it is easier to cluster well Proof: VR 2 (X) = 1/S 2 (X) -1. - We can show that VR 2 (X) = 1/S 2 (X) -1. 2 - The result follows from a theorem by Ostrovsky et al. for 2-clusterings [Theorem 3.5, Ostrovsky et al. 2006]. Theorem: (2, ε 2 )-XR m 2 k1-Θ(ε 2 ) 1- O(ε 2 ) O(nm). Given a (2, ε 2 )-separable data set X in R m, we can find a 2- clustering with k-means loss at most 1-Θ(ε 2 ) away from the optimal, with probability at least 1- O(ε 2 ) in time O(nm). Theorem: (2, ε 2 )-XR m 2 k1-Θ(ε 2 ) 1- O(ε 2 ) O(nm). Given a (2, ε 2 )-separable data set X in R m, we can find a 2- clustering with k-means loss at most 1-Θ(ε 2 ) away from the optimal, with probability at least 1- O(ε 2 ) in time O(nm).

28 Summary of notions of clusterability  Center-perturbation: Whenever a clustering is structurally similar to the optimal clustering, its cost is near-optimal.  Separability : kk-1 Loss of the optimal k-clustering/Loss of the optimal (k-1)-clustering  Variance Ratio: Between-cluster variance/Within-cluster variance.  Worst Pair Ratio: Split/width.

29 Outline  Definitions and notation  Clusterability and the complexity of clustering  Introduce a new notion of clusterability: PC-clusterability  Worst pair ratio (Epter, Krishnamoorthy, and Zaki, 1999)  Separability (Ostrovsky, Rabani, Schulman, and Swamy, 2006)  Variance ratio (Zhang, 2001)  Comparison of notions of clusterability  The hardness of determining clusterability  Summary and future work

30 Comparing notions of clusterability An arrow from notion A to notion B indicates good clusterability by notion A implies good clusterability by notion B. Worst Pair Ratio Variance Ratio Separability Center- Perturbation No two notions are equivalent.

31 Outline  Definitions and notation  Clusterability and the complexity of clustering  Introduce a new notion of clusterability: PC-clusterability  Worst pair ratio (Epter, Krishnamoorthy, and Zaki, 1999)  Separability (Ostrovsky, Rabani, Schulman, and Swamy, 2006)  Variance ratio (Zhang, 2001)  Comparison of notions of clusterability  The hardness of determining clusterability  Summary and future work

32 Computational complexity of determining the clusterability value What is the computational complexity of determining the clusterability of a data set? kε  It is NP-hard to determine whether a data set is (k,ε)-separable.  It is NP-hard to find the Variance Ratio of a data set.  It a data set is well-clusterable by WPR, then the WPR can found in polynomial time.

33 Outline  Definitions and notation  Clusterability and the complexity of clustering  Introduce a new notion of clusterability: PC-clusterability  Worst pair ratio (Epter, Krishnamoorthy, and Zaki, 1999)  Separability (Ostrovsky, Rabani, Schulman, and Swamy, 2006)  Variance ratio (Zhang, 2001)  Comparison of notions of clusterability  The hardness of determining clusterability  Summary and future work

34 Summary  We initiate a study of clusterability and introduce a new notion of clusterability.  We show that three previous and the new notion of clusterabilty are pairwise distinct.  Better clusterability implies that it is easier to cluster well for distinct notions of clusterability.  Determining the degree of clusterability is usually NP-hard.

35 Future work Property: The more clusterable a data set is, the easier it is, computationally, to find a near- optimal clustering of the data.  Does this property hold for other natural notions of clusterability?  Can clusterability be axiomatized?  Can it be shown that the above property holds for all reasonable notions of clusterability?

36 Appendix: Variance Ratio does not imply the other notions X 1 (k-1) B  Select a data set X 1 with arbitrarily poor (k-1)-clusterability according to any other notion B (separability, Worst Pair Ratio, or Center- Perturbation) X 2 X 1  Create data set X 2 by taking X 1 and adding a single point very far away, making it’s own cluster in the optimal k-clustering.  X 2  X 2 can have arbitrarily good Variance Ratio. X 1 X 2 B  Clusterability is the same on data sets X 1 and X 2 by notion B. X1X1X1X1 X2X2X2X2

37 Thinking about clusterability: Are these data sets clusterable? Clusters come in different shapes and sizes.

38 What happens with noise, outliers, and “structureless” data?


Download ppt "CLUSTERABILITY A THEORETICAL STUDY Margareta Ackerman Joint work with Shai Ben-David."

Similar presentations


Ads by Google