potentialpaper

Space-Optimal Streaming Algorithms via Efficient Encodings

Liudeng Wang, David Woodruff, Shenghao Xie, Samson Zhou

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. We study the problem of constructing coresets on data streams: Given a dataset of nn points in Rd\mathbb{R}^d arriving sequentially, the goal is to maintain a small weighted subset that accurately approximates the objective values of the entire dataset for a given class of query functions. Previous methods like merge-and-reduce and online sensitivity sampling required more space than the size of an optimal such subset in the offline setting. In this work, we show that such overheads are not necessary by presenting space-optimal streaming algorithms for central high-dimensional optimization problems such as Euclidean (k,z)(k,z)-clustering and LpL_p subspace embeddings, as well as applications to projection-cost preserving sketches.

For (k,z)(k,z)-clustering, our streaming algorithm uses memory independent of the number nn of input points (in words of memory) and the aspect ratio Δ\Delta, yielding a coreset with an optimal O~(dkmin⁡(ε4,εz+2))\tilde{\mathcal{O}}\left(\frac{dk}{\min(\varepsilon^4,\varepsilon^{z+2})}\right) words of memory for accuracy parameter ε∈(0,1)\varepsilon\in(0,1). For LpL_p subspace embeddings, where the rows of matrix A∈Rn×d\mathbf{A} \in \mathbb{R}^{n \times d} arrive in an insertion-only stream, we achieve an efficient algorithm that uses optimal space for different ranges of pp: O~(d2ε2)\tilde{\mathcal{O}}\left(\frac{d^2}{\varepsilon^2}\right) words for p≤2p\le 2 and O~(dp/2+1ε2)\tilde{\mathcal{O}}\left(\frac{d^{p/2+1}}{\varepsilon^2}\right) words for p>2p>2, both independent of the number of rows nn. Thus, our work shows that streaming algorithms can match offline algorithms in space complexity.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
3 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:43 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper considers the task of coreset construction for approximating objective functions used for example in clustering and regression. Specifically, the goal is to construct coresets in an online fashion, where the data arrives in a stream, and the goal is to optimize the memory requirements. The authors improve on prior works by getting rid of excess polylogarithmic factors in the memory requirements for these tasks from prior works.

The reviewers point to some issues that should be addressed in the final version:

  • The exposition of the results and the analysis could be significantly improved. Please address all of the reviewer comments about that.
  • The polylogarithmic improvements are nice, but given their somewhat incremental nature, this makes the contribution quite niche. Maybe clarify the significance of these improvements and the key challenges in the analysis that arise.
  • Reviewers asked to include the discussion of the running time, particularly in comparison with the offline algorithms.
  • Experiments are fairly small-scale. Large-scale experiments are not necessary, but maybe at least discuss what are the main bottlenecks that make larger-scale experiments challenging.
Final justification

Most of the reviewers were satisfied with the author responses. Please make sure to include all of the promised changes into the final version.

Area Chair 5qAQ · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The paper considers the task of coreset construction for approximating objective functions used for example in clustering and regression. Specifically, the goal is to construct coresets in an online fashion, where the data arrives in a stream, and the goal is to optimize the memory requirements. The authors improve on prior works by getting rid of excess polylogarithmic factors in the memory requirements for these tasks from prior works.

The reviewers point to some issues that should be addressed in the final version:

  • The exposition of the results and the analysis could be significantly improved. Please address all of the reviewer comments about that.
  • The polylogarithmic improvements are nice, but given their somewhat incremental nature, this makes the contribution quite niche. Maybe clarify the significance of these improvements and the key challenges in the analysis that arise.
  • Reviewers asked to include the discussion of the running time, particularly in comparison with the offline algorithms.
  • Experiments are fairly small-scale. Large-scale experiments are not necessary, but maybe at least discuss what are the main bottlenecks that make larger-scale experiments challenging.
Final justification

Most of the reviewers were satisfied with the author responses. Please make sure to include all of the promised changes into the final version.

2 comments
Authors · CommentOpenReview ↗

We have contacted the Program Chairs regarding the appropriate way to respond to your question and are awaiting their guidance before providing a response.

Area Chair 5qAQ · CommentOpenReview ↗

I see, thanks for letting me know.

Reviewer VMXfOpenReview ↗
Rating
4/6
Confidence
4/5
Quality
3/4
Clarity
2/4
Significance
2/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The main topic of this paper is coresets in data streaming for tasks such as clustering and subspace embedding. The goal is to construct coresets in succinct space where the space bounds do not have any dependence on the length of the stream (nn).

