The communication cost of security and privacy in federated frequency estimation

Wei-Ning Chen, Ayfer Özgür, Graham Cormode, Akash Bharadwaj

Federated learning has emerged as a powerful paradigm for training models and computing statistics on decentralized data. However, a fundamental challenge remains: how can a central server compute a global histogram across many users while ensuring individual data remains both secure from the server and private from third parties? This paper, presented at AISTATS 2023, explores the intersection of cryptography and information theory to define the fundamental communication limits of this problem.

The Federated Frequency Estimation Problem

In Federated Frequency Estimation, a central server aims to determine the frequency of items held by $n$ users across a domain of size $d$. For example, a server might want to know how many users visited specific websites or used certain words in a messaging app.

System Model

General framework for federated frequency estimation where users encode their data $X_i$ into $Y_i$ before sending it to a central server for aggregation.

As shown in the figure above, each user $i$ applies a local encoding function $g_i$ to their data $X_i$. These encoded messages $Y_i$ are sent to a central server, which then computes an aggregate function $f(Y^n)$ to estimate the global histogram. The goal is to minimize the size of $Y_i$ (communication cost) while satisfying security and privacy constraints.

Security Tax vs. Privacy Discount

The authors identify a critical trade-off between security and communication efficiency.

  • The Security Tax: In a non-secure environment, users can simply send their items, requiring only $\log d$ bits. However, to hide individual values from the server using Secure Aggregation (SecAgg), cryptographic masks are required. Naive implementations of SecAgg can require up to $d \log n$ bits per user—a massive overhead when the domain $d$ reaches millions of unique items. The authors prove an information-theoretic lower bound, showing that any protocol providing perfect security must use at least $\Omega(n \log d)$ bits per user.
  • The Privacy Discount: Interestingly, the introduction of Differential Privacy (DP) can actually mitigate these costs. Because DP requires the final result to be noisy to protect individual privacy, the system can tolerate aggressive lossy compression. This allows for the use of sketches that significantly reduce the communication burden, effectively "discounting" the tax imposed by security.

Methodology: The Sketched PBM Algorithm

To achieve efficient frequency estimation, the paper introduces the Sketched Poisson-Binomial Mechanism (Sketched PBM). This practical algorithm operates in four distinct stages:

  1. Count-Sketch: The high-dimensional one-hot vector of a user's item is reduced to a smaller $w$-dimensional sketch.
  2. Hadamard Transform: This step "flattens" the data, ensuring that the impact of a single item is spread across all coordinates, which reduces the sensitivity of the data to noise.
  3. Poisson-Binomial Mechanism (PBM): A discrete DP mechanism allows users to add noise locally. When these noisy sketches are aggregated, the total noise follows a predictable distribution that satisfies central DP requirements.
  4. Secure Aggregation: The noisy sketches are cryptographically summed, ensuring the server only sees the final aggregate histogram.

Key Results and Insights

The authors evaluated Sketched PBM using synthetic datasets following Zipf and Geometric distributions, mimicking real-world word and categorical frequencies.

  • Efficiency: For a domain size of $100,000$, the proposed method achieved high accuracy with only $14.4$ KB to $72$ KB of communication per user. This is orders of magnitude more efficient than naive secure aggregation protocols.
  • Accuracy: By combining local noise with SecAgg, the authors achieve "Central DP" accuracy—which is typically much higher than standard "Local DP" accuracy—without requiring a trusted third party.
  • Theoretical Optimality: The research establishes that $\Theta(n \log d)$ bits is the fundamental "sweet spot" for secure frequency estimation, providing both a lower bound and a constructive (though computationally intensive) upper bound.

Conclusion

This work demonstrates that while security and privacy impose significant constraints on federated systems, they do not have to be prohibitively expensive. By leveraging the "privacy discount" through sketching and discrete noise mechanisms, it is possible to build highly efficient and secure frequency estimation systems. Future work remains to bridge the remaining gap between practical algorithms like Sketched PBM and the theoretical communication limits.

Summary updated

BibTeX
@inproceedings{chen2023communication,
  author = {Wei-Ning Chen and Ayfer Özgür and Graham Cormode and Akash Bharadwaj},
  title = {{The communication cost of security and privacy in federated frequency estimation}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
}
Figure