Abstract
Maximizing submodular functions is a cornerstone of modern data analysis, used for tasks ranging from news summarization to sensor placement. However, real-time data streams often require a "sliding window" model, where only the most recent $W$ items are relevant. This paper introduces the first efficient algorithms for submodular maximization over sliding windows, providing theoretical guarantees of $1/3 - \epsilon$ and $1/2 - \epsilon$ while maintaining significantly lower memory and processing requirements than traditional offline approaches.
Introduction
Submodular optimization captures the intuitive "law of diminishing returns": the marginal utility of adding an item to a set decreases as the set grows larger. This property is essential for selecting diverse and representative subsets from massive datasets. While algorithms for "insertion-only" streams—where data is added indefinitely—are well-established, many practical applications involve data that eventually becomes obsolete.
In a sliding window model, the dataset consists of the $W$ most recent elements. As new items arrive, the oldest items expire and must be removed from the solution. Maintaining an optimal or near-optimal set under these conditions is challenging because the removal of a high-value item can leave a "hole" in the solution that is computationally expensive to fill from scratch. This paper addresses the need for algorithms that can handle these deletions efficiently while providing provable approximation guarantees.
Methodology
The authors propose two primary algorithmic frameworks designed to balance accuracy, speed, and memory usage.
1. Submodular Smooth Histograms ($1/3 - \epsilon$)
This approach adapts the "Smooth Histogram" framework, originally designed for simpler aggregate statistics, to the complex structure of submodular functions. The algorithm maintains multiple instances of a streaming submodular maximizer, each starting at different "checkpoints" in time.
To keep memory usage low, the algorithm prunes these checkpoints if their values are sufficiently similar, ensuring that only a polylogarithmic number of instances (relative to the window size $W$) are active at any time. The authors prove that despite submodular functions not naturally satisfying the strict mathematical requirements of original smooth histogram theory, the inherent structure of submodularity still allows for a $1/3 - \epsilon$ approximation guarantee.
2. BidirectionalAlg ($1/2 - \epsilon$)
To reach the theoretical $1/2$ approximation bound—the best possible for streaming submodular maximization—the authors developed BidirectionalAlg. This method partitions the stream into sub-windows and executes two concurrent passes: a "backward" pass from the end of a sub-window and a "forward" pass from the beginning. By strategically merging the results of these passes, the algorithm can effectively manage the transition when the sliding window overlaps two different sub-windows.
Both algorithms utilize a core building block called StreamAllThresholds. This component maintains a suite of candidate solutions based on various value thresholds, allowing the system to decide dynamically which items are worth keeping without knowing the maximum possible value of an item in advance (lazy initialization).
Experimental Evaluation
The researchers evaluated the proposed algorithms against an "offline greedy" benchmark, which re-calculates the solution from scratch at every time step, using three large-scale datasets:
- DBLP: A co-authorship network where the goal is to select $k$ authors covering the maximum number of distinct research conferences.
- Gowalla: A location-based social network dataset used to find $k$ locations that cover the maximum number of unique users.
- Yahoo! Front Page: A benchmark of 46 million feature vectors where the task is to select a representative summary of user behavior.
Key Results
- Computational Efficiency: The proposed algorithms demonstrated a massive speed advantage, running 2,000x to 6,000x faster than the offline greedy approach.
- Solution Quality: While the theoretical bounds are $1/3$ and $1/2$, the practical performance was significantly higher, consistently achieving 80% to 95% of the value produced by the offline greedy benchmark.
- Memory Footprint: The algorithms proved highly scalable, requiring the storage of only a tiny fraction of the window. On the Gowalla dataset, the algorithms maintained high-quality solutions while storing only 0.05% to 0.4% of the items within the window.
Discussion and Future Work
This work establishes a new baseline for submodular optimization in dynamic environments. The authors successfully broke the "smoothness barrier," showing that submodular functions can be optimized within the smooth histogram framework.
However, several open questions remain. While $1/2$ is a strong bound for streaming, it is not yet known if the $1 - 1/e$ (approx. 63%) bound achievable in batch processing can be reached in a sliding window context. Additionally, while sliding windows handle FIFO deletions, "fully dynamic" streams—where any item can be deleted at any time—present a much more difficult challenge for future research. Finally, the trade-off between the simplicity/speed of the $1/3$ algorithm and the accuracy of the $1/2$ algorithm remains a key consideration for practitioners implementing these systems in production.
Summary updated