Existing work on this problem incurs poly(loglog nn) dependence. The paper eliminates this overhead and closes the gap with the space complexity of offline algorithms.

To eliminate this dependence on nn, the paper proposes a ``global efficient encoding’’ framework. The idea is the following: instead of maintaining each local coreset with high precision, which will cause space overhead, maintain a single global constant-factor approximation sketch. The true coresets are then encoded by quantizing their offsets relative to this global sketch.

This idea reduces the bit complexity of storage and thereby allows the word complexity to match optimal offline bounds.

The paper applies this general framework to three problems:

  • Euclidean clustering coresets
  • ℓp\ell_p subspace embeddings
  • Projection-cost preserving sketches

The paper has modest experiments to showcase the advantages of their method, for the clustering problem. However, I primarily view this as a theoretical contribution.

Overall the encoding idea is nice but I feel the paper’s results are not striking from a theory viewpoint. Plus the exposition leaves a lot to be desired.

OTHER COMMENTS

  • L43: Do you want to use Mx instead of Zx, to be consistent with later?
  • L94-95: This sentence “For instance” is confusing, please reword.
  • L114: Where is the condition number used in the theorem statement?
  • L140: preservating -> preserving
  • L153-158: This is hard to parse and assumes prior knowledge - please rewrite
  • L179: What is x’? The preceding lines are quite poorly written.
  • L204: Again, assumes some background knowledge, eg, “merge-and-reduce” tree
  • L218: a o(1)o(1) -> an o(1)o(1)
  • L258: an -> a
  • L333: Typo
  • L544: uneasy -> not easy?
Strengths and weaknesses

STRENGTHS

  • Memory-efficient algorithms are important
  • Closing the gap to offline is satisfying
  • The encoding idea is simple and nice
  • The preconditioning idea for subspace embeddings is nice since naive idea fails

WEAKNESSES

  • Results are niche and eliminating polyloglog(nn) factor is only marginally interesting
  • Paper extremely poorly written with lot of assumptions made about the reader’s familiarity with existing work in this space
  • Weak empirical evaluation (only clustering, small size/small dimension dataset)
Questions

Could this encoding be made directly as part of the coreset computation?

Could you comment on the space lower bounds?

Limitations

Yes

Final justification

I will keep my score.

Formatting concerns

None

2 comments
Authors · CommentOpenReview ↗

Thank you for the positive review and the detailed comments on our exposition. We address the questions below.

Results are niche and eliminating polyloglog(n)\text{polyloglog}(n) factor is only marginally interesting

Although we only improve the space complexity by a polyloglog(n)\text{polyloglog}(n) factor, we believe that it is a significant conceptual contribution. As we mentioned in lines 26-27, a fundamental, open question has been whether data summarization tasks inherently require more space in the streaming model compared to their offline counterparts. By eliminating this factor, our framework provides space usage (in words) that is entirely independent of the input size nn. This proves that streaming overhead is not an inherent inevitability for these tasks, matching the space complexity of offline algorithms for the first time. Furthermore, the resulting space reduction in our experiments appears quite large in practice.

Paper extremely poorly written with lot of assumptions made about the reader’s familiarity with existing work in this space

We apologize that the paper felt difficult to understand. We will reorganize the main text to include a much more intuitive exposition on our techniques. Specifically, we will move key portions of the Technical Overview (currently in Appendix A) into the main text to better summarize the previous methods, assumptions, and limitations of existing merge-and-reduce and online sensitivity sampling approaches.

Weak empirical evaluation (only clustering, small size/small dimension dataset)

We agree that testing larger and higher-dimensional datasets is significant to verify our theoretical bounds. Indeed, our efficient encoding removes the nn-dependent space overhead to store the active coresets, so the memory savings should scale better on larger datasets. To address this concern regarding the dataset size and dimension, we have expanded our empirical evaluation to the MNIST dataset with n=70,000n=70,000 images and d=784d=784 features. On MNIST, our space-optimal method achieved up to a 40.5% memory reduction compared to the baseline on MNIST (up from a 25% reduction on the smaller DIGITS dataset), while maintaining nearly identical clustering costs. Please also refer to the table provided in our response to Reviewer iMSJ (Q3) for the full results.

Could this encoding be made directly as part of the coreset computation?

