Abstract: The collection and analysis of telemetry data from user's devices is routinely performed by many software companies. Telemetry collection leads to improved user experience but poses significant risks to users' privacy. Locally differentially private (LDP) algorithms have recently emerged as the main tool that allows data collectors to estimate various population statistics, while preserving privacy. The guarantees provided by such algorithms are typically very strong for a single round of telemetry collection, but degrade rapidly when telemetry is collected regularly. In particular, existing LDP algorithms are not suitable for repeated collection of counter data such as daily app usage statistics. In this paper, we develop new LDP mechanisms geared towards repeated collection of counter data, with formal privacy guarantees even after being executed for an arbitrarily long period of time. For two basic analytical tasks, mean estimation and histogram estimation, our LDP mechanisms for repeated data collection provide estimates with comparable or even the same accuracy as existing single-round LDP collection mechanisms. We conduct empirical evaluation on real-world counter datasets to verify our theoretical results. Our mechanisms have been deployed by Microsoft to collect telemetry across millions of devices.
Introduction
Software companies rely on telemetry—data about how apps and systems are used—to fix bugs and improve features. However, this collection poses a massive privacy risk. Local Differential Privacy (LDP) has become the gold standard for solving this: users add noise to their data before sending it to the collector, so the company never sees the raw, private values.
The challenge with standard LDP is repetition. If a user sends a noisy version of the same value every day, a data collector can eventually average out the noise and figure out the true value. While previous solutions (like Google's RAPPOR) used "memoization"—storing and reusing the same noisy response for the same value—they struggled with "counters." If app usage changes by just one second, a standard memoization scheme treats it as a brand-new value, triggering new noise and eventually eroding privacy. This paper solves the problem of protecting numeric values that change slightly but frequently.
Methods
The proposed framework for repeated data collection is built on four pillars:
- 1-Bit Mechanisms: Simplified protocols (1BitMean and dBitFlip) where each user sends only a single bit (or a very small number of bits) to the collector. This minimizes communication overhead while maintaining high accuracy for population-level statistics.
- $\alpha$-point Rounding: To prevent small changes (e.g., 3601 seconds vs. 3602 seconds of usage) from leaking info, the system discretizes the data. Each user independently and randomly picks an offset ($\alpha$). This ensures that while the data is "binned," the expected value remains mathematically identical to the raw data, meaning no accuracy is lost in mean estimation.
- Permanent Memoization: Once a value is rounded, the device computes a noisy 1-bit response and stores it. If the rounded value stays the same the next day, the device sends the exact same bit, preventing the collector from averaging out noise over time.
- Output Perturbation: To hide the exact moment a user’s behavior changes significantly, the device occasionally flips its reported bit with a small probability.
Key Insights: The "Boring" User Advantage
Analysis of real-world telemetry from 3 million Microsoft users tracking daily app usage revealed that the vast majority of users are consistent. Most users fall into a single "behavior pattern" over a month. The system exploits this consistency to provide near-infinite privacy for those users. By letting each user pick their own random rounding point ($\alpha$), the discretization grid is different for everyone, preventing systematic bias.
Key Results and Evaluation
The researchers evaluated their methods using both real-world telemetry and synthetic datasets (constant, uniform, and normal distributions).
- Superior Accuracy: The 1BitRRPM mechanism consistently outperformed the standard Laplace mechanism, providing smaller errors and more stable results across various privacy budgets ($\epsilon$).
- Long-term Stability: For histogram estimation, the "d-bit" memoization approach provided accuracy comparable to one-time collection methods, even when executed repeatedly.
- Real-world Deployment: These algorithms were deployed by Microsoft starting with the Windows 10 Fall Creators Update, protecting millions of users while allowing engineers to see aggregate app usage trends.
Conclusion
While the system is incredibly strong for consistent users, the privacy guarantee is slightly weaker for users with highly irregular behavior. Future work could extend these memoization and rounding techniques to more complex tasks, such as finding correlations between different types of telemetry data or performing machine learning on private streams.
Summary updated