Most privacy-preserving machine learning assumes that data is a static snapshot—a single "event" like a one-time survey response or a lone medical record. However, real-world AI applications in mental health, contact tracing, and web analytics rely on longitudinal data: a continuous stream of information collected from the same individual over days, months, or years.
When data is collected repeatedly, traditional privacy guarantees like Differential Privacy (DP) face a fundamental "privacy drain." If an algorithm treats every interaction as an independent event, the cumulative risk to the user grows indefinitely, eventually allowing an adversary to reconstruct their entire identity from fragmented pieces of information.
The Intuition: The Noise Averaging Attack
The core challenge of longitudinal privacy is that randomness—the primary tool used to hide data—can be defeated by repetition.
In Local Differential Privacy (LDP), a user's device adds "noise" to a data point before sending it to a server. If a researcher asks for a user's location once, the noise provides "plausible deniability." But if the researcher asks for the same user's location every hour for a week, they can perform a longitudinal noise averaging attack.
As Andrea Gadotti and Yves-Alexandre de Montjoye demonstrate in their analysis of Apple's Count Mean Sketch, an adversary can aggregate these noisy reports over time. Because the noise is random but the underlying signal (like a home address or a political preference) is often persistent, the noise eventually cancels itself out, leaving the sensitive "true" value exposed.
The Privacy Budget Exhaustion
In the language of Differential Privacy, every piece of information released "costs" a certain amount of a privacy budget ($\epsilon$). Standard "sequential composition" theorems state that if you release $n$ reports, each with a cost of $\epsilon$, the total privacy loss is $n \times \epsilon$.
For infinite or long-term data streams, this linear accumulation is catastrophic. As noted by Héber H. Arcolezi and Sébastien Gambs, existing methods struggle to maintain a consistent guarantee without either accumulating prohibitive amounts of noise (which destroys data utility) or risking de-anonymization as the budget depletes.
Shifting the Unit of Privacy
To solve this, researchers are moving from event-level privacy (protecting a single data point) to user-level privacy (protecting a user's entire history).
A key breakthrough in this area is the PATH (Private Autoregressive Trajectory Histories) framework. Instead of treating each row in a dataset as an independent individual, PATH treats the entire sequence of a user's records as the "unit of privacy." By fine-tuning models on these full trajectories, the system can capture complex temporal dependencies—like the progression of a disease—without exposing the specific patterns that make an individual's history unique.
Similarly, the DPI framework by Shuya Feng and Yuan Hong addresses infinite streams. DPI uses "sensitivity compression" to ensure that the total privacy leakage converges to a fixed limit, even as data flows forever. This prevents the "budget" from ever being fully exhausted.
Mechanisms for Longitudinal Stability
Several specialized protocols have emerged to handle the specific quirks of evolving data:
- Memoization and Hashing: To prevent the averaging attack, protocols like LOLOHA (LOngitudinal LOcal HAshing) use a double layer of randomization. By "memoizing" or remembering the noise applied to a specific value, the system ensures that if a user reports the same value twice, the noise remains consistent, preventing the aggregator from averaging it out.
- Adaptive Sampling: The ALLOMFREE framework, developed by Héber Hwang Arcolezi and colleagues, reduces noise by adaptively choosing which attributes to report at different time steps. This "sample-one-attribute" strategy spreads the privacy budget across dimensions, maintaining high utility for multidimensional longitudinal studies.
- Lipschitz Constraints: In contact tracing, Rob Romijnders and Max Welling use Lipschitz-constrained neural networks to bound the sensitivity of risk scores. This ensures that a single interaction doesn't disproportionately change a user's risk profile, making it easier to provide formal DP guarantees over multi-day windows.
The Gap Between Theory and Reality
Interestingly, recent work suggests that our mathematical models of privacy loss might be too pessimistic. Arcolezi and Gambs introduced the LDP-Auditor, a tool that empirically measures how much privacy is actually leaking.
Their findings show that while theoretical "sequential composition" predicts a linear explosion of privacy loss, actual leakage grows much more slowly in practice. This suggests that we may be able to achieve much higher data utility in longitudinal studies than previously thought, provided we develop more precise composition models that account for the difficulty attackers face when trying to aggregate noise across massive, complex domains.