Randomized Composable Core-sets for Distributed Submodular Maximization
Vahab Mirrokni, Morteza Zadimoghaddam
Introduction
An effective way of processing massive data is to first extract a compact representation of the data and then perform further processing only on the representation itself. This approach significantly reduces the cost of processing, communicating and storing the data, as the representation size can be much smaller than the size of the original data set. Typically, the representation provides a smooth tradeoff between its size and the representation accuracy. Examples of this approach include techniques such as sampling, sketching, (composable) core-sets and mergeable summaries. Among these techniques, the concept of composable core-sets has been employed in several distributed optimization models such as nearest neighbor search , and the streaming and MapReduce models . Roughly speaking, the main idea behind this technique is as follows: First partition the data into smaller parts. Then compute a representative solution, referred to as a core-set, from each part. Finally, obtain a solution by solving the optimization problem over the union of core-sets for all parts. While this technique has been successfully applied to diversity maximization and clustering problems , for coverage and submodular maximization problems, impossibility bounds are known for this technique .
In this paper, we focus on efficient construction of a randomized variant of composable core-sets where the above idea is applied on a random clustering of the data. We employ this technique for the coverage, monotone and non-monotone submodular problems. Our results significantly improve upon the hardness results for non-randomized core-sets, and imply improved results for submodular maximization in a distributed and streaming settings. The effectiveness of this technique has been confirmed empirically for several machine learning applications , and our proof provides a theoretical foundation to this idea. Let us first define this concept, and then discuss its applications, and our results.
Here, we discuss the formal problem definition, and the distributed model motivating it.
Given an integer size constraint , we let be
where the expectation is taken over the random choice of . For brevity, instead of saying that implements a composable core-set, we say that is an -approximate randomized composable core-set.
For ease of notation, when it is clear from the context, we may drop the term composable, and refer to composable core-sets as core-sets. Throughout this paper, we discuss randomized composable core-sets for the submodular maximization problem with a cardinality constraint .
Distributed Approximation Algorithm. Note that we can use a randomized -approximate composable core-set algorithm to design the following simple distributed -approximation algorithm for monotone submodular maximization:
Each machine computes a randomized composable core-set of size , i.e., for each .
In the second phase, first collect the union of all core-sets, , on one machine. Then apply a post-processing -approximation algorithm (e.g., algorithm ) to compute a solution to the submodular maximization problem over the set . Output .
It follows from the definition of the -approximate randomized composable core-set that the above algorithm is a distributed -approximation algorithm for submodular maximization problem. We refer to this two-phase algorithmic approach as the distributed algorithm, and the overall approximation factor of the distributed algorithm as the distributed approximation factor. For all our algorithms in this paper, in addition to presenting an algorithm that achieves an approximation factor as a randomized composable core-set, we propose a post-processing algorithm for the second phase, and present an improved analysis that achieves much better than -approximation as the distributed approximation factor.
Note that the above algorithm can be implemented in a distributed manner only if is small enough such that items can be processed on one machine. In all our results the size of the composable core-set, , is a function of the cardinality constraint, : In particular, in Section 2, we apply a composable core-set of size . In Section 4, we apply a composable core-set of size , and as a result, achieve a better approximation factor. We call a core-set, a small-size core-set, if its size is less than (See Section 5). As we will see, the hardness results for small-size core-sets are much stronger than that of core-sets of size or larger.
Non-randomized Composable Core-sets. The above definition for randomized composable core-sets is introduced in this paper. Prior work define a non-randomized variant of composable core-sets where the above property holds for any (arbitrary) partitioning of data into parts It is not hard to see that for non-randomized composable core-set, the multiplicity parameter is not relevant., i.e., an algorithm as described above is a -approximate (non-randomized) composable core-set of size for , if for any cardinality constraint , and any arbitrary partitioning of the items into sets, we have .
2 Applications and Motivations
An -approximate randomized composable core-set of size for a problem can be applied in three types of applications These results assume for a constant .: (i) in distributed computation , where it implies an -approximation in one or two rounds of MapReduces using the total communication complexity of , (ii) in the random-order streaming model, where it implies an -approximation algorithm in one pass using sublinear memory, (iii) in a class of approximate nearest neighbor search problems, where it implies an -approximation algorithm based on the locally sensitive hashing (under an assumption). Here, we discuss the application for the MapReduce and Streaming framework, and for details of the approximate nearest neighbor application, we refer to .
We first show how to use a randomized composable core-set of size to design a distributed algorithm in one or two rounds of MapReduces The straightforward way of applying the ideas will result in two rounds of MapReduce. However, if we assume that the data is originally sharded randomly and each part is in a single shard, and the memory for each machine is more than the size of each shard, then it can be implemented via one round of MapReduce computation. using linear total communication complexity: Let , and let be a random partitioning where has items. In the distributed algorithm, we assume that the random partitioning is produced in one round of MapReduce where each of reducers receives as input, and produces a core-set for the next round. Alternatively, we may assume that the data (or the items) are distributed uniformly at random among machines, or similarity each of mappers receives as input, and produces a core-set for the reducer. In either case, the produced core-sets are passed to a single reducer in the first or the second round. The total input to the reducer, i.e., the union of the core-sets, is of size at most . The solution computed by the reducer for the union of the core-sets is, by definition, a good approximation to the original problem. It is easy to see that the total communication complexity of this algorithm is , and this computation can be performed in one or two rounds as formally defined in the MapReduce computation model .
Next, we elaborate on the application for a streaming computation model: In the random-order data stream model, a random sequence of data points needs to be processed “on-the-fly” while using only limited storage. An algorithm for a randomized composable core-set can be easily used to obtain an algorithm for this setting The paper introduced this approach for the special case of -median clustering. More general formulation of this method with other applications appeared in .. In particular, if a randomized composable core-set for a given problem has size , we start by dividing the random stream of data into blocks of size . This way, each block will be a random subset of items. The algorithm then proceeds block by block. Each block is read and stored in the main memory, its core-set is computed and stored, and the block is deleted. At the end, the algorithm solves the problem for the union of the core-sets. The whole algorithm takes only space. The storage can be reduced further by utilizing more than one level of compression, at the cost of increasing the approximation factor.
Variants of the composable core-set technique have been applied for optimization under MapReduce framework . However, none of these previous results formally study the difference between randomized and non-randomized variants and in most cases, they employ non-randomized composable core-sets. Indyk et al. observed that the idea of non-randomized composable core-sets cannot be applied to the coverage maximization (or more generally submodular maximization) problems. In fact, all our hardness results also apply to a class of submodular maximization problems known as the maximum -coverage problems, i.e., given a number , and a family of subsets , find a subfamily of subsets whose union is maximized. Solving max -coverage and submodular maximization in a distributed manner have attracted a significant amount of research over the last few years . Other than the importance of these problems, one reason for the popularity of this problem in this context is the fact that its approximation algorithm is algorithm which is naturally sequential and it is hard to parallelize or implement in a distributed manner.
3 Our Contributions
Our results are summarized in Table 1. As our first result, we prove that a family of efficient algorithms including a variant of algorithm with a consistent tie-breaking rule leads to an almost -approximate randomized composable core-set of size for any monotone submodular function and cardinality constraint with multiplicity of (see Section 2). This is in contrast to a known hardness result for any (non-randomized) composable core-set , and shows the advantage of using the randomization here. Furthermore, by constructing this randomized core-set and applying algorithm afterwards, we show a distributed approximation factor for the monotone submodular maximization problem in one or two rounds of MapReduces with a linear communication complexity. Previous results lead to algorithms with either much larger number of rounds of MapReduce , and/or larger communication complexity . This improvement is important, since the number of rounds of MapReduce computation and communication complexity are the most important factors in determining the performance of a MapReduced-based algorithm . The effectiveness of using this technique has been confirmed empirically by Mirzasoleiman et al who studied a similar algorithm on a subclass of submodular maximization problems. However, they only provide provable guarantees for a subclass of submodular functions satisfying a certain Lipchitz condition . Our result not only works for monotone submodular functions, but also extends to non-monotone (non-negative) submodular functions, and leads to the first constant-round MapReduce-based constant-factor approximation algorithm for non-monotone submodular maximization (with total communication complexity and approximation factor of ). It also leads to the first constant-factor approximation algorithm for non-monotone submodular maximization in a random-order streaming model in one pass with sublinear memory.
Our next goal is to improve the approximation factor of the above algorithm for monotone submodular functions. To this end, we first observe that one cannot achieve a better than the factor via core-sets of size using algorithm or any algorithm in a family of local search algorithms. In Section 4, we show how to go beyond the -approximation by applying core-sets of size higher than but still of size , and prove that algorithm with a consistent tie-breaking rule provides a -approximate randomized composable core-set of size for our problem. We then present algorithm that can be applied as a post-processing step to design a distributed -approximation algorithm in one or two rounds of MapReduces, and with linear total communication complexity. For monotone submodular maximization, this result implies the first distributed approximation algorithm with approximation factor better than that runs in a constant number of rounds. We achieve this approximation factor using one or two rounds of MapReduces and with the total communication complexity of . In addition, this result implies the first approximation algorithm beating the factor for the random-order streaming model with constant number of passes on the data and sublinear memory. To complement this result, we first show that our analysis for algorithm is tight. Moreover, we show that it is information theoretically impossible to achieve an approximation factor better than using a core-set with size polynomial in .
Finally, we consider the construction of small-size core-sets, i.e., a core-set of size . Studying such core-sets is important particularly for cases with large parameter , e.g., or For such large , a core-set of size may not be as useful since outputting the whole core-set may be impossible. For example, in the formal MapReduce model , outputting a core-set of size for is not feasible.. For our problem, we first observe a hardness bound of for non-randomized core-sets. On the other hand, in Subsection 5.2, we show an -approximate randomized composable core-set for this problem, and accompany this result by a matching hardness bound of for randomized composable core-set. The hardness result is presented in Subsection 5.1.
4 Other Related Work.
Submodular Maximization in Streaming and MapReduce: Solving max -coverage and submodular maximization in a distributed manner have attracted a significant amount of research over the last few years . From theoretical point of view, for the coverage maximization problem, Chierchetti et al. present a -approximation algorithm in polylogarithmic number of MapReduce rounds, and Belloch et al improved this result and achieved number of rounds. Recently, Kumar et al. present a -approximation algorithm using a logarithmic number of rounds of MapReduces. They also derive -approximation algorithm that runs in number of rounds of MapReduce (for a constant ), but this algorithm needs a blowup in the communication complexity. As observed in various empirical studies , the communication complexity and the number of MapReduce rounds are important factors in determining the performance of a MapReduce-based algorithm and a blowup in the communication complexity can play a crucial role in applicability of the algorithm in practice. Our algorithm on the other hand runs only in (one or) two rounds, and can run on any number of machines as long as they can store the data, i.e, it needs machines each with memory proportional to of the size of the input. One previous attempt to apply the idea of core-sets for submodular maximization is by Indyk et al. who rule out the applicability of non-randomized core-sets by showing a hardness bound of for non-randomized core-sets. The most relevant previous attempt in applying randomized core-sets to submodular maximization is by Mirzasoleiman et al , where the authors study a class of algorithms similar to the ones discussed here, and show the effectiveness of applying algorithm over a random partitioning empirically for several machine learning applications. The authors also prove theoretical guarantees for algorithm for special classes of submodular functions satisfying a certain Lipschitz condition . Here, on the other hand, we present guaranteed approximation results for all monotone and non-monotone submodular functions. In fact, Ashwinkumar and Karbasi observed that if one applies the greedy algorithm without a consistent tie-breaking rule, the approximation factor of the algorithm is not bounded for coverage functions. In this paper, we prove that a class of algorithms including greedy with a consistent tie-breaking rule provide a guaranteed -approximation algorithm for all monotone submodular functions. We also show how to achieve an improved -approximation using slightly larger core-sets of size . Finally, there is a recent paper in the streaming model in which the authors present a streaming -approximation algorithm with one pass and linear memory. Our results lead to improved results for random-order streaming model for monotone and non-monotone submodular maximization.
Core-sets: The notion of core-sets has been introduced in . In this paper, we use the term core-sets to refer to “composable core-sets” which was formally defined in a recent paper . This notion has been also implicitly used in Section 5 of Agarwal et al. where the authors specify composability properties of -kernels (a variant of core-sets). The notion of (composable) core-sets are also related to the concept of mergeable summaries that have been studied in the literature . As discussed before, the idea of using core-sets has been applied either explicitly or implicitly in the streaming model and in the MapReduce framework . Moreover, notions similar to randomized core-sets have been studied for random-order streaming models . Finally, the idea of random projection in performing algebraic projections can be viewed as a related topic but it does not discuss the concept of composability over a random partitioning.
5 More Notation
Consider a submodular set function . Let be an algorithm that given any subset returns subset with size at most . We say that this Algorithm is a -nice algorithm for function and some parameter iff for any set and any item (item is in set but is not selected in the output of algorithm ), then the following two properties hold:
Set is equal to , i.e., intuitively the output of the algorithm should not depend on the items it does not select, and
is at most . In other words, the marginal value of any not-selected item cannot be more than times the average contribution of selected items.
Randomized Core-sets for Submodular Maximization
In this section, we show that a family of -nice algorithms, introduced in Section 1.5, leads to a constant-factor approximate randomized composable core-set, and a constant-factor distributed approximation algorithm for monotone and non-monotone submodular maximization problems with cardinality constraints. Later, in Subsection 2.2, we show that several efficient algorithms in the literature of submodular maximization are -nice for some (for ) including some variant of algorithm with a consistent tie-breaking rule, and also an almost linear-time algorithm in . Before stating the theorem, we emphasize that in this section, we apply a composable core-set of multiplicity 1 which corresponds to a random partitioning of items into disjoint pieces.
For any , any -nice algorithm is a -approximate randomized composable core-set of multiplicity 1 and size for the monotone, and -approximate for non-monotone submodular maximization problems with cardinality constraint .
We want to show that there exists a subset of with size at most , and at least an expected value of for monotone , and for non-monotone . Toward this goal, we take the maximum of and as a candidate solution. We define some notation to simplify the rest of the proof. Consider an arbitrary permutation on items of OPT, and for each item let be the set of items in that appear before . We will first lower bound using the submodularity property in Lemma 2.2.
For any set of selected items, for a monotone or non-monotone submodular function .
First we note that . Using submodularity property, we know that is at most because is a subset of . Therefore which is equal to by definition of . This concludes the proof. ∎
Lemma 2.2 suggests that we should upper bound which is done in the next lemma.
The sum is at most for a monotone or non-monotone submodular function .
The sum can be written as:
The first term in the sum is upper bounded by using the second property of -nice algorithms. To conclude the proof, we apply inequality , and use the fact that there are at most items in . ∎
At this stage of the analysis, we use randomness of partition to upper bound the expected value of these differences in values with the expected value of average of . This is stated in the following lemma:
Before proving the lemmas, we observe that putting these three lemmas together, we can finish the proof of the theorem. In particular, for a monotone or non-monotone submodular function , we have that:
Proof of Lemma 2.4. The main part of the proof is to show that the sum of the differences in the statement of the lemma is in expectation at most fraction of sum of differences for a larger set of pairs . In particular, we show that
In Theorem 2.1, we prove that if on each part (set ) of the partitioning, we run a -nice algorithm , the union of output sets of will contain a set of size at most that preserves at least fraction of value of optimum set. If we run algorithm on the union of output sets , using the classic analysis of algorithm , we can easily claim that the overall value of the output set at the end is at least fraction of . In Theorem 2.5, we show an improved distributed approximation factor.
Let be the output of algorithm over , i.e. for a monotone submodular function . Also let be the output of non-monotone submodular maximization algorithm of Buchbinder et al. on when is a non-monotone submodular function. The expected value of is at least for monotone and for non-monotone submodular . In particular, for , the distributed approximation factors are , and for monotone and non-monotone respectively.
By applying lemmas 2.2, 2.3, and 2.4, we have that: for a monotone submodular function . Using the classic analysis of on submodular maximization in , one can prove that when is monotone. By taking the expectation of the two sides of this inequality, and using Lemma 2.4, we have that:
If is non-monotone, we get a weaker inequality by applying the algorithm of Buchbinder et al. . Using lemmas 2.2, 2.3, and 2.4, we have that: . Similarly, we can claim that . This implies the desired lower bound of on . ∎
2 Examples of β𝛽\beta-Nice Algorithms
In this section, we show that several existing algorithms for submodular maximization in the literature belong to the family of -nice algorithms.
Algorithm with Consistent Tie-breaking: First, we observe that algorithm is -nice if it has a consistent tie breaking rule: while selecting among the items with the same marginal value, can have a fixed strict total ordering () of the items, and among the set of items with the maximum marginal value chooses the one highest rank in . The consistency of the tie breaking rule implies the first property of nice algorithms. To see the second property, first observe that (i) always adds an item with the maximum marginal value, and (ii) using submodularity of , the marginal values are decreasing as more items are added to the selected items. Therefore, after iterations, the marginal value of adding any other item, is less than each of the marginal values we achieved while adding the first items. This implies the 2nd property, and concludes that with a consistent tie-breaking rule is a -nice algorithm.
An almost linear-time -nice Algorithm: Badanidiyuru and Vondrak present an almost linear-time -approximation algorithm for monotone submodular maximization with a cardinality constraint. We observe that this algorithm is -nice. The algorithm is a relaxed version of where in each iteration, it adds an item with almost maximum marginal value (with at least fraction of the maximum marginal). As a result, similar to the proof for , one can show that this linear-time algorithm -nice and consequently -nice for .
Hardness Results for Randomized Core-sets
In Section 2, we showed that a family of -nice algorithms are -approximate randomized core sets (e.g., -approximate for algorithm ). Here we show what kinds of randomized core-sets are not achievable. In particular, we prove, in Theorem 3.1 that if we restrict our attention to core-sets of size , algorithm or any local search algorithm does not achieve an approximation factor better than even if each item is sent to multiple machines (up to multiplicity ). This leads to the following question: does increasing the output size of core-sets, , help with the approximation factor? In other words, can we get a better than approximation factor if we allow the algorithm to select more than items on each machine? To answer this question, we first prove, in Theorem 3.3 that it is not possible to achieve a randomized composable core-set of size with approximation better than even when we allow for multiplicity . We then show in Section 4 that although it is not possible to beat the barrier, we can slightly increase the output sizes, apply algorithm to achieve an approximation factor with a constant multiplicity.
Following we show a limitation on core-sets of size . In particular, we introduce a family of instances for which algorithm and any algorithm that returns a locally optimum solution of size at most do not achieve a better than -approximate core-set for any . This lower-bound result applies to a coverage valuation (and therefore submodular) function and it holds even if we send each item to multiple machines.
For any , assuming each item is sent to at least one random machine (to set for a random ), and at most random machines, and the number of items an algorithm is allowed to return is at most , there exists a family of instances for which algorithm and any other local search algorithm returns an at most -approximate composable core-set.
We say a machine is a good machine if for each , it receives at least a set for some , and we call it is a bad machine otherwise. At first, we show that the output of algorithm or any local search algorithm on a good machine that has not received set is exactly one set for each , and nothing else. In other words, these algorithms do not return any of the sets unless they have a set as part of their input, or they are running on a bad machine. It is not hard to see that if is not part of the input each set has marginal value if no other set for has been selected before. On the other hand, the marginal value of each of the sets is . So or any local search algorithm does not select any of the sets unless some set has been selected for each . The fact that the output sizes are limited to implies that sets are not selected.
Now it suffices to prove that most machines are good, and most sets in are not sent to a machine that has set as well. To prove this, we show that each machine is good with probability at least . To see this, note that for each , there are identical sets , and the probability that a machine does not receive any of these copies is at most . So the probability that a machine is good is at least . Since each set is sent to at most machines, for each , we know that set is sent to only good machines with probability at least . We also know that the probability that for each , the probability of set sharing a machine with set is at most since each set is sent to at most random machines. As a result, at most fraction of sets are selected by at least one machine in expectation, and therefore in expectation the size of the union of all selected sets (not only the best of them) is at most which is less than fraction of the value of the optimum sets (). ∎
Following, we prove that it is not possible to achieve a better than approximation factor for submodular maximization subject to a cardinality constraint even if each item is sent to at most machines where , and each machine is allowed to return items. We note that in this hardness result, the size of the output sets can be arbitrarily large in terms of , i.e. for instance could be for some values of , and . This is an information theoretic hardness result that does not use any complexity theoretic assumption. In fact, the instance itself can be optimally solved on a single machine, but distributing the items among several machines makes it hard to preserve the optimum solution. Before presenting the hardness result, we state the following version of Chernoff bound (which we use in the proof) as given on page 267, Corollary and Theorem in :
Suppose are random variables such that , and let , and . Then for any
For any , and , assuming each item is sent to at most machines randomly, and each machine can output at most items, there exists a family of instances for which no algorithm can guarantee a core-set of expected value more than fraction of the optimum solution.
So among the optimum solution items that are alone in their machines, at most fraction of them will be selected. We note that each item is sent to at most machines, therefore in total optimum items will be selected in this category in expectation.
On the other hand, the total number of optimum items that share a machine with some other optimum item is at most (an upper bound on the expected number of collisions). We conclude that in total at most optimum items will be selected in expectation. Therefore the total value of the selected optimum items does not exceed fraction of the optimum solution.
Better Randomized Core-sets for Monotone Submodular Maximization
In this section, we prove that although it is not possible to beat the barrier, we can slightly increase the output sizes (to ), and apply algorithm to achieve an approximation factor with a constant multiplicity. Furthermore, we show in Theorem 4.8 that our analysis is tight for algorithm even if we increase the core-set sizes significantly. Finally, we present in Subsection 4.1 a post-processing algorithm that achieves an overall distributed approximation factor better than . In particular, after the first phase, we show how to find a size subset of the union of selected items with expected value at least . Since in this section, we are dealing with a monotone submodular function , we can assume WLOG that .
For any integer , any cardinality constraint , algorithm is a -approximate randomized composable core-set of multiplicity and size for any monotone submodular function . By letting , this leads to a randomized composable core-set of approximation factor .
Let , and . Following our notation from Section 1.5, let for , where is the set of items sent to the machine . Note that we can let , since if there are less than items in , WLOG we can assume the algorithm returns some extra dummy items just for the sake of analysis.
Consider an item . We say that survives from machine , if, when we send to machine in addition to items of , algorithm would choose this item in its output of size , i.e., if . For the sake of analysis, we partition the optimum solution into two sets as follows: let be the set of items in the optimum solution that would survive the first machine, i.e., . Let , and , and (note that ). We also define , and where is defined in Subsection 1.5.
The optimum value is equal to , and the term is at most .
By definition of values, we have that: . Similarly, we have that is equal to . By submodularity, we know that is at least because is a subset of . Therefore, we have:
where the last equality holds by definition of . ∎
We note that is a fixed (non-random) term and therefore we can take it out of the expectation. Since is equal to , we just need to prove that is at most for any item .
We note that the first machine is just a random machine, and the distribution of set of items sent to it, , is the same as any other set for any . We consider two cases for an item :
The probability of being chosen when added to a random machine is at most , i.e. .
The probability is at least .
In the first case, we know that , and therefore which concludes the proof.
Using Lemma 4.2, it is sufficient prove that ratio is at least . In order to lower bound the ratio , we write the following factor-revealing linear program , and prove in Lemma 4.4 that the solution to this LP is a lower bound on the aforementioned ratio.
For any integer , the ratio is lower bounded by the optimum solution of linear program for some integer .
We want to prove that ratio is lower bounded by the solution of minimization linear program . It suffices to construct one feasible solution with objective value equal to . At first, we construct this solution for every instance of the problem, and then prove its feasibility in Claim 4.5.
We remind that is the union of two disjoint sets , and . Fix a permutation on the items of such that every item of appears before every item of in . In other words, is an arbitrary permutation on items of followed by an arbitrary permutation on items of . For any item in , define to be the set of items in that appear prior to in permutation . For any , we define set to be the first items of . We set the linear program variables as follows:
The above assignment forms a feasible solution of , and its solution is equal to .
The claim on the objective value of the solution is evident by definition of . To prove that the constraints hold, we show some simple and useful facts about the marginal values of items in OPT. We note that by definition of values and the fact that . Similarly for any , we have that:
We are ready to prove that all constraints one by one. We start with constraint . For any set with size , we define to be where is the th item selected by algorithm in . We also define to be . Set is a subset of with size at most . Therefore is a lower bound on . We can also lower bound as follows:
The first equality holds by definition of . The first inequality holds by submodularity of , and knowing that . The second equality holds by definition of , and the last equality holds by definition of . We claim that \Big{(}f(\textsc{OPT}{}_{1}^{\prime}\cup S^{j})-f(S^{j})\Big{)}-\Big{(}f(\textsc{OPT}{}_{1}^{\prime}\cup S^{j-1})-f(S^{j-1})\Big{)} (which is part of the right hand side of the last equality) is equal to . We note that \Big{(}f(\textsc{OPT}{}_{1}^{\prime}\cup S^{j})-f(S^{j})\Big{)} is equal to , and similarly \Big{(}f(\textsc{OPT}{}_{1}^{\prime}\cup S^{j-1})-f(S^{j-1})\Big{)} is equal to . By taking the difference of them, we have:
which is (by definition of ) equal to . We conclude that , and consequently are both at least which concludes the proof of constraint .
We prove constraint using the fact that algorithm selects the item with maximum marginal value in each step. We note that the right hand side of constraint is which is by definition the marginal gain of item divided by , i.e. . We know that any item will not be selected by algorithm if it is part of the input set which means that the marginal gain is at least the marginal gain for any , and it is also greater than the average of these marginal gains. In other words, we have:
To finish the proof of constraint , it suffices to prove the following inequality:
By definition of , and values, we have that:
which completes the proof of Equation 2, and consequently constraint .
Now, we prove that constraint holds. By definition of , and the fact that , we know that is equal to . We also know that:
where the inequality holds because valuation function is monotone, and therefore all values are non-negative. This proves that constraint holds.
To prove constraint , we should show that variables , , and are all in range $1\leq j\leq DKf(\textsc{OPT}{}^{\prime})\sum_{x\in\textsc{OPT}{}^{\prime}}\Delta(x,\pi^{x})\alpha\frac{\sum_{x\in\textsc{OPT}{}_{2}}\Delta(x,\pi^{x})}{\sum_{x\in\textsc{OPT}{}^{\prime}}\Delta(x,\pi^{x})}\textsc{OPT}{}_{2}\textsc{OPT}{}^{\prime}\alpha1\Delta\alphaa_{j},b_{j}c_{j}a_{j}+b_{j}+c_{j}\frac{\Delta(y_{j},S^{j-1})}{f(\textsc{OPT}{}^{\prime})}\leq\frac{f(\{y_{j}\})-f(\emptyset)}{f(\textsc{OPT}{}^{\prime})}=\frac{f(\{y_{j}\})}{f(\textsc{OPT}{}^{\prime})}ff(\emptyset)=0f(\{y_{j}\})f(\textsc{OPT}{}^{\prime})f_{k}(S_{1}\cup\textsc{OPT}{}_{1}^{\prime})\geq f(\{y_{j}\})\frac{f_{k}(S_{1}\cup\textsc{OPT}{}_{1}^{\prime})}{f(\textsc{OPT}{}^{\prime})}1LP^{k_{2},k}\beta=1\betaf(\{y_{j}\})\geq f(\textsc{OPT}{}^{\prime})f(\{y_{j}\})\leq f(\textsc{OPT}{}^{\prime})a_{j}+b_{j}+c_{j}\leq\frac{f(\{y_{j}\})}{f(\textsc{OPT}{}^{\prime})}\leq 1(4)a_{j}b_{j}fS^{j-1}S^{j}c_{j}a_{j}+b_{j}\frac{\sum_{x\in\textsc{OPT}{}^{\prime}}\Delta(x,\pi^{x}\cup S^{j-1})-\Delta(x,\pi^{x}\cup S^{j})}{f(\textsc{OPT}{}^{\prime})}$. By applying Equation 1, we have:
where the last inequality holds because of monotonicity of .
We prove constraint as follows. At first, we show that the right hand side of constraint is simply equal to . We know that for each . By a telescopic summation, we have that the right hand side of constraint , , is equal to . By definition of , and the fact that is at least , we conclude that constraint holds.
To prove constraint , we note that by definition, is . Since algorithm chooses the item with maximum marginal value at each step, we have . By submodularity, we have . We conclude that constraint holds. Therefore the proofs of Claim 4.5, and Lemma 4.4 are also complete. ∎
Finally, we show that the solution of is at least for any possible value of which concludes the proof of Theorem 4.1.
The optimum solution of linear program is at least for any .
We consider two cases: a) , and b) . We first consider the former case which is easier to prove, and then focus on the latter case. If is at most , we prove that the objective function of linear program (which is ) cannot be less than which concludes the proof of this lemma. Since all variables are non-negative, we can apply constraint for each in range , and imply that is at least . Using constraint , we know that is a lower bound for . We are also considering the case , therefore is at least . If is at least , the claim of Lemma 4.6 is proved. So we assume is at most . We define three sets of indices: , , and . We note that these sets have size , and therefore constraint should hold for them. If there exists some set with size such that is at least , we can use constraint to lower bound with . Therefore we can assume that is at most for . Using constraint , we imply that:
We also know that . We apply constraint to imply that is at least . This yields a stronger upper bound on . If is at least , the claim of Lemma 4.6 is proved. So we assume . We follow the above argument one more time, and the proof is complete. If for some , the sum is at least , using constraint , we can lower bound with . Therefore we have for each which yields the following stronger inequalities:
By applying constraint , we have . We can also use constraint , and conclude that which completes the proof for the former case .
In the rest of the proof, we consider the latter case . The structure of the proof is as follows: In Claim 4.7, we first show that without loss of generality, one can assume a special structure in an optimum solution of , and then exploit this structure to show that any solution of is lower bounded by a simple system of two equations with some error. We can explicitly analyze this system of equations, and achieve a lower bound of on (the key variable of the system of equations, and also the objective function of linear program ).
There exists an optimum solution for linear program with the following three properties:
constraint is tight for all
It suffices to show that every optimum solution of without changing the objective can be transformed to a feasible solution with the above three properties. Consider an optimum solution . We start by showing how s can be set to zero. Suppose for some . We can increase the value of by , and then set to zero. This update keeps intact, and therefore does not change anything in constraints , , , and . It also makes it easier to satisfy constraint since it (possibly) reduces the right hand side, and keeps the left hand side intact. Constraint remains satisfied since (otherwise is also at least which proves the claim of Lemma 4.6 directly). Therefore we can assume variables are equal to zero, and exclude them to have a simpler linear program:
Now we prove how to make variables monotone decreasing. Suppose for some , we have for some positive . We set both variables and to their average, i.e. increase by , and decrease by .
We also decrease and increase by :
Now, we show that all constraints holds one by one. We note that it suffices to consider constraint only for set with maximum . We can assume that this set with maximum cannot contain without having (either before of after the update) because is at most in both cases. Therefore, the right hand side of constraint is intact, and it still holds.
Constraints , , and are all intact because is invariant in this operation for any .
Constraint holds because sum of variables remain the same. To prove constraint holds, it suffices to show that all variables stay in range $a^{*}b^{*}b^{*}_{j_{1}}a^{*}_{j_{1}}+b^{*}_{j_{1}}\geq a^{*}_{j_{2}}+b^{*}_{j_{2}}(6)a^{*}_{j_{1}}=a^{*}_{j_{2}}b^{*}_{j_{2}}\geq 0b^{*}_{j_{1}}b^{*}_{j_{2}}1b^{*}1-\alpha\leq 1b^{*}$ variables are all non-negative. Therefore all constraints are still valid after this operation.
We prove that after a finite number of times (at most ) of applying this operation, we reach a feasible solution with monotone non-increasing sequence of values. If we start with , and do this operation for any pair with , after at most steps, we reach a solution in which for any . We continue the same process by increasing one by one, and after at most updates, we reach a sorted sequence of values. By monotonicity of values, we can simplify the linear program even further:
Now we prove that we can assume that constraint is tight for all . At first, we prove by contradiction that the right hand side of constraint is non-negative. Let be the minimum index for which the right hand side of constraint is negative. We can set all and values to zero for any index greater than , and also reduce by some amount to make this right hand side zero. All constraints hold, and we will have a solution in which the right hand side of constraint is always non-negative. Now we make constraint always tight as follows. Let be the maximum index in range , for which constraint is loose by some . We update the variables as follows. If is positive, we reduce it to , and do not change any other variable. We note that in this case, all constraints still hold, and constraint for all indices is tight.
If is zero, we decrease by , and for any , we increase by . We prove that constraint for all indices is tight, and all other constraints still hold after this update. By definition of , constraint is tight for index after this update. Constraint was tight before the update for because of the special choice of . We prove that the right and left hand sides of constraint increased by the same amount for each . The left hand side increased by . We also know that the right hand side changed by:
Therefore constraint is tight for all after the update. Now we prove feasibility of the new solution. For constraint , we note that all increments of variables is less than . We also note that is decreased by . So the right hand side of constraint is decreased, and it remains feasible. We just showed that for , constraint is tight and therefore valid, and it is intact for smaller indices. Constraint is also intact. To prove constraint , we should show that the new values are in range $(2)\alpha1a^{*}1(2)(5)(6)(2)j\geq j_{1}(6)j\geq j_{1}j=j_{1}-1a^{*}_{j_{1}}(7)a^{*}j_{2}>j_{1}(7)j>j_{1}j=j_{1}b^{*}_{j_{1}}(6)(7)j=j_{1}j_{1}(2)(1)Dk$ operations, we have an optimum solution with all three properties of Claim 4.7. ∎
Using Claim 4.7, we can assume that the solution of is lower bounded by the next . We focus on lower bounding the solution of in the rest of the proof.
We note that we eliminated one of the lower bounds on . This only reduces the optimum solution of the linear program which is consistent with our approach. We also used Claim 4.7 to replace the inequality constraint with an equality constraint. We also removed the variables, and added the monotonicity constraint . In the rest of the proof, we introduce some notation, and show some extra structure in the optimum solution of . This will help us lower bound the optimum solution by analyzing a system of two equations explicitly.
We start with proving the extra structure. Let . We show that for any pair of indices , either is zero or is equal to . Let be the minimum index with . If is at least , the claim holds clearly. So we consider . If is equal to , by monotonicity of values, the claim is proved. So we define to be . We increase , and by , and respectively. We also decrease both of , and by . After these changes, constraints , , , , and in still hold. In particular, we made the changes in this special way to make sure that constraint still holds. Constraint also holds since the right hand side of constraint is decreasing in . But the monotonicity constraint may be violated for . This happens if the new is less than . In this case, we swap the variables and . We also change , and in a way that constraint holds for both , and . Similarly, we have that all constraints hold. But constraint may be violated for . We continue doing this swap operation until constraint holds as well. This will happen after at most swap operations, since the new values are all at least . Finally, we reach a feasible solution for in which either one more variable is equal to or one more variable is set to zero. Therefore after at most updates, for any pair of indices , we have that either is zero or is equal to .
We also claim that for any , we can assume either , or . Otherwise, suppose is the smallest index for which , and . We can increase by , and decrease by . We note that since is invariant, the monotonicity constraints still holds. We need to prove constraint for . It can be violated only if is less than , and is non-negative which contradicts the choice of . To prove feasibility, we only need to prove constraint for . We make it hold by the following adjustments. We start by , and increase it one by one. If constraint is loose by some for index , we decrease by . We also decrease by . The sum is reduced by , and constraint now holds for . It is also clear that sum of variables do not increase, and all other constraints still hold. With these adjustments for each in the increasing order, we know the solution is feasible. We also have all the ingredients to characterize the optimum solution of , and lower bound it.
We can formalize this optimum solution in terms of a few parameters including and . At this final stage of the proof, we conclude with two lower bounds (system of two equations) on and in terms of these few parameters. Let be the smallest index in range with . If such an index does not exist, define to be . Using Claim 4.7, we know that constraint is tight, and for any , we can inductively prove that for any . Consequently, we have that is equal to where is defined to be . Therefore, constraint implies that: . This lower bound on is the first inequality we wanted to prove. To achieve the second inequality (lower bound on ), we start by upper bounding the sum of variables.
We show that as follows. Since variables are monotone and, constraint is tight for , we have . We also have that is equal to . We can upper bound by as follows. We prove that is a monotone decreasing sequence for .
We also know that . Therefore each term is at least . Therefore, we have that
which yields the desired upper bound on .
We conclude that if is the solution of linear program , the following system of equations should have a solution with :
where is defined to be . We note that and are the variables of the above system of two equations, and they should be in range $k_{2}k_{2}$:
It is easy to see that if system of equations 3 has a solution , system of equations 4 has the following solution: . Therefore it suffices to lower bound in system of equations 4. Because the same lower bound plus the term holds for in system of equations 3.
By computing the partial derivatives, and considering boundary values, one can find the minimum for which the system of equations 4 has a valid solution. Its minimum occurs when is zero, and the second inequality is tight. Therefore we have . We conclude that is the minimum of which is equal to and occurs at .
So we have a slightly different set of two inequalities in this case to lower bound .
It is evident that both inequalities should be tight to minimize , and therefore is equal to where is . So we can write as a function of just and :
To minimize , either should be at one of its boundary values , or the partial derivative should be zero. For , cannot be less than . For , we have , so is at most , and therefore is at least . The only case to consider is when which means should be equal to with a unique solution . Therefore is equal to . We conclude that any feasible solution of linear program has at least which completes the proof. ∎
We show in the following Theorem that the lower bound on the approximation ratio of the core-sets that finds is tight even if we allow the core-sets to be significantly large.
For any , and any core-set size , there are instances of monotone submodular maximization problem with cardinality constraint for which is at most a -approximate randomized composable core-set even if each item is sent to machines.
We also note that for any , with probability at least , none of the at most copies of set shares a machine with one copy of . There are at most copies of , and copies of , and the probability that two sets are sent to the same machine is . So with probability at most , one copy of and one copy of are sent to the same machine.
where the last inequality holds for . On the other hand, the optimum solution consists of row sets s, and set with value at least:
We conclude that the expected value of maximum value size subset of selected sets is upper bounded by times the optimum solution . ∎
We remind that in the first phase, each machine runs algorithm on set with (where is ).By Theorem 4.1, there exists a size subset of selected items with expected value at least , but we do not know how to find this set efficiently. If we apply algorithm again on to select items in total, we achieve a distributed approximation factor of . In the following, we present a post-processing algorithm that achieves an overall distributed approximation factor better than . In particular, after the first phase, we show how to find a size subset of the union of selected items with expected value at least .
Algorithm proceeds as follows: it first computes a family of candidate solutions of size , and keeps the one candidate solution with the maximum value. It then lets to be a random size subset of , and returns as the solution. These candidate solutions, denoted by (for and ) in Algorithm 1, are computed as follows: We first enumerate all possible values of (this notation is used to be consistent with the proof of Theorem 4.1). Then, by letting , and , we partition the first items in set We choose any machine instead of machine 1, and since the clustering is done at random, the analysis goes through. into eight subsets , each of size . The next step of the algorithm proceeds as follows: for any with , we initialize set with the union of all sets where . Then for iterations, we search all items in , and insert the item with the maximum marginal value to . Roughly speaking, by starting from all these subsets, we ensure that the selected set hits enough number of items in OPT. The upper bound we enforce on is to make sure that the number of iterations at this step is non-negative, i.e. . Finally we define to be the set with the maximum value, and return a random subset of size of as the output set .
1 Input: A collection of subsets . 2[0.6ex] Output: Set with . 3[0.6ex] ; 4 forall the do 5 ; 6 ; 7 Partition the first items of into sets each of size ; 8 forall the with do 9 ; 10 for times do 11 Find , and insert it to ; 12 13 end for 14 if then ; 15 16 end forall 17 18 end forall 19 a random size subset of ; Algorithm 1 Algorithm
Algorithm returns a subset with size at most , and expected value at least .
Since algorithm enumerates all possible values of , in one of these trials, is equal to . From now on, we focus on this specific value of . We remind that . Let be the set of indices that maximizes , i.e., . Define be the set . By definition, we have . So it suffices to show that is at least times the solution of for some as follows. We define to be .
At first, we remind the feasible solution of constructed in the proof of Lemma 4.4, and then construct a feasible solution for with equal to as follows. Fix a permutation on the items of such that every item of appears before every item of in . In other words, is an arbitrary permutation on items of followed by an arbitrary permutation on items of . For any item in , define to be the set of items in that appear prior to in permutation . We set to be . For any , we define set to be the first items of . Now we are ready to define variables as follows.
We let the variable be the marginal gain of item divided by minus where is the th item selected in , i.e., .
We note that the last inequality holds assuming the numerator is non-negative. In case, the numerator is negative, the constraint holds using non-negativity of and variables. So we just need to prove constraint (which is the most important constraint) of . We remind that is defined to be . So for every with size at most , it suffices to prove that:
We note that consists of two sets of items:
Set with items corresponding to sets which are added in the first phase. In other words, is where is the th item of .
items added greedily in the second phase.
Similar to proof of Claim 4.5, we define to be . To be consistent in notation, we define to be the indices of items in , i.e. . Using the same argument in proof of Claim 4.5, we know that:
This means that there are items that can be added to in the second phase, and increase its value to . Since we are adding items greedily in the second phase, our final value is at least:
where the equality holds by definition of . We can also lower bound as follows.
where the inequality holds by submodularity of , and equalities hold by definition. By combining inequalities 6, 7, and 8, we conclude that:
Small-size Core-sets for Submodular Maximization
We start by presenting the hardness results for non-randomized core-sets.
For any , the output of any algorithm is at most an -approximate composable non-randomized core-set for the submodular maximization problem.
Now we construct the following family of instances to achieve hardness results for randomized core-sets in the submodular maximization problem.
We define instance of the submodular maximization problem as follows. Define to be . For each , we add an item that represents the set . For each , we add identical items all representing the same set . The value of a subset of items, , is equal to the cardinality of the union of all sets the items in represent. This is a coverage valuation function and subsequently monotone submodular.
For any , with machines, the output of any algorithm is at most an -approximate randomized composable core-set for the submodular maximization problem.
In Theorem 5.3, we proved that it is not possible to achieve better than -approximate randomized composable core-sets for the submodular maximization problem. Here we show that this bound is tight. We prove this by applying a randomized algorithm (which is different from algorithm ):
For any , and machines, the union of output sets by the above algorithm form an -approximate randomized core-set for the submodular maximization problem.
Similar to the proofs of Lemmas 2.3, and 2.4, we also have that:
Conclusion
The concept of composable core-sets has been introduced recently in the context of distributed and streaming algorithms and have been applied to several problems . In this paper, we introduced the concept of randomized composable core-sets and showed its effectiveness in maximizing submodular functions in a distributed manner. While we mainly discuss the cardinality constraint in this paper, we expect that the ideas and the proof techniques be applicable to more general packing constraints such as matroid constraints. There are several research problems that are interesting to explore in this line of research.
For the submodular maximization problem, it remains to find a randomized composable core-set of approximation factor , or rule out the possibility of constructing such a core-set.
We discussed how the size and multiplicity of the composable core-set can help improve the approximation factor of the algorithms. It would be nice to get tight bounds on the approximation factor for each range of the size of composable core-sets. Moreover, it would be interesting to study the impact of increasing the multiplicity of the core-set on the achievable approximation factors.
While we provided a tight result for the small-size composable core-set problem, the achievable approximation factor is not satisfactory. A natural way to improve this factor is to apply the composable core-set idea iteratively, and achieve an improve approximation factor. Even for composable core-sets of size and above, it might be possible to improve the approximation factor by applying such a core-set multiple times. This approach leads to several interesting follow-up questions.
While randomized composable core-sets are applicable to random-order streaming models, applying the proof techniques in this paper may result in stronger approximation factors in pure random-order streaming models (compared to the ones presented here). We leave this problem to future research.
Finally, it would be nice to explore applicability of these ideas on other optimization and graph theoretic problems.