Scaling Algorithms via Composable Data Summaries

This direction is split into other directions: composable coresets. Its last version stays readable and citable here.

Version 1 of 160 papers81 conceptsfrozen 2026-10-04

When datasets grow too large to fit on a single machine or arrive as a continuous stream, traditional algorithms break down. We cannot simply "load the data" to compute a mean, a principal component analysis (PCA), or a clustering. Instead, we must summarize the data.

The most powerful summaries are composable. A summary is composable if you can summarize two separate batches of data independently and then merge those summaries into a single, accurate representation of the combined dataset. This property allows us to scale complex machine learning tasks across distributed clusters and real-time streams using a "merge-and-reduce" architecture.

The Power of Composability

The intuition behind composability is simple: if a small subset of data is "representative" of its local partition, the union of these representative subsets should be representative of the whole.

In the context of coresets—small, weighted subsets of data—this property is foundational. As Dan Feldman, Melanie Schmidt, and Christian Sohler demonstrate in Turning Big data into tiny data: Constant-size coresets for k-means, PCA and projective clustering, the union of coresets from separate partitions remains a valid coreset for the combined dataset.

This means we can process data in a binary tree structure:

  1. Divide the data into small chunks at the leaves.
  2. Compute a coreset for each chunk.
  3. Merge pairs of coresets and "reduce" them (re-compress) to keep the size constant.
  4. Repeat until a single global coreset remains.

Because the error adds up predictably at each level of the tree, we can maintain rigorous theoretical guarantees on the final result while only ever keeping a tiny fraction of the data in memory.

From Sketches to Monoids

While coresets are subsets of the original points, sketches are mathematical transformations of the data. For a sketch to be useful in a distributed environment, it must be "mergeable."

Edo Liberty introduced this for linear algebra with "Frequent Directions" in Simple and deterministic matrix sketching. By treating matrix rows like items in a frequency counter, Liberty showed that matrix sketches can be computed independently on distributed subsets and merged without losing approximation quality.

This mergeability is not just a lucky feature; it is an algebraic property. Jimmy Lin argues in Monoidify! Monoids as a Design Principle for Efficient MapReduce Algorithms that we should design data structures as monoids. A monoid is a set with an associative binary operation (a "merge" function) and an identity element. If your data summary is a monoid, it is guaranteed to be safe for parallel processing because the order in which you merge the partial results doesn't change the final outcome.

Sampling and Frequency Statistics

Composability also extends to how we sample data. Edith Cohen and colleagues have shown that even complex sampling schemes can be made mergeable. In Variance optimal sampling based estimation of subset sums, they introduced VAROPTk, a reservoir sampling algorithm where samples from independent sub-streams can be merged into a single globally optimal sample.

This is critical for monitoring large-scale cloud environments. As Homin K. Lee notes in Sampling Space-Saving Set Sketches, if a summary structure cannot be mathematically merged, it is impossible to achieve a unified view of decentralized data streams. By combining sketching and sampling into mergeable structures, we can identify "heavy hitters" (the most frequent items) across thousands of isolated server instances.

Beyond Simple Statistics: Diversity and Fairness

Recent research has pushed composable summaries into more complex optimization problems, such as diversity maximization—picking $k$ items that are as different as possible.

Siddharth Gollapudi, Sepideh Mahabadi, and Varun Sivashankar showed in Composable Coresets for Determinant Maximization: Greedy is Almost Optimal that a simple greedy selection algorithm actually functions as a powerful composable coreset. This allows us to maintain diverse and fair data summaries (Core-sets for Fair and Diverse Data Summarization) in streaming environments by independently summarizing partitions and merging them, ensuring the final subset is representative of the entire global distribution.

Why It Works: The "Distilled" Perspective

The reason this direction is so effective is that it shifts the focus from the volume of data to the complexity of the task.

In many cases, the size of a coreset depends only on the desired accuracy and the "intrinsic dimension" of the problem, not the number of input points. As Alaa Maalouf and Ibrahim Jubran explain in Introduction to Coresets: Approximated Mean, a coreset acts as a "distilled" version of the data. By ensuring these distillations are composable, we unlock the ability to solve massive problems by solving many tiny ones and merging the answers.

Papers in this version

History & citationVersion 1 · 2026-10-04

Split into other directions · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_scaling_algorithms_via_composable_data_s_6e129143,
  title = {Scaling Algorithms via Composable Data Summaries},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/scaling-algorithms-via-composable-data-summaries/rdr_6e1291438e474351ab533d98527121ee},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-12-04},
}

This exact version (version 1, frozen text):

@misc{lacuna_scaling_algorithms_via_composable_data_s_6e129143_v1,
  title = {Scaling Algorithms via Composable Data Summaries},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/scaling-algorithms-via-composable-data-summaries/rdr_6e1291438e474351ab533d98527121ee/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-12-04},
}