# Private Continual Counting of Unbounded Streams

DevFeed: [Private Continual Counting of Unbounded Streams](<https://devfeed.tech/articles/private-continual-counting-of-unbounded-streams-126872.md>)

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

Author: Ben Jacobsen, Kassem Fawaz

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [Apache Flink](<https://devfeed.tech/topics/apache-flink.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [absolute](<https://devfeed.tech/tags/absolute.md>), [abstract](<https://devfeed.tech/tags/abstract.md>), [algorithm](<https://devfeed.tech/tags/algorithm.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [alpha](<https://devfeed.tech/tags/alpha.md>), [also](<https://devfeed.tech/tags/also.md>), [art](<https://devfeed.tech/tags/art.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [based](<https://devfeed.tech/tags/based.md>), [bounded](<https://devfeed.tech/tags/bounded.md>), [but](<https://devfeed.tech/tags/but.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cs-ds](<https://devfeed.tech/tags/cs-ds.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [data](<https://devfeed.tech/tags/data.md>), [error](<https://devfeed.tech/tags/error.md>), [first](<https://devfeed.tech/tags/first.md>), [function](<https://devfeed.tech/tags/function.md>), [guarantees](<https://devfeed.tech/tags/guarantees.md>), [here](<https://devfeed.tech/tags/here.md>), [private](<https://devfeed.tech/tags/private.md>), [streams](<https://devfeed.tech/tags/streams.md>)

## AI overview

The paper presents a differentially private continual counting algorithm for streams whose final length is unknown. Existing matrix mechanism guarantees require parameters tuned to the input size, while the doubling trick produces suboptimal, non-smooth error. The new method uses matrix factorizations based on logarithmic perturbations of 1/√(1−z), achieving smooth error and variance O(log²(t)(log log t)^(1+2α)) for estimating the first t values, for any α > 0. It uses O(t) space and amortized O(log t) time per round. Compared with Henzinger et al.'s bounded-input method, it avoids O(n) space and O(n log n) preprocessing; optimized experiments report variance below twice theirs through t = 2³². These claims are from the supplied abstract excerpt.

## Source excerpt

arXiv:2506.15018v3 Announce Type: replace Abstract: We study the problem of differentially private continual counting in the unbounded setting where the input size $n$ is not known in advance. Current state-of-the-art algorithms based on optimal instantiations of the matrix mechanism cannot be directly applied here because their privacy guarantees only hold when key parameters are tuned to $n$. Using the common `doubling trick' avoids knowledge of $n$ but leads to suboptimal and non-smooth error. We solve this problem by introducing novel matrix factorizations based on logarithmic perturbations of the function $\frac{1}{\sqrt{1-z}}$ studied in prior works, which may be of independent interest. The resulting algorithm has smooth error, and for any $\alpha > 0$ and $t\leq n$, it is able to privately estimate the sum of the first $t$ data points with $O(\log^{2}(t)(\log\log t)^{1+2\alpha})$ variance. It requires $O(t)$ space and amortized $O(\log t)$ time per round, compared to $O(\log(n)\log(t))$ variance, $O(n)$ space and $O(n \log n)$ pre-processing time for the nearly-optimal bounded-input algorithm of Henzinger et al. Empirically, we find that our algorithm's performance is also comparable to theirs in absolute terms: with optimized parameters, our variance is less than $2\times$ theirs for $t$ as large as $2^{32}$.