# The Cost of Working Memory in Streaming Mean Estimation

DevFeed: [The Cost of Working Memory in Streaming Mean Estimation](<https://devfeed.tech/articles/the-cost-of-working-memory-in-streaming-mean-estimation-108815.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.39540>)

Author: Zeyu Wu, Zihao Wang, Minghua Deng

Published: 2026-10-30T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [streaming data analytics](<https://devfeed.tech/topics/streaming-data-analytics.md>), [Memory Heirarchy](<https://devfeed.tech/topics/memory-heirarchy.md>)

Tags: [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [memory](<https://devfeed.tech/tags/memory.md>), [stat-ml](<https://devfeed.tech/tags/stat-ml.md>), [streaming](<https://devfeed.tech/tags/streaming.md>)

## AI overview

For streaming Gaussian mean estimation over the Euclidean unit ball, the memory needed to accumulate evidence can exceed the memory needed to store the final estimate. With K persistent states, a known horizon, and a public time index, the minimax squared-error rate is min{1, K^(−2/d) + (d/n)(1 + log(ed)/(1 + (log K)/d))}; computing without that persistent-state constraint and then encoding in K levels gives min{1, d/n + K^(−2/d)}. At fixed sufficiently small error, optimal sample size requires order d log d working bits, while order d bits store the answer. A matching construction uses a multiscale modular counter and workspace reused across coordinate groups; in one dimension it achieves n^(−1) + K^(−2). Stronger confidence can require more memory: failure probability e^(−γn) at fixed nontrivial risk in fixed dimension requires and permits order log n working states for sufficiently small fixed γ, while the scalar problem needs only a fixed terminal alphabet under the stated protection.

## Source excerpt

arXiv:2610.39540v1 Announce Type: cross Abstract: A streaming estimator must compute from the evidence that fits in memory. We determine when storing an accurate mean is easier than computing it. For Gaussian mean estimation over the Euclidean unit ball in $\mathbb{R}^d$, we establish the minimax rate under squared error with $K$ persistent states, a known horizon, and a public time index: $\min\{1, K^{-2/d}+\frac{d}{n} (1+\frac{\log(ed)}{1+(\log K)/d})\}$. Unrestricted computation followed by $K$-level encoding has rate $\min\{1,d/n+K^{-2/d}\}$. At a fixed sufficiently small error, statistically optimal sample size therefore requires order $d\log d$ working bits, while order $d$ bits suffice to store the answer. The lower bound tracks repeated state compression through an entropy potential obtained by Gaussian smoothing. A matching construction combines a multiscale modular counter with workspace reused across coordinate groups. In one dimension, it attains the terminal rate $n^{-1}+K^{-2}$. Any fixed confidence requirement that the realized loss not exceed the zero baseline preserves these rates. Increasing confidence creates a further memory requirement: at fixed nontrivial risk in every fixed dimension, failure probability $e^{-\gamma n}$ requires and permits order $\log n$ working states for sufficiently small fixed $\gamma>0$. In the scalar problem, a fixed terminal alphabet suffices under the same protection. These bounds separate the memory needed to represent an answer from the memory needed to accumulate evidence and validate a decision.