As mentioned in lines 165-166, the efficient encoding algorithms must be specific to the problem geometry (e.g., quantizing offsets to centers for (k,z)(k,z)-clustering versus applying deterministic preconditioners for LpL_p subspace embeddings). Thus, designing a universal encoding method that is a subroutine in coreset construction is nearly impossible. Also, within a given problem domain, we intentionally keep the encoding step decoupled from the underlying coreset computation algorithm. Our approach acts as a black-box reduction that can encode any valid offline coreset for that specific problem. While certain offline algorithms could be re-engineered to output quantized outputs directly, keeping the efficient encoding as a separate, modular step is highly beneficial for clarity and analysis.

Could you comment on the space lower bounds?

Thank you for this question. We discuss the lower bounds for the three problems below.

  • Euclidean (k,z)(k, z)-Clustering: The lower bound for the size of an offline coreset for (k,z)(k,z)-clustering is Ω~(kmin⁡(ε4,εz+2))\tilde{\Omega}\left(\frac{k}{\min(\varepsilon^4, \varepsilon^{z+2})}\right). Since storing each point uses O(d)O(d) words, our O~(dkmin⁡(ε4,εz+2))\tilde{\mathcal{O}}\left(\frac{dk}{\min(\varepsilon^4, \varepsilon^{z+2})}\right) words of memory streaming upper bound perfectly matches the lower bound and the best known offline coreset constructions (e.g., [CSS21, CLSS22] mentioned in line 90).

  • LpL_p Subspace Embeddings: As stated in Lines 126-127, Li et al. [LWW21] prove a space lower bound of Ω(dmax⁡(p/2,1)+1)\Omega(d^{\max(p/2,1)+1}) bits for any constant-factor LpL_p subspace embedding for p≥2p \ge 2. Thus, our streaming upper bounds are tight in dd.

  • PCP Sketches: For PCP sketches, any row-sampling approach has an offline sample complexity lower bound of Ω(kε2)\Omega(\frac{k}{\varepsilon^2}) rows, requiring Ω(dkε2)\Omega(\frac{dk}{\varepsilon^2}) coordinates to store. Our streaming algorithm matches this optimal offline lower bound and the upper bound by [CMM17] (mentioned in Line 149) in words of space, assuming d≫k poly(log⁡log⁡n)d \gg k \text{ poly}(\log \log n).

Reviewer VMXf · CommentOpenReview ↗

Thank you

Thank you for responding to my questions. I still feel \polylog⁡(⋅)\poly\log(\cdot) improvements are not terribly exciting. And thanks for providing the context surrounding the lower bounds.

Reviewer o9JkOpenReview ↗
Rating
5/6
Confidence
3/5
Quality
4/4
Clarity
3/4
Significance
4/4
Originality
4/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The submission proposes novel streaming algorithms for computing coresets for Euclidean (k,z)(k,z)-clustering (of which the classic kk-Means problem is a special case), for computing subspace embeddings and for computing projection-cost preserving sketches. The obtained space bounds are tight with respect to existing lower bounds and match those of optimal offline algorithms. The paper also obtains empirical results by implementing the clustering results and showing that they achieve lower space usages in practice while maintaining the clustering quality.

Strengths and weaknesses

Strengths:

  • Obtaining small high-quality coresets is a well-researched and important area.
  • The obtained results are tight with respect to existing lower bounds.
  • The algorithms are interesting and the theoretical analysis is highly involved.

Weaknesses: I cannot see any major weaknesses. I would have liked to see experiments on larger datasets, but given that this is a theory paper, I think it is fine. I only found a few typos and have some minor suggestions for clarifications (see below).

Conclusion: I think this is a very strong submission that should be accepted.

Comments for the authors:

  • (You do not have to respond to these points in the rebuttal.)
  • Line 89: "fully independence" -> "full independence
  • In Table 1, a citation for online sensitivity sampling result is missing.
  • I think it would be important to introduce formally what the O~\tilde{O} notation stands for. Usually this also hides factors log⁡(n)\log(n) but as far as I understand you only hide factors that depend on log⁡(d,k,1/ε)\log(d,k,1/\varepsilon).
  • Theorem 1.2: What is the role of κ\kappa in the theorem? It does not seem like the space bounds depend on κ\kappa at all (and neither does the long version Theorem E.15), so why do you introduce it?
  • Theorem 1.3: This theorem depends on κ\kappa but not it is missing in the theorem statement.
  • Line 163: What do you mean by "the local dataset on each node"?
  • Line 203: "We then assembly" -> "We then assemble"
  • Lines 220 and 228: It would be beneficial if you could briefly explain how you obtain this "global constant-factor approximation", because it is not very clear.
  • Experiments: It should be pointed out how the parameters ε′\varepsilon', ε\varepsilon and δ\delta of the algorithm were set.
  • Line 333: There is a "." missing before "This".
