Abstract
Organizations with a large user base, such as Samsung and Google, can potentially benefit from collecting and mining users' data. However, doing so raises privacy concerns, and risks accidental privacy breaches with serious consequences. Local differential privacy (LDP) techniques address this problem by only collecting randomized answers from each user, with guarantees of plausible deniability; meanwhile, the aggregator can still build accurate models and predictors by analyzing large amounts of such randomized data. So far, existing LDP solutions either have severely restricted functionality, or focus mainly on theoretical aspects such as asymptotical bounds rather than practical usability and performance. Motivated by this, we propose Harmony, a practical, accurate and efficient system for collecting and analyzing data from smart device users, while satisfying LDP. Harmony applies to multi-dimensional data containing both numerical and categorical attributes, and supports both basic statistics (e.g., mean and frequency estimates), and complex machine learning tasks (e.g., linear regression, logistic regression and SVM classification). Experiments using real data confirm Harmony's effectiveness.
Introduction
As organizations like Samsung and Google increasingly rely on user data (e.g., app usage, battery health) to improve products, the risk of privacy breaches and legal liabilities grows. Local Differential Privacy (LDP) has emerged as a robust solution, allowing users to perturb their data locally before transmission. This ensures "plausible deniability," as the central aggregator never observes the raw data. However, existing LDP implementations, such as Google’s Rappor, often struggle with multi-dimensional data or numeric attributes, where the noise required for privacy frequently overwhelms the signal. This paper introduces Harmony, a system designed to overcome these limitations by providing high accuracy and low communication overhead for complex analytics and machine learning.
Methodology
Harmony utilizes several algorithmic optimizations to make LDP practical for high-dimensional datasets. To formalize these methods, we adopt the notations summarized in the table below.
Randomized Attribute Strategy
In high-dimensional settings with $d$ attributes, traditional LDP requires dividing the privacy budget $\epsilon$ by $d$, which leads to excessive noise. Harmony instead employs a "Randomized Attribute" strategy: each user randomly selects only one attribute from the set $[d]$ to report. By averaging these sparse reports across millions of users, the aggregator can compute unbiased estimates. This approach reduces the error growth rate from linear in $d$ to proportional to $\sqrt{d}$.
Communication-Optimal Reporting
For numeric attributes, Harmony implements a 1-bit communication mechanism. Users send only the sign of the perturbed value, which is communication-optimal while maintaining statistical utility. This significantly reduces the bandwidth requirements for mobile devices compared to methods using large Bloom filters.
LDP-Enabled Machine Learning
Harmony supports complex models like Logistic Regression and SVM through Mini-batch Stochastic Gradient Descent (SGD). By averaging noisy gradients from user groups, the system allows the noise to cancel out, facilitating model convergence. For linear regression, Harmony applies random projections to reduce the effective number of attributes, thereby optimizing the privacy budget and stabilizing the gradients.
Experimental Evaluation
Datasets
The system was evaluated using two large-scale real-world datasets from the Integrated Public Use Microdata Series (IPUMS):
- US Dataset: 9 million census records with 23 attributes (6 numeric, 17 categorical).
- Brazil (BR) Dataset: 4 million records with 18 attributes (6 numeric, 12 categorical). In both cases, "total income" served as the target variable for machine learning tasks.
Key Results
- Frequency Estimation: Harmony achieved an $L_\infty$ error approximately 4x lower than hybrid baselines combining existing state-of-the-art methods.
- Machine Learning Accuracy: While standard private SGD often fails in high-dimensional settings, Harmony’s mini-batching with dimension reduction (MGD-DR) achieved accuracy levels close to non-private models. For SVM and Logistic Regression, Harmony consistently outperformed basic private SGD as the privacy budget $\epsilon$ increased.
- Efficiency: The 1-bit reporting mechanism proved significantly more lightweight for mobile devices than previous categorical reporting methods.
Discussion and Future Work
Harmony demonstrates that sparsity and dimension reduction are powerful tools for preserving privacy without sacrificing utility. By forcing users to report only a subset of information, the global signal-to-noise ratio actually improves.
Despite these gains, challenges remain. Handling temporal data—where repeated collections from the same user might leak privacy—remains an open problem. Additionally, future iterations could explore "personalized" LDP, allowing users to select their own privacy budgets ($\epsilon$). Finally, extending Harmony to handle complex data structures like graphs or free-form text represents a promising direction for future research.
Summary updated