Matrix Factorization for Practical Continual Mean Estimation Under User-Level Differential Privacy

Nikita P. Kalinin, Ali Najar, Valentin Roth, Christoph H. Lampert · DOI

Abstract

We study continual mean estimation, where data vectors arrive sequentially and the goal is to maintain accurate estimates of the running mean. We address this problem under user-level differential privacy, which protects each user's entire dataset even when they contribute multiple data points. Previous work on this problem has focused on pure differential privacy. While important, this approach limits applicability, as it leads to overly noisy estimates. In contrast, we analyze the problem under approximate differential privacy, adopting recent advances in the Matrix Factorization mechanism. We introduce a novel mean estimation specific factorization, which is both efficient and accurate, achieving asymptotically lower mean-squared error bounds in continual mean estimation under user-level differential privacy.

Introduction

Computing a running mean is a foundational task in data analysis, ranging from tracking patient vitals to federated learning updates. However, doing this privately under User-Level Differential Privacy (ULDP) is challenging. Unlike item-level privacy, ULDP must hide a user's entire history of contributions. If a user contributes frequently to a stream, standard mechanisms must add prohibitive amounts of noise to mask their presence.

Previous work on continual mean estimation relied on "pure" differential privacy and Binary Tree mechanisms, which often result in estimates too noisy for high-dimensional data. This work bridges the gap by utilizing approximate differential privacy and the Matrix Factorization (MF) mechanism to provide practical, low-error estimates for real-time metric tracking.

Methods

The MF mechanism views the running sum as a large matrix multiplication, factorizing the "workload matrix" into two smaller matrices. Correlated Gaussian noise is added to the intermediate representation, which smartly distributes error across time steps.

A key insight of this paper is that Mean $\neq$ Sum. Optimizing noise for a running sum differs from optimizing for a mean because the mean divides the sum by the current time step $t$, weighting early errors differently than later ones. We introduce a novel lower-triangular Toeplitz matrix factorization, $\mathbf{D}_{\text{Toep}}$, explicitly designed for the mean estimation workload. To handle multiple user participations, we enforce a "$b$-min-separation" rule and utilize a "banded inverse" matrix technique to maintain memory efficiency.

Figure 1: Ratio to the Optimal Error across different matrix sizes, demonstrating the efficiency of the proposed D_Toep factorization compared to standard baselines.

Results

Theoretical analysis shows that the $\mathbf{D}_{\text{Toep}}$ factorization achieves an asymptotically lower RMSE bound, eliminating the $\sqrt{\ln n}$ penalty factor found in standard prefix-sum factorizations. In numerical simulations, the proposed method consistently outperforms state-of-the-art baselines like $\nu$-DP-FTRL.

Empirical validation on the Credit Card Transactions Dataset (Kaggle) demonstrates practical viability. The algorithm successfully tracked the average transaction amounts of ~1,000 users over six months with high visual accuracy under strict privacy guarantees ($\epsilon = 10$, $\delta = 5 \times 10^{-6}$). As shown in the tracking results, $\mathbf{D}_{\text{Toep}}$ converges to the true running mean significantly faster and more accurately than the standard $E_1^{1/2}$ factorization.

Figure 6: Continual mean estimation on the Credit Card dataset. The proposed D_Toep method (green) tracks the running mean (blue dashed) much more effectively than the baseline (orange).

Conclusion

By tailoring matrix factorization specifically for the mean estimation workload, we significantly reduce the noise required for user-level differential privacy in data streams. While memory constraints for extremely long streams and heterogeneous data distributions remain areas for future work, this approach provides a robust framework for practical, private real-time analytics.

Summary updated

Abstract

We study continual mean estimation, where data vectors arrive sequentially and the goal is to maintain accurate estimates of the running mean. We address this problem under user-level differential privacy, which protects each user's entire dataset even when they contribute multiple data points. Previous work on this problem has focused on pure differential privacy. While important, this approach limits applicability, as it leads to overly noisy estimates. In contrast, we analyze the problem under approximate differential privacy, adopting recent advances in the Matrix Factorization mechanism. We introduce a novel mean estimation specific factorization, which is both efficient and accurate, achieving asymptotically lower mean-squared error bounds in continual mean estimation under user-level differential privacy.
BibTeX
@misc{kalinin2026matrix,
  author = {Nikita P. Kalinin and Ali Najar and Valentin Roth and Christoph H. Lampert},
  title = {{Matrix Factorization for Practical Continual Mean Estimation Under User-Level Differential Privacy}},
  year = {2026},
  eprint = {2601.22320},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.22320},
}
Figure