Abstract
The problem of selecting a small-size representative summary of a large dataset is a cornerstone of machine learning, optimization, and data science. Motivated by applications to recommendation systems and other scenarios with query-limited access to vast amounts of data, we propose a new rigorous algorithmic framework for a standard formulation of this problem as a submodular maximization subject to a linear (knapsack) constraint. Our framework is based on augmenting all partial Greedy solutions with the best additional item. It can be instantiated with negligible overhead in any model of computation, which allows the classic Greedy algorithm and its variants to be implemented. We give such instantiations in the offline (Greedy+Max), multi-pass streaming (Sieve+Max), and distributed (Distributed+Max) settings. Our algorithms give $(1/2-\epsilon)$-approximation with most other key parameters of interest being near-optimal. Our analysis is based on a new set of first-order linear differential inequalities and their robust approximate versions. Experiments on typical datasets (movie recommendations, influence maximization) confirm scalability and high quality of solutions obtained via our framework. Instance-specific approximations are typically in the 0.6-0.7 range and frequently beat even the $(1-1/e) \approx 0.63$ worst-case barrier for polynomial-time algorithms.
Introduction
Many real-world tasks—like picking a representative set of movie recommendations or identifying influential people in a social network—can be modeled as monotone submodular maximization. Submodularity formalizes the concept of "diminishing returns": adding an item to a small set provides more benefit than adding it to a large one.
While this problem is well-solved when every item has the same "cost" (cardinality constraint), it becomes significantly more challenging under a knapsack constraint, where items have varying costs. The standard Greedy algorithm, which picks the item with the best "bang for the buck" (marginal gain per unit cost), can perform arbitrarily poorly in this setting. Existing solutions that provide good guarantees are often too slow for massive datasets or too complex to implement in modern distributed frameworks like Spark or MapReduce.
The "Bring Your Own Greedy"+Max Framework
The core innovation of this work is the "Greedy+Max" framework. It is designed to be "model-agnostic," meaning it can be applied to various computational models with minimal overhead.
- The Framework: Instead of just taking the final set produced by a Greedy algorithm, the framework looks at every partial solution generated during the greedy process. For each partial set, it identifies the single best item that could be added without exceeding the budget. The algorithm then returns the best of all these "augmented" sets.
- Algorithmic Instantiations:
- Offline (Greedy+Max): A direct implementation that runs in $O(n \cdot \tilde{K})$ time.
- Streaming (Sieve+Max): A multi-pass algorithm that uses thresholding to decide which items to keep, maintaining optimal space complexity.
- Distributed (Distributed Sieve+Max): An MPC (Massively Parallel Computation) version that uses sampling to distribute the workload across multiple machines.
Theoretical Guarantees and Comparison
The authors prove that the "Greedy+Max" logic is inherently resistant to the small errors introduced by distributed sampling or streaming thresholds. By modeling the algorithm's progress as a continuous function using first-order linear differential inequalities, they demonstrate that a $(1/2 - \epsilon)$-approximation guarantee holds across all models.
As shown in the table above, the proposed SIEVE+MAX algorithm achieves the near-optimal $1/2 - \epsilon$ approximation ratio while significantly improving upon the space complexity of previous state-of-the-art methods like HK19. Specifically, SIEVE+MAX achieves $O(K)$ space complexity, which is optimal for storing the solution set.
Experimental Evaluation
The framework was evaluated on three real-world datasets: com-dblp (co-authorship network), ego-Facebook (social network), and ml-20 (MovieLens ratings).
Key Results
- Practical Superiority: In experiments, the algorithms consistently achieved approximation ratios between 0.6 and 0.7, often outperforming the theoretical $1-1/e$ "barrier" for polynomial-time algorithms.
- Efficiency: The "Greedy+Max" approach is only about 20% slower than the basic Greedy algorithm. In contrast, previous state-of-the-art methods for knapsack constraints (like
PartialEnum+Greedy) were hundreds of times slower and failed to scale to larger datasets. - Streaming Gains: On the MovieLens dataset,
Sieve+Maximproved solution quality by up to 40% compared to standard streaming baselines.
Conclusion
The "Bring Your Own Greedy"+Max framework provides a simple, scalable, and theoretically sound approach to submodular maximization under knapsack constraints. By bridging the gap between simple greedy heuristics and complex theoretical algorithms, it offers a practical solution for large-scale data summarization. Future work includes extending this logic to non-monotone functions and exploring single-pass streaming algorithms that maintain the $1/2$ guarantee.
Summary updated