Coresets for Vector Summarization with Applications to Network Graphs

Dan Feldman, Sedat Ozer, Daniela Rus

Introduction

Researchers from the University of Haifa and MIT CSAIL have developed a deterministic algorithm for summarizing massive vector datasets. By leveraging "coresets"—small, weighted subsets that preserve the mathematical properties of the original data—this approach enables the maintenance of accurate summaries for streaming network data, such as social proximity or GPS traces. The algorithm's memory requirements scale logarithmically with the number of data points and remain completely independent of the data's dimensionality.

The Challenge of Large-Scale Network Analysis

In the modern landscape of mobile computing, "digital footprints" like GPS traces and call logs are generated at an overwhelming rate. Analyzing these footprints often involves constructing proximity matrices to identify social structures. However, for a network of $n$ users, a full proximity matrix requires $O(n^2)$ memory. For millions of users, storing such matrices in RAM for real-time updates is computationally infeasible.

Existing "sketching" techniques, such as the Count-Min Sketch, typically rely on randomization. These methods can fail over unbounded streams or produce loose error bounds relative to the distance from the origin. This research introduces a deterministic, sparse, and memory-efficient alternative with tighter error guarantees.

Methodology

The proposed system utilizes two primary algorithms to achieve efficient summarization.

The Coreset Engine (Algorithm 2)

The offline coreset construction treats vector summarization as a convex optimization problem. Using a variation of the Frank-Wolfe algorithm, it greedily selects points from the input set to form a convex combination that approximates the mean. By augmenting vectors with an extra dimension and normalizing them to a unit ball, the algorithm ensures a robust approximation.

Streaming via Merge-and-Reduce (Algorithm 1)

To handle streaming data, the researchers implement a "merge-and-reduce" tree structure. As new data arrives, it is processed in small batches. These batches are converted into coresets, which are then merged and reduced again as they ascend the tree hierarchy.

The merge-and-reduce tree structure used for processing streaming data.

This hierarchical approach ensures that the system only needs to store $O(\log n)$ coresets at any given time. Because the coreset size is $O(1/\epsilon)$, the number of points required for a specific accuracy level does not increase even as the dimensionality of the vectors grows.

Key Theoretical Insights

A significant contribution of this work is the shift to variance-based error bounds. Traditional sketches often have errors proportional to the norm of the vectors. In contrast, this paper proves an error bound proportional to the dataset's variance. Since the mean minimizes the sum of squared distances, the variance is typically much smaller than the raw norm, resulting in significantly higher accuracy.

Furthermore, the algorithm preserves sparsity. Because the coreset is a weighted subset of the original vectors, it maintains the inherent structure of the data (e.g., 1-sparse "check-ins"), making the summary easier to interpret. Unlike many frequency-estimation sketches, this algorithm also supports arbitrary real vectors, including negative weights.

Empirical Results

The algorithm was evaluated on diverse datasets, including 14.7 million NYC Taxi GPS traces and six massive graph-based datasets from the Stanford Large Network Dataset Collection (SNAP).

  • Superior Accuracy: The coreset approach consistently outperformed established sketches (like Count Sketch and BJKST) in $\ell_2$ error for the same sample size.
  • Massive Compression: The algorithm reduced the memory footprint for social graph maintenance from $O(n^2)$ to $O(n \log n)$. For a system with millions of users, this translates to a reduction from petabytes to a single gigabyte of RAM.
  • Real-World Validation: On the NYC Taxi and SNAP datasets, normalized error decreased sharply as the coreset size increased, confirming the practical utility of the theoretical guarantees.

Conclusion

This deterministic coreset algorithm provides a scalable solution for real-time tracking of "Heavy Hitters" and proximity patterns in massive networks. By combining the Frank-Wolfe optimization with a merge-and-reduce streaming architecture, the researchers have bridged the gap between theoretical vector summarization and the practical demands of big data analytics.

Summary updated

BibTeX
@inproceedings{feldman2017coresets,
  author = {Dan Feldman and Sedat Ozer and Daniela Rus},
  title = {{Coresets for Vector Summarization with Applications to Network Graphs}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
  url = {https://openreview.net/forum?id=r1EiQ3-ubB},
}
Figure