Abstract
We study the problem of estimating $k$-ary distributions under $\epsilon$-local differential privacy. $n$ samples are distributed across users who send privatized versions of their sample to a central server. All previously known sample optimal algorithms require linear (in $k$) communication from each user in the high privacy regime $(\epsilon=O(1))$, and run in time that grows as $n \cdot k$, which can be prohibitive for large domain size $k$. We propose Hadamard Response (HR), a local privatization scheme that requires no shared randomness and is symmetric with respect to the users. Our scheme has order optimal sample complexity for all $\epsilon$, a communication of at most $\log k+2$ bits per user, and nearly linear running time of $\tilde{O}(n + k)$. Our encoding and decoding are based on Hadamard matrices and are simple to implement. The statistical performance relies on the coding theoretic aspects of Hadamard matrices, i.e., the large Hamming distance between the rows. An efficient implementation of the algorithm using the Fast Walsh-Hadamard transform gives the computational gains. We compare our approach with Randomized Response (RR), RAPPOR, and subset-selection mechanisms (SS), both theoretically, and experimentally. For $k=10000$, our algorithm runs about 100x faster than SS, and RAPPOR.
Introduction
Local Differential Privacy (LDP) is the gold standard for collecting sensitive user data without trusting a central server. A fundamental task in LDP is estimating the underlying probability distribution of data across $k$ possible items. When designing these systems, researchers must balance four competing resources: privacy guarantees ($\epsilon$), statistical utility (sample complexity), communication bandwidth (bits sent per user), and computational complexity (server decoding time).
Existing algorithms force a harsh trade-off. Methods like RAPPOR or Subset Selection (SS) are statistically optimal but require users to send $O(k)$ bits and take $O(n \cdot k)$ time for server decoding. For large vocabularies (e.g., $k=10,000$), this linear scaling becomes a massive bottleneck. Conversely, $k$-Randomized Response (RR) is fast and low-bandwidth but statistically sub-optimal. Hadamard Response (HR) achieves the "best of all worlds": optimal sample complexity, low communication, and fast computation.
Methods
Hadamard Response (HR) is a symmetric, non-interactive LDP scheme requiring no shared randomness. Instead of sending a noisy version of the item or a massive bit-vector, HR uses an encoding scheme based on Hadamard matrices:
- Encoding: Each of the $k$ possible items maps to a row in a $K \times K$ Hadamard matrix ($K$ is the next power of 2 above $k$).
- Privatization: The user transmits a single column index $z \in [K]$, with the probability skewed based on the assigned row's values.
- Decoding: Communication is strictly $\log_2 K$ bits. The server aggregates indices and multiplies the frequency vector by the Hadamard matrix using the Fast Walsh-Hadamard Transform (FWHT), reducing computation to $\tilde{O}(n + k)$.
Key Results
HR matches theoretical lower bounds for $\ell_1$ and $\ell_2$ distance estimation across all privacy regimes. In high privacy settings ($\epsilon = O(1)$), it requires an optimal $O(k^2/\epsilon^2\alpha^2)$ samples while reducing communication from $O(k)$ bits to just $\log k + 2$ bits.
Empirically, HR demonstrates significant computational advantages. In simulations with a domain size of $k = 10,000$, HR ran approximately 100x faster than Subset Selection and RAPPOR while maintaining identical statistical accuracy. This speedup is driven by the transition from $O(nk)$ decoding to the nearly linear $\tilde{O}(n+k)$ enabled by the FWHT.
Conclusion
By bridging coding theory and differential privacy, Hadamard Response solves the scalability issues of distribution estimation. It provides a practical, efficient, and communication-light alternative to existing LDP mechanisms, particularly for large-scale applications where domain sizes are substantial.
Summary updated