Federated Heavy Hitter Recovery under Linear Sketching

Adrià Gascón, Peter Kairouz, Ziteng Sun, Ananda Theertha Suresh

The Challenge of Federated Analytics

In federated analytics, a central server aims to learn global statistics—such as the most popular words typed on mobile keyboards—without ever seeing individual user data. To protect privacy, these systems rely on secure aggregation, a cryptographic primitive ensuring the server only decrypts the sum of user-contributed vectors.

While secure aggregation is excellent for privacy, it introduces two major technical hurdles:

  1. The Linearity Constraint: Any data compression used must be linear. The sum of the compressed messages must exactly equal the compressed version of the sum.
  2. The Open-Domain Problem: The "alphabet" of possible items (like URLs or unique words) is often massive or entirely unknown, meaning we cannot simply send a count for every possible item.

Standard "sketches" (like Count-Min or Count-Sketch) are traditional tools for this, but they were primarily designed for single-round settings. In real-world federated learning, users are only intermittently available, requiring multi-round protocols. This paper investigates the fundamental communication-accuracy tradeoffs for heavy hitter recovery in these multi-round, linear-sketching environments.

Proposed Solution: Subsampled IBLTs

The authors propose a novel, communication-efficient protocol called Subsampled IBLT with LinSketch. It achieves a 10x reduction in communication costs compared to standard sketching methods by combining two main components:

  • Invertible Bloom Lookup Tables (IBLTs): Unlike standard Bloom filters that only indicate if an item might be in a set, IBLTs allow the server to actually extract the list of items and their exact counts—provided the number of unique items isn't too large. Crucially, IBLTs satisfy the linearity constraint and are easily mergeable.
  • Local Threshold Subsampling: To prevent the IBLT from "overflowing" (which renders it undecodable), users locally subsample their data. They retain heavy items with high probability and discard "light" items. This keeps the total number of unique items in the global aggregate small enough for the IBLT to process.

Additionally, the authors introduce an Adaptive Tuning heuristic. Because the server does not know the data distribution in advance, it uses information from failed IBLT decodings in early rounds to adjust the subsampling rate for future rounds, optimizing the communication-accuracy balance on the fly.

Key Theoretical Insights

The paper establishes several fundamental theoretical bounds for federated analytics:

  • The Cost of Linearity: The authors prove that the linear sketching constraint inherently forces the communication cost to scale linearly with the number of users per round ($n$). This is a fundamental "tax" paid for the privacy of secure aggregation.
  • Heavy Hitters vs. Approximate Histograms: A major theoretical contribution is proving that Heavy Hitter (HH) recovery is fundamentally easier than Approximate Histogram (ApproxHist) estimation in multi-round settings. For HH, the communication cost only grows logarithmically with the number of rounds ($R$). For ApproxHist, it grows by a factor of $\sqrt{R}$.
  • Why Standard Sketches Fail: Standard sketches like Count-Sketch are sub-optimal for heavy hitters because they essentially solve the harder ApproxHist problem. By using IBLTs and subsampling, the authors "decouple" these tasks, allowing for much leaner communication.

Empirical Results

The researchers evaluated their methods using the Stack Overflow dataset (a standard benchmark from TensorFlow Federated) and simulated data. To make computation feasible for the Count-Sketch baselines—which suffer from high decoding overhead—they restricted the universe to approximately 97,336 unique items (3-character strings).

  • 10x Efficiency Gain: To achieve an F1 score of 0.8 (accurately identifying heavy hitters), the proposed IBLT method required 10 times less communication than the Count-Sketch baseline.
  • Stability Across Rounds: As the number of rounds ($R$) increased, the performance of Count-Sketch degraded significantly. In contrast, the IBLT-based methods remained remarkably stable, confirming the theoretical logarithmic dependence on $R$.
  • Minimax Optimality: The authors provided lower bounds proving that their algorithm's communication complexity is information-theoretically optimal (up to logarithmic factors) for a broad class of interactive schemes.

Limitations and Future Directions

While highly effective, the approach has a few limitations. First, the adaptive tuning method performed excellently in experiments, but providing rigorous theoretical guarantees for this specific tuning function remains an open challenge. Second, the study focused on small domain sizes primarily because the baseline Count-Sketch decoding is computationally expensive; more extensive testing on truly "open" domains (unlimited string length) is a logical next step. Finally, the most efficient version of the algorithm requires interactivity (the server sending parameters back to users), which may not be feasible in all federated system architectures.

Summary updated

BibTeX
@inproceedings{gascon2023federated,
  author = {Adrià Gascón and Peter Kairouz and Ziteng Sun and Ananda Theertha Suresh},
  title = {{Federated Heavy Hitter Recovery under Linear Sketching}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=zN4oRCrlnM},
}
Figure