Questions

Will you make your code available?

Limitations

Yes

Final justification

The authors promised experiments on larger datasets, as well as the release of the code. I stick with my positive assessment of the paper and think it should be accepted.

Formatting concerns
2 comments
Authors · CommentOpenReview ↗

Thank you for the positive assessment and for pointing out the minor typos, which we will correct in the updated version.

I cannot see any major weaknesses. I would have liked to see experiments on larger datasets, but given that this is a theory paper, I think it is fine. I only found a few typos and have some minor suggestions for clarifications.

We agree that testing larger datasets is significant to verify our theoretical bounds. Indeed, our efficient encoding removes the nn-dependent space overhead to store the active coresets, so the memory savings should scale better on larger datasets. We have expanded our empirical evaluation to the MNIST dataset with n=70000n=70000 images and d=784d=784 features. This massive, higher-dimensional dataset proves that our theoretical guarantees translate into immense practical benefits in larger-scale applications. In particular, our space-optimal method achieved up to a 40.5% memory reduction compared to the baseline on MNIST (up from a 25% reduction on the smaller DIGITS dataset), while maintaining nearly identical clustering costs. Please also refer to the table provided in our response to Reviewer iMSJ (Q3) for the full results.

Will you make your code available?

Yes, we will make all code (including the new MNIST tests) publicly available.

Reviewer o9Jk · CommentOpenReview ↗

Thank you for your response. I maintain my positive evaluation of the paper.

Reviewer iMSJOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
2/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper addresses whether constructing coresets inherently requires more memory overhead in the streaming model compared to the offline setting. The authors introduce a general framework based on "efficient global encodings". Instead of saving individual node coresets with high precision within standard merge-and-reduce trees, the framework stores a global constant-factor approximation of the entire stream and rounds local node coresets to this shared sketch using space-efficient quantization. The authors apply this framework to (k,z)-clustering, subspace embeddings, and projection-cost preserving sketches.

Strengths and weaknesses

Pros:

  • Resolving the gap between streaming and offline coreset sizes is a major theoretical contribution. Getting rid of the nn dependency in three coreset problems is a strong result.

  • The "global efficient encoding" framework is simple (as a general framework should be). Even though individual node reconstructions are technically invalid for local subsets, the paper demonstrates that their collective union is globally valid for the entire stream.

Cons:

  • The algorithms involve reconstruction using offline algorithms. It's not clear how practical the results end up being. (But this does not take away from the theoretical results.)

  • I got caught up on the notations S\mathcal{S} with the various subscripts. I'm not sure if the authors can make this more clear.

  • From the experiments, I'm not sure I get anything useful. The dataset is small and doesn't really fit the narrative that this framework is useful for massive datasets. There's no running time analysis. Only one of the problems is represented. As it stands, this section mostly just shows that a proof-of-concept implementation for (k,z)-clustering exists. (Which is fine for a theory paper, but in my opinion the space could have been used for more intuitive exposition or more theory details instead.)

Questions
  • Given that the primary motivation of the paper is processing massive, infinite-horizon data streams under strict memory limits, why was the empirical validation limited to a small, static dataset of 1,797 samples?

  • How large does the stream need to be for the amortized update time to balance out the reconstruction overhead?

  • Can you add the relevant citations to the introduction section? Some content is repeated later on with citations, but I think it's important to have the citations for prior work and bounds when you first mention them.

Limitations

yes

Final justification

As noted in the comments, the results provided by the authors increase my confidence slightly in the score decision. The paper is already recommended for acceptance, so I maintain that recommendation.

Formatting concerns

NA

2 comments
Authors · CommentOpenReview ↗

Thank you for the positive review and constructive suggestions. We have added a larger-scale experiment accordingly.

W1) Efficiency of reconstruction.

Reconstruction in our framework does not involve re-running expensive offline coreset algorithms from scratch. Instead, it is simply the inversion of our encoding steps using standard vector and matrix computation, as stated below:

  • (k,z)(k, z)-Clustering: Reconstructing a coreset X′X' of ∣X′∣|X'| points takes O(∣X′∣⋅d)\mathcal{O}(|X'| \cdot d) time. Each point x′x' is recovered by adding its quantized dd-dimensional offset yy back to its assigned cluster center c′(x)c'(x), i.e., x′=c′(x)+yx' = c'(x) + y.

  • LpL_p Subspace Embeddings: Reconstructing a coreset A′A' of rr rows takes O(r⋅d2)\mathcal{O}(r \cdot d^2) time. The matrix is recovered by multiplying the r×dr \times d rounded matrix B′B' with the d×dd \times d inverse preconditioner P−1P^{-1}, i.e., A′=B′P−1A' = B' P^{-1}.

  • Projection-Cost Preserving (PCP) Sketches: Reconstructing a sketch Wi′W'_i of rr rows and rank kk takes O(r⋅dk)\mathcal{O}(r \cdot dk) time. The matrix is recovered by multiplying the r×kr \times k head coefficients HiH_i with the k×dk \times d top-kk right singular vectors Vk⊤V_k^\top and adding the r×dr \times d quantized tail residual Ti′T'_i, i.e., Wi′=HiVk⊤+Ti′W'_i = H_i V_k^\top + T'_i.

Since the coreset size (e.g., ∣X′∣|X'| and rr) are roughly poly(d,k,1/ϵ,log⁡log⁡(nΔ))\text{poly}(d, k, 1/\epsilon, \log\log(n\Delta)), the time complexities become o(1)o(1) terms in the amortized update time for sufficiently large nn, e.g., n≫poly(d,k,1/ϵ)n \gg \text{poly}(d, k, 1/\epsilon).

W2) Unclear subscripts.

We apologize for the notational density. In the revision, we will add a centralized notation table and streamline the subscript usage in Section 2 to make the math easier to follow.

W3 & Q1) Small dataset in empirical evaluation; only one problem tested.

We agree that the DIGITS dataset was small. To provide a robust empirical evaluation, we have implemented our (k,z)(k, z)-clustering algorithm on the widely used MNIST dataset, which contains n=70000n=70000 images of digits 0 through 9 (and thus can be viewed as an extension of DIGITS), each with d=784d=784 features. This significantly larger and higher-dimensional dataset fits the narrative of our framework and explicitly demonstrates its utility on massive data streams.

While we saw a maximum of 25% space reduction on DIGITS, our efficient encoding achieved up to a 40.5% space reduction on MNIST (e.g., at a budget of ~200, the baseline required 48M bits, while ours required only 28.5M bits). This aligns perfectly with our theoretical results: because our framework eliminates the nn-dependent overhead via efficient encoding, the memory savings become increasingly massive as dd and nn grow. We have also included running time analysis, demonstrating that the amortized update time is still highly practical and that massive space compression does not sacrifice approximation quality.

Below is the result table for MNIST that will be included in the revision:

Target Budget Method Avg. Clustering Cost Peak Space Usage (bits) Amortized Time per Item (ms)
~20 Baseline 4,231,656 6,581,440 7.15 ms
Ours 4,150,784 3,911,787 8.77 ms
~50 Baseline 3,454,396 14,092,320 10.26 ms
Ours 3,484,771 8,462,245 15.66 ms
~100 Baseline 3,138,230 25,337,707 13.40 ms
Ours 3,187,218 15,114,096 24.41 ms
~200 Baseline 3,015,100 48,054,560 14.91 ms
Ours 3,052,912 28,572,587 32.61 ms

Regarding the focus on clustering: (k,z)(k,z)-clustering serves as the canonical benchmark for merge-and-reduce coreset structures in the streaming model. By demonstrating that our global efficient encoding successfully compresses the active tree nodes without degrading the performance in practice, we validate the core framework that our theoretical proofs generalize to subspace embeddings and PCP sketches.

Q2) Amortizing reconstruction overhead.

The reconstruction step is executed only when merging active coresets within the merge-and-reduce tree structure. Because the tree has at most ℓ=O(log⁡(nΔ))\ell = O(\log(n\Delta)) leaves, the total number of reconstruction operations across the entire stream is polylogarithmically small. Therefore, if n≥poly(d,k,1/ϵ)n \ge \text{poly}(d, k, 1/\epsilon), the amortized reconstruction time drops to o(1)o(1) and is dominated by the time to compute the online sensitivity. As shown in the earlier table, while our amortized update time is highly competitive at smaller budgets, it becomes slightly slower as the coreset size increases; this is primarily because the size nn of MNIST is not yet sufficiently larger than poly(d)\text{poly}(d) to fully absorb the reconstruction cost, though we predict this overhead will become negligible on even larger-scale datasets.

Q3) Relevant citations in Intro.

We appreciate your suggestion and will add the relevant citations.

Reviewer iMSJ · CommentOpenReview ↗

Thank you for the clarification, the results you provided in this response increase my confidence in recommending to accept this paper